refactor: 重构项目结构 - enums/config/types/plugins
- 重构 enums: 按业务域合并为 5 个文件 - 创建 config: storage.ts, vxe-table.ts - 删除 plugins,功能迁移到 main.ts - 创建完整 types 结构 - 新增 utils: validators, websocket, register-components - 创建 router/guards/permission.ts - 更新配置文件
This commit is contained in:
35
src/enums/api.ts
Normal file
35
src/enums/api.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* API 相关枚举
|
||||
*
|
||||
* @description
|
||||
* 包含 API 响应码、请求状态等枚举定义
|
||||
*/
|
||||
|
||||
/**
|
||||
* API 响应码枚举
|
||||
*/
|
||||
export const enum ApiCodeEnum {
|
||||
/**
|
||||
* 成功
|
||||
*/
|
||||
SUCCESS = "00000",
|
||||
/**
|
||||
* 错误
|
||||
*/
|
||||
ERROR = "B0001",
|
||||
|
||||
/**
|
||||
* 访问令牌无效或过期
|
||||
*/
|
||||
ACCESS_TOKEN_INVALID = "A0230",
|
||||
|
||||
/**
|
||||
* 刷新令牌无效或过期
|
||||
*/
|
||||
REFRESH_TOKEN_INVALID = "A0231",
|
||||
|
||||
/**
|
||||
* 需要选择租户
|
||||
*/
|
||||
CHOOSE_TENANT = "A0250",
|
||||
}
|
||||
Reference in New Issue
Block a user