event

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 1 Imported by: 0

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{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL