errors.go 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. package errors
  2. import "gd_admin/common.in/jsonrpc2"
  3. var (
  4. SystemError = jsonrpc2.NewJsonError(10001, "系统错误")
  5. ServiceError = jsonrpc2.NewJsonError(10003, "内部服务错误")
  6. // 业务错误
  7. ArgsError = jsonrpc2.NewJsonError(20001, "参数错误")
  8. DataBaseError = jsonrpc2.NewJsonError(20002, "数据库操作失败")
  9. VendorError = jsonrpc2.NewJsonError(20003, "第三方发生错误")
  10. DataBaseNoRecord = jsonrpc2.NewJsonError(20004, "没有找到相关记录")
  11. VinFormatError = jsonrpc2.NewJsonError(20005, "vin码错误")
  12. PlateFormatError = jsonrpc2.NewJsonError(20006, "车牌号码错误")
  13. AppKeyError = jsonrpc2.NewJsonError(20007, "AppKey错误")
  14. AdminNotExist = jsonrpc2.NewJsonError(20401, "该管理用户不存在")
  15. AdminsNotExist = jsonrpc2.NewJsonError(20402, "还没创建管理员账号")
  16. AdminExist = jsonrpc2.NewJsonError(20403, "管理员账号已存在")
  17. PasswordError = jsonrpc2.NewJsonError(20404, "密码不正确,请重新输入")
  18. OrderExistError = jsonrpc2.NewJsonError(20405, "不能重复创建订单")
  19. DelGroupErr = jsonrpc2.NewJsonError(20406, "该分组已有用户使用,不允许删除")
  20. AccessNotAllow = jsonrpc2.NewJsonError(20407, "无权限登录")
  21. OrderNotExist = jsonrpc2.NewJsonError(20304, "订单不存在")
  22. OrderCreateFailed = jsonrpc2.NewJsonError(20305, "订单创建失败")
  23. OrderAreadyCancel = jsonrpc2.NewJsonError(20306, "订单已经被取消")
  24. OrderParseTimeFailed = jsonrpc2.NewJsonError(20307, "时间格式解析错误,正确时间格式为 2006-01-02 15:04:05")
  25. OrderWrongTime = jsonrpc2.NewJsonError(20308, "不能预约该时段,预约时间为未来7天 9:00至18:00,节假日和周日不办理")
  26. ServiceNotSupport = jsonrpc2.NewJsonError(20309, "不支持的服务类型")
  27. // 违章
  28. ViolationApiMaintain = jsonrpc2.NewJsonError(20310, "违章服务接口维护中")
  29. ViolationServiceMaintain = jsonrpc2.NewJsonError(20311, "违章服务系统维护中")
  30. ViolationBeyondRequestLimit = jsonrpc2.NewJsonError(20312, "违章超出请求次数次数限制")
  31. ViolationBeyondRequestByDayLimit = jsonrpc2.NewJsonError(20313, "违章超出本日请求次数次数限制")
  32. ViolationBeyondRequestByWeekLimit = jsonrpc2.NewJsonError(20314, "违章超出本周请求次数次数限制")
  33. ViolationBeyondRequestByMonthLimit = jsonrpc2.NewJsonError(20315, "违章超出本月请求次数次数限制")
  34. ViolationBeyondRequestByYearLimit = jsonrpc2.NewJsonError(20316, "违章超出本年请求次数次数限制")
  35. ViolationInfoNotFound = jsonrpc2.NewJsonError(20317, "信息未找到")
  36. VehiclePlateNumberError = jsonrpc2.NewJsonError(20318, "车牌号有误")
  37. VehicleEnginNoError = jsonrpc2.NewJsonError(20319, "发动机号有误")
  38. VehicleVinError = jsonrpc2.NewJsonError(20320, "车架号有误")
  39. VehicleTypeNotSupport = jsonrpc2.NewJsonError(20321, "不支持的车辆类型")
  40. VehicleInfoNotExist = jsonrpc2.NewJsonError(20322, "车辆信息不存在")
  41. ViolationCityMaintain = jsonrpc2.NewJsonError(20323, "查询的城市正在维护中")
  42. ViolationVechicleInfoError = jsonrpc2.NewJsonError(20324, "车辆信息错误")
  43. ViolationQueryNotSupport = jsonrpc2.NewJsonError(20325, "查询的省市未开通")
  44. ViolationQueryNotSupportOtherPlace = jsonrpc2.NewJsonError(20326, "该省份不支持异地车辆违法查询")
  45. ViolationPlateOrVehicleTypeError = jsonrpc2.NewJsonError(20327, "车牌号或车辆类型不正确")
  46. ViolationPlateOrEnginNoError = jsonrpc2.NewJsonError(20328, "车牌号或发动机号不正确")
  47. VinOrEnginNoError = jsonrpc2.NewJsonError(20328, "车架号或发动机号不正确!")
  48. // 估值
  49. RegisterDateError = jsonrpc2.NewJsonError(20329, "上牌日期格式不正确")
  50. VehicleModelInfoLost = jsonrpc2.NewJsonError(20330, "车型信息丢失")
  51. RegisterYearNotReasonable = jsonrpc2.NewJsonError(20331, "上牌年份不合理")
  52. TravlleDistanceNotReasonable = jsonrpc2.NewJsonError(20332, "行驶里程不合法")
  53. LocationNotMatch = jsonrpc2.NewJsonError(20333, "地区无法匹配")
  54. MileError = jsonrpc2.NewJsonError(20334, "行驶里程参数格式错误")
  55. ServiceCallBackOrderFailed = jsonrpc2.NewJsonError(20335, "内部回调失败")
  56. OrderSignVerifyFailed = jsonrpc2.NewJsonError(20336, "签名验证失败 ")
  57. MobileFormatError = jsonrpc2.NewJsonError(20337, "手机号格式错误")
  58. ThirdPartyOrderExistPlateNo = jsonrpc2.NewJsonError(20338, "该车牌号正在服务中")
  59. TimeCalcFailed = jsonrpc2.NewJsonError(20339, "时间计算错误")
  60. LonLatExceedLimit = jsonrpc2.NewJsonError(20340, "经纬度超限")
  61. NoWashingVehicleIndex = jsonrpc2.NewJsonError(20341, "无洗车指数")
  62. AnnualInspectionUnsupportVehicle = jsonrpc2.NewJsonError(20342, "该车辆种类不支持年检时间查询")
  63. NotSupportArea = jsonrpc2.NewJsonError(20343, "该地区洗车指数不支持")
  64. CompanyNotFound = jsonrpc2.NewJsonError(20344, "单位不存在")
  65. LimitNotSatisfy = jsonrpc2.NewJsonError(20345, "不满足限制条件")
  66. VehicleInfoError = jsonrpc2.NewJsonError(20346, "车辆信息不匹配")
  67. )