mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-09 02:33:42 +08:00
feat(ui): 增加角色管理,管理员方法新增角色关联
This commit is contained in:
11
api/store/model/admin_role.go
Normal file
11
api/store/model/admin_role.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type AdminRole struct {
|
||||
Id int `gorm:"primarykey;column:id"`
|
||||
Name string
|
||||
Description string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
11
api/store/model/admin_role_permission.go
Normal file
11
api/store/model/admin_role_permission.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type AdminRolePermission struct {
|
||||
Id int `gorm:"primarykey;column:id"`
|
||||
RoleId int
|
||||
PermissionId int
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
11
api/store/model/admin_user_role.go
Normal file
11
api/store/model/admin_user_role.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type AdminUserRole struct {
|
||||
Id int `gorm:"primarykey;column:id"`
|
||||
AdminId uint
|
||||
RoleId int
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
Reference in New Issue
Block a user