errCode.go 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package xerr
  2. // 成功返回
  3. const OK uint32 = 200
  4. /**(前3位代表业务,后三位代表具体功能)**/
  5. // 全局错误码
  6. const SERVER_COMMON_ERROR uint32 = 100001
  7. const REUQEST_PARAM_ERROR uint32 = 100002
  8. const TOKEN_EXPIRE_ERROR uint32 = 100003
  9. const TOKEN_GENERATE_ERROR uint32 = 100004
  10. const DB_ERROR uint32 = 100005
  11. const DB_UPDATE_AFFECTED_ZERO_ERROR uint32 = 100006
  12. const REUQEST_PARAM_APP_NAME_MISS_ERROR uint32 = 100007 // 请求参数中, 缺少header中的APP_NAME
  13. const REUQEST_PARAM_SIGN_MISS_ERROR uint32 = 100008 // 请求参数中缺少sign
  14. const REUQEST_PARAM_DATA_SIGN_ERROR uint32 = 100009 // 请求参数中的sign验证失败
  15. const REUQEST_PARAM_APP_NAME_ERROR uint32 = 100010 // 请求参数中, APP_NAME不存在或处理不可用的状态
  16. const REUQEST_PARAM_TS_ERROR uint32 = 100011 // 请求参数中, APP_NAME不存在或处理不可用的状态
  17. // 备品备件模块
  18. const OUT_AMOUNT_OVER_ON_AMOUNT_ERROR uint32 = 100101
  19. const CATEGORY_NOT_EXIST_ERROR uint32 = 100102
  20. const RECORD_NOT_EXIST_ERROR uint32 = 100103
  21. const NOT_IN_AMOUNT_ERROR uint32 = 100104
  22. const NOT_DEL_ERROR uint32 = 100105
  23. const NOT_IN_AMOUNT_OUT_ERROR uint32 = 100106
  24. const NOT_ON_AMOUNT_OVER_SCRAP_ERROR uint32 = 100107
  25. const TIME_ERROR uint32 = 100108
  26. const OPEN_FILE_ERROR uint32 = 100109
  27. const EXCEL_NULL_ERROR uint32 = 1000110
  28. const READ_EXCEL_ERROR uint32 = 1000111
  29. const NOT_PER_ERROR uint32 = 100112
  30. const IN_STORE_RECORD_NOT_EXIST_ERROR uint32 = 100113
  31. const STORE_INVENTORY_ERROR uint32 = 100114
  32. const STORE_INVENTORY_MONTH_ERROR uint32 = 100115
  33. const STORE_UPDATE_ONCE_DAY_ERROR uint32 = 100116
  34. // 物联网
  35. const NOT_DATA_ERROR uint32 = 100201