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

31 lines
502 B
Go

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
}