github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tbm/describe_brand_social_opinion.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/18394
    10  
    11  type DescribeBrandSocialOpinionRequest 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  	// 列表显示标记,若为true,则返回文章列表详情
    23  	ShowList *bool `name:"ShowList,omitempty"`
    24  	// 检索开始时间
    25  	StartDate time.Time `name:"StartDate"`
    26  }
    27  
    28  func (req *DescribeBrandSocialOpinionRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeBrandSocialOpinionResponse, error) {
    29  	resp := &DescribeBrandSocialOpinionResponse{}
    30  	err := client.Request("tbm", "DescribeBrandSocialOpinion", "2018-01-29").Do(req, resp)
    31  	return resp, err
    32  }
    33  
    34  type DescribeBrandSocialOpinionResponse struct {
    35  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    36  	// 疑似负面报道总数
    37  	AdverseCount int64 `json:"AdverseCount"`
    38  	// 文章总数
    39  	ArticleCount int64 `json:"ArticleCount"`
    40  	// 文章列表详情
    41  	ArticleSet []*BrandReportArticle `json:"ArticleSet"`
    42  	// 来源统计总数
    43  	FromCount int64 `json:"FromCount"`
    44  }