华为云区块链引擎服务 HBS-文件下载
时间:2025-02-12 14:52:37
文件下载
- 接口方法
func (bc *BsClient) DownloadFile(filePath, fileName string, versionId int) error
- 参数说明
参数
类型
说明
filePath
string
文件下载到本地的路径。
fileName
string
待下载文件在链上的名称。
versionId
int
待下载文件的版本号。
- 返回值
类型
说明
error
下载成功返回类型为nil,反之返回error。
父主题: Go SDK介绍
support.huaweicloud.com/devg-hbs/hbs_devg_32.html