Add user manager. Optimize code.
This commit is contained in:
30
src/global.d.ts
vendored
30
src/global.d.ts
vendored
@@ -75,10 +75,26 @@ type UserWithPowerInfoVo = {
|
||||
operations: OperationVo[]
|
||||
}
|
||||
|
||||
type UserWithRoleInfoVo = {
|
||||
id: string
|
||||
username: string
|
||||
locking: boolean
|
||||
expiration: Date
|
||||
credentialsExpiration: Date
|
||||
enable: number
|
||||
lastLoginTime: Date
|
||||
lastLoginIp: string
|
||||
createTime: Date
|
||||
updateTime: Date
|
||||
userInfo: UserInfoVo
|
||||
roles: RoleVo[]
|
||||
groups: GroupVo[]
|
||||
}
|
||||
|
||||
type UserInfoVo = {
|
||||
id: string
|
||||
userId: string
|
||||
nickName: string
|
||||
nickname: string
|
||||
avatar: string
|
||||
email: string
|
||||
}
|
||||
@@ -113,6 +129,18 @@ type OperationVo = {
|
||||
elementId: number
|
||||
}
|
||||
|
||||
type RoleVo = {
|
||||
id: string
|
||||
name: string
|
||||
enable: boolean
|
||||
}
|
||||
|
||||
type GroupVo = {
|
||||
id: string
|
||||
name: string
|
||||
enable: boolean
|
||||
}
|
||||
|
||||
type LoginForm = {
|
||||
username: string
|
||||
password: string
|
||||
|
||||
Reference in New Issue
Block a user