26 lines
392 B
Go
26 lines
392 B
Go
package request
|
|
|
|
import "errors"
|
|
|
|
type UpdateUserBirthdayRequest struct {
|
|
BaseRequest
|
|
|
|
Birthday string
|
|
}
|
|
|
|
// 参数验证
|
|
func (request *UpdateUserBirthdayRequest) CheckParameter() (err error) {
|
|
|
|
if len(request.AccessToken) == 0 {
|
|
err = errors.New("AccessToken不能为空")
|
|
return
|
|
}
|
|
|
|
if len(request.Birthday) == 0 {
|
|
err = errors.New("Birthday不能为空")
|
|
return
|
|
}
|
|
|
|
return
|
|
}
|