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

     1  package ds
     2  
     3  import (
     4  	github_com_morlay_goqcloud "github.com/morlay/goqcloud"
     5  )
     6  
     7  // 检测验证码
     8  // https://cloud.tencent.com/document/api/869/17796
     9  
    10  type CheckVcodeRequest struct {
    11  	// 帐号ID
    12  	AccountResId string `name:"AccountResId"`
    13  	// 合同ID
    14  	ContractResId string `name:"ContractResId"`
    15  	// 模块名
    16  	Module string `name:"Module"`
    17  	// 操作名
    18  	Operation string `name:"Operation"`
    19  	// 区域
    20  	Region string `name:"Region"`
    21  	// 验证码
    22  	VerifyCode string `name:"VerifyCode"`
    23  }
    24  
    25  func (req *CheckVcodeRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CheckVcodeResponse, error) {
    26  	resp := &CheckVcodeResponse{}
    27  	err := client.Request("ds", "CheckVcode", "2018-05-23").Do(req, resp)
    28  	return resp, err
    29  }
    30  
    31  type CheckVcodeResponse struct {
    32  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    33  }