Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateAudioDeposit(request *CreateAudioDepositRequest) (response *CreateAudioDepositResponse, err error)
- func (c *Client) CreateDataDeposit(request *CreateDataDepositRequest) (response *CreateDataDepositResponse, err error)
- func (c *Client) CreateDocDeposit(request *CreateDocDepositRequest) (response *CreateDocDepositResponse, err error)
- func (c *Client) CreateHashDeposit(request *CreateHashDepositRequest) (response *CreateHashDepositResponse, err error)
- func (c *Client) CreateHashDepositNoCert(request *CreateHashDepositNoCertRequest) (response *CreateHashDepositNoCertResponse, err error)
- func (c *Client) CreateHashDepositNoSeal(request *CreateHashDepositNoSealRequest) (response *CreateHashDepositNoSealResponse, err error)
- func (c *Client) CreateImageDeposit(request *CreateImageDepositRequest) (response *CreateImageDepositResponse, err error)
- func (c *Client) CreateVideoDeposit(request *CreateVideoDepositRequest) (response *CreateVideoDepositResponse, err error)
- func (c *Client) CreateWebpageDeposit(request *CreateWebpageDepositRequest) (response *CreateWebpageDepositResponse, err error)
- func (c *Client) GetDepositCert(request *GetDepositCertRequest) (response *GetDepositCertResponse, err error)
- func (c *Client) GetDepositFile(request *GetDepositFileRequest) (response *GetDepositFileResponse, err error)
- func (c *Client) GetDepositInfo(request *GetDepositInfoRequest) (response *GetDepositInfoResponse, err error)
- type CreateAudioDepositRequest
- type CreateAudioDepositResponse
- type CreateDataDepositRequest
- type CreateDataDepositResponse
- type CreateDocDepositRequest
- type CreateDocDepositResponse
- type CreateHashDepositNoCertRequest
- type CreateHashDepositNoCertResponse
- type CreateHashDepositNoSealRequest
- type CreateHashDepositNoSealResponse
- type CreateHashDepositRequest
- type CreateHashDepositResponse
- type CreateImageDepositRequest
- type CreateImageDepositResponse
- type CreateVideoDepositRequest
- type CreateVideoDepositResponse
- type CreateWebpageDepositRequest
- type CreateWebpageDepositResponse
- type GetDepositCertRequest
- type GetDepositCertResponse
- type GetDepositFileRequest
- type GetDepositFileResponse
- type GetDepositInfoRequest
- type GetDepositInfoResponse
Constants ¶
const APIVersion = "2021-03-03"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CreateAudioDeposit ¶
func (c *Client) CreateAudioDeposit(request *CreateAudioDepositRequest) (response *CreateAudioDepositResponse, err error)
用户通过本接口向BTOE写入待存证的音频原文件或下载URL,BTOE对音频原文件存储后,将其Hash值存证上链,并生成含有电子签章的区块链存证电子凭证。音频类型支持格式:mp3、wav、wma、midi、flac;原文件上传大小不超过5 MB,下载URL文件大小不超过25 MB。
func (*Client) CreateDataDeposit ¶
func (c *Client) CreateDataDeposit(request *CreateDataDepositRequest) (response *CreateDataDepositResponse, err error)
用户通过本接口向BTOE写入待存证的业务数据明文,业务数据明文存证写入后不可修改,BTOE对业务数据明文存证生成含有电子签章的区块链存证电子凭证。
func (*Client) CreateDocDeposit ¶
func (c *Client) CreateDocDeposit(request *CreateDocDepositRequest) (response *CreateDocDepositResponse, err error)
用户通过本接口向BTOE写入待存证的文档原文件或下载URL,BTOE对文档原文件存储后,将其Hash值存证上链,并生成含有电子签章的区块链存证电子凭证。文档类型支持格式:doc、docx、xls、xlsx、ppt、pptx、 pdf、html、txt、md、csv;原文件上传大小不超过5 MB,下载URL文件大小不超过10 MB。
func (*Client) CreateHashDeposit ¶
func (c *Client) CreateHashDeposit(request *CreateHashDepositRequest) (response *CreateHashDepositResponse, err error)
用户通过本接口向BTOE写入待存证的原文数据Hash值,BTOE对业务数据Hash值存证上链,并生成含有电子签章的区块链存证电子凭证。
func (*Client) CreateHashDepositNoCert ¶
func (c *Client) CreateHashDepositNoCert(request *CreateHashDepositNoCertRequest) (response *CreateHashDepositNoCertResponse, err error)
用户通过本接口向BTOE写入待存证的原文数据Hash值,BTOE对业务数据Hash值存证上链,本接口不生成区块链存证电子凭证。
func (*Client) CreateHashDepositNoSeal ¶
func (c *Client) CreateHashDepositNoSeal(request *CreateHashDepositNoSealRequest) (response *CreateHashDepositNoSealResponse, err error)
用户通过本接口向BTOE写入待存证的原文数据Hash值,BTOE对业务数据Hash值存证上链,并生成无电子签章的区块链存证电子凭证。
func (*Client) CreateImageDeposit ¶
func (c *Client) CreateImageDeposit(request *CreateImageDepositRequest) (response *CreateImageDepositResponse, err error)
用户通过本接口向BTOE写入待存证的图片原文件或下载URL,BTOE对图片原文件存储后,将其Hash值存证上链,并生成含有电子签章的区块链存证电子凭证。图片类型支持格式:png、jpg、jpeg、bmp、gif、svg;原文件上传大小不超过5 MB,下载URL文件大小不超过10 MB。
func (*Client) CreateVideoDeposit ¶
func (c *Client) CreateVideoDeposit(request *CreateVideoDepositRequest) (response *CreateVideoDepositResponse, err error)
用户通过本接口向BTOE写入待存证的视频的原文件或下载URL,BTOE对视频原文件存储后,将其Hash值存证上链,并生成含有电子签章的区块链存证电子凭证。视频文件支持格式:mp4、avi、mkv、mov、flv,wmv,rmvb,3gp;文件大小限制:直接上传原文件不大于5MB,下载URL文件大小不大于200 MB。
func (*Client) CreateWebpageDeposit ¶
func (c *Client) CreateWebpageDeposit(request *CreateWebpageDepositRequest) (response *CreateWebpageDepositResponse, err error)
用户通过本接口向BTOE提交待存证网页的URL,BTOE对URL进行网页快照,并将快照图片存储,将网页快照Hash值存证上链,并生成含有电子签章的区块链存证电子凭证。URL格式必须以http、https开头。
func (*Client) GetDepositCert ¶
func (c *Client) GetDepositCert(request *GetDepositCertRequest) (response *GetDepositCertResponse, err error)
用户通过存证编码向BTOE查询存证电子凭证信息。
func (*Client) GetDepositFile ¶
func (c *Client) GetDepositFile(request *GetDepositFileRequest) (response *GetDepositFileResponse, err error)
用户通过存证编码向BTOE获取存证文件的下载URL。 -注:Hash类存证、业务数据明文存证不产生存证文件。
func (*Client) GetDepositInfo ¶
func (c *Client) GetDepositInfo(request *GetDepositInfoRequest) (response *GetDepositInfoResponse, err error)
用户通过存证编码向BTOE查询存证基本信息。
type CreateAudioDepositRequest ¶
type CreateAudioDepositRequest struct {
*tchttp.BaseRequest
// 存证名称(长度最大30)
EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
// 对应数据Base64文件名称
FileName *string `json:"FileName,omitempty" name:"FileName"`
// 文件hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 业务ID 透传 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 数据Base64编码,大小不超过5M
FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
// 资源访问链接 与fileContent必须二选一
FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 存证描述
EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
}
func NewCreateAudioDepositRequest ¶
func NewCreateAudioDepositRequest() (request *CreateAudioDepositRequest)
func (*CreateAudioDepositRequest) FromJsonString ¶
func (r *CreateAudioDepositRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAudioDepositRequest) ToJsonString ¶
func (r *CreateAudioDepositRequest) ToJsonString() string
type CreateAudioDepositResponse ¶
type CreateAudioDepositResponse struct {
*tchttp.BaseResponse
Response *struct {
// 业务ID 透传 长度最大不超过64
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 请求成功,返回存证编码,用于查询存证后续业务数据
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateAudioDepositResponse ¶
func NewCreateAudioDepositResponse() (response *CreateAudioDepositResponse)
func (*CreateAudioDepositResponse) FromJsonString ¶
func (r *CreateAudioDepositResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateAudioDepositResponse) ToJsonString ¶
func (r *CreateAudioDepositResponse) ToJsonString() string
type CreateDataDepositRequest ¶
type CreateDataDepositRequest struct {
*tchttp.BaseRequest
// 业务数据明文(json格式字符串),最大256kb
EvidenceInfo *string `json:"EvidenceInfo,omitempty" name:"EvidenceInfo"`
// 存证名称(长度最大30)
EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
// 数据hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 业务ID 透传 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 存证描述
EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
}
func NewCreateDataDepositRequest ¶
func NewCreateDataDepositRequest() (request *CreateDataDepositRequest)
func (*CreateDataDepositRequest) FromJsonString ¶
func (r *CreateDataDepositRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDataDepositRequest) ToJsonString ¶
func (r *CreateDataDepositRequest) ToJsonString() string
type CreateDataDepositResponse ¶
type CreateDataDepositResponse struct {
*tchttp.BaseResponse
Response *struct {
// 业务ID 透传 长度最大不超过64
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 请求成功,返回存证编码,用于查询存证后续业务数据
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateDataDepositResponse ¶
func NewCreateDataDepositResponse() (response *CreateDataDepositResponse)
func (*CreateDataDepositResponse) FromJsonString ¶
func (r *CreateDataDepositResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDataDepositResponse) ToJsonString ¶
func (r *CreateDataDepositResponse) ToJsonString() string
type CreateDocDepositRequest ¶
type CreateDocDepositRequest struct {
*tchttp.BaseRequest
// 存证名称(长度最大30)
EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
// 对应数据Base64文件名称
FileName *string `json:"FileName,omitempty" name:"FileName"`
// 文件hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 业务ID 透传 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 数据Base64编码,大小不超过5M
FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
// 资源访问链接 与fileContent必须二选一
FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 存证描述
EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
}
func NewCreateDocDepositRequest ¶
func NewCreateDocDepositRequest() (request *CreateDocDepositRequest)
func (*CreateDocDepositRequest) FromJsonString ¶
func (r *CreateDocDepositRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDocDepositRequest) ToJsonString ¶
func (r *CreateDocDepositRequest) ToJsonString() string
type CreateDocDepositResponse ¶
type CreateDocDepositResponse struct {
*tchttp.BaseResponse
Response *struct {
// 业务ID 透传 长度最大不超过64
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 请求成功,返回存证编码,用于查询存证后续业务数据
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateDocDepositResponse ¶
func NewCreateDocDepositResponse() (response *CreateDocDepositResponse)
func (*CreateDocDepositResponse) FromJsonString ¶
func (r *CreateDocDepositResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateDocDepositResponse) ToJsonString ¶
func (r *CreateDocDepositResponse) ToJsonString() string
type CreateHashDepositNoCertRequest ¶
type CreateHashDepositNoCertRequest struct {
*tchttp.BaseRequest
// 数据hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 该字段为透传字段,方便调用方做业务处理, 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 业务扩展信息
EvidenceInfo *string `json:"EvidenceInfo,omitempty" name:"EvidenceInfo"`
}
func NewCreateHashDepositNoCertRequest ¶
func NewCreateHashDepositNoCertRequest() (request *CreateHashDepositNoCertRequest)
func (*CreateHashDepositNoCertRequest) FromJsonString ¶
func (r *CreateHashDepositNoCertRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHashDepositNoCertRequest) ToJsonString ¶
func (r *CreateHashDepositNoCertRequest) ToJsonString() string
type CreateHashDepositNoCertResponse ¶
type CreateHashDepositNoCertResponse struct {
*tchttp.BaseResponse
Response *struct {
// 透传字段
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 存证编码
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 上链时间
EvidenceTime *string `json:"EvidenceTime,omitempty" name:"EvidenceTime"`
// 区块链交易哈希
EvidenceTxHash *string `json:"EvidenceTxHash,omitempty" name:"EvidenceTxHash"`
// 区块高度
BlockchainHeight *uint64 `json:"BlockchainHeight,omitempty" name:"BlockchainHeight"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateHashDepositNoCertResponse ¶
func NewCreateHashDepositNoCertResponse() (response *CreateHashDepositNoCertResponse)
func (*CreateHashDepositNoCertResponse) FromJsonString ¶
func (r *CreateHashDepositNoCertResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHashDepositNoCertResponse) ToJsonString ¶
func (r *CreateHashDepositNoCertResponse) ToJsonString() string
type CreateHashDepositNoSealRequest ¶
type CreateHashDepositNoSealRequest struct {
*tchttp.BaseRequest
// 数据hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 该字段为透传字段,方便调用方做业务处理, 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 业务扩展信息
EvidenceInfo *string `json:"EvidenceInfo,omitempty" name:"EvidenceInfo"`
}
func NewCreateHashDepositNoSealRequest ¶
func NewCreateHashDepositNoSealRequest() (request *CreateHashDepositNoSealRequest)
func (*CreateHashDepositNoSealRequest) FromJsonString ¶
func (r *CreateHashDepositNoSealRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHashDepositNoSealRequest) ToJsonString ¶
func (r *CreateHashDepositNoSealRequest) ToJsonString() string
type CreateHashDepositNoSealResponse ¶
type CreateHashDepositNoSealResponse struct {
*tchttp.BaseResponse
Response *struct {
// 透传字段
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 存证编码
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 上链时间
EvidenceTime *string `json:"EvidenceTime,omitempty" name:"EvidenceTime"`
// 区块链交易哈希
EvidenceTxHash *string `json:"EvidenceTxHash,omitempty" name:"EvidenceTxHash"`
// 区块高度
BlockchainHeight *uint64 `json:"BlockchainHeight,omitempty" name:"BlockchainHeight"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateHashDepositNoSealResponse ¶
func NewCreateHashDepositNoSealResponse() (response *CreateHashDepositNoSealResponse)
func (*CreateHashDepositNoSealResponse) FromJsonString ¶
func (r *CreateHashDepositNoSealResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHashDepositNoSealResponse) ToJsonString ¶
func (r *CreateHashDepositNoSealResponse) ToJsonString() string
type CreateHashDepositRequest ¶
type CreateHashDepositRequest struct {
*tchttp.BaseRequest
// 存证名称(长度最大30)
EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
// 数据hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 该字段为透传字段,方便调用方做业务处理, 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 存证描述
EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
}
func NewCreateHashDepositRequest ¶
func NewCreateHashDepositRequest() (request *CreateHashDepositRequest)
func (*CreateHashDepositRequest) FromJsonString ¶
func (r *CreateHashDepositRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHashDepositRequest) ToJsonString ¶
func (r *CreateHashDepositRequest) ToJsonString() string
type CreateHashDepositResponse ¶
type CreateHashDepositResponse struct {
*tchttp.BaseResponse
Response *struct {
// 透传字段
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 存证编码
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateHashDepositResponse ¶
func NewCreateHashDepositResponse() (response *CreateHashDepositResponse)
func (*CreateHashDepositResponse) FromJsonString ¶
func (r *CreateHashDepositResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateHashDepositResponse) ToJsonString ¶
func (r *CreateHashDepositResponse) ToJsonString() string
type CreateImageDepositRequest ¶
type CreateImageDepositRequest struct {
*tchttp.BaseRequest
// 存证名称(长度最大30)
EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
// 对应数据Base64文件名称 test.png
FileName *string `json:"FileName,omitempty" name:"FileName"`
// 文件hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 业务ID 透传 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 数据Base64编码,大小不超过5M
FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
// 资源访问链接 与fileContent必须二选一
FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 存证描述
EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
}
func NewCreateImageDepositRequest ¶
func NewCreateImageDepositRequest() (request *CreateImageDepositRequest)
func (*CreateImageDepositRequest) FromJsonString ¶
func (r *CreateImageDepositRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateImageDepositRequest) ToJsonString ¶
func (r *CreateImageDepositRequest) ToJsonString() string
type CreateImageDepositResponse ¶
type CreateImageDepositResponse struct {
*tchttp.BaseResponse
Response *struct {
// 业务ID 透传 长度最大不超过64
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 请求成功,返回存证编码,用于查询存证后续业务数据
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateImageDepositResponse ¶
func NewCreateImageDepositResponse() (response *CreateImageDepositResponse)
func (*CreateImageDepositResponse) FromJsonString ¶
func (r *CreateImageDepositResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateImageDepositResponse) ToJsonString ¶
func (r *CreateImageDepositResponse) ToJsonString() string
type CreateVideoDepositRequest ¶
type CreateVideoDepositRequest struct {
*tchttp.BaseRequest
// 存证名称(长度最大30)
EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
// 对应数据Base64文件名称
FileName *string `json:"FileName,omitempty" name:"FileName"`
// 文件hash
EvidenceHash *string `json:"EvidenceHash,omitempty" name:"EvidenceHash"`
// 业务ID 透传 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 数据Base64编码,大小不超过5M
FileContent *string `json:"FileContent,omitempty" name:"FileContent"`
// 资源访问链接 与fileContent必须二选一
FileUrl *string `json:"FileUrl,omitempty" name:"FileUrl"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 存证描述
EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
}
func NewCreateVideoDepositRequest ¶
func NewCreateVideoDepositRequest() (request *CreateVideoDepositRequest)
func (*CreateVideoDepositRequest) FromJsonString ¶
func (r *CreateVideoDepositRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateVideoDepositRequest) ToJsonString ¶
func (r *CreateVideoDepositRequest) ToJsonString() string
type CreateVideoDepositResponse ¶
type CreateVideoDepositResponse struct {
*tchttp.BaseResponse
Response *struct {
// 业务ID 透传 长度最大不超过64
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 请求成功,返回存证编码,用于查询存证后续业务数据
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateVideoDepositResponse ¶
func NewCreateVideoDepositResponse() (response *CreateVideoDepositResponse)
func (*CreateVideoDepositResponse) FromJsonString ¶
func (r *CreateVideoDepositResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateVideoDepositResponse) ToJsonString ¶
func (r *CreateVideoDepositResponse) ToJsonString() string
type CreateWebpageDepositRequest ¶
type CreateWebpageDepositRequest struct {
*tchttp.BaseRequest
// 存证名称(长度最大30)
EvidenceName *string `json:"EvidenceName,omitempty" name:"EvidenceName"`
// 网页链接
EvidenceUrl *string `json:"EvidenceUrl,omitempty" name:"EvidenceUrl"`
// 业务ID 透传 长度最大不超过64
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 算法类型 0 SM3, 1 SHA256, 2 SHA384 默认0
HashType *uint64 `json:"HashType,omitempty" name:"HashType"`
// 存证描述
EvidenceDescription *string `json:"EvidenceDescription,omitempty" name:"EvidenceDescription"`
}
func NewCreateWebpageDepositRequest ¶
func NewCreateWebpageDepositRequest() (request *CreateWebpageDepositRequest)
func (*CreateWebpageDepositRequest) FromJsonString ¶
func (r *CreateWebpageDepositRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateWebpageDepositRequest) ToJsonString ¶
func (r *CreateWebpageDepositRequest) ToJsonString() string
type CreateWebpageDepositResponse ¶
type CreateWebpageDepositResponse struct {
*tchttp.BaseResponse
Response *struct {
// 业务ID 透传 长度最大不超过64
// 注意:此字段可能返回 null,表示取不到有效值。
BusinessId *string `json:"BusinessId,omitempty" name:"BusinessId"`
// 请求成功,返回存证编码,用于查询存证后续业务数据
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateWebpageDepositResponse ¶
func NewCreateWebpageDepositResponse() (response *CreateWebpageDepositResponse)
func (*CreateWebpageDepositResponse) FromJsonString ¶
func (r *CreateWebpageDepositResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*CreateWebpageDepositResponse) ToJsonString ¶
func (r *CreateWebpageDepositResponse) ToJsonString() string
type GetDepositCertRequest ¶
type GetDepositCertRequest struct {
*tchttp.BaseRequest
// 存证编码
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
}
func NewGetDepositCertRequest ¶
func NewGetDepositCertRequest() (request *GetDepositCertRequest)
func (*GetDepositCertRequest) FromJsonString ¶
func (r *GetDepositCertRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDepositCertRequest) ToJsonString ¶
func (r *GetDepositCertRequest) ToJsonString() string
type GetDepositCertResponse ¶
type GetDepositCertResponse struct {
*tchttp.BaseResponse
Response *struct {
// 存证编码
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 存证证书文件临时链接
EvidenceCert *string `json:"EvidenceCert,omitempty" name:"EvidenceCert"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetDepositCertResponse ¶
func NewGetDepositCertResponse() (response *GetDepositCertResponse)
func (*GetDepositCertResponse) FromJsonString ¶
func (r *GetDepositCertResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDepositCertResponse) ToJsonString ¶
func (r *GetDepositCertResponse) ToJsonString() string
type GetDepositFileRequest ¶
type GetDepositFileRequest struct {
*tchttp.BaseRequest
// 存证编码
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
}
func NewGetDepositFileRequest ¶
func NewGetDepositFileRequest() (request *GetDepositFileRequest)
func (*GetDepositFileRequest) FromJsonString ¶
func (r *GetDepositFileRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDepositFileRequest) ToJsonString ¶
func (r *GetDepositFileRequest) ToJsonString() string
type GetDepositFileResponse ¶
type GetDepositFileResponse struct {
*tchttp.BaseResponse
Response *struct {
// 存证编号
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 存证文件临时链接
EvidenceFile *string `json:"EvidenceFile,omitempty" name:"EvidenceFile"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetDepositFileResponse ¶
func NewGetDepositFileResponse() (response *GetDepositFileResponse)
func (*GetDepositFileResponse) FromJsonString ¶
func (r *GetDepositFileResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDepositFileResponse) ToJsonString ¶
func (r *GetDepositFileResponse) ToJsonString() string
type GetDepositInfoRequest ¶
type GetDepositInfoRequest struct {
*tchttp.BaseRequest
// 存证编码
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
}
func NewGetDepositInfoRequest ¶
func NewGetDepositInfoRequest() (request *GetDepositInfoRequest)
func (*GetDepositInfoRequest) FromJsonString ¶
func (r *GetDepositInfoRequest) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDepositInfoRequest) ToJsonString ¶
func (r *GetDepositInfoRequest) ToJsonString() string
type GetDepositInfoResponse ¶
type GetDepositInfoResponse struct {
*tchttp.BaseResponse
Response *struct {
// 存证编号
EvidenceId *string `json:"EvidenceId,omitempty" name:"EvidenceId"`
// 上链时间
EvidenceTime *string `json:"EvidenceTime,omitempty" name:"EvidenceTime"`
// 区块链交易哈希
EvidenceTxHash *string `json:"EvidenceTxHash,omitempty" name:"EvidenceTxHash"`
// 区块高度
BlockchainHeight *int64 `json:"BlockchainHeight,omitempty" name:"BlockchainHeight"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetDepositInfoResponse ¶
func NewGetDepositInfoResponse() (response *GetDepositInfoResponse)
func (*GetDepositInfoResponse) FromJsonString ¶
func (r *GetDepositInfoResponse) FromJsonString(s string) error
It is highly **NOT** recommended to use this function because it has no param check, nor strict type check
func (*GetDepositInfoResponse) ToJsonString ¶
func (r *GetDepositInfoResponse) ToJsonString() string