github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/tbm/describe_brand_pos_comments.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/18395
    10  
    11  type DescribeBrandPosCommentsRequest 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  	// 查询开始时间
    23  	StartDate time.Time `name:"StartDate"`
    24  }
    25  
    26  func (req *DescribeBrandPosCommentsRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeBrandPosCommentsResponse, error) {
    27  	resp := &DescribeBrandPosCommentsResponse{}
    28  	err := client.Request("tbm", "DescribeBrandPosComments", "2018-01-29").Do(req, resp)
    29  	return resp, err
    30  }
    31  
    32  type DescribeBrandPosCommentsResponse struct {
    33  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    34  	// 评论列表
    35  	BrandCommentSet []*CommentInfo `json:"BrandCommentSet"`
    36  	// 总的好评个数
    37  	TotalComments int64 `json:"TotalComments"`
    38  }