附近小店
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 2 Monaten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. package e
  2. const (
  3. // 200 因为部分第三方接口不能返回错误头,因此在此定义部分错误
  4. ERR_FILE_SAVE = 200001
  5. // 400 系列
  6. ERR_BAD_REQUEST = 400000
  7. ERR_INVALID_ARGS = 400001
  8. ERR_API_RESPONSE = 400002
  9. ERR_NO_DATA = 400003
  10. ERR_MOBILE_NIL = 400004
  11. ERR_MOBILE_MATH = 400005
  12. ERR_FILE_EXT = 400006
  13. ERR_FILE_MAX_SIZE = 400007
  14. ERR_SIGN = 400008
  15. ERR_PASSWORD_MATH = 400009
  16. ERR_PROVIDER_RESPONSE = 400010
  17. ERR_AES_ENCODE = 400011
  18. ERR_ADMIN_API = 400012
  19. ERR_QINIUAPI_RESPONSE = 400013
  20. ERR_URL_TURNCHAIN = 400014
  21. // 401 未授权
  22. ERR_UNAUTHORIZED = 401000
  23. ERR_NOT_AUTH = 401001
  24. ERR_SMS_AUTH = 401002
  25. ERR_TOKEN_AUTH = 401003
  26. ERR_TOKEN_FORMAT = 401004
  27. ERR_TOKEN_GEN = 401005
  28. // 403 禁止
  29. ERR_FORBIDEN = 403000
  30. ERR_PLATFORM = 403001
  31. ERR_MOBILE_EXIST = 403002
  32. ERR_USER_NO_EXIST = 403003
  33. ERR_MOBILE_NO_EXIST = 403004
  34. ERR_FORBIDEN_VALID = 403005
  35. ERR_RELATE_ERR = 403006
  36. ERR_REPEAT_RELATE = 403007
  37. ERR_MOB_FORBIDEN = 403008
  38. ERR_MOB_SMS_NO_AVA = 403009
  39. ERR_USER_IS_REG = 403010
  40. ERR_MASTER_ID = 403011
  41. ERR_CASH_OUT_TIME = 403012
  42. ERR_CASH_OUT_FEE = 403013
  43. ERR_CASH_OUT_USER_NOT_FOUND = 403014
  44. ERR_CASH_OUT_FAIL = 403015
  45. ERR_CASH_OUT_TIMES = 403016
  46. ERR_CASH_OUT_MINI = 403017
  47. ERR_CASH_OUT_MUT = 403018
  48. ERR_CASH_OUT_NOT_DECIMAL = 403019
  49. ERR_CASH_OUT_NOT_DAY_AVA = 403020
  50. ERR_USER_LEVEL_PAY_CHECK_TASK_NO_DONE = 403021
  51. ERR_USER_LEVEL_PAY_CHECK_NO_CROSS = 403022
  52. ERR_USER_LEVEL_ORD_EXP = 403023
  53. ERR_IS_BIND_THIRDPARTY = 403024
  54. ERR_USER_LEVEL_UPDATE_CHECK_TASK_NO_DONE = 403025
  55. ERR_USER_LEVEL_UPDATE_CHECK_NOT_FOUND_ORDER = 403026
  56. ERR_USER_LEVEL_UPDATE_REPEAT = 403027
  57. ERR_USER_NO_ACTIVE = 403028
  58. ERR_USER_IS_BAN = 403029
  59. ERR_ALIPAY_SETTING = 403030
  60. ERR_ALIPAY_ORDERTYPE = 403031
  61. ERR_CLIPBOARD_UNSUP = 403032
  62. ERR_SYSUNION_CONFIG = 403033
  63. ERR_WECAHT_MINI = 403034
  64. ERR_WECAHT_MINI_CACHE = 403035
  65. ERR_WECAHT_MINI_DECODE = 403036
  66. ERR_WECHAT_MINI_ACCESSTOKEN = 403037
  67. ERR_CURRENT_VIP_LEVEL_AUDITING = 403038
  68. ERR_LEVEL_RENEW_SHOULD_KEEP_CURRENT = 403039
  69. ERR_LEVEL_UPGRADE_APPLY_AUDITTING = 403040
  70. ERR_LEVEL_TASK_PAY_TYPE = 403041
  71. ERR_BALANCE_NOT_ENOUGH = 403042
  72. ERR_ADMIN_PUSH = 403043
  73. ERR_PLAN = 403044
  74. ERR_MOB_CONFIG = 403045
  75. ERR_BAlANCE_PAY_ORDERTYPE = 403046
  76. ERR_PHONE_EXISTED = 403047
  77. ERR_NOT_RESULT = 403048
  78. ERR_REVIEW = 403049
  79. ERR_USER_LEVEL_HAS_PAID = 403050
  80. ERR_USER_BIND_OWN = 403051
  81. ERR_PARENTUID_ERR = 403052
  82. ERR_USER_DEL = 403053
  83. ERR_SEARCH_ERR = 403054
  84. ERR_LEVEL_REACH_TOP = 403055
  85. ERR_USER_CHECK_ERR = 403056
  86. ERR_PASSWORD_ERR = 403057
  87. ERR_IS_BIND_PDD_ERR = 403058
  88. ERR_MOB_SMS_NO_SAME = 403059
  89. ERR_MOB_SMS_NO_EXISTS = 403060
  90. // 404
  91. ERR_USER_NOTFOUND = 404001
  92. ERR_SUP_NOTFOUND = 404002
  93. ERR_LEVEL_MAP = 404003
  94. ERR_MOD_NOTFOUND = 404004
  95. ERR_CLIPBOARD_PARSE = 404005
  96. ERR_NOT_FAN = 404006
  97. ERR_USER_LEVEL = 404007
  98. ERR_LACK_PAY_CFG = 404008
  99. ERR_NOT_LEVEL_TASK = 404009
  100. ERR_ITEM_NOT_FOUND = 404012
  101. ERR_WX_CHECKFILE_NOTFOUND = 404011
  102. // 429 请求频繁
  103. ERR_TOO_MANY_REQUESTS = 429000
  104. // 500 系列
  105. ERR = 500000
  106. ERR_UNMARSHAL = 500001
  107. ERR_UNKNOWN = 500002
  108. ERR_SMS = 500003
  109. ERR_ARKID_REGISTER = 500004
  110. ERR_ARKID_WHITELIST = 500005
  111. ERR_ARKID_LOGIN = 500006
  112. ERR_CFG = 500007
  113. ERR_DB_ORM = 500008
  114. ERR_CFG_CACHE = 500009
  115. ERR_ZHIMENG_CONVERT_ERR = 500010
  116. ERR_ALIPAY_ERR = 500011
  117. ERR_ALIPAY_ORDER_ERR = 500012
  118. ERR_PAY_ERR = 500013
  119. ERR_IS_BIND_THIRDOTHER = 500014
  120. ERR_IS_BIND_THIRDOTHERWECHAT = 500015
  121. ERR_INIT_RABBITMQ = 500016
  122. )
  123. var MsgFlags = map[int]string{
  124. // 200
  125. ERR_FILE_SAVE: "文件保存失败",
  126. // 400
  127. ERR_BAD_REQUEST: "请求失败..",
  128. ERR_INVALID_ARGS: "请求参数错误",
  129. ERR_API_RESPONSE: "API错误",
  130. ERR_QINIUAPI_RESPONSE: "七牛请求API错误",
  131. ERR_URL_TURNCHAIN: "转链失败",
  132. ERR_NO_DATA: "暂无数据",
  133. ERR_MOBILE_NIL: "电话号码不能为空",
  134. ERR_MOBILE_MATH: "电话号码输入有误",
  135. ERR_FILE_MAX_SIZE: "文件上传大小超限",
  136. ERR_FILE_EXT: "文件类型不支持",
  137. ERR_SIGN: "签名校验失败",
  138. ERR_PROVIDER_RESPONSE: "提供商接口错误",
  139. ERR_AES_ENCODE: "加解密错误",
  140. ERR_ADMIN_API: "后台接口请求失败",
  141. // 401
  142. ERR_NOT_AUTH: "请登录后操作",
  143. ERR_SMS_AUTH: "验证码过期或无效",
  144. ERR_UNAUTHORIZED: "验证用户失败",
  145. ERR_TOKEN_FORMAT: "Token格式不对",
  146. ERR_TOKEN_GEN: "生成Token失败",
  147. // 403
  148. ERR_FORBIDEN: "禁止访问",
  149. ERR_PLATFORM: "平台不支持",
  150. ERR_MOBILE_EXIST: "该号码已注册过",
  151. ERR_USER_NO_EXIST: "用户没有注册或账号密码不正确",
  152. ERR_PASSWORD_ERR: "输入两次密码不一致",
  153. ERR_RELATE_ERR: "推荐人不能是自己的粉丝",
  154. ERR_PARENTUID_ERR: "推荐人不存在",
  155. ERR_TOKEN_AUTH: "登录信息失效,请重新登录",
  156. ERR_MOB_SMS_NO_AVA: "短信余额不足",
  157. ERR_MOB_SMS_NO_SAME: "验证码不一致",
  158. ERR_MOB_SMS_NO_EXISTS: "验证码已失效",
  159. ERR_USER_IS_REG: "用户已注册",
  160. ERR_MASTER_ID: "找不到对应站长的数据库",
  161. ERR_CASH_OUT_TIME: "非可提现时间段",
  162. ERR_CASH_OUT_USER_NOT_FOUND: "收款账号不存在",
  163. ERR_CASH_OUT_FAIL: "提现失败",
  164. ERR_CASH_OUT_FEE: "提现金额必须大于手续费",
  165. ERR_CASH_OUT_TIMES: "当日提现次数已达上线",
  166. ERR_CASH_OUT_MINI: "申请提现金额未达到最低金额要求",
  167. ERR_CASH_OUT_MUT: "申请提现金额未达到整数倍要求",
  168. ERR_CASH_OUT_NOT_DECIMAL: "提现申请金额只能是整数",
  169. ERR_CASH_OUT_NOT_DAY_AVA: "不在可提现日期范围内",
  170. ERR_USER_LEVEL_PAY_CHECK_TASK_NO_DONE: "请先完成其他任务",
  171. ERR_USER_LEVEL_PAY_CHECK_NO_CROSS: "无法跨越升级",
  172. ERR_USER_LEVEL_ORD_EXP: "付费订单已失效",
  173. ERR_IS_BIND_THIRDPARTY: "该用户已经绑定了",
  174. ERR_IS_BIND_THIRDOTHER: "该账号已经被绑定了",
  175. ERR_IS_BIND_THIRDOTHERWECHAT: "该账号已经绑定了其他微信账号",
  176. ERR_USER_LEVEL_UPDATE_CHECK_TASK_NO_DONE: "请完成指定任务",
  177. ERR_USER_LEVEL_UPDATE_CHECK_NOT_FOUND_ORDER: "没有找到对应的订单",
  178. ERR_USER_LEVEL_UPDATE_REPEAT: "不允许重复升级",
  179. ERR_USER_NO_ACTIVE: "账户没激活",
  180. ERR_USER_IS_BAN: "账户已被冻结",
  181. ERR_SYSUNION_CONFIG: "联盟设置错误,请检查配置",
  182. ERR_WECAHT_MINI: "小程序响应错误,请检查小程序配置",
  183. ERR_WECAHT_MINI_CACHE: "获取小程序缓存失败",
  184. ERR_WECAHT_MINI_DECODE: "小程序解密失败",
  185. ERR_WECHAT_MINI_ACCESSTOKEN: "无法获取accesstoekn",
  186. ERR_CURRENT_VIP_LEVEL_AUDITING: "当前等级正在审核中",
  187. ERR_LEVEL_RENEW_SHOULD_KEEP_CURRENT: "续费只能在当前等级续费",
  188. ERR_LEVEL_UPGRADE_APPLY_AUDITTING: "已有申请正在审核中,暂时不能申请",
  189. ERR_LEVEL_TASK_PAY_TYPE: "任务付费类型错误",
  190. ERR_BALANCE_NOT_ENOUGH: "余额不足",
  191. ERR_ADMIN_PUSH: "后台MOB推送错误",
  192. ERR_PLAN: "分拥方案出错",
  193. ERR_MOB_CONFIG: "Mob 配置错误",
  194. ERR_BAlANCE_PAY_ORDERTYPE: "无效余额支付订单类型",
  195. ERR_PHONE_EXISTED: "手机号码已存在",
  196. ERR_NOT_RESULT: "已加载完毕",
  197. ERR_REVIEW: "审核模板错误",
  198. ERR_USER_LEVEL_HAS_PAID: "该等级已经付过款",
  199. ERR_IS_BIND_PDD_ERR: "获取PDD绑定信息失败",
  200. // 404
  201. ERR_USER_NOTFOUND: "用户不存在",
  202. ERR_USER_DEL: "账号被删除,如有疑问请联系客服",
  203. ERR_SUP_NOTFOUND: "上级用户不存在",
  204. ERR_LEVEL_MAP: "无等级映射关系",
  205. ERR_MOD_NOTFOUND: "没有找到对应模块",
  206. ERR_CLIPBOARD_PARSE: "无法解析剪切板内容",
  207. ERR_NOT_FAN: "没有粉丝",
  208. ERR_CLIPBOARD_UNSUP: "不支持该平台",
  209. ERR_USER_LEVEL: "该等级已不存在",
  210. ERR_LACK_PAY_CFG: "支付配置不完整",
  211. ERR_NOT_LEVEL_TASK: "等级任务查找错误",
  212. ERR_ITEM_NOT_FOUND: "找不到对应商品",
  213. ERR_WX_CHECKFILE_NOTFOUND: "找不到微信校验文件",
  214. ERR_USER_BIND_OWN: "不能填写自己的邀请码",
  215. // 429
  216. ERR_TOO_MANY_REQUESTS: "请求频繁,请稍后重试",
  217. // 500 内部错误
  218. ERR: "接口错误",
  219. ERR_SMS: "短信发送出错",
  220. ERR_CFG: "服务器配置错误",
  221. ERR_UNMARSHAL: "JSON解码错误",
  222. ERR_UNKNOWN: "未知错误",
  223. ERR_ARKID_LOGIN: "登录失败",
  224. ERR_MOBILE_NO_EXIST: "该用户未设定手机号",
  225. ERR_FORBIDEN_VALID: "验证码错误",
  226. ERR_CFG_CACHE: "获取配置缓存失败",
  227. ERR_DB_ORM: "数据操作失败",
  228. ERR_REPEAT_RELATE: "重复关联",
  229. ERR_ZHIMENG_CONVERT_ERR: "智盟转链失败",
  230. ERR_MOB_FORBIDEN: "Mob调用失败",
  231. ERR_ALIPAY_ERR: "支付宝参数错误",
  232. ERR_ALIPAY_SETTING: "请在后台正确配置支付宝",
  233. ERR_ALIPAY_ORDERTYPE: "无效支付宝订单类型",
  234. ERR_ALIPAY_ORDER_ERR: "订单创建错误",
  235. ERR_PAY_ERR: "未找到支付方式",
  236. ERR_SEARCH_ERR: "暂无该分类商品",
  237. ERR_LEVEL_REACH_TOP: "已经是最高等级",
  238. ERR_USER_CHECK_ERR: "校验失败",
  239. ERR_INIT_RABBITMQ: "连接mq失败",
  240. }