package com.macro.mall.search.domain;

import java.util.List;

/**
 * 搜索相关商品品牌名称，分类名称及属性
 * Created by macro on 2018/6/27.
 */
public class EsProductRelatedInfo {
    private List<String> brandNames;
    private List<String> productCategoryNames;
    private List<ProductAttr>   productAttrs;

    public List<String> getBrandNames() {
        return brandNames;
    }

    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 String attrName;
        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;
        }
    }
}

@@ -32,16 +32,70 @@
 omain;%0A%0A
+import lombok.Data;%0Aimport lombok.EqualsAndHashCode;%0A%0A
 import j
@@ -174,16 +174,60 @@
 27.%0A */%0A
+@Data%0A@EqualsAndHashCode(callSuper = false)%0A
 public c
@@ -367,18 +367,16 @@
 uctAttr%3E
-  
  product
@@ -391,619 +391,55 @@
     
-public List%3CString%3E getBrandNames() %7B%0A        return brandNames;%0A    %7D%0A%0A    public void setBrandNames(List%3CString%3E brandNames) %7B%0A        this.brandNames = brandNames;%0A    %7D%0A%0A    public List%3CString%3E getProductCategoryNames() %7B%0A        return productCategoryNames;%0A    %7D%0A%0A    public void setProductCategoryNames(List%3CString%3E productCategoryNames) %7B%0A        this.productCategoryNames = productCategoryNames;%0A    %7D%0A%0A    public List%3CProductAttr%3E getProductAttrs() %7B%0A        return productAttrs;%0A    %7D%0A%0A    public void setProductAttrs(List%3CProductAttr%3E productAttrs) %7B%0A        this.productAttrs = productAttrs;%0A    %7D%0A
+@Data%0A    @EqualsAndHashCode(callSuper = false)
 %0A   
@@ -470,16 +470,17 @@
 ductAttr
+ 
 %7B%0A      
@@ -579,550 +579,8 @@
 ues;
-%0A%0A        public Long getAttrId() %7B%0A            return attrId;%0A        %7D%0A%0A        public void setAttrId(Long attrId) %7B%0A            this.attrId = attrId;%0A        %7D%0A%0A        public List%3CString%3E getAttrValues() %7B%0A            return attrValues;%0A        %7D%0A%0A        public void setAttrValues(List%3CString%3E attrValues) %7B%0A            this.attrValues = attrValues;%0A        %7D%0A%0A        public String getAttrName() %7B%0A            return attrName;%0A        %7D%0A%0A        public void setAttrName(String attrName) %7B%0A            this.attrName = attrName;%0A        %7D
 %0A   

Update EsProductRelatedInfo.java