mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 11:29:29 +08:00
refactor: change driver interface
This commit is contained in:
@@ -3,6 +3,7 @@ package model
|
||||
import "time"
|
||||
|
||||
type File struct {
|
||||
ID string
|
||||
Name string
|
||||
Size uint64
|
||||
Modified time.Time
|
||||
@@ -25,7 +26,6 @@ func (f File) IsDir() bool {
|
||||
return f.IsFolder
|
||||
}
|
||||
|
||||
type FileWithId struct {
|
||||
Id string
|
||||
File
|
||||
func (f File) GetID() string {
|
||||
return f.ID
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user