You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
792 B
45 lines
792 B
import type { RouteItem } from './menuModel' |
|
|
|
/** |
|
* @description: Login interface parameters |
|
*/ |
|
export interface LoginParams { |
|
username: string |
|
password: string |
|
captchaVerification: string |
|
} |
|
|
|
/** |
|
* @description: SmsLogin interface parameters |
|
*/ |
|
export interface SmsLoginParams { |
|
mobile: number |
|
code: number |
|
} |
|
|
|
/** |
|
* @description: Login interface return value |
|
*/ |
|
export interface LoginResultModel { |
|
userId: string | number |
|
accessToken: string |
|
refreshToken: string |
|
expiresTime: number |
|
} |
|
|
|
/** |
|
* @description: Get user information return value |
|
*/ |
|
export interface GetUserInfoModel { |
|
roles: string[] |
|
permissions: string[] |
|
menus: RouteItem[] |
|
// 用户id |
|
user: userModel |
|
} |
|
|
|
export interface userModel { |
|
id: string | number |
|
avatar: string |
|
nickname: string |
|
}
|
|
|