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,2 +1,3 @@
export type * from './ui';
export type * from './user';
export type * from '@vben-core/typings';

44
packages/types/src/user.d.ts vendored Normal file
View File

@@ -0,0 +1,44 @@
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 };