初始版本提交

This commit is contained in:
yaoyn
2024-02-05 09:15:37 +08:00
parent b52d4414be
commit 445292105f
1848 changed files with 236859 additions and 75 deletions

35
src/enums/cacheEnum.ts Normal file
View File

@ -0,0 +1,35 @@
// token key
export const TOKEN_KEY = 'TOKEN__';
export const LOCALE_KEY = 'LOCALE__';
export const LANGUAGE_KEY = 'LANGUAGE__';
export const PERMISSION_KEY = 'PERMISSION_';
// user info key
export const USER_INFO_KEY = 'USER__INFO__';
// role info key
export const ROLES_KEY = 'ROLES__KEY__';
// project config key
export const PROJ_CFG_KEY = 'PROJ__CFG__KEY__';
// lock info
export const LOCK_INFO_KEY = 'LOCK__INFO__KEY__';
export const MULTIPLE_TABS_KEY = 'MULTIPLE_TABS__KEY__';
export const APP_DARK_MODE_KEY_ = '__APP__DARK__MODE__';
// base global local key
export const APP_LOCAL_CACHE_KEY = 'COMMON__LOCAL__KEY__';
// base global session key
export const APP_SESSION_CACHE_KEY = 'COMMON__SESSION__KEY__';
export enum CacheTypeEnum {
SESSION,
LOCAL,
}