Update EsProductRelatedInfo.java
This commit is contained in:
parent
8f57a363c5
commit
da5d742740
@ -1,67 +1,26 @@
|
|||||||
package com.macro.mall.search.domain;
|
package com.macro.mall.search.domain;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 搜索相关商品品牌名称,分类名称及属性
|
* 搜索相关商品品牌名称,分类名称及属性
|
||||||
* Created by macro on 2018/6/27.
|
* Created by macro on 2018/6/27.
|
||||||
*/
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
public class EsProductRelatedInfo {
|
public class EsProductRelatedInfo {
|
||||||
private List<String> brandNames;
|
private List<String> brandNames;
|
||||||
private List<String> productCategoryNames;
|
private List<String> productCategoryNames;
|
||||||
private List<ProductAttr> productAttrs;
|
private List<ProductAttr> productAttrs;
|
||||||
|
|
||||||
public List<String> getBrandNames() {
|
@Data
|
||||||
return brandNames;
|
@EqualsAndHashCode(callSuper = false)
|
||||||
}
|
public static class ProductAttr {
|
||||||
|
|
||||||
public void setBrandNames(List<String> brandNames) {
|
|
||||||
this.brandNames = brandNames;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getProductCategoryNames() {
|
|
||||||
return productCategoryNames;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProductCategoryNames(List<String> productCategoryNames) {
|
|
||||||
this.productCategoryNames = productCategoryNames;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<ProductAttr> getProductAttrs() {
|
|
||||||
return productAttrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setProductAttrs(List<ProductAttr> productAttrs) {
|
|
||||||
this.productAttrs = productAttrs;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static class ProductAttr{
|
|
||||||
private Long attrId;
|
private Long attrId;
|
||||||
private String attrName;
|
private String attrName;
|
||||||
private List<String> attrValues;
|
private List<String> attrValues;
|
||||||
|
|
||||||
public Long getAttrId() {
|
|
||||||
return attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAttrId(Long attrId) {
|
|
||||||
this.attrId = attrId;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getAttrValues() {
|
|
||||||
return attrValues;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAttrValues(List<String> attrValues) {
|
|
||||||
this.attrValues = attrValues;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getAttrName() {
|
|
||||||
return attrName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setAttrName(String attrName) {
|
|
||||||
this.attrName = attrName;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user