Finish role add and edit

This commit is contained in:
2023-11-13 17:53:42 +08:00
parent 3e407fc9c8
commit e6b39a46de
9 changed files with 423 additions and 89 deletions

18
src/global.d.ts vendored
View File

@@ -169,7 +169,7 @@ interface TableParam {
filters?: Record<string, _FilterValue | null>
}
interface GetSysLogParam extends PageParam {
interface SysLogGetParam extends PageParam {
searchRequestUrl?: string
searchRegex?: boolean
searchStartTime?: string
@@ -195,7 +195,7 @@ interface SysLogGetVo {
operateUsername: string
}
interface GetRoleParam extends PageParam {
interface RoleGetParam extends PageParam {
searchName?: string
searchRegex?: boolean
}
@@ -215,3 +215,17 @@ interface RoleChangeStatusParam {
id: string
enable: boolean
}
interface RoleAddEditParam {
id?: string
name: string
powerIds: number[]
enable: boolean
}
interface PowerSetVo {
moduleList: ModuleVo[]
menuList: MenuVo[]
elementList: ElementVo[]
operationList: OperationVo[]
}