评价等增加长度检验
This commit is contained in:
@ -4,6 +4,7 @@ import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
@ -16,11 +17,13 @@ import java.io.Serializable;
|
||||
public class AddressParam implements Serializable {
|
||||
private String id;
|
||||
@NotBlank
|
||||
@Size(min = 1, max = 30,message = "长度超过了限制")
|
||||
private String real_name;
|
||||
private String post_code;
|
||||
private String is_default;
|
||||
private String wx_export;
|
||||
@NotBlank
|
||||
@Size(min = 1, max = 60,message = "长度超过了限制")
|
||||
private String detail;
|
||||
@NotBlank
|
||||
private String phone;
|
||||
|
Reference in New Issue
Block a user