git commit -m feat(projects): 对接后端登录接口
This commit is contained in:
8
src/typings/api/auth.d.ts
vendored
8
src/typings/api/auth.d.ts
vendored
@ -6,14 +6,14 @@ declare namespace Api {
|
||||
*/
|
||||
namespace Auth {
|
||||
interface LoginToken {
|
||||
token: string;
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
}
|
||||
|
||||
interface UserInfo {
|
||||
userId: string;
|
||||
userName: string;
|
||||
roles: string[];
|
||||
id: string;
|
||||
username: string;
|
||||
authorities: string[];
|
||||
buttons: string[];
|
||||
}
|
||||
}
|
||||
|
||||
4
src/typings/app.d.ts
vendored
4
src/typings/app.d.ts
vendored
@ -628,9 +628,11 @@ declare namespace App {
|
||||
/** The backend service response code */
|
||||
code: string;
|
||||
/** The backend service response message */
|
||||
msg: string;
|
||||
message: string;
|
||||
/** The backend service response data */
|
||||
data: T;
|
||||
/** The backend service response timestamp */
|
||||
timestamp: number;
|
||||
};
|
||||
|
||||
/** The demo backend service response data */
|
||||
|
||||
Reference in New Issue
Block a user