github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tbm/describe_brand_neg_comments.go (about) 1 package tbm 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 time "time" 6 ) 7 8 // 获取品牌用户差评列表 9 // https://cloud.tencent.com/document/api/853/18396 10 11 type DescribeBrandNegCommentsRequest struct { 12 // 品牌ID 13 BrandId string `name:"BrandId"` 14 // 查询结束时间 15 EndDate time.Time `name:"EndDate"` 16 // 查询条数上限,默认20 17 Limit *int64 `name:"Limit,omitempty"` 18 // 查询偏移,默认从0开始 19 Offset *int64 `name:"Offset,omitempty"` 20 // 区域 21 Region string `name:"Region"` 22 // 查询开始时间 23 StartDate time.Time `name:"StartDate"` 24 } 25 26 func (req *DescribeBrandNegCommentsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeBrandNegCommentsResponse, error) { 27 resp := &DescribeBrandNegCommentsResponse{} 28 err := client.Request("tbm", "DescribeBrandNegComments", "2018-01-29").Do(req, resp) 29 return resp, err 30 } 31 32 type DescribeBrandNegCommentsResponse struct { 33 github_com_morlay_goqcloud.TencentCloudBaseResponse 34 // 评论列表 35 BrandCommentSet []*CommentInfo `json:"BrandCommentSet"` 36 // 总的差评个数 37 TotalComments int64 `json:"TotalComments"` 38 }