package com.macro.mall.dto;

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

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

/**
 * 品牌传递参数
 * Created by macro on 2018/4/26.
 */
@Data
@EqualsAndHashCode(callSuper = false)
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;
}

@@ -384,16 +384,30 @@
 Param %7B%0A
+    @NotEmpty%0A
     @Api
@@ -456,42 +456,8 @@
 ue)%0A
-    @NotEmpty(message = %22%E5%90%8D%E7%A7%B0%E4%B8%8D%E8%83%BD%E4%B8%BA%E7%A9%BA%22)%0A
     
@@ -548,16 +548,36 @@
 Letter;%0A
+    @Min(value = 0)%0A
     @Api
@@ -614,111 +614,29 @@
     
-@Min(value = 0, message = %22%E6%8E%92%E5%BA%8F%E6%9C%80%E5%B0%8F%E4%B8%BA0%22)%0A    private Integer sort;%0A    @ApiModelProperty(value = %22%E6%98%AF%E5%90%A6%E4%B8%BA%E5%8E%82%E5%AE%B6%E5%88%B6%E9%80%A0%E5%95%86%22)
+private Integer sort;
 %0A   
@@ -695,43 +695,8 @@
 %E7%A1%AE%22)%0A
-    private Integer factoryStatus;%0A
     
@@ -728,15 +728,52 @@
  %22%E6%98%AF%E5%90%A6
-%E8%BF%9B%E8%A1%8C%E6%98%BE%E7%A4%BA
+%E4%B8%BA%E5%8E%82%E5%AE%B6%E5%88%B6%E9%80%A0%E5%95%86
 %22)%0A
+    private Integer factoryStatus;%0A
     
@@ -823,24 +823,64 @@
  %22%E6%98%BE%E7%A4%BA%E7%8A%B6%E6%80%81%E4%B8%8D%E6%AD%A3%E7%A1%AE%22)%0A
+    @ApiModelProperty(value = %22%E6%98%AF%E5%90%A6%E8%BF%9B%E8%A1%8C%E6%98%BE%E7%A4%BA%22)%0A
     private 
@@ -895,24 +895,38 @@
 showStatus;%0A
+    @NotEmpty%0A
     @ApiMode
@@ -973,46 +973,8 @@
 ue)%0A
-    @NotEmpty(message = %22%E5%93%81%E7%89%8Clogo%E4%B8%8D%E8%83%BD%E4%B8%BA%E7%A9%BA%22)%0A
     

Update PmsBrandParam.java