26 lines
1.9 KiB
Go
26 lines
1.9 KiB
Go
package entity
|
||
|
||
// NlAdmin 管理员表
|
||
type NlAdmin struct {
|
||
Id uint `json:"id" orm:"id,primary"` // 管理员ID
|
||
OpenId string `json:"open_id" orm:"open_id"` // OpenID,用于第三方登录
|
||
Username string `json:"username" orm:"username"` // 用户名
|
||
JobNumber string `json:"job_number" orm:"job_number"` // 工号
|
||
Avatar string `json:"avatar" orm:"avatar"` // 头像
|
||
NickName string `json:"nick_name" orm:"nick_name"` // 昵称
|
||
Password string `json:"-" orm:"password"` // 密码
|
||
Phone string `json:"phone" orm:"phone"` // 手机号
|
||
Email string `json:"email" orm:"email"` // 邮箱
|
||
RoleId int `json:"role_id" orm:"role_id"` // 角色ID
|
||
Department string `json:"department" orm:"department"` // 部门
|
||
RegIp int64 `json:"reg_ip" orm:"reg_ip"` // 注册IP
|
||
LastLoginTime int `json:"last_login_time" orm:"last_login_time"` // 最后登录时间
|
||
LastLoginIp int64 `json:"last_login_ip" orm:"last_login_ip"` // 最后登录IP
|
||
OperationPassword string `json:"operation_password" orm:"operation_password"` // 操作密码
|
||
Desc string `json:"desc" orm:"desc"` // 备注
|
||
Status int `json:"status" orm:"status"` // 状态 1正常 0禁用
|
||
CreatedAt int `json:"created_at" orm:"created_at"` // 创建时间
|
||
UpdatedAt int `json:"updated_at" orm:"updated_at"` // 更新时间
|
||
DeletedAt int `json:"deleted_at" orm:"deleted_at"` // 删除时间
|
||
}
|