From b538de17bc4b10195da05cb078d6cf24d683c618 Mon Sep 17 00:00:00 2001 From: asas6559 <302811456@qq.com> Date: Thu, 4 Mar 2021 21:02:07 +0800 Subject: [PATCH] Update SysUserBaseVO.java MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 限制用户账号长度最小为四个字符 --- .../modules/system/controller/user/vo/user/SysUserBaseVO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/iocoder/dashboard/modules/system/controller/user/vo/user/SysUserBaseVO.java b/src/main/java/cn/iocoder/dashboard/modules/system/controller/user/vo/user/SysUserBaseVO.java index c0a58326b..7698ea039 100644 --- a/src/main/java/cn/iocoder/dashboard/modules/system/controller/user/vo/user/SysUserBaseVO.java +++ b/src/main/java/cn/iocoder/dashboard/modules/system/controller/user/vo/user/SysUserBaseVO.java @@ -17,7 +17,7 @@ public class SysUserBaseVO { @ApiModelProperty(value = "用户账号", required = true, example = "yudao") @NotBlank(message = "用户账号不能为空") - @Size(max = 30, message = "用户账号长度不能超过30个字符") + @Size(min = 4, max = 30, message = "用户账号长度为 4-30 个字符") private String username; @ApiModelProperty(value = "用户昵称", required = true, example = "芋艿")