errors.go 1.4 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright 2019 getensh.com. All rights reserved.
  2. // Use of this source code is governed by getensh.com.
  3. // package error code define
  4. package errors
  5. import "gd_adm_data/common.in/jsonrpc2"
  6. var (
  7. // 通用错误
  8. SystemError = jsonrpc2.NewJsonError(10001, "系统错误")
  9. ServiceError = jsonrpc2.NewJsonError(10002, "内部服务错误")
  10. ParamsError = jsonrpc2.NewJsonError(10003, "参数错误")
  11. BrandNotExistError = jsonrpc2.NewJsonError(11001, "品牌不存在")
  12. CycleError = jsonrpc2.NewJsonError(11002, "新增数据里程间隔周期无法匹配")
  13. FieldNotExistError = jsonrpc2.NewJsonError(11003, "字段不存在")
  14. DataNotExistError = jsonrpc2.NewJsonError(11004, "数据不存在")
  15. InterfaceNoExistError = jsonrpc2.NewJsonError(11005, "接口不存在")
  16. CreateIdError = jsonrpc2.NewJsonError(11006, "导出车型失败,生成导出id失败")
  17. ExportError = jsonrpc2.NewJsonError(11006, "导出车型失败,插入导出id失败")
  18. CreateMsgError = jsonrpc2.NewJsonError(11006, "导出车型失败,消息生成失败")
  19. SendMsgError = jsonrpc2.NewJsonError(11006, "导出车型失败,消息投递失败")
  20. TimeCalcFailed = jsonrpc2.NewJsonError(11007, "时间计算错误")
  21. AnnualRuleError = jsonrpc2.NewJsonError(11008, "无年检计算规则")
  22. DataBaseError = jsonrpc2.NewJsonError(20005, "数据库操作失败")
  23. )