fix: allow two-character member names
Deploy olons-admin production / deploy (push) Successful in 9m10s

This commit is contained in:
richjohnrambo
2026-10-19 18:12:11 +08:00
parent d35cad4615
commit 4288782b2b
3 changed files with 3 additions and 3 deletions
@@ -75,7 +75,7 @@ type AppMemberViewModel struct {
type AppMemberEditInp struct {
Id uint64 `json:"id"`
Username string `json:"username" v:"required|length:3,64#用户名不能为空|用户名长度为3到64个字符"`
Username string `json:"username" v:"required|length:2,64#用户名不能为空|用户名长度为2到64个字符"`
Mobile string `json:"mobile" v:"phone-loose#手机号格式不正确"`
Password string `json:"password"`
TradePassword string `json:"tradePassword"`