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