2024-10-15 15:37:50 +08:00
|
|
|
|
// 登录模块
|
|
|
|
|
|
import type { ReqPage } from '@/api/interface'
|
|
|
|
|
|
|
|
|
|
|
|
export namespace Login {
|
|
|
|
|
|
export interface ReqLoginForm {
|
|
|
|
|
|
username: string;
|
|
|
|
|
|
password: string;
|
|
|
|
|
|
}
|
|
|
|
|
|
export interface ResLogin {
|
|
|
|
|
|
accessToken: string;
|
|
|
|
|
|
}
|
|
|
|
|
|
export interface ResAuthButtons {
|
|
|
|
|
|
[key: string]: string[];
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 用户管理模块
|
|
|
|
|
|
export namespace User {
|
|
|
|
|
|
|
|
|
|
|
|
// 用户列表
|
|
|
|
|
|
export interface ResUserList {
|
2024-10-23 20:53:58 +08:00
|
|
|
|
id: string; //用户ID,作为唯一标识
|
|
|
|
|
|
username: string; //用户名
|
|
|
|
|
|
password: string; //密码
|
|
|
|
|
|
realname: string; //真实姓名
|
|
|
|
|
|
status: number; //用户状态
|
|
|
|
|
|
rolename: string; //角色名称
|
2024-10-15 15:37:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface ReqUserParams extends ReqPage {
|
2024-10-23 20:53:58 +08:00
|
|
|
|
id: string; //用户ID,作为唯一标识
|
|
|
|
|
|
username: string; //用户名
|
|
|
|
|
|
password: string; //密码
|
|
|
|
|
|
realname: string; //真实姓名
|
|
|
|
|
|
status: number; //用户状态
|
|
|
|
|
|
rolename: string; //角色名称
|
2024-10-15 15:37:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export interface ResStatus {
|
|
|
|
|
|
userLabel: string;
|
|
|
|
|
|
userValue: number;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-10-17 15:09:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|