1
0

Constants.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. package com.kmall.admin.haikong.constant;
  2. /**
  3. * 常量类
  4. * @author lhm
  5. * @createDate 2021-10-30
  6. */
  7. public class Constants {
  8. public static final String MEMBER_SYS_ACCESS_TOKEN_REDIS_KEY = "haikong_memberSys_accessToken";
  9. public static final String MEMBER_SYS_REFRESH_TOKEN_REDIS_KEY = "haikong_memberSys_refreshToken";
  10. /**
  11. * 活动主题枚举
  12. */
  13. public enum ActivityTopicEnum {
  14. /**
  15. * 满赠活动
  16. */
  17. MZ("mz", "满赠"),
  18. /**
  19. * 限时特价活动
  20. */
  21. LSCX("lscx", "限时特价"),
  22. /**
  23. * 优惠券活动
  24. */
  25. YHJ("yhj", "优惠券")
  26. ;
  27. private final String topicCode;
  28. private final String topicName;
  29. ActivityTopicEnum(String topicCode, String topicName) {
  30. this.topicCode = topicCode;
  31. this.topicName = topicName;
  32. }
  33. public String getTopicCode() {
  34. return topicCode;
  35. }
  36. public String getTopicName() {
  37. return topicName;
  38. }
  39. }
  40. /**
  41. * 活动类型
  42. */
  43. public enum ActivityType {
  44. /**
  45. * 按品牌参加活动
  46. */
  47. BRAND("0", "商品品牌"),
  48. /**
  49. * 按分类参加活动
  50. */
  51. CATEGORY("1", "商品分类"),
  52. /**
  53. * 按单个商品参加活动
  54. */
  55. PRODUCT("2", "商品")
  56. ;
  57. private final String activityTypeCode;
  58. private final String activityType;
  59. ActivityType(String activityTypeCode, String activityType) {
  60. this.activityTypeCode = activityTypeCode;
  61. this.activityType = activityType;
  62. }
  63. public String getActivityTypeCode() {
  64. return activityTypeCode;
  65. }
  66. public String getActivityType() {
  67. return activityType;
  68. }
  69. }
  70. }