/** * @description: Login interface parameters */ export interface LoginParams { username: string; password: string; realKey?: string; code?: string; } export interface UserInfo { accountNonExpired: boolean; accountNonLocked: boolean; authorities: string[]; credentialsNonExpired: boolean; deptId: string; enabled: boolean; id: string; password?: string; phone: string; tenantId: string; username: string; [key: string]: any; } /** * @description: Login interface return value */ export interface LoginResultModel { access_token: string; clientId: string; expires_in: number; license: string; refresh_token: string; scope: string; token_type: string; user_info: UserInfo; } /** * @description: Get user information return value */ export interface GetUserInfoModel { // 用户id id: string; // 用户名 userName: string; // 真实名字 nickName: string; // 头像 avatar: string; // 所属部门ID deptId: string; // 所属部门名称 deptName: string; // 邮箱 email: string; // 菜单按钮权限 permissions: string[]; // 角色ID权限 roleIds: string[]; // 手机号 phone: string; // 备注信息 remarks: string; // 多租户ID tenantId: string; [key: string]: any; } export interface GetCaptchaModel { // 验证码地址 img: string; // 惟一key realKey: string; }