chore: update types

This commit is contained in:
vben
2024-06-02 20:47:50 +08:00
parent b200ae9997
commit ce0c3834ed
31 changed files with 485 additions and 124 deletions

View File

@@ -1,44 +0,0 @@
interface RoleInfo {
/** 角色名 */
roleName: string;
/** 角色值 */
value: string;
}
/** 用户信息 */
interface UserInfo {
/**
* 头像
*/
avatar: string;
/**
* 用户描述
*/
desc: string;
/**
* 首页地址
*/
homePath: string;
/**
* 用户昵称
*/
realName: string;
/**
* 用户角色信息
*/
roles: RoleInfo[];
/**
* accessToken
*/
token: string;
/**
* 用户id
*/
userId: string;
/**
* 用户名
*/
username: string;
}
export type { RoleInfo, UserInfo };

View File

@@ -1,4 +1,4 @@
type LocaleSupportType = 'en-US' | 'zh-CN';
type SupportedLanguagesType = 'en-US' | 'zh-CN';
type LayoutType =
| 'full-content'
@@ -17,6 +17,6 @@ export type {
ContentCompactType,
LayoutHeaderModeType,
LayoutType,
LocaleSupportType,
SupportedLanguagesType,
ThemeModeType,
};

View File

@@ -1,7 +1,6 @@
export type * from './access';
export type * from './app';
export type * from './flatten';
export type * from './helper';
export type * from './menu-record';
export type * from './tabs';
export type * from './tools';
export type * from './vue-router';