sys_user.go 1.2 KB

12345678910111213141516171819
  1. package model
  2. import (
  3. "gin-vue-admin/global"
  4. "github.com/satori/go.uuid"
  5. )
  6. type SysUser struct {
  7. global.GVA_MODEL
  8. UUID uuid.UUID `json:"uuid" gorm:"comment:用户UUID"` // 用户UUID
  9. Username string `json:"userName" gorm:"comment:用户登录名"` // 用户登录名
  10. Password string `json:"-" gorm:"comment:用户登录密码"` // 用户登录密码
  11. NickName string `json:"nickName" gorm:"default:系统用户;comment:用户昵称"` // 用户昵称
  12. HeaderImg string `json:"headerImg" gorm:"default:http://qmplusimg.henrongyi.top/head.png;comment:用户头像"` // 用户头像
  13. Authority SysAuthority `json:"authority" gorm:"foreignKey:AuthorityId;references:AuthorityId;comment:用户角色"`
  14. AuthorityId string `json:"authorityId" gorm:"default:888;comment:用户角色ID"` // 用户角色ID
  15. Theme string `json:"theme" gorm:"default:{\"theme\":\"#1890ff\",\"sideMode\":\"dark\"};comment:用户配置信息"`
  16. }