| 123456789101112131415161718192021222324 |
- package entity
- // 用户信息变化记录
- type UserRelationActionLog struct {
- MysqlBaseModel
- UserId int64 `json:"userId" gorm:"comment:用户ID;"`
- Uid string `json:"uid" gorm:"column:uid;type:varchar(64);comment:用户UID;"`
- Source string `json:"source" gorm:"type:text;comment:原信息;"`
- Target string `json:"target" gorm:"type:text;comment:目标信息;"`
- Action string `json:"action" gorm:"type:varchar(42);default:'';comment:变更类型:修改地址 重置上级 修改上级"`
- }
- func (*UserRelationActionLog) TableName() string {
- return ModelPrefix + "user_action_log"
- }
- func (*UserRelationActionLog) Comment() string {
- return "用户信息变更日志"
- }
- func NewUserRelationActionLog() *UserRelationActionLog {
- return &UserRelationActionLog{}
- }
|