perf: 限制昵称长度并优化显示

This commit is contained in:
xiongxiaoyang
2023-12-29 00:34:04 +08:00
parent c62da9bb3a
commit f77792aa3c
6 changed files with 914 additions and 182 deletions

View File

@ -27,7 +27,7 @@ public class User {
@Null(groups = {AddGroup.class})
@Pattern(groups = {
UpdateGroup.class}, regexp = "[\u4E00-\u9FA5A-Za-z0-9_]{1,20}", message = "昵称格式不正确!")
UpdateGroup.class}, regexp = "[\u4E00-\u9FA5A-Za-z0-9_]{1,11}", message = "昵称格式不正确!")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String nickName;