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,47 @@
package request
import "errors"
type UpdateUserSignRequest struct {
BaseRequest
Sign string
}
// 参数验证
func (request *UpdateUserSignRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
var arr = []rune(request.Sign)
if len(arr) > 500 {
return errors.New("不能超过500字")
}
return
}
type UpdateUserGenderRequest struct {
BaseRequest
Gender string
}
// 参数验证
func (request *UpdateUserGenderRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
if len(request.Gender) == 0 {
err = errors.New("性别不能为空")
return
}
return
}