Files
servicebase/pkg/dto/request/UpdateMobileRequest.go
2025-11-19 14:24:13 +08:00

32 lines
541 B
Go

package request
import "errors"
type UpdateMobileRequest struct {
BaseRequest
NewMobile string
NewRegionCode string
Vericode string
}
// 注册用户信息签名验证
func (request *UpdateMobileRequest) CheckParameter() (err error) {
if len(request.AccessToken) == 0 {
err = errors.New("AccessToken不能为空")
return
}
if len(request.NewMobile) == 0 {
err = errors.New("新手机号不能为空")
return
}
if len(request.Vericode) == 0 {
err = errors.New("验证码不能为空")
return
}
return
}