|
|
@ -3,14 +3,14 @@ package com.gitee.sop.storyweb.controller.param; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.Data; |
|
|
|
import org.hibernate.validator.constraints.Length; |
|
|
|
import org.hibernate.validator.constraints.Length; |
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotEmpty; |
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
|
|
|
|
|
|
|
|
|
@Data |
|
|
|
@Data |
|
|
|
public class GoodsParam { |
|
|
|
public class GoodsParam { |
|
|
|
// @NotEmpty(message = "商品名称不能为空")
|
|
|
|
@NotBlank(message = "商品名称不能为空") |
|
|
|
private String goods_name; |
|
|
|
private String goods_name; |
|
|
|
|
|
|
|
|
|
|
|
@NotEmpty(message = "{goods.remark.notNull}") |
|
|
|
@NotBlank(message = "{goods.remark.notNull}") |
|
|
|
private String goods_remark; |
|
|
|
private String goods_remark; |
|
|
|
|
|
|
|
|
|
|
|
// 传参的格式:{xxx}=value1,value2...
|
|
|
|
// 传参的格式:{xxx}=value1,value2...
|
|
|
|