bootstrap

This commit is contained in:
微凉
2021-10-27 22:45:36 +08:00
parent 9644cc98c3
commit 55f683b12d
18 changed files with 311 additions and 133 deletions

View File

@ -1,6 +1,9 @@
package drivers
import "github.com/Xhofe/alist/model"
import (
"encoding/json"
"github.com/Xhofe/alist/model"
)
type Driver interface {
Path(path string, account *model.Account) (*model.File, []*model.File, error)
@ -26,3 +29,10 @@ func GetDriverNames() []string {
}
return names
}
type Json map[string]interface{}
func JsonStr(j Json) string {
data, _ := json.Marshal(j)
return string(data)
}