mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Feat experimental WebAuth API
This commit is contained in:
12
pkg/filesystem/response/common.go
Normal file
12
pkg/filesystem/response/common.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package response
|
||||
|
||||
import "io"
|
||||
|
||||
// ContentResponse 获取文件内容类方法的通用返回值。
|
||||
// 有些上传策略需要重定向,
|
||||
// 有些直接写文件数据到浏览器
|
||||
type ContentResponse struct {
|
||||
Redirect bool
|
||||
Content io.ReadSeeker
|
||||
URL string
|
||||
}
|
||||
Reference in New Issue
Block a user