新增返回值
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
package roleResponse
|
||||
|
||||
import "hospital-admin-api/api/model"
|
||||
|
||||
// GetRoleMenuList 角色菜单列表
|
||||
type GetRoleMenuList struct {
|
||||
MenuId int64 `json:"menu_id"` // 主键id
|
||||
MenuId string `json:"menu_id"` // 主键id
|
||||
MenuName string `json:"menu_name"` // 菜单名称
|
||||
MenuTitle string `json:"menu_title"` // 菜单名称
|
||||
ParentId int64 `json:"parent_id"` // 父菜单ID(0表示一级)
|
||||
ParentId string `json:"parent_id"` // 父菜单ID(0表示一级)
|
||||
MenuStatus int `json:"menu_status"` // 菜单状态(0:隐藏 1:正常)此优先级最高
|
||||
MenuType int `json:"menu_type"` // 菜单类型(1:模块 2:菜单 3:按钮)
|
||||
Permission string `json:"permission"` // 标识
|
||||
@@ -24,3 +26,13 @@ type GetRole struct {
|
||||
RoleStatus int `json:"role_status"` // 角色状态(1:正常 2:禁用)
|
||||
IsAdmin int `json:"is_admin"` // 是否管理员(0:否 1:是)
|
||||
}
|
||||
|
||||
// GetRolePage 获取角色列表-分页
|
||||
type GetRolePage struct {
|
||||
RoleId string `json:"role_id"` // 角色id
|
||||
RoleName string `json:"role_name"` // 角色名称
|
||||
RoleStatus int `json:"role_status"` // 角色状态(1:正常 2:禁用)
|
||||
IsAdmin int `json:"is_admin"` // 是否管理员(0:否 1:是)
|
||||
CreatedAt model.LocalTime `json:"created_at"` // 创建时间
|
||||
UpdatedAt model.LocalTime `json:"updated_at"` // 修改时间
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user