Modify: add general ReaderCloserSeeker interface for handler GET method to return

This commit is contained in:
HFO4 committed 2019-12-13 20:54:28 +08:00
1 parent f262caf1f5
commit 03dcd9a9e0
6 files changed
+19 -25

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ type Handler struct {
}
// Get 获取文件内容
func (handler Handler) Get(ctx context.Context, path string) (io.ReadSeeker, error) {
func (handler Handler) Get(ctx context.Context, path string) (response.RSCloser, error) {
// 打开文件
file, err := os.Open(path)
if err != nil {