user_action_log.go 774 B

123456789101112131415161718192021222324
  1. package entity
  2. // 用户信息变化记录
  3. type UserRelationActionLog struct {
  4. MysqlBaseModel
  5. UserId int64 `json:"userId" gorm:"comment:用户ID;"`
  6. Uid string `json:"uid" gorm:"column:uid;type:varchar(64);comment:用户UID;"`
  7. Source string `json:"source" gorm:"type:text;comment:原信息;"`
  8. Target string `json:"target" gorm:"type:text;comment:目标信息;"`
  9. Action string `json:"action" gorm:"type:varchar(42);default:'';comment:变更类型:修改地址 重置上级 修改上级"`
  10. }
  11. func (*UserRelationActionLog) TableName() string {
  12. return ModelPrefix + "user_action_log"
  13. }
  14. func (*UserRelationActionLog) Comment() string {
  15. return "用户信息变更日志"
  16. }
  17. func NewUserRelationActionLog() *UserRelationActionLog {
  18. return &UserRelationActionLog{}
  19. }