global.js 767 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /**
  2. * 全局通用字段定义
  3. */
  4. /**
  5. * 玩法类型
  6. * 普通红包:common=1;
  7. * 抽奖:lottery=2;
  8. * 夺宝:Treasure=3;
  9. * NFT
  10. */
  11. export const PlayType = {
  12. common: 1,
  13. lottery: 2,
  14. Treasure: 3,
  15. NFT: 4,
  16. };
  17. /**
  18. * 奖品类型
  19. * 货币:money=1;
  20. * 自定义奖品:custom=2
  21. */
  22. export const RewardType = {
  23. money: 1,
  24. custom: 2,
  25. };
  26. /**
  27. * 任务类型
  28. */
  29. export const TaskType = {
  30. twitterFollow: 1,
  31. twitterLikeTweet: 2,
  32. twitterRetweet: 3,
  33. joinDiscord: 7,
  34. repostToFacebook: 8,
  35. twitterCommentAndTag: 9,
  36. };
  37. /**
  38. * 帖子类型
  39. */
  40. export const PostType = {
  41. giveaway: 1,
  42. nftGroup: 2,
  43. postEditor: 3,
  44. };
  45. /**
  46. * 奖品 是否有效
  47. * 过期、NFT不可领等都被定义为无效
  48. */
  49. export const UsefulType = {
  50. unUseful: '0',
  51. useful: '1',
  52. };