1
0

Constants.java 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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", "满赠", 3),
  18. /**
  19. * 限时特价活动
  20. */
  21. LSCX("lscx", "限时特价", 1),
  22. /**
  23. * 优惠券活动
  24. */
  25. YHJ("yhj", "优惠券", 5)
  26. ;
  27. private final String topicCode;
  28. private final String topicName;
  29. private final Integer priority;
  30. ActivityTopicEnum(String topicCode, String topicName, Integer priority) {
  31. this.topicCode = topicCode;
  32. this.topicName = topicName;
  33. this.priority = priority;
  34. }
  35. public String getTopicCode() {
  36. return topicCode;
  37. }
  38. public String getTopicName() {
  39. return topicName;
  40. }
  41. public Integer getPriority() {
  42. return priority;
  43. }
  44. }
  45. /**
  46. * 活动类型
  47. */
  48. public enum ActivityType {
  49. /**
  50. * 按品牌参加活动
  51. */
  52. BRAND("0", "商品品牌"),
  53. /**
  54. * 按分类参加活动
  55. */
  56. CATEGORY("1", "商品分类"),
  57. /**
  58. * 按单个商品参加活动
  59. */
  60. PRODUCT("2", "商品")
  61. ;
  62. private final String activityTypeCode;
  63. private final String activityType;
  64. ActivityType(String activityTypeCode, String activityType) {
  65. this.activityTypeCode = activityTypeCode;
  66. this.activityType = activityType;
  67. }
  68. public String getActivityTypeCode() {
  69. return activityTypeCode;
  70. }
  71. public String getActivityType() {
  72. return activityType;
  73. }
  74. }
  75. }