feat(app): update
This commit is contained in:
18
pkg/dto/request/VerifyNickNameRequest.go
Normal file
18
pkg/dto/request/VerifyNickNameRequest.go
Normal file
@ -0,0 +1,18 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user