mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-07-18 09:28:03 +08:00
28 lines
687 B
Go
28 lines
687 B
Go
package _123
|
|
|
|
import (
|
|
"github.com/OpenListTeam/OpenList/v4/internal/driver"
|
|
"github.com/OpenListTeam/OpenList/v4/internal/op"
|
|
)
|
|
|
|
type Addition struct {
|
|
Username string `json:"username" required:"true"`
|
|
Password string `json:"password" required:"true"`
|
|
driver.RootID
|
|
//OrderBy string `json:"order_by" type:"select" options:"file_id,file_name,size,update_at" default:"file_name"`
|
|
//OrderDirection string `json:"order_direction" type:"select" options:"asc,desc" default:"asc"`
|
|
AccessToken string
|
|
}
|
|
|
|
var config = driver.Config{
|
|
Name: "123Pan",
|
|
DefaultRoot: "0",
|
|
LocalSort: true,
|
|
}
|
|
|
|
func init() {
|
|
op.RegisterDriver(func() driver.Driver {
|
|
return &Pan123{}
|
|
})
|
|
}
|