open_ecode.go 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package ecode
  2. // common ecode
  3. // 开放平台 2000000~2999999
  4. // 票务的code码 2000000~2099999
  5. var (
  6. //销售-营销
  7. TicketUnKnown = New(2000000) //未知错误
  8. TicketParamInvalid = New(2000001) //参数错误
  9. TicketRecordDupli = New(2000002) //重复插入
  10. TicketRecordLost = New(2000003) //数据不存在
  11. TicketPromotionLost = New(2000004) //活动不存在
  12. TicketPromotionEnd = New(2000005) //活动结束
  13. TicketPromotionRepeatJoin = New(2000006) //活动重复参加
  14. TicketPromotionGroupLost = New(2000007) //拼团不存在
  15. TicketPromotionGroupFull = New(2000008) //拼团人数已满
  16. TicketPromotionGroupNotFull = New(2000009) //拼团人数未满
  17. TicketPromotionOrderLost = New(2000010) //拼团订单不存在
  18. TicketPromoExistSameTime = New(2000011) //同时间段存在已上架拼团活动
  19. TicketAddPromoOrderFail = New(2000012) //添加活动订单失败
  20. TicketAddPromoGroupFail = New(2000013) //添加拼团 团订单失败
  21. TicketPromoGroupEnd = New(2000014) //拼团 团订单已失效
  22. TicketUpdatePromoOrderFail = New(2000015) //更新拼团订单失败
  23. TicketUpdatePromoGroupFail = New(2000016) //更新拼团 团订单失败
  24. IllegalPromoOperate = New(2000017) //拼团 不支持的操作类型
  25. PromoStatusChanged = New(2000018) //拼团状态无法变更
  26. TicketPromoGroupStatusErr = New(2000019) //拼团状态不对
  27. TicketPromoOrderTypeErr = New(2000020) //订单类型不对
  28. PromoEditNotALlowed = New(2000021) //不可编辑
  29. PromoEditFieldNotALlowed = New(2000022) //不可编辑部分字段
  30. PromoExists = New(2000023) //拼团已存在
  31. //销售-交易
  32. TicketGetOidFail = New(2000101) //获取订单号失败
  33. TicketExceedLimit = New(2000102) //超过购买限制
  34. TicketMissData = New(2000103) //信息不完整
  35. TicketSaleNotStart = New(2000104) //没开售
  36. TicketSaleEnd = New(2000105) //已结束
  37. TicketNoPriv = New(2000106) //无权操作
  38. TicketInvalidUser = New(2000107) //无效用户
  39. TicketPriceChanged = New(2000108) //价格变化
  40. //销售-库存
  41. TicketStockLack = New(2000201) //库存不足
  42. TicketStockLogNotFound = New(2000202) //没有库存操作记录
  43. TicketStockUpdateFail = New(2000203) //库存更新失败
  44. //番剧推荐
  45. SugEsSearchErr = New(2002000) //es搜索错误
  46. SugSearchTypeErr = New(2002001) //搜索类型错误
  47. SugOpTypeErr = New(2002002) //操作类型错误
  48. SugOpErr = New(2002003) //add or del match fail
  49. SugItemNone = New(2002004) //商品不存在
  50. SugSeasonNone = New(2002005) //番剧不存在
  51. //防刷工具
  52. ParamInvalid = New(2001000) //参数错误
  53. UpdateError = New(2001002) //更新失败
  54. QusbNotFound = New(2001003) //找不到题库
  55. QusIDInvalid = New(2001005) //题目id错误
  56. BankUsing = New(2001007) //题目正在使用
  57. BindBankNotFound = New(2001009) //未找到题库绑定关系
  58. AnswerError = New(2001010) //答案错误
  59. GetQusBankInfoCache = New(2001011) //获取题库缓存失败
  60. GetComponentTimesErr = New(2001012) //获取组件缓存失败
  61. SetComponentTimesErr = New(2001013) //设置答题次数缓存失败
  62. SetComponentIDErr = New(2001014) //设置组件缓存失败
  63. GetComponentIDErr = New(2001015) //获取组件ID缓存失败
  64. SameCompentErr = New(2001016) //相同组件
  65. GetQusIDsErr = New(2001017) //获取题目失败
  66. AnswerPoiError = New(2001018) //答案错误
  67. NotEnoughQuestion = New(2001019) //部分题库不足3题,无法绑定,请绑定别的题库,或者修改题库
  68. AntiSalesTimeErr = New(2001020) //售卖时间有错
  69. AntiIPChangeLimit = New(2001021) //用户IP变更
  70. AntiLimitNumUpper = New(2001022) //次数达到上限
  71. AntiCheckVoucherErr = New(2001023) //用户凭证验证失败
  72. AntiValidateFailed = New(2001024) //验证失败
  73. AntiGeetestCountUpper = New(2001025) //极验总数达到上线
  74. AntiCustomerErr = New(2001026) //业务方错误
  75. AntiBlackErr = New(2001027) //黑名单用户
  76. //项目
  77. TicketCannotDelTk = New(2004000) //无法删除票价
  78. TicketDelTkFailed = New(2004001) //删除票价失败
  79. TicketLkTkNotFound = New(2004002) //关联票种不存在
  80. TicketLkTkTypeNotFound = New(2004003) //关联票种类型不存在
  81. TicketLkScNotFound = New(2004004) //关联场次不存在
  82. TicketCannotDelSc = New(2004005) //无法删除场次
  83. TicketLkScTimeNotFound = New(2004006) //关联的场次时间不存在
  84. TicketPidIsEmpty = New(2004007) //项目id为空
  85. TicketMainInfoTooLarge = New(2004008) //项目版本详情信息量过大
  86. TicketDelTkExFailed = New(2004009) //删除票价额外信息失败
  87. TicketAddVersionFailed = New(2004010) //添加版本信息失败
  88. TicketAddVerExtFailed = New(2004011) //添加版本详情失败
  89. TicketBannerIDEmpty = New(2004012) //BannerID为空
  90. TicketVerCannotEdit = New(2004013) //版本不可编辑
  91. TicketVerCannotReview = New(2004014) //无法审核 非待审核版本
  92. TicketAddTagFailed = New(2004015) //添加项目标签失败
  93. )