32 lines
541 B
Go
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
|
|
}
|