Add role table

This commit is contained in:
2023-11-10 11:57:55 +08:00
parent cece8b2a83
commit 66c88fec48
8 changed files with 313 additions and 16 deletions

31
src/global.d.ts vendored
View File

@@ -111,6 +111,7 @@ interface MenuVo {
url: string
powerId: number
parentId: number
moduleId: number
}
interface ElementVo {
@@ -161,13 +162,6 @@ interface PageParam {
sortOrder?: string
}
interface GetSysLogParams extends PageParam {
searchRequestUrl?: string
searchRegex?: boolean
searchStartTime?: string
searchEndTime?: string
}
interface TableParams {
pagination?: _TablePaginationConfig
sortField?: React.Key | readonly React.Key[]
@@ -175,6 +169,13 @@ interface TableParams {
filters?: Record<string, _FilterValue | null>
}
interface GetSysLogParams extends PageParam {
searchRequestUrl?: string
searchRegex?: boolean
searchStartTime?: string
searchEndTime?: string
}
interface SysLogGetVo {
id: string
logType: string
@@ -193,3 +194,19 @@ interface SysLogGetVo {
userAgent: string
operateUsername: string
}
interface GetRoleParams extends PageParam {
searchName?: string
searchRegex?: boolean
}
interface RoleWithPowerGetVo {
id: string
name: string
enable: string
modules: ModuleVo[]
menus: MenuVo[]
elements: ElementVo[]
operations: OperationVo[]
tree: _DataNode[]
}