refactor: ♻️ 优化请求工具类

This commit is contained in:
ray
2024-10-13 11:18:19 +08:00
parent a7757213f2
commit 3dec53af38
6 changed files with 90 additions and 46 deletions

View File

@@ -0,0 +1,18 @@
/**
* 响应码枚举
*/
export const enum ResultCodeEnum {
/**
* 成功
*/
SUCCESS = "00000",
/**
* 错误
*/
ERROR = "B0001",
/**
* 令牌无效或过期
*/
TOKEN_INVALID = "A0230",
}