You've already forked VptPassiveAdapter
Initial
This commit is contained in:
16
fs/adapter.go
Normal file
16
fs/adapter.go
Normal 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,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user