feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -0,0 +1,43 @@
package request
import (
"errors"
)
type CompleteUserInfoRequest struct {
Mobile string
Birthday string
NickName string
Gender string
Avatar string
}
// 注册用户信息签名验证
func (request *CompleteUserInfoRequest) CheckParameter() (err error) {
if len(request.Mobile) == 0 {
err = errors.New("手机号不能为空")
return
}
if len(request.NickName) == 0 {
err = errors.New("昵称不能为空")
return
}
if len(request.Gender) == 0 {
err = errors.New("性别不能为空")
return
}
if len(request.Avatar) == 0 {
err = errors.New("头像不能为空")
return
}
if len(request.NickName) > 30 {
err = errors.New("昵称长度不能超过30")
return
}
return
}