init: 初始系统模板
This commit is contained in:
5
src/constants/admin-constants.ts
Normal file
5
src/constants/admin-constants.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
/**管理员-系统指定角色KEY */
|
||||
export const ADMIN_ROLE_KEY = 'admin';
|
||||
|
||||
/**管理员-系统指定权限 */
|
||||
export const ADMIN_PERMISSION = '*:*:*';
|
||||
5
src/constants/app-constants.ts
Normal file
5
src/constants/app-constants.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
/**应用-请求头-系统标识 */
|
||||
export const APP_REQUEST_HEADER_CODE = 'X-App-Code';
|
||||
|
||||
/**应用-请求头-系统版本 */
|
||||
export const APP_REQUEST_HEADER_VERSION = 'X-App-Version';
|
||||
11
src/constants/cache-keys-constants.ts
Normal file
11
src/constants/cache-keys-constants.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**会话缓存-网络请求 */
|
||||
export const CACHE_SESSION_FATCH = 'cache:session:fatch';
|
||||
|
||||
/**本地缓存-布局设置 */
|
||||
export const CACHE_LOCAL_PROCONFIG = 'cache:local:proConfig';
|
||||
|
||||
/**本地缓存-主题色 */
|
||||
export const CACHE_LOCAL_PRIMARY_COLOR = 'cache:local:primaryColor';
|
||||
|
||||
/**本地缓存-多语言 */
|
||||
export const CACHE_LOCAL_I18N = 'cache:local:i18n';
|
||||
20
src/constants/menu-constants.ts
Normal file
20
src/constants/menu-constants.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/**组件布局类型-基础布局组件标识 */
|
||||
export const MENU_COMPONENT_LAYOUT_BASIC = 'BasicLayout';
|
||||
|
||||
/**组件布局类型-空白布局组件标识 */
|
||||
export const MENU_COMPONENT_LAYOUT_BLANK = 'BlankLayout';
|
||||
|
||||
/**组件布局类型-内链接布局组件标识 */
|
||||
export const MENU_COMPONENT_LAYOUT_LINK = 'LinkLayout';
|
||||
|
||||
/**菜单类型-目录 */
|
||||
export const MENU_TYPE_DIR = 'D';
|
||||
|
||||
/**菜单类型-菜单 */
|
||||
export const MENU_TYPE_MENU = 'M';
|
||||
|
||||
/**菜单类型-按钮 */
|
||||
export const MENU_TYPE_BUTTON = 'B';
|
||||
|
||||
/**菜单内嵌地址标识-带/前缀 */
|
||||
export const MENU_PATH_INLINE = '/inline';
|
||||
11
src/constants/token-constants.ts
Normal file
11
src/constants/token-constants.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**令牌-数据响应字段 */
|
||||
export const TOKEN_RESPONSE_FIELD = 'access_token';
|
||||
|
||||
/**令牌-请求头标识前缀 */
|
||||
export const TOKEN_KEY_PREFIX = 'Bearer ';
|
||||
|
||||
/**令牌-请求头标识 */
|
||||
export const TOKEN_KEY = 'Authorization';
|
||||
|
||||
/**令牌-存放Cookie标识 */
|
||||
export const TOKEN_COOKIE = 'AuthAntdv';
|
||||
Reference in New Issue
Block a user