mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-22 17:43:42 +08:00
refactor(projects): refactor page: user-management [重构用户管理页面]
This commit is contained in:
31
src/typings/api.d.ts
vendored
31
src/typings/api.d.ts
vendored
@@ -22,34 +22,31 @@ declare namespace ApiRoute {
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace ApiDemo {
|
||||
interface DataWithAdapter {
|
||||
dataId: string;
|
||||
dataName: string;
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace ApiUserManagement {
|
||||
interface UserTable {
|
||||
interface User {
|
||||
/** 用户id */
|
||||
id: string;
|
||||
/** 用户名 */
|
||||
name: string;
|
||||
userName: string | null;
|
||||
/** 用户年龄 */
|
||||
age: number;
|
||||
age: number | null;
|
||||
/**
|
||||
* 用户性别
|
||||
* - 男 1
|
||||
* - 女 0
|
||||
* - 0: 女
|
||||
* - 1: 男
|
||||
*/
|
||||
gender: '0' | '1' | null;
|
||||
/** 用户手机号码 */
|
||||
phone: string;
|
||||
/** 用户邮箱 */
|
||||
email: string;
|
||||
/** 用户角色 */
|
||||
role: Auth.RoleType;
|
||||
/** 是否禁用用户 */
|
||||
disabled: boolean;
|
||||
email: string | null;
|
||||
/**
|
||||
* 用户状态
|
||||
* - 1: 启用
|
||||
* - 2: 禁用
|
||||
* - 3: 冻结
|
||||
* - 4: 软删除
|
||||
*/
|
||||
userStatus: '1' | '2' | '3' | '4' | null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user