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.
35 lines
601 B
35 lines
601 B
2 years ago
|
/**
|
||
|
* @description: Login interface parameters
|
||
|
*/
|
||
|
export interface LoginParams {
|
||
|
username: string
|
||
|
password: string
|
||
2 years ago
|
captchaVerification: string
|
||
2 years ago
|
}
|
||
|
|
||
|
/**
|
||
|
* @description: Login interface return value
|
||
|
*/
|
||
|
export interface LoginResultModel {
|
||
|
userId: string | number
|
||
2 years ago
|
accessToken: string
|
||
|
refreshToken: string
|
||
|
expiresTime: number
|
||
2 years ago
|
}
|
||
|
|
||
|
/**
|
||
|
* @description: Get user information return value
|
||
|
*/
|
||
|
export interface GetUserInfoModel {
|
||
2 years ago
|
roles: string[]
|
||
|
permissions: string[]
|
||
2 years ago
|
// 用户id
|
||
2 years ago
|
user: userModel
|
||
|
}
|
||
|
|
||
|
export interface userModel {
|
||
|
id: string | number
|
||
2 years ago
|
avatar: string
|
||
2 years ago
|
nickname: string
|
||
2 years ago
|
}
|