package request import "errors" type GetUserTimelineRequest struct { BaseRequest TargetUserId string PageNo string PageSize string } // 获取用户动态 func (request *GetUserTimelineRequest) CheckParameter() (err error) { if len(request.AccessToken) == 0 { err = errors.New("AccessToken不能为空") return } if len(request.TargetUserId) == 0 { err = errors.New("TargetUserId不能为空") return } return }