github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/youmall/describe_zone_flow_age_info_by_zone_id.go (about)

     1  package youmall
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 获取指定区域人流各年龄占比
     8  // https://cloud.tencent.com/document/api/860/20418
     9  
    10  type DescribeZoneFlowAgeInfoByZoneIDRequest struct {
    11  	// 集团ID
    12  	CompanyId string `name:"CompanyId"`
    13  	// 结束日期,格式yyyy-MM-dd
    14  	EndDate string `name:"EndDate"`
    15  	// 区域
    16  	Region string `name:"Region"`
    17  	// 店铺ID
    18  	ShopId int64 `name:"ShopId"`
    19  	// 开始日期,格式yyyy-MM-dd
    20  	StartDate string `name:"StartDate"`
    21  	// 区域ID
    22  	ZoneId int64 `name:"ZoneId"`
    23  }
    24  
    25  func (req *DescribeZoneFlowAgeInfoByZoneIDRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeZoneFlowAgeInfoByZoneIDResponse, error) {
    26  	resp := &DescribeZoneFlowAgeInfoByZoneIDResponse{}
    27  	err := client.Request("youmall", "DescribeZoneFlowAgeInfoByZoneId", "2018-02-28").Do(req, resp)
    28  	return resp, err
    29  }
    30  
    31  type DescribeZoneFlowAgeInfoByZoneIDResponse struct {
    32  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    33  	// 集团ID
    34  	CompanyId string `json:"CompanyId"`
    35  	// 当前年龄段占比
    36  	Data []*float64 `json:"Data"`
    37  	// 店铺ID
    38  	ShopId int64 `json:"ShopId"`
    39  	// 区域ID
    40  	ZoneId int64 `json:"ZoneId"`
    41  	// 区域名称
    42  	ZoneName string `json:"ZoneName"`
    43  }