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

39 lines
872 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 {
2024-11-01 13:49:32 +08:00
// 用户接口
export interface UserBO {
id?: string; //用户ID作为唯一标识
name: string; //用户名(别名)
loginName: string;//登录名
password: string; //密码
2024-11-01 13:49:32 +08:00
phone?: string; //手机号
email?: string; //邮箱
loginTime?: string;//最后一次登录时间
loginErrorTimes: number;//登录错误次数
lockTime?: string; //用户密码错误锁定时间
}
2024-11-01 13:49:32 +08:00
// 用户+分页
export interface ReqUserParams extends ReqPage,UserBO {
2024-11-01 13:49:32 +08:00
}
2024-10-17 15:09:27 +08:00
}