user.go 863 B

12345678910111213141516171819
  1. package models
  2. import "gogs.tyduyong.com/duyong/dy-admin/internal/pkg/models"
  3. type SysUser struct {
  4. UserID int `gorm:"primaryKey;autoIncrement;comment:编码" json:"userId"`
  5. Username string `json:"username" gorm:"size:64;comment:用户名"`
  6. Password string `json:"-" gorm:"size:128;comment:密码"`
  7. NickName string `json:"nickName" gorm:"size:128;comment:昵称"`
  8. Phone string `json:"phone" gorm:"size:11;comment:手机号"`
  9. Salt string `json:"-" gorm:"size:255;comment:加盐"`
  10. Avatar string `json:"avatar" gorm:"size:255;comment:头像"`
  11. Sex string `json:"sex" gorm:"size:255;comment:性别"`
  12. Remark string `json:"remark" gorm:"size:255;comment:备注"`
  13. Status string `json:"status" gorm:"size:4;comment:状态"`
  14. TenantIDs []int `json:"tenantIds" gorm:"-"` //加入的租户
  15. models.ControlBy
  16. models.ModelTime
  17. }