// 登录模块 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 UserBO { id?: string; //用户ID,作为唯一标识 name: string; //用户名(别名) loginName: string;//登录名 password: string; //密码 phone?: string; //手机号 email?: string; //邮箱 loginTime?: string;//最后一次登录时间 loginErrorTimes: number;//登录错误次数 lockTime?: string; //用户密码错误锁定时间 } // 用户+分页 export interface ReqUserParams extends ReqPage,UserBO { } }