Add nickname. Recode route.

This commit is contained in:
2023-10-31 18:44:18 +08:00
parent 652d3f0132
commit b314a9f801
7 changed files with 64 additions and 10 deletions

11
src/global.d.ts vendored
View File

@@ -12,6 +12,7 @@ interface ImportMeta {
type RouteJsonObject = {
path: string
absolutePath?: string
id?: string
element?: React.JSX.Element
component?: React.ComponentType
@@ -26,6 +27,7 @@ type RouteJsonObject = {
}
type RouteHandle = {
absolutePath: string
name?: string
menu?: boolean
auth?: boolean
@@ -62,12 +64,21 @@ type UserWithInfoVo = {
lastLoginIp: string
createTime: Date
updateTime: Date
userInfo: UserInfoVo
modules: ModuleVo[]
menus: MenuVo[]
elements: ElementVo[]
operations: OperationVo[]
}
type UserInfoVo = {
id: string
userId: string
nickName: string
avatar: string
email: string
}
type ModuleVo = {
id: number
name: string