Documentation ¶
Index ¶
- type Service
- func (o *Service) Delete(fileId int64) error
- func (o *Service) GetAppendFile(appendFileId int64) (*response.AppendFileBean, error)
- func (o *Service) GetDownloadURL(fileId int64, fileName string) (string, error)
- func (o *Service) GetInfo(fileId int64) (*response.FileBean, error)
- func (o *Service) GetList() ([]*response.FileBean, error)
- func (o *Service) GetListEx(offset, rows int, status string, startTime, endTime string) ([]*response.FileBean, error)
- func (o *Service) GetSupportFile() (*response.FileSupportBean, error)
- func (o *Service) GetUploadStatus(fileId int64) (*response.FileUploadStatusBean, error)
- func (o *Service) Upload(uploadRequest *request.FileUploadRequest) (*response.FileBean, error)
- func (o *Service) UploadAppendFile(file *multipart.FileHeader, appendFileId int64) (*response.AppendFileBean, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
Service ***
func (*Service) GetAppendFile ¶
func (o *Service) GetAppendFile(appendFileId int64) (*response.AppendFileBean, error)
GetAppendFile same to GetAppendFile ** 字段 类型 必填 描述 appendFileId Number Y append sourcefile id **
func (*Service) GetDownloadURL ¶
源文件相关: 获取文件下载地址 ** 字段 类型 必填 描述 fileId Number Y 文件Id name String N 自定义文件下载名 **
func (*Service) GetList ¶
获取文件信息列表 GET https://file.bimface.com/files http://static.bimface.com/restful-apidoc/dist/file.html#_listfilesusingget
func (*Service) GetListEx ¶
func (o *Service) GetListEx(offset, rows int, status string, startTime, endTime string) ([]*response.FileBean, error)
获取文件信息列表 GET https://file.bimface.com/files offset : 查询结果偏移,从查询结果的第offset条开始返回数据 rows : 查询结果数, 默认为100, 最大500 status : 文件状态,uploading,success,failure startTime: 起始日期,格式为 yyyy-MM-dd endTime : 截止日期,格式为 yyyy-MM-dd
func (*Service) GetSupportFile ¶
func (o *Service) GetSupportFile() (*response.FileSupportBean, error)
GetSupportFile ***
func (*Service) GetUploadStatus ¶
func (o *Service) GetUploadStatus(fileId int64) (*response.FileUploadStatusBean, error)
GetUploadStatus **
func (*Service) Upload ¶
源文件相关: 上传文件 http://static.bimface.com/book/restful/articles/api/file/upload.html ** 字段 类型 必填 描述 示例 name String Y 文件的全名,使用URL编码(UTF-8),最多256个字符 sourceId String N 调用方的文件源Id,不能重复 url String N 文件的下载地址,使用URL编码(UTF-8),最多512个字符,注:在pull方式下必填,必须以http(s)://开头 **
func (*Service) UploadAppendFile ¶
func (o *Service) UploadAppendFile(file *multipart.FileHeader, appendFileId int64) (*response.AppendFileBean, error)
断点续传: 追加上传 ** 字段 类型 必填 描述 appendFileId Number Y 追加文件id position Number N 追加上传开始位置,默认为0 **