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