remove: tenantslug
This commit is contained in:
23
backend/app/events/publishers/post_updated.go
Normal file
23
backend/app/events/publishers/post_updated.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package publishers
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"backend/app/events"
|
||||
|
||||
"git.ipao.vip/rogeecn/atom/contracts"
|
||||
)
|
||||
|
||||
var _ contracts.EventPublisher = (*PostUpdatedEvent)(nil)
|
||||
|
||||
type PostUpdatedEvent struct {
|
||||
ID int64 `json:"id"`
|
||||
}
|
||||
|
||||
func (e *PostUpdatedEvent) Marshal() ([]byte, error) {
|
||||
return json.Marshal(e)
|
||||
}
|
||||
|
||||
func (e *PostUpdatedEvent) Topic() string {
|
||||
return events.TopicPostUpdated
|
||||
}
|
||||
Reference in New Issue
Block a user