Change UserVo to UserWithInfoVo

This commit is contained in:
2023-10-30 18:41:20 +08:00
parent fcd4fd532c
commit 652d3f0132
2 changed files with 13 additions and 7 deletions

10
src/global.d.ts vendored
View File

@@ -51,7 +51,7 @@ type TokenVo = {
token: string
}
type UserVo = {
type UserWithInfoVo = {
id: string
username: string
locking: boolean
@@ -62,11 +62,18 @@ type UserVo = {
lastLoginIp: string
createTime: Date
updateTime: Date
modules: ModuleVo[]
menus: MenuVo[]
elements: ElementVo[]
operations: OperationVo[]
}
type ModuleVo = {
id: number
name: string
powerId: number
}
type MenuVo = {
id: number
name: string
@@ -88,7 +95,6 @@ type OperationVo = {
name: string
code: string
powerId: number
parentId: number
elementId: number
}