实现角色接口增删改查
This commit is contained in:
@ -13,6 +13,7 @@ import (
|
||||
type Admins struct {
|
||||
g.Meta `orm:"table:admins, do:true"`
|
||||
Id interface{} // 管理员ID
|
||||
RoleId interface{} // 角色ID
|
||||
Username interface{} // 管理员用户名
|
||||
PasswordHash interface{} // 密码哈希
|
||||
RealName interface{} // 真实姓名
|
||||
|
||||
@ -20,4 +20,5 @@ type Roles struct {
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间戳
|
||||
IsDeletable interface{} // 是否可删除:0=不可删除,1=可删除
|
||||
}
|
||||
|
||||
@ -27,4 +27,5 @@ type Users struct {
|
||||
CreatedAt *gtime.Time // 创建时间
|
||||
UpdatedAt *gtime.Time // 更新时间
|
||||
DeletedAt *gtime.Time // 软删除时间
|
||||
RoleId interface{} // 角色ID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user