Files
quyun/backend/app/events/publishers/user_register.go
Rogee 49072ddd79
Some checks failed
build quyun / Build (push) Failing after 1m30s
migrate controllers
2025-12-19 23:33:02 +08:00

24 lines
361 B
Go

package publishers
import (
"encoding/json"
"quyun/app/events"
"go.ipao.vip/atom/contracts"
)
var _ contracts.EventPublisher = (*UserRegister)(nil)
type UserRegister struct {
ID int64 `json:"id"`
}
func (e *UserRegister) Marshal() ([]byte, error) {
return json.Marshal(e)
}
func (e *UserRegister) Topic() string {
return events.TopicUserRegister
}