Browse Source

feat(types): error code

qinlaiqiao 4 years ago
parent
commit
b0c94db539
1 changed files with 4 additions and 0 deletions
  1. 4 0
      types/src/interface/error.ts

+ 4 - 0
types/src/interface/error.ts

@@ -43,6 +43,10 @@ export enum ErrNo {
   TOKEN_ERROR = 1023,
   // 用户 ID 不存在
   USER_ID_NOT_EXIST = 1024,
+  // 地址错误
+  LOCATION_ERROR = 1025,
+  // 数据为空
+  DATA_EMPTY_ERROR = 1026,
 
   /* 费用定额相关 2001 - 2999 */
   COMPILATION_NOT_FOUND = 2001,