|
|
|
|
|
|
|
|
import org.hibernate.validator.constraints.Length; |
|
|
import org.hibernate.validator.constraints.Length; |
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
import org.springframework.format.annotation.DateTimeFormat; |
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank; |
|
|
import javax.validation.constraints.NotEmpty; |
|
|
import javax.validation.constraints.NotEmpty; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 品牌 |
|
|
* 品牌 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@NotEmpty(message = "品牌不能为空") |
|
|
@Length(max = 100, message = "品牌长度不能超过100个字") |
|
|
@Length(max = 100, message = "品牌长度不能超过100个字") |
|
|
private String brand; |
|
|
private String brand; |
|
|
|
|
|
|