github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tbm/describe_industry_news.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/18401 10 11 type DescribeIndustryNewsRequest struct { 12 // 查询结束时间 13 EndDate time.Time `name:"EndDate"` 14 // 行业ID 15 IndustryId string `name:"IndustryId"` 16 // 查询条数上限,默认20 17 Limit *int64 `name:"Limit,omitempty"` 18 // 查询偏移,默认从0开始 19 Offset *int64 `name:"Offset,omitempty"` 20 // 区域 21 Region string `name:"Region"` 22 // 是否显示列表,若为 true,则返回文章列表 23 ShowList *bool `name:"ShowList,omitempty"` 24 // 查询开始时间 25 StartDate time.Time `name:"StartDate"` 26 } 27 28 func (req *DescribeIndustryNewsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeIndustryNewsResponse, error) { 29 resp := &DescribeIndustryNewsResponse{} 30 err := client.Request("tbm", "DescribeIndustryNews", "2018-01-29").Do(req, resp) 31 return resp, err 32 } 33 34 type DescribeIndustryNewsResponse struct { 35 github_com_morlay_goqcloud.TencentCloudBaseResponse 36 // 总计疑似负面数量 37 AdverseCount int64 `json:"AdverseCount"` 38 // 按天统计的数量列表 39 DateCountSet []*DateCount `json:"DateCountSet"` 40 // 总计来源数量 41 FromCount int64 `json:"FromCount"` 42 // 总计文章数量 43 NewsCount int64 `json:"NewsCount"` 44 // 文章列表 45 NewsSet []*IndustryNews `json:"NewsSet"` 46 }