店铺省市区非必填

This commit is contained in:
墨大叔 2024-09-09 13:58:15 +08:00
parent b5565fba21
commit 67747a2aae

View File

@ -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;