Browse Source

飞行棋品牌必填

master
牧羊人 4 years ago
parent
commit
5be08d7ce2
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/java/com/taauav/admin/entity/TauvEquipment.java

+ 2
- 0
src/main/java/com/taauav/admin/entity/TauvEquipment.java View File

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;



Loading…
Cancel
Save