|
@@ -15,22 +15,22 @@ import javax.validation.constraints.NotEmpty;
|
|
|
@Data
|
|
|
@EqualsAndHashCode(callSuper = false)
|
|
|
public class PmsBrandParam {
|
|
|
+ @NotEmpty
|
|
|
@ApiModelProperty(value = "品牌名称",required = true)
|
|
|
- @NotEmpty(message = "名称不能为空")
|
|
|
private String name;
|
|
|
@ApiModelProperty(value = "品牌首字母")
|
|
|
private String firstLetter;
|
|
|
+ @Min(value = 0)
|
|
|
@ApiModelProperty(value = "排序字段")
|
|
|
- @Min(value = 0, message = "排序最小为0")
|
|
|
private Integer sort;
|
|
|
- @ApiModelProperty(value = "是否为厂家制造商")
|
|
|
@FlagValidator(value = {"0","1"}, message = "厂家状态不正确")
|
|
|
+ @ApiModelProperty(value = "是否为厂家制造商")
|
|
|
private Integer factoryStatus;
|
|
|
- @ApiModelProperty(value = "是否进行显示")
|
|
|
@FlagValidator(value = {"0","1"}, message = "显示状态不正确")
|
|
|
+ @ApiModelProperty(value = "是否进行显示")
|
|
|
private Integer showStatus;
|
|
|
+ @NotEmpty
|
|
|
@ApiModelProperty(value = "品牌logo",required = true)
|
|
|
- @NotEmpty(message = "品牌logo不能为空")
|
|
|
private String logo;
|
|
|
@ApiModelProperty(value = "品牌大图")
|
|
|
private String bigPic;
|