...
|
...
|
@@ -2,17 +2,18 @@ package com.yoho.search.service.scene.recall.type; |
|
|
|
|
|
public enum RecallType {
|
|
|
|
|
|
FIRST_PRODUCT_SKN(1, "firstProduct"),//firstProduct
|
|
|
DIRECT_TRAIN(2, "直通车"),//直通车
|
|
|
NEW_SHELVE(3, "新上架"),//新上架
|
|
|
NEW_REDUCE_PRICE(4, "新降价"),//新降价
|
|
|
NEW_PROMOTION(5, "新开促销"),//新开促销
|
|
|
NEW_SHOP(6, "新开店铺"),//新开店铺
|
|
|
ADD_FLOW(7, "曝光补偿"),//曝光补偿
|
|
|
COMMON(8, "兜底策略");//兜底策略
|
|
|
FIRST_PRODUCT_SKN(1, "firstProduct", RecallValueType.NUMBER),//firstProduct
|
|
|
DIRECT_TRAIN(2, "直通车", RecallValueType.NUMBER),//直通车
|
|
|
NEW_SHELVE(3, "新上架", RecallValueType.PERCENT),//新上架
|
|
|
NEW_REDUCE_PRICE(4, "新降价", RecallValueType.PERCENT),//新降价
|
|
|
NEW_PROMOTION(5, "新开促销", RecallValueType.PERCENT),//新开促销
|
|
|
NEW_SHOP(6, "新开店铺", RecallValueType.NUMBER),//新开店铺
|
|
|
ADD_FLOW(7, "曝光补偿", RecallValueType.NUMBER),//曝光补偿
|
|
|
COMMON(8, "兜底策略", RecallValueType.DEFAULT);//兜底策略
|
|
|
|
|
|
private int id;
|
|
|
private String name;
|
|
|
private RecallValueType type;
|
|
|
|
|
|
public static RecallType getById(final int id) {
|
|
|
for (RecallType recallTypeEnum : RecallType.values()) {
|
...
|
...
|
@@ -23,9 +24,10 @@ public enum RecallType { |
|
|
return COMMON;
|
|
|
}
|
|
|
|
|
|
RecallType(int id, String name) {
|
|
|
RecallType(int id, String name, RecallValueType type) {
|
|
|
this.id = id;
|
|
|
this.name = name;
|
|
|
this.type = type;
|
|
|
}
|
|
|
|
|
|
public int getId() {
|
...
|
...
|
@@ -36,5 +38,7 @@ public enum RecallType { |
|
|
return name;
|
|
|
}
|
|
|
|
|
|
|
|
|
public RecallValueType getType() {
|
|
|
return type;
|
|
|
}
|
|
|
} |
...
|
...
|
|