github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/youmall/describe_history_network_info.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/19897
     9  
    10  type DescribeHistoryNetworkInfoRequest struct {
    11  	// 优mall集团id,通过"指定身份标识获取客户门店列表"接口获取
    12  	CompanyId string `name:"CompanyId"`
    13  	// 拉取结束日期,格式L:2018-09-05,超过StartDay 90天,按StartDay+90天算
    14  	EndDay string `name:"EndDay"`
    15  	// 拉取条数,默认10
    16  	Limit *int64 `name:"Limit,omitempty"`
    17  	// 拉取偏移,返回offset之后的数据
    18  	Offset *int64 `name:"Offset,omitempty"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  	// 优mall店铺id,通过"指定身份标识获取客户门店列表"接口获取,为0则拉取集团全部店铺当前
    22  	ShopId int64 `name:"ShopId"`
    23  	// 拉取开始日期,格式:2018-09-05
    24  	StartDay string `name:"StartDay"`
    25  	// 请求时间戳
    26  	Time int64 `name:"Time"`
    27  }
    28  
    29  func (req *DescribeHistoryNetworkInfoRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DescribeHistoryNetworkInfoResponse, error) {
    30  	resp := &DescribeHistoryNetworkInfoResponse{}
    31  	err := client.Request("youmall", "DescribeHistoryNetworkInfo", "2018-02-28").Do(req, resp)
    32  	return resp, err
    33  }
    34  
    35  type DescribeHistoryNetworkInfoResponse struct {
    36  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    37  	// 网络状态数据
    38  	InstanceSet NetworkHistoryInfo `json:"InstanceSet"`
    39  }