errCode.go 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. //备品备件模块
  13. const OUT_AMOUNT_OVER_ON_AMOUNT_ERROR uint32 = 100101
  14. const CATEGORY_NOT_EXIST_ERROR uint32 = 100102
  15. const RECORD_NOT_EXIST_ERROR uint32 = 100103
  16. const NOT_IN_AMOUNT_ERROR uint32 = 100104
  17. const NOT_DEL_ERROR uint32 = 100105
  18. const NOT_IN_AMOUNT_OUT_ERROR uint32 = 100106
  19. const NOT_ON_AMOUNT_OVER_SCRAP_ERROR uint32 = 100107
  20. const TIME_ERROR uint32 = 100108
  21. const OPEN_FILE_ERROR uint32 = 100109
  22. const EXCEL_NULL_ERROR uint32 = 1000110
  23. const READ_EXCEL_ERROR uint32 = 1000111
  24. const NOT_PER_ERROR uint32 = 100112
  25. const IN_STORE_RECORD_NOT_EXIST_ERROR uint32 = 100113
  26. const STORE_INVENTORY_ERROR uint32 = 100114
  27. const STORE_INVENTORY_MONTH_ERROR uint32 = 100115
  28. const STORE_UPDATE_ONCE_DAY_ERROR uint32 = 100116
  29. // 物联网
  30. const NOT_DATA_ERROR uint32 = 100201