github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tbm/describe_brand_social_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/18393
    10  
    11  type DescribeBrandSocialReportRequest 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 *DescribeBrandSocialReportRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeBrandSocialReportResponse, error) {
    23  	resp := &DescribeBrandSocialReportResponse{}
    24  	err := client.Request("tbm", "DescribeBrandSocialReport", "2018-01-29").Do(req, resp)
    25  	return resp, err
    26  }
    27  
    28  type DescribeBrandSocialReportResponse struct {
    29  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    30  	// 按天计算的统计数据
    31  	DateCountSet []*DateCount `json:"DateCountSet"`
    32  	// 累计统计数据
    33  	TotalCount int64 `json:"TotalCount"`
    34  }