github.com/morlay/goqcloud@v0.0.0-20181123023149-b00e0b0b9afc/clients/ds/create_contract_by_upload.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/17795
     9  
    10  type CreateContractByUploadRequest struct {
    11  	// 合同上传链接地址
    12  	ContractFile string `name:"ContractFile"`
    13  	// 合同名称
    14  	ContractName string `name:"ContractName"`
    15  	// 合同发起方帐号ID
    16  	Initiator string `name:"Initiator"`
    17  	// 模块名
    18  	Module string `name:"Module"`
    19  	// 操作名
    20  	Operation string `name:"Operation"`
    21  	// 区域
    22  	Region string `name:"Region"`
    23  	// 备注
    24  	Remarks *string `name:"Remarks,omitempty"`
    25  	// 签署人信息
    26  	SignInfos []*SignInfo `name:"SignInfos"`
    27  }
    28  
    29  func (req *CreateContractByUploadRequest) Invoke(client github_com_morlay_goqcloud.Client) (*CreateContractByUploadResponse, error) {
    30  	resp := &CreateContractByUploadResponse{}
    31  	err := client.Request("ds", "CreateContractByUpload", "2018-05-23").Do(req, resp)
    32  	return resp, err
    33  }
    34  
    35  type CreateContractByUploadResponse struct {
    36  	github_com_morlay_goqcloud.TencentCloudBaseResponse
    37  	// 任务ID
    38  	TaskId int64 `json:"TaskId"`
    39  }