Feat: add List method to Handler interface / implement local.List
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user