互动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
4.3 KiB

5 years ago
4 years ago
5 years ago
5 years ago
  1. package define
  2. const TimeFormat = "2006-01-01 15:04:05"
  3. const (
  4. MODULE_SIGNIN = "签到"
  5. MODULE_TUGWAR = "拔河"
  6. MODULE_SHAKRB = "摇红包"
  7. MODULE_SHAKETK = "摇奖券"
  8. MODULE_ORDER = "订单"
  9. MODULE_UPPERW = "上墙"
  10. MODULE_BULLYS = "霸屏"
  11. MODULE_LOTTERY = "抽奖"
  12. MODULE_VOTE = "投票"
  13. MODULE_AUCTION = "竞拍"
  14. MODULE_REWARD = "打赏"
  15. MODULE_SEMINAR = "会务"
  16. MODULE_MOREAREA = "多地区"
  17. MODULE_BARRAGE = "弹幕"
  18. MODULE_INVITATION = "邀请函"
  19. MODULE_ORDERLY = "订单抽奖"
  20. MODULE_MSGWALL = "消息墙"
  21. MODULE_CALORIE = "卡路里"
  22. )
  23. const (
  24. StatusNotBegin = "未开始"
  25. StatusReady = "准备中"
  26. StatusRunning = "进行中"
  27. StatusEnding = "已结束"
  28. StatusOpen = "开启"
  29. StatusClose = "关闭"
  30. )
  31. const (
  32. INCR_AUCTION = "加价竞拍"
  33. DECR_AUCTION = "减价竞拍"
  34. )
  35. const (
  36. TUGWAR_MODEL_RANDOM = "随机分配模式"
  37. TUGWAR_MODEL_SELECT = "大屏幕二维码模式"
  38. TUGWAR_TEAM_BULE = "blue"
  39. TUGWAR_TEAM_RED = "red"
  40. )
  41. const (
  42. SHAKERB_RULE_RANDOM = "拼手气红包"
  43. SHAKERB_RULE_COMMON = "普通红包"
  44. SHAKERB_RULE_LADDER = "阶梯红包"
  45. )
  46. // 模块去除 BesideRepeat
  47. const MODULE_BESIDE_REPEAT = "去除"
  48. const (
  49. TOKEN = "token"
  50. )
  51. const (
  52. TYPE_USER = "h5user"
  53. TYPE_CUSTOMER = "customer"
  54. TYPE_GUEST = "guest"
  55. TYPE_AREAADMIN = "area_admin"
  56. TYPE_ENTRYPEOPLE = "entry_people"
  57. TYPE_LIVEUSER = "live_user" // 直播
  58. )
  59. const (
  60. CODE_SUCCESS = "SUCCESS" // 成功
  61. CODE_FAIL = "FAIL" // 失败
  62. CODE_NOTPAY = "NOTPAY" // 未支付
  63. CODE_CHANGE = "CHANGE" // 退款异常
  64. CODE_REFUNDCLOSE = "REFUNDCLOSE" // 退款关闭
  65. CODE_ERROR = "ERROR" // 业务错误
  66. CODE_INVALID_REQUEST = "INVALID_REQUEST" // 无效请求
  67. CODE_NOAUTH = "NOAUTH" // 异常IP请求不予受理
  68. CODE_NOTENOUGH = "NOTENOUGH" // 余额不足
  69. CODE_ORDERPAID = "ORDERPAID" // 订单已支付
  70. CODE_ORDERCLOSED = "ORDERCLOSED" // 订单已关闭
  71. CODE_SYSTEMERROR = "SYSTEMERROR" // 系统错误
  72. CODE_APPID_NOT_EXIST = "APPID_NOT_EXIST" // APPID不存在
  73. CODE_MCHID_NOT_EXIST = "MCHID_NOT_EXIST" // MCHID不存在
  74. CODE_APPID_MCHID_NOT_MATCH = "APPID_MCHID_NOT_MATCH" // APPID MCHID 不匹配
  75. CODE_LACK_PARAMS = "LACK_PARAMS" // 缺少参数
  76. CODE_OUT_TRADE_NO_USED = "OUT_TRADE_NO_USED" // 商户订单号重复
  77. CODE_SIGNERROR = "SIGNERROR" // 签名错误
  78. CODE_XML_FORMAT_ERROR = "XML_FORMAT_ERROR" // xml格式错误
  79. CODE_REQUIRE_POST_METHOD = "REQUIRE_POST_METHOD" // 请使用post请求方法
  80. CODE_POST_DATA_EMPTY = "POST_DATA_EMPTY" // post数据为空
  81. CODE_NOT_UTF8 = "NOT_UTF8" // 编码错误
  82. CODE_ORDERNOTEXIST = "ORDERNOTEXIST" // 交易订单号不存在
  83. CODE_BIZERR_NEED_RETRY = "BIZERR_NEED_RETRY" // 退款业务流程错误,需要商户触发重试来解决
  84. CODE_TRADE_OVERDUE = "TRADE_OVERDUE" // 订单已经超过退款期限
  85. CODE_USER_ACCOUNT_ABNORMAL = "USER_ACCOUNT_ABNORMAL" // 退款请求失败用户帐号注销
  86. CODE_INVALID_REQ_TOO_MUCH = "INVALID_REQ_TOO_MUCH" // 无效请求过多
  87. CODE_INVALID_TRANSACTIONID = "INVALID_TRANSACTIONID" // 无效transaction_id
  88. CODE_PARAM_ERROR = "PARAM_ERROR" // 参数错误
  89. CODE_FREQUENCY_LIMITED = "FREQUENCY_LIMITED" // 请求频率限制
  90. CODE_TRADE_SUCCESS = "SUCCESS" // 交易成功
  91. CODE_TRADE_REFUND = "REFUND" // 转入退款
  92. CODE_TRADE_NOTPAY = "NOTPAY" // 尚未支付
  93. CODE_TRADE_CLOSED = "CLOSED" // 已关闭
  94. CODE_TRADE_REVOKED = "REVOKED" // 已撤销
  95. CODE_TRADE_USERPAYING = "USERPAYING" // 用户支付中
  96. CODE_TRADE_PAYERROR = "PAYERROR" // 支付失败
  97. CODE_TRANSFER_PROCESSING = "PROCESSING" // 转账处理中
  98. CODE_TRANSFER_NOT_FOUND = "NOT_FOUND" // 账单不见了
  99. )