12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- package com.kmall.admin.haikong.constant;
- /**
- * 常量类
- * @author lhm
- * @createDate 2021-10-30
- */
- public class Constants {
- public static final String MEMBER_SYS_ACCESS_TOKEN_REDIS_KEY = "haikong_memberSys_accessToken";
- public static final String MEMBER_SYS_REFRESH_TOKEN_REDIS_KEY = "haikong_memberSys_refreshToken";
- /**
- * 活动主题枚举
- */
- public enum ActivityTopicEnum {
- /**
- * 满赠活动
- */
- MZ("mz", "满赠", 3),
- /**
- * 限时特价活动
- */
- LSCX("lscx", "限时特价", 1),
- /**
- * 优惠券活动
- */
- YHJ("yhj", "优惠券", 5)
- ;
- private final String topicCode;
- private final String topicName;
- private final Integer priority;
- ActivityTopicEnum(String topicCode, String topicName, Integer priority) {
- this.topicCode = topicCode;
- this.topicName = topicName;
- this.priority = priority;
- }
- public String getTopicCode() {
- return topicCode;
- }
- public String getTopicName() {
- return topicName;
- }
- public Integer getPriority() {
- return priority;
- }
- }
- /**
- * 活动类型
- */
- public enum ActivityType {
- /**
- * 按品牌参加活动
- */
- BRAND("0", "商品品牌"),
- /**
- * 按分类参加活动
- */
- CATEGORY("1", "商品分类"),
- /**
- * 按单个商品参加活动
- */
- PRODUCT("2", "商品")
- ;
- private final String activityTypeCode;
- private final String activityType;
- ActivityType(String activityTypeCode, String activityType) {
- this.activityTypeCode = activityTypeCode;
- this.activityType = activityType;
- }
- public String getActivityTypeCode() {
- return activityTypeCode;
- }
- public String getActivityType() {
- return activityType;
- }
- }
- }
|