github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tbm/describe_brand_media_report.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/18397 10 11 type DescribeBrandMediaReportRequest 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 *DescribeBrandMediaReportRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeBrandMediaReportResponse, error) { 23 resp := &DescribeBrandMediaReportResponse{} 24 err := client.Request("tbm", "DescribeBrandMediaReport", "2018-01-29").Do(req, resp) 25 return resp, err 26 } 27 28 type DescribeBrandMediaReportResponse struct { 29 github_com_morlay_goqcloud.TencentCloudBaseResponse 30 // 按天计算的每天文章数 31 DateCountSet []*DateCount `json:"DateCountSet"` 32 // 查询范围内文章总数 33 TotalCount int64 `json:"TotalCount"` 34 }