phoneChanged.go 355 字节
package event

import coreDomain "github.com/linmadan/egglib-go/core/domain"

const USER_CHANGE_PHONE = "user-change-phone"

type PhoneChanged struct {
	coreDomain.BaseEvent
	OldPhone string `json:"oldPhone"` // 旧手机号
	NewPhone string `json:"newPhone"` // 新手机号
}

func (event *PhoneChanged) EventType() string {
	return USER_CHANGE_PHONE
}