init project
This commit is contained in:
2
packages/types/src/index.ts
Normal file
2
packages/types/src/index.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
export type * from './user';
|
||||
export type * from '@vben-core/typings';
|
||||
19
packages/types/src/user.ts
Normal file
19
packages/types/src/user.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import type { AppRouteRecordRaw, BasicUserInfo } from '@vben-core/typings';
|
||||
|
||||
/** 用户信息 */
|
||||
interface UserInfo extends BasicUserInfo {
|
||||
/**
|
||||
* 首页地址
|
||||
*/
|
||||
homePath: string;
|
||||
}
|
||||
|
||||
/** 权限信息 */
|
||||
interface AuthPermissionInfo {
|
||||
user: UserInfo;
|
||||
roles: string[];
|
||||
permissions: string[];
|
||||
menus: AppRouteRecordRaw[];
|
||||
}
|
||||
|
||||
export type { AuthPermissionInfo, UserInfo };
|
||||
Reference in New Issue
Block a user