实现角色接口增删改查

This commit is contained in:
2025-06-03 16:04:00 +08:00
parent bcd274c750
commit fedcd288e8
35 changed files with 596 additions and 57 deletions

View File

@ -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{} // 真实姓名

View File

@ -20,4 +20,5 @@ type Roles struct {
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间戳
IsDeletable interface{} // 是否可删除0=不可删除1=可删除
}

View File

@ -27,4 +27,5 @@ type Users struct {
CreatedAt *gtime.Time // 创建时间
UpdatedAt *gtime.Time // 更新时间
DeletedAt *gtime.Time // 软删除时间
RoleId interface{} // 角色ID
}