package com.macro.mall.dto;

import com.macro.mall.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;

/**
 * 品牌传递参数
 * Created by macro on 2018/4/26.
 */
public class PmsBrandParam {
    @ApiModelProperty(value = "品牌名称",required = true)
    @NotEmpty(message = "名称不能为空")
    private String name;
    @ApiModelProperty(value = "品牌首字母")
    private String firstLetter;
    @ApiModelProperty(value = "排序字段")
    @Min(value = 0, message = "排序最小为0")
    private Integer sort;
    @ApiModelProperty(value = "是否为厂家制造商")
    @FlagValidator(value = {"0","1"}, message = "厂家状态不正确")
    private Integer factoryStatus;
    @ApiModelProperty(value = "是否进行显示")
    @FlagValidator(value = {"0","1"}, message = "显示状态不正确")
    private Integer showStatus;
    @ApiModelProperty(value = "品牌logo",required = true)
    @NotEmpty(message = "品牌logo不能为空")
    private String logo;
    @ApiModelProperty(value = "品牌大图")
    private String bigPic;
    @ApiModelProperty(value = "品牌故事")
    private String brandStory;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getFactoryStatus() {
        return factoryStatus;
    }

    public void setFactoryStatus(Integer factoryStatus) {
        this.factoryStatus = factoryStatus;
    }

    public Integer getShowStatus() {
        return showStatus;
    }

    public void setShowStatus(Integer showStatus) {
        this.showStatus = showStatus;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }

    public String getBigPic() {
        return bigPic;
    }

    public void setBigPic(String bigPic) {
        this.bigPic = bigPic;
    }

    public String getBrandStory() {
        return brandStory;
    }

    public void setBrandStory(String brandStory) {
        this.brandStory = brandStory;
    }
}

@@ -116,16 +116,69 @@
 roperty;
+%0Aimport lombok.Data;%0Aimport lombok.EqualsAndHashCode;
 %0A%0Aimport
@@ -311,16 +311,60 @@
 26.%0A */%0A
+@Data%0A@EqualsAndHashCode(callSuper = false)%0A
 public c
@@ -1161,16 +1161,16 @@
 %22%E5%93%81%E7%89%8C%E6%95%85%E4%BA%8B%22)%0A
+
     priv
@@ -1195,1233 +1195,7 @@
 ory;
-%0A%0A    public String getName() %7B%0A        return name;%0A    %7D%0A%0A    public void setName(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public String getFirstLetter() %7B%0A        return firstLetter;%0A    %7D%0A%0A    public void setFirstLetter(String firstLetter) %7B%0A        this.firstLetter = firstLetter;%0A    %7D%0A%0A    public Integer getSort() %7B%0A        return sort;%0A    %7D%0A%0A    public void setSort(Integer sort) %7B%0A        this.sort = sort;%0A    %7D%0A%0A    public Integer getFactoryStatus() %7B%0A        return factoryStatus;%0A    %7D%0A%0A    public void setFactoryStatus(Integer factoryStatus) %7B%0A        this.factoryStatus = factoryStatus;%0A    %7D%0A%0A    public Integer getShowStatus() %7B%0A        return showStatus;%0A    %7D%0A%0A    public void setShowStatus(Integer showStatus) %7B%0A        this.showStatus = showStatus;%0A    %7D%0A%0A    public String getLogo() %7B%0A        return logo;%0A    %7D%0A%0A    public void setLogo(String logo) %7B%0A        this.logo = logo;%0A    %7D%0A%0A    public String getBigPic() %7B%0A        return bigPic;%0A    %7D%0A%0A    public void setBigPic(String bigPic) %7B%0A        this.bigPic = bigPic;%0A    %7D%0A%0A    public String getBrandStory() %7B%0A        return brandStory;%0A    %7D%0A%0A    public void setBrandStory(String brandStory) %7B%0A        this.brandStory = brandStory;%0A    %7D
 %0A%7D%0A

Update PmsBrandParam.java