Add user management page

This commit is contained in:
2023-11-28 18:15:21 +08:00
parent 7c0508e2f7
commit 039fa396ab
9 changed files with 865 additions and 67 deletions

29
src/global.d.ts vendored
View File

@@ -63,7 +63,9 @@ interface UserWithPowerInfoVo {
locking: boolean
expiration: string
credentialsExpiration: string
enable: number
enable: boolean
currentLoginTime: string
currentLoginIp: string
lastLoginTime: string
lastLoginIp: string
createTime: string
@@ -81,7 +83,9 @@ interface UserWithRoleInfoVo {
locking: boolean
expiration: string
credentialsExpiration: string
enable: number
enable: boolean
currentLoginTime: string
currentLoginIp: string
lastLoginTime: string
lastLoginIp: string
createTime: string
@@ -91,6 +95,21 @@ interface UserWithRoleInfoVo {
groups: GroupVo[]
}
interface UserAddEditParam {
id?: string
username: string
password?: string
locking?: boolean
expiration?: string
credentialsExpiration?: string
enable?: boolean
nickname?: string
avatar?: string
email?: string
roleIds: number[]
groupIds: number[]
}
interface UserInfoVo {
id: string
userId: string
@@ -242,7 +261,7 @@ interface GroupGetParam extends PageParam {
interface GroupWithRoleGetVo {
id: string
name: string
enable: string
enable: boolean
createTime: string
updateTime: string
roles: RoleVo[]
@@ -259,3 +278,7 @@ interface GroupChangeStatusParam {
id: string
enable: boolean
}
interface AvatarBase64Vo {
base64: string
}