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

     1  package iot
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 下发设备控制指令
     8  // https://cloud.tencent.com/document/api/568/16525
     9  
    10  type IssueDeviceControlRequest struct {
    11  	// 控制数据(json)
    12  	ControlData string `name:"ControlData"`
    13  	// 设备名称
    14  	DeviceName string `name:"DeviceName"`
    15  	// 产品Id
    16  	ProductId string `name:"ProductId"`
    17  	// 区域
    18  	Region string `name:"Region"`
    19  }
    20  
    21  func (req *IssueDeviceControlRequest) Invoke(client github_com_morlay_goqcloud.Client) (*IssueDeviceControlResponse, error) {
    22  	resp := &IssueDeviceControlResponse{}
    23  	err := client.Request("iot", "IssueDeviceControl", "2018-01-23").Do(req, resp)
    24  	return resp, err
    25  }
    26  
    27  type IssueDeviceControlResponse struct {
    28  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    29  }