mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 20:57:14 +08:00
refactor: 用 @Email 和 @Mobile 注解替换了部分验证,提高了代码可读性,修改了多处错误提示信息,使其更加友好
This commit is contained in:
@@ -76,7 +76,7 @@ public class GenConfigDO implements Serializable {
|
||||
*/
|
||||
@Schema(description = "包名称", example = "top.continew.admin.system")
|
||||
@NotBlank(message = "包名称不能为空")
|
||||
@Pattern(regexp = RegexConstants.PACKAGE_NAME, message = "包名称格式错误")
|
||||
@Pattern(regexp = RegexConstants.PACKAGE_NAME, message = "包名称格式不正确")
|
||||
@Length(max = 60, message = "包名称不能超过 {max} 个字符")
|
||||
private String packageName;
|
||||
|
||||
|
Reference in New Issue
Block a user