package mwacc import ( "time" ) type AccGetListRec struct { Id int64 `bson:"_id"` // id Username string `bson:"username"` // 用户名 Acc string `bson:"acc"` // 用户名 Pwd string `bson:"pwd"` // 密码 Email string `bson:"email"` // 邮箱 RoleId int64 `bson:"roleId"` // 角色Id RoleName string `bson:"roleName"` // 角色名 // Base32 string `bson:"base32"` // 二步签名 IsBase32 bool `bson:"isBase32"` // 是否已签名 IsEnb bool `bson:"isEnb"` // 使能 Feedback string `bson:"feedback"` // 禁用原因 CreatedAt time.Time `bson:"createdAt"` // 创建时间 UpdatedAt time.Time `bson:"updatedAt"` // 更新时间 LimitIP []string `bson:"limitIP"` // 允许访问的IP } type RoleGetListRec struct { Id int64 `bson:"_id"` // 角色Id Name string `bson:"name"` // 角色名称 Desc string `bson:"desc"` // 描述 IsEnb bool `bson:"isEnb"` // 是否启用 false:禁用 true:启用 ApiMenus []string `bson:"apiMenus"` // 已有权限的api CreatedAt time.Time `bson:"createdAt"` // 创建时间 UpdatedAt time.Time `bson:"updatedAt"` // 更新时间 AccCount int64 `bson:"accCount"` // 账户数量 } type AccInsertDoc struct { Id int64 `bson:"_id"` // id UserName string `bson:"userName"` // 用户名 Pwd string `bson:"pwd"` // 密码 Acc string `bson:"acc"` // 用户名 Email string `bson:"email"` // 邮箱 RoleId int64 `bson:"roleId"` // 角色Id Base32 string `bson:"base32"` // 二步签名 IsBase32 bool `bson:"isBase32"` // 是否已签名 IsEnb bool `bson:"isEnb"` // 使能 LastTime time.Time `bson:"lastTime"` // 登录时间 CreatedAt time.Time `bson:"createdAt"` // 创建时间 LimitIP []string `bson:"limitIP"` // 允许访问的IP } type RoleDropDoc struct { Id int64 `bson:"_id"` // 角色Id Name string `bson:"name"` // 角色名称 }