refactor: 项目优化和对接新后端框架

Former-commit-id: 11bd4366f6f0f9f3fb2213606f61cdb7b4c635a1
This commit is contained in:
horizons
2022-10-15 13:57:55 +08:00
parent 46d9d57e53
commit b0a0033371
9 changed files with 76 additions and 159 deletions

View File

@@ -1,26 +0,0 @@
/**
* 登录表单类型声明
*/
export interface LoginFormData {
username: string;
password: string;
grant_type: string;
code: string;
uuid: string;
}
/**
* 登录响应类型声明
*/
export interface LoginResponseData {
access_token: string;
token_type: string;
}
/**
* 验证码类型声明
*/
export interface Captcha {
img: string;
uuid: string;
}

View File

@@ -1,7 +1,24 @@
import { PageQueryParam, PageResult } from './base';
/**
* 登录用户类型声明
* 登录表单
*/
export interface LoginFormData {
username: string;
password: string;
grant_type: string;
}
/**
* 登录响应
*/
export interface LoginResponseData {
access_token: string;
token_type: string;
}
/**
* 登录用户信息
*/
export interface UserInfo {
nickname: string;
@@ -11,7 +28,7 @@ export interface UserInfo {
}
/**
* 用户查询参数类型声明
* 用户查询参数
*/
export interface UserQueryParam extends PageQueryParam {
keywords: string;