新增获取角色详情
This commit is contained in:
@@ -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:是)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user