Add nickname. Recode route.
This commit is contained in:
11
src/global.d.ts
vendored
11
src/global.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user