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.
55 lines
1016 B
55 lines
1016 B
|
1 year ago
|
declare namespace API {
|
||
|
|
|
||
|
|
type Menu = {
|
||
|
|
createTime: Date;
|
||
|
|
updateTime: Date;
|
||
|
|
id: number;
|
||
|
|
parentId: number;
|
||
|
|
name: string;
|
||
|
|
router: string;
|
||
|
|
perms: string;
|
||
|
|
/** 当前菜单类型 0: 目录 | 1: 菜单 | 2: 权限 */
|
||
|
|
type: 0 | 1 | 2;
|
||
|
|
icon: string;
|
||
|
|
orderNum: number;
|
||
|
|
viewPath: string;
|
||
|
|
keepalive: boolean;
|
||
|
|
isShow: boolean;
|
||
|
|
/** 是否外链 */
|
||
|
|
isExt?: boolean;
|
||
|
|
/** 外链打开方式
|
||
|
|
* 1: 新窗口打开
|
||
|
|
* 2: iframe
|
||
|
|
*/
|
||
|
|
openMode?: 1 | 2;
|
||
|
|
};
|
||
|
|
|
||
|
|
/** 登录参数 */
|
||
|
|
type LoginParams = {
|
||
|
|
captchaId?: string;
|
||
|
|
password: string;
|
||
|
|
username: string;
|
||
|
|
verifyCode?: string;
|
||
|
|
};
|
||
|
|
|
||
|
|
/** 登录成功结果 */
|
||
|
|
type LoginResult = {
|
||
|
|
accessToken: string;
|
||
|
|
expiresTime:string;
|
||
|
|
refreshToken:string;
|
||
|
|
userId:string;
|
||
|
|
};
|
||
|
|
|
||
|
|
/** 获取验证码参数 */
|
||
|
|
type CaptchaParams = {
|
||
|
|
width?: number;
|
||
|
|
height?: number;
|
||
|
|
};
|
||
|
|
|
||
|
|
/** 获取验证码结果 */
|
||
|
|
type CaptchaResult = {
|
||
|
|
img: string;
|
||
|
|
id: string;
|
||
|
|
};
|
||
|
|
}
|