sys_user.go 1.0 KB

12345678910111213141516171819202122232425
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "dashoo.cn/micro/app/model/internal"
  7. )
  8. // SysUser is the golang structure for table sys_user.
  9. type SysUser internal.SysUser
  10. // Fill with you ideas below.
  11. // LoginUserRes 登录返回
  12. type LoginUserRes struct {
  13. Id uint64 `orm:"id,primary" json:"id"` //
  14. UserName string `orm:"user_name,unique" json:"userName"` // 用户名
  15. UserNickname string `orm:"user_nickname" json:"userNickname"` // 用户昵称
  16. UserStatus uint `orm:"user_status" json:"userStatus"` // 用户状态;0:禁用,1:正常,2:未验证
  17. IsAdmin int `orm:"is_admin" json:"isAdmin"` // 是否后台管理员 1 是 0 否
  18. Avatar string `orm:"avatar" json:"avatar"` //头像
  19. DeptId uint64 `orm:"dept_id" json:"deptId"` //部门id
  20. }