新增获取角色详情

This commit is contained in:
2023-06-13 13:37:46 +08:00
parent 708873087f
commit e09d1f051b
6 changed files with 104 additions and 4 deletions
+10 -1
View File
@@ -1,6 +1,6 @@
package roleResponse
// RoleMenuList 登陆
// RoleMenuList 角色菜单列表
type RoleMenuList struct {
MenuId int64 `json:"menu_id"` // 主键id
MenuName string `json:"menu_name"` // 菜单名称
@@ -13,3 +13,12 @@ type RoleMenuList struct {
Path string `json:"path"` // 页面地址(#表示当前页)
Children []*RoleMenuList `json:"children"` // 下级页面
}
// GetRole 角色详情
type GetRole struct {
MenuIds []int64 `json:"menu_ids"` // 菜单id
RoleId int64 `json:"role_id"` // 角色id
RoleName string `json:"role_name"` // 角色名称
RoleStatus int `json:"role_status"` // 角色状态(1:正常 2:禁用)
IsAdmin int `json:"is_admin"` // 是否管理员(0:否 1:是)
}