github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/live/set_live_watermark_status.go (about) 1 package live 2 3 import ( 4 github_com_morlay_goqcloud "github.com/morlay/goqcloud" 5 ) 6 7 // 设置水印状态 8 // https://cloud.tencent.com/document/api/267/30151 9 10 type SetLiveWatermarkStatusRequest struct { 11 // 区域 12 Region string `name:"Region"` 13 // 状态。0:停用,1:启用 14 Status int64 `name:"Status"` 15 // 水印ID。 16 WatermarkId int64 `name:"WatermarkId"` 17 } 18 19 func (req *SetLiveWatermarkStatusRequest) Invoke(client github_com_morlay_goqcloud.Client) (*SetLiveWatermarkStatusResponse, error) { 20 resp := &SetLiveWatermarkStatusResponse{} 21 err := client.Request("live", "SetLiveWatermarkStatus", "2018-08-01").Do(req, resp) 22 return resp, err 23 } 24 25 type SetLiveWatermarkStatusResponse struct { 26 github_com_morlay_goqcloud.TencentCloudBaseResponse 27 }