admin.go 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. package custom
  2. //管理员账户信息结构体(包含微信信息)
  3. type AdminWx struct {
  4. AdminId int `orm:"admin_id" json:"admin_id"`
  5. AdminName string `orm:"admin_name" json:"admin_name"`
  6. RealName string `orm:"real_name" json:"real_name"`
  7. Password string `orm:"password" json:"password"`
  8. LastUpdatedPasswordTime string `orm:"last_updated_password_time" json:"last_updated_password_time"`
  9. Enabled int `orm:"enabled" json:"enabled"` // 1:有效,0:禁用
  10. Email string `orm:"email" json:"email"`
  11. LastLoginTime string `orm:"last_login_time" json:"last_login_time"` // 最近登陆时间
  12. CreatedTime string `orm:"created_time" json:"created_time"` // 创建时间
  13. LastUpdatedTime string `orm:"last_updated_time" json:"last_updated_time"`
  14. Role string `orm:"role" json:"role"` // 用户角色
  15. Mobile string `orm:"mobile" json:"mobile"` // 手机号
  16. RoleType int `orm:"role_type" json:"role_type"` // 角色类型:1需要录入指标,0:不需要
  17. RoleId int `orm:"role_id" json:"role_id"` // 角色id
  18. RoleName string `orm:"role_name" json:"role_name"` // 角色名称
  19. RoleTypeCode string `orm:"role_type_code" json:"role_type_code"` // 角色编码
  20. DepartmentId int `orm:"department_id" json:"department_id"` // 部门id
  21. DepartmentName string `orm:"department_name" json:"department_name"` // 部门名称
  22. GroupId int `orm:"group_id" json:"group_id"` // 分组id
  23. GroupName string `orm:"group_name" json:"group_name"` // 分组名称
  24. Authority int `orm:"authority" json:"authority"` // 管理权限,0:无,1:部门负责人,2:小组负责人,3:超级管理员
  25. Position string `orm:"position" json:"position"` // 职位
  26. OpenId string `orm:"open_id" json:"open_id"` // open_id
  27. UnionId string `orm:"union_id" json:"union_id"`
  28. Subscribe int `orm:"subscribe" json:"subscribe"` // 是否关注
  29. NickName string `orm:"nick_name" json:"nick_name"` // 用户昵称
  30. BindAccount string `orm:"bind_account" json:"bind_account"` // 绑定时的账号
  31. Sex int `orm:"sex" json:"sex"` // 普通用户性别,1为男性,2为女性
  32. Province string `orm:"province" json:"province"` // 普通用户个人资料填写的省份
  33. City string `orm:"city" json:"city"` // 普通用户个人资料填写的城市
  34. Country string `orm:"country" json:"country"` // 国家,如中国为CN
  35. Headimgurl string `orm:"headimgurl" json:"headimgurl"`
  36. }