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"`
@@ -9,7 +9,7 @@ import (
)
type AppMemberRegisterInp struct {
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:"required|phone-loose#手机号不能为空|手机号格式不正确"`
Password string `json:"password" v:"required|length:6,64#密码不能为空|密码长度为6到64个字符"`
InviteCode string `json:"inviteCode" v:"required#请输入邀请码"`