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