github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tbm/describe_brand_comment_count.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/18399 10 11 type DescribeBrandCommentCountRequest struct { 12 // 品牌ID 13 BrandId string `name:"BrandId"` 14 // 查询结束日期 15 EndDate time.Time `name:"EndDate"` 16 // 区域 17 Region string `name:"Region"` 18 // 查询开始日期 19 StartDate time.Time `name:"StartDate"` 20 } 21 22 func (req *DescribeBrandCommentCountRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeBrandCommentCountResponse, error) { 23 resp := &DescribeBrandCommentCountResponse{} 24 err := client.Request("tbm", "DescribeBrandCommentCount", "2018-01-29").Do(req, resp) 25 return resp, err 26 } 27 28 type DescribeBrandCommentCountResponse struct { 29 github_com_morlay_goqcloud.TencentCloudBaseResponse 30 // 按天统计好评/差评数 31 CommentSet []*Comment `json:"CommentSet"` 32 }