Documentation
¶
Index ¶
Constants ¶
View Source
const UserCreatedEventType = "user.created"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserCreatedEvent ¶
type UserCreatedEvent struct {
sharedEvent.BaseDomainEvent
UserID uint64 `json:"user_id"`
Telephone string `json:"telephone"`
}
UserCreatedEvent 用户创建成功事件
func NewUserCreatedEvent ¶
func NewUserCreatedEvent(userId uint64, telephone string) *UserCreatedEvent
func (*UserCreatedEvent) EventData ¶
func (e *UserCreatedEvent) EventData() map[string]interface{}
Click to show internal directories.
Click to hide internal directories.