remove: tenantslug

This commit is contained in:
Rogee
2025-01-15 20:31:21 +08:00
parent 13566cfa38
commit dbe1e19be2
24 changed files with 521 additions and 301 deletions

View File

@@ -0,0 +1,23 @@
package publishers
import (
"encoding/json"
"backend/app/events"
"git.ipao.vip/rogeecn/atom/contracts"
)
var _ contracts.EventPublisher = (*UserRegister)(nil)
type PostDeleted struct {
ID int64 `json:"id"`
}
func (e *PostDeleted) Marshal() ([]byte, error) {
return json.Marshal(e)
}
func (e *PostDeleted) Topic() string {
return events.TopicPostDeleted
}