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

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
}