This commit is contained in:
2025-02-07 22:58:01 +08:00
commit ba4aad0ae5
23 changed files with 1061 additions and 0 deletions

16
fs/adapter.go Normal file
View File

@ -0,0 +1,16 @@
package fs
import (
"ZhenTuLocalPassiveAdapter/config"
"ZhenTuLocalPassiveAdapter/dto"
)
type Adapter interface {
GetFileList(path string) ([]dto.File, error)
}
func GetAdapter() Adapter {
return &LocalAdapter{
config.Config.Record.Storage,
}
}