github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/iotcloud/delete_product.go (about) 1 package iotcloud 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 删除产品 8 // https://cloud.tencent.com/document/api/634/19478 9 10 type DeleteProductRequest struct { 11 // 需要删除的产品 ID 12 ProductId string `name:"ProductId"` 13 // 区域 14 Region string `name:"Region"` 15 } 16 17 func (req *DeleteProductRequest) Invoke(client github_com_morlay_goqcloud.Client) (*DeleteProductResponse, error) { 18 resp := &DeleteProductResponse{} 19 err := client.Request("iotcloud", "DeleteProduct", "2018-06-14").Do(req, resp) 20 return resp, err 21 } 22 23 type DeleteProductResponse struct { 24 github_com_morlay_goqcloud.TencentCloudBaseResponse 25 }