Files
pqs-9100_client/frontend/src/api/user/interface/index.ts

47 lines
1007 B
TypeScript
Raw Normal View History

// 登录模块
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 {
id: string; //用户ID作为唯一标识
username: string; //用户名
password: string; //密码
realname: string; //真实姓名
status: number; //用户状态
rolename: string; //角色名称
}
export interface ReqUserParams extends ReqPage {
id: string; //用户ID作为唯一标识
username: string; //用户名
password: string; //密码
realname: string; //真实姓名
status: number; //用户状态
rolename: string; //角色名称
}
export interface ResStatus {
userLabel: string;
userValue: number;
}
2024-10-17 15:09:27 +08:00
}