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