AppConstant.java 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  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. */
  89. public interface RechargeType {
  90. /**
  91. * 支付宝
  92. */
  93. Integer ALIPAY = 0;
  94. /**
  95. * 微信
  96. */
  97. Integer WEI_XIN = 1;
  98. /**
  99. * 后台管理员
  100. */
  101. Integer ADMIN = 2;
  102. /**
  103. * 其他
  104. */
  105. Integer OTHER = 3;
  106. }
  107. public interface InergralUpdateType {
  108. /**
  109. * 产品抵扣
  110. */
  111. Integer DISCOUNT = 0;
  112. /**
  113. * 任务
  114. */
  115. Integer TASK = 1;
  116. /**
  117. * 充值
  118. */
  119. Integer RECHARGE = 2;
  120. }
  121. public interface OrderStatus {
  122. /**
  123. * 下单,待付款
  124. */
  125. Integer NO_PAY = 0;
  126. /**
  127. * 支付完成,待上传原图、代发货
  128. */
  129. Integer PAY_OVER = 1;
  130. /**
  131. * 待修图、已发货
  132. */
  133. Integer WAIT_REPAIR = 2;
  134. /**
  135. * 修图完成待验收、
  136. */
  137. Integer ACCEPT = 3;
  138. /**
  139. * 验收不通过,待返修
  140. */
  141. Integer REWORK = 4;
  142. /**
  143. * 验收完成待评论、已收货待评论
  144. */
  145. Integer FINISH = 5;
  146. /**
  147. * 结束
  148. */
  149. Integer END = 6;
  150. /**
  151. * 退款中
  152. */
  153. Integer REFUNDING = 7;
  154. /**
  155. * 已经取消
  156. */
  157. Integer CANCEL = 8;
  158. /**
  159. * 退款失败
  160. */
  161. Integer REFUND_FAIL = 9;
  162. /**
  163. * 退款成功
  164. */
  165. Integer REFUND_SUCCESS = 10;
  166. }
  167. /**
  168. * <p>货币类型。</p>
  169. *
  170. * @author 姓名 <br />
  171. * 更新履历 <br />
  172. * 日期 : 姓名: 更新内容<br />
  173. * @version 1.0
  174. */
  175. public interface CoinType {
  176. /**
  177. * 充值
  178. */
  179. Integer RECHARGE = 0;
  180. /**
  181. * 消费/加入房间
  182. */
  183. Integer CONSUMPTION = 1;
  184. /**
  185. * 兑换
  186. */
  187. Integer EXCHANGE = 2;
  188. /**
  189. * 提现
  190. */
  191. Integer CASH = 3;
  192. /**
  193. * 税收
  194. */
  195. Integer TAXES = 4;
  196. /**
  197. * 销售
  198. */
  199. Integer SALE = 5;
  200. /**
  201. * 返还
  202. */
  203. Integer FAN_HUAN = 6;
  204. /**
  205. * 退款
  206. */
  207. Integer REFUND = 7;
  208. /**
  209. * 赠送
  210. */
  211. Integer SONG = 8;
  212. /**
  213. * 奖励
  214. */
  215. Integer BONUS = 9;
  216. }
  217. public interface Aliapi {
  218. /**
  219. * 交易创建,等待买家付款
  220. */
  221. String WAIT_BUYER_PAY = "WAIT_BUYER_PAY";
  222. /**
  223. * 未付款交易超时关闭,或支付完成后全额退款
  224. */
  225. String TRADE_CLOSED = "TRADE_CLOSED";
  226. /**
  227. * 交易支付成功
  228. */
  229. String TRADE_SUCCESS = "TRADE_SUCCESS";
  230. /**
  231. * 交易结束,不可退款
  232. */
  233. String TRADE_FINISHED = "TRADE_FINISHED";
  234. /**
  235. * typeFlag, 购买,订单付款
  236. */
  237. Integer BUY = 0;
  238. /**
  239. * typeFlag,充值
  240. */
  241. Integer RECHARGE = 1;
  242. /**
  243. * 押金
  244. */
  245. Integer CASH_PLEDGE = 2;
  246. }
  247. /**
  248. * 商品类型
  249. */
  250. public interface ProductType {
  251. /**
  252. * 充值
  253. */
  254. Integer RECHARGE = 0;
  255. /**
  256. * 消费
  257. */
  258. Integer CONSUMPTION = 1;
  259. }
  260. /**
  261. * 房间状态
  262. */
  263. public interface HouseStatus {
  264. /**
  265. * 等待
  266. */
  267. Integer WAIT = 0;
  268. /**
  269. * 准备
  270. */
  271. Integer READY = 1;
  272. /**
  273. * 开始
  274. */
  275. Integer START = 2;
  276. /**
  277. * 结束
  278. */
  279. Integer END = 3;
  280. /**
  281. * 结算
  282. */
  283. Integer SETTLEMENT = 4;
  284. /**
  285. * 关闭
  286. */
  287. Integer CLOSE = 5;
  288. /**
  289. * 解析完成
  290. */
  291. Integer ANALYSIS = 8;
  292. }
  293. /**
  294. * 玩家状态
  295. */
  296. public interface PlayerStatus {
  297. /**
  298. * 加入
  299. */
  300. Integer JOIN = 0;
  301. /**
  302. * 准备
  303. */
  304. Integer READY = 1;
  305. /**
  306. * 开始
  307. */
  308. Integer START = 2;
  309. /**
  310. * 结束
  311. */
  312. Integer END = 3;
  313. /**
  314. * 结算
  315. */
  316. Integer SETTLEMENT = 4;
  317. /**
  318. * 领取奖励
  319. */
  320. Integer RECEIVE = 5;
  321. /**
  322. * 未比赛
  323. */
  324. Integer NO_MATCH = 6;
  325. /**
  326. * 比赛超时
  327. */
  328. Integer OVERTIME = 7;
  329. /**
  330. * 解析完成
  331. */
  332. Integer PROCESSED = 8;
  333. /**
  334. * 解析失败
  335. */
  336. Integer PROCESSED_FAIL = 9;
  337. }
  338. /**
  339. * 审核类型
  340. */
  341. public interface ExamineType {
  342. /**
  343. * 未参赛
  344. */
  345. Integer NO_MATCH = 0;
  346. /**
  347. * 自动审核
  348. */
  349. Integer AUTO = 1;
  350. /**
  351. * 手动审核
  352. */
  353. Integer MANUAL = 2;
  354. }
  355. /**
  356. * 系统通知类型
  357. */
  358. public interface NoticeType {
  359. /**
  360. * 未参赛
  361. */
  362. Integer NO_MATCH = 0;
  363. /**
  364. * 比赛结果
  365. */
  366. Integer RESULT = 1;
  367. /**
  368. * 奖金领取
  369. */
  370. Integer RECEIVE = 2;
  371. /**
  372. * 赛季奖金
  373. */
  374. Integer SEASON_BONUS = 3;
  375. /**
  376. * 比赛解析失败
  377. */
  378. Integer FAIL = 4;
  379. /**
  380. * 比赛超时
  381. */
  382. Integer OVERTIME = 5;
  383. }
  384. /**
  385. * 赛季状态
  386. */
  387. public interface SeasonStatus {
  388. /**
  389. * 准备中
  390. */
  391. Integer READY = 0;
  392. /**
  393. * 进行中
  394. */
  395. Integer START = 1;
  396. /**
  397. * 结算中
  398. */
  399. Integer SETTLEMENT = 2;
  400. /**
  401. * 结束
  402. */
  403. Integer END = 3;
  404. }
  405. /**
  406. * 奖牌
  407. */
  408. public interface Medals {
  409. /**
  410. * 金牌
  411. */
  412. String GOLD = "gold";
  413. /**
  414. * 金牌积分
  415. */
  416. Integer GOLD_SCORE = 10;
  417. /**
  418. * 银牌
  419. */
  420. String SILVER = "silver";
  421. /**
  422. * 银牌积分
  423. */
  424. Integer SILVER_SCORE = 5;
  425. /**
  426. * 铜牌
  427. */
  428. String BRONZE = "bronze";
  429. /**
  430. * 铜牌积分
  431. */
  432. Integer BRONZE_SCORE = 2;
  433. /**
  434. * 白金牌
  435. */
  436. String PLATINUM = "platinum";
  437. /**
  438. * 白金牌积分
  439. */
  440. Integer PLATINUM_SCORE = 15;
  441. }
  442. public interface PayCodeType {
  443. /**
  444. * 微信
  445. */
  446. String wechat = "wechat";
  447. /**
  448. * 支付宝
  449. */
  450. String alipay = "alipay";
  451. /**
  452. * 云闪付
  453. */
  454. String cloud_flash = "cloud_flash";
  455. /**
  456. * 银联
  457. */
  458. String union_pay = "union_pay";
  459. /**
  460. * 微信实时
  461. */
  462. String wechat_real_time = "wechat_real_time";
  463. /**
  464. * 淘宝
  465. */
  466. String taobao = "taobao";
  467. /**
  468. * 信用卡
  469. */
  470. String credit_card = "credit_card";
  471. }
  472. }