店铺省市区非必填
This commit is contained in:
parent
b5565fba21
commit
67747a2aae
|
@ -104,22 +104,19 @@ public class Store extends BaseEntity
|
|||
|
||||
/** 省 */
|
||||
@Excel(name = "省")
|
||||
@NotNull(message = "省不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class})
|
||||
@Size(min = 1, max = 30, message = "省长度必须在1~30之间")
|
||||
@Size(max = 30, message = "省长度不允许超过30字符")
|
||||
@JsonView(JsonViewProfile.App.class)
|
||||
private String province;
|
||||
|
||||
/** 市 */
|
||||
@Excel(name = "市")
|
||||
@NotNull(message = "市不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class})
|
||||
@Size(min = 1, max = 60, message = "市长度必须在1~60之间")
|
||||
@Size(max = 60, message = "市长度不允许超过60字符")
|
||||
@JsonView(JsonViewProfile.App.class)
|
||||
private String city;
|
||||
|
||||
/** 区县 */
|
||||
@Excel(name = "区县")
|
||||
@NotNull(message = "区县不能为空", groups = {ValidGroup.Create.class, ValidGroup.FrontCreate.class})
|
||||
@Size(min = 1, max = 60, message = "区县长度必须在1~60之间")
|
||||
@Size( max = 60, message = "区县长度不允许超过60字符")
|
||||
@JsonView(JsonViewProfile.App.class)
|
||||
private String county;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user