初始版本提交
This commit is contained in:
82
types/store.d.ts
vendored
Normal file
82
types/store.d.ts
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
import { ErrorTypeEnum } from '/@/enums/exceptionEnum';
|
||||
import { MenuModeEnum, MenuTypeEnum } from '/@/enums/menuEnum';
|
||||
import { RoleInfo } from '/@/api/sys/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 {
|
||||
// 用户id
|
||||
id: string;
|
||||
// 真实名字
|
||||
name: string;
|
||||
// 编码
|
||||
code: string;
|
||||
// 手机
|
||||
mobile: string;
|
||||
//角色
|
||||
roles: RoleInfo[];
|
||||
// 用户名
|
||||
userName: string;
|
||||
// 头像
|
||||
avatar: string;
|
||||
//部门id
|
||||
departmentId: string;
|
||||
//部门名称
|
||||
departmentName: string;
|
||||
//备注
|
||||
remark: string;
|
||||
//邮箱
|
||||
email: string;
|
||||
//地址
|
||||
address: string;
|
||||
desc?: string;
|
||||
homePath?: string;
|
||||
//性别
|
||||
gender: string;
|
||||
nickName: string;
|
||||
//密码
|
||||
password: string;
|
||||
//岗位id
|
||||
postId: string;
|
||||
//岗位名称
|
||||
postName: string;
|
||||
|
||||
//所有部门
|
||||
departments: DepartmentInfo[];
|
||||
//所有部门
|
||||
posts: PostInfo[];
|
||||
desktopSchema: DesktopData;
|
||||
}
|
||||
|
||||
export interface BeforeMiniState {
|
||||
menuCollapsed?: boolean;
|
||||
menuSplit?: boolean;
|
||||
menuMode?: MenuModeEnum;
|
||||
menuType?: MenuTypeEnum;
|
||||
}
|
||||
Reference in New Issue
Block a user