mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
31 lines
737 B
TypeScript
31 lines
737 B
TypeScript
export enum SystemStoreUserInfoEnum {
|
|
USER_TOKEN = 'userToken',
|
|
TOKEN_NAME = 'tokenName',
|
|
USER_ID = 'userId',
|
|
USER_NAME = 'userName',
|
|
NICK_NAME = 'nickName',
|
|
}
|
|
|
|
export interface UserInfoType {
|
|
[SystemStoreUserInfoEnum.USER_TOKEN]?: string,
|
|
[SystemStoreUserInfoEnum.TOKEN_NAME]?: string,
|
|
[SystemStoreUserInfoEnum.USER_ID]?: string,
|
|
[SystemStoreUserInfoEnum.USER_NAME]?: string,
|
|
[SystemStoreUserInfoEnum.NICK_NAME]?: string,
|
|
}
|
|
|
|
export interface FetchInfoType {
|
|
OSSUrl?: string,
|
|
}
|
|
|
|
export enum SystemStoreEnum {
|
|
// 用户
|
|
USER_INFO = 'userInfo',
|
|
// 请求
|
|
FETCH_INFO = 'fetchInfo'
|
|
}
|
|
|
|
export interface SystemStoreType {
|
|
[SystemStoreEnum.USER_INFO]: UserInfoType
|
|
[SystemStoreEnum.FETCH_INFO]: FetchInfoType
|
|
} |