AppConstant.java 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. package com.izouma.awesomeadmin.constant;
  2. /**
  3. * <p>
  4. * app常量
  5. * </p>
  6. */
  7. public interface AppConstant {
  8. // /**
  9. // * 商户号
  10. // */
  11. // String MCH_ID = "1379284802";
  12. //
  13. // /**
  14. // * 子商户号
  15. // */
  16. // String SUB_MCH_ID = "";
  17. //
  18. // /**
  19. // * 商户密钥
  20. // */
  21. // String MCH_SECRET = "R4q0yoo5GXh9A3CDiKJ6v7hgiE0aT0rM";
  22. /**
  23. * 货币类型
  24. */
  25. String FEE_TYPE = "CNY";
  26. /**
  27. * 交易类型 扫码
  28. */
  29. String TRADE_TYPE_NATIVE = "NATIVE";
  30. /**
  31. * 交易类型 公众号H5
  32. */
  33. String TRADE_TYPE_JSAPI = "JSAPI";
  34. /**
  35. * 交易类型 APP
  36. */
  37. String TRADE_TYPE_APP = "APP";
  38. /**
  39. * 设备号 PC网页或公众号内支付请传"WEB"
  40. */
  41. String DEVICE_INFO = "WEB";
  42. // /**
  43. // * 标题
  44. // */
  45. // String BODY = "工蜂家服产品";
  46. //
  47. // /**
  48. // * 标题
  49. // */
  50. // String BODY_RECHARGE = "工蜂家服充值";
  51. //
  52. // /**
  53. // * 通知地址
  54. // */
  55. // String NOTIFY_URL = "http://www.gfjiafu.com/wxpay/notify";
  56. //
  57. // /**
  58. // * 通知地址
  59. // */
  60. // String GXNOTIFY_URL = "http://www.gfjiafu.com/GXwxpay/notify";
  61. //
  62. // /**
  63. // * 通知地址
  64. // */
  65. // String NOTIFY_URL_RECHARGE = "http://www.gfjiafu.com/wxpay/notifyRecharge";
  66. //
  67. // /**
  68. // * 商户名称
  69. // */
  70. // String SEND_NAME = "工蜂家服";
  71. String PAGE = "page";
  72. public interface PayMode {
  73. /**
  74. * 支付宝
  75. */
  76. Integer ALIPAY = 0;
  77. /**
  78. * 微信
  79. */
  80. Integer WEI_XIN = 1;
  81. /**
  82. * 电子币
  83. */
  84. Integer COIN = 2;
  85. /**
  86. * 第三方支付
  87. */
  88. Integer AG_PAY = 3;
  89. }
  90. public interface InergralUpdateType {
  91. /**
  92. * 产品抵扣
  93. */
  94. Integer DISCOUNT = 0;
  95. /**
  96. * 任务
  97. */
  98. Integer TASK = 1;
  99. /**
  100. * 充值
  101. */
  102. Integer RECHARGE = 2;
  103. }
  104. public interface OrderStatus {
  105. /**
  106. * 下单,待付款
  107. */
  108. Integer NO_PAY = 0;
  109. /**
  110. * 支付完成,待上传原图、代发货
  111. */
  112. Integer PAY_OVER = 1;
  113. /**
  114. * 待修图、已发货
  115. */
  116. Integer WAIT_REPAIR = 2;
  117. /**
  118. * 修图完成待验收、
  119. */
  120. Integer ACCEPT = 3;
  121. /**
  122. * 验收不通过,待返修
  123. */
  124. Integer REWORK = 4;
  125. /**
  126. * 验收完成待评论、已收货待评论
  127. */
  128. Integer FINISH = 5;
  129. /**
  130. * 结束
  131. */
  132. Integer END = 6;
  133. /**
  134. * 退款中
  135. */
  136. Integer REFUNDING = 7;
  137. /**
  138. * 已经取消
  139. */
  140. Integer CANCEL = 8;
  141. /**
  142. * 退款失败
  143. */
  144. Integer REFUND_FAIL = 9;
  145. /**
  146. * 退款成功
  147. */
  148. Integer REFUND_SUCCESS = 10;
  149. }
  150. /**
  151. * <p>货币类型。</p>
  152. *
  153. * @author 姓名 <br />
  154. * 更新履历 <br />
  155. * 日期 : 姓名: 更新内容<br />
  156. * @version 1.0
  157. */
  158. public interface CoinType {
  159. /**
  160. * 充值
  161. */
  162. Integer RECHARGE = 0;
  163. /**
  164. * 消费
  165. */
  166. Integer CONSUMPTION = 1;
  167. /**
  168. * 兑换
  169. */
  170. Integer EXCHANGE = 2;
  171. /**
  172. * 提现
  173. */
  174. Integer CASH = 3;
  175. /**
  176. * 税收
  177. */
  178. Integer TAXES = 4;
  179. /**
  180. * 销售
  181. */
  182. Integer SALE = 5;
  183. /**
  184. * 返还
  185. */
  186. Integer FAN_HUAN = 6;
  187. /**
  188. * 退款
  189. */
  190. Integer REFUND = 7;
  191. /**
  192. * 赠送
  193. */
  194. Integer SONG = 8;
  195. }
  196. public interface Aliapi {
  197. /**
  198. * 交易创建,等待买家付款
  199. */
  200. String WAIT_BUYER_PAY = "WAIT_BUYER_PAY";
  201. /**
  202. * 未付款交易超时关闭,或支付完成后全额退款
  203. */
  204. String TRADE_CLOSED = "TRADE_CLOSED";
  205. /**
  206. * 交易支付成功
  207. */
  208. String TRADE_SUCCESS = "TRADE_SUCCESS";
  209. /**
  210. * 交易结束,不可退款
  211. */
  212. String TRADE_FINISHED = "TRADE_FINISHED";
  213. /**
  214. * typeFlag, 购买,订单付款
  215. */
  216. Integer BUY = 0;
  217. /**
  218. * typeFlag,充值
  219. */
  220. Integer RECHARGE = 1;
  221. /**
  222. * 押金
  223. */
  224. Integer CASH_PLEDGE = 2;
  225. }
  226. /**
  227. * 推广码类型
  228. */
  229. public interface MarketType {
  230. /**
  231. * 减免
  232. */
  233. Integer REDUCTION = 1;
  234. /**
  235. * 折扣
  236. */
  237. Integer DISCOUNT = 2;
  238. }
  239. /**
  240. * 退款状态
  241. */
  242. public interface RefundStatus {
  243. /**
  244. * 申请中
  245. */
  246. Integer APPLY = 0;
  247. /**
  248. * 成功
  249. */
  250. Integer SUCCESS = 1;
  251. /**
  252. * 失败
  253. */
  254. Integer FAIL = 2;
  255. /**
  256. * 取消
  257. */
  258. Integer CANCEL = 3;
  259. }
  260. }