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

60 lines
1.4 KiB
TypeScript
Raw Normal View History

// 登录模块
2024-11-07 19:25:45 +08:00
import type { ReqPage,ResPage } 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-07 19:25:45 +08:00
/**
*
*/
export interface ReqUserParams extends ReqPage{
id: string; // 装置序号用户ID 必填
name: string; //用户名(别名)
loginTime?: string;//最后一次登录时间
}
2024-11-01 13:49:32 +08:00
// 用户接口
2024-11-07 19:25:45 +08:00
export interface ResUser {
id: string; //用户ID作为唯一标识
2024-11-01 13:49:32 +08:00
name: string; //用户名(别名)
loginName: string;//登录名
2024-11-07 19:25:45 +08:00
deptId?: number;//部门ID
password: string; //密码
2024-11-01 13:49:32 +08:00
phone?: string; //手机号
email?: string; //邮箱
loginTime?: string;//最后一次登录时间
loginErrorTimes: number;//登录错误次数
lockTime?: string; //用户密码错误锁定时间
2024-11-07 19:25:45 +08:00
createBy?: string;//创建用户
createTime?: string;//创建时间
updateBy?: string;//更新用户
updateTime?: string;//更新时间
}
2024-11-07 19:25:45 +08:00
/**
*
*/
export interface ResUserPage extends ResPage<ResUser> {
}
// // 用户+分页
// export interface ReqUserParams extends ReqPage,UserBO {
// }
2024-10-17 15:09:27 +08:00
}