mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Modify: Decide whether to redirect when previewing based on storage policy
This commit is contained in:
@@ -7,11 +7,11 @@ import "io"
|
||||
// 有些直接写文件数据到浏览器
|
||||
type ContentResponse struct {
|
||||
Redirect bool
|
||||
Content io.ReadSeeker
|
||||
Content RSCloser
|
||||
URL string
|
||||
}
|
||||
|
||||
// 存储策略适配器返回的文件流,有些策略需要带有Closer
|
||||
// RSCloser 存储策略适配器返回的文件流,有些策略需要带有Closer
|
||||
type RSCloser interface {
|
||||
io.ReadSeeker
|
||||
io.Closer
|
||||
|
||||
Reference in New Issue
Block a user