Feat: add List method to Handler interface / implement local.List

This commit is contained in:
HFO4
2020-04-24 11:08:07 +08:00
parent 6006ff4d22
commit f7311f906b
11 changed files with 97 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
package response
import "io"
import (
"io"
"time"
)
// ContentResponse 获取文件内容类方法的通用返回值。
// 有些上传策略需要重定向,
@@ -17,3 +20,13 @@ type RSCloser interface {
io.ReadSeeker
io.Closer
}
// Object 列出文件、目录时返回的对象
type Object struct {
Name string
RelativePath string
Source string
Size uint64
IsDir bool
LastModify time.Time
}