sourcefile

package
v3.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*abstract.Service //base class
	// contains filtered or unexported fields
}

Service ***

func NewService

func NewService(absService *abstract.Service) *Service

NewService ***

func (*Service) Delete

func (o *Service) Delete(fileId int64) error

源文件相关: 删除文件

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

func (o *Service) GetDownloadURL(fileId int64, fileName string) (string, error)

源文件相关: 获取文件下载地址 ** 字段 类型 必填 描述 fileId Number Y 文件Id name String N 自定义文件下载名 **

func (*Service) GetInfo

func (o *Service) GetInfo(fileId int64) (*response.FileBean, error)

获取文件信息

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

func (o *Service) Upload(uploadRequest *request.FileUploadRequest) (*response.FileBean, error)

源文件相关: 上传文件 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 **

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL