Feat: download file and get file downloading session

This commit is contained in:
HFO4 committed 2019-12-13 20:46:11 +08:00
1 parent ad02a659a6
commit f262caf1f5
10 files changed
+150 -18

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ type Handler interface {
Thumb(ctx context.Context, path string) (*response.ContentResponse, error)
// 获取外链地址,url
Source(ctx context.Context, path string, url url.URL, expires int64) (string, error)
//获取下载地址
GetDownloadURL(ctx context.Context, path string, url url.URL, expires int64) (string, error)
}
// FileSystem 管理文件的文件系统