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