create-iking-admin
Version:
金合技术中台脚手架
59 lines (54 loc) • 1.26 kB
TypeScript
/*
* @Author: wfl
* @LastEditors: wfl
* @description:
* @updateInfo:
* @Date: 2022-07-29 11:45:14
* @LastEditTime: 2022-08-23 12:12:46
*/
import { ErrorTypeEnum } from '@/global/enums/exceptionEnum';
import { MenuModeEnum, MenuTypeEnum } from '@/global/enums/menuEnum';
import { RoleInfo } from '../src/mainApp/api/sys-default/model/userModel';
// Lock screen information
export interface LockInfo {
// Password required
pwd?: string | undefined;
// Is it locked?
isLock?: boolean;
}
// Error-log information
export interface ErrorLogInfo {
// Type of error
type: ErrorTypeEnum;
// Error file
file: string;
// Error name
name?: string;
// Error message
message: string;
// Error stack
stack?: string;
// Error detail
detail: string;
// Error url
url: string;
// Error time
time?: string;
}
export interface UserInfo {
[x: string]: any;
userId: string | number;
id: string | number;
username: string;
realName: string;
avatar: string;
desc?: string;
homePath?: string;
roles: RoleInfo[];
}
export interface BeforeMiniState {
menuCollapsed?: boolean;
menuSplit?: boolean;
menuMode?: MenuModeEnum;
menuType?: MenuTypeEnum;
}