mirror of https://github.com/Xhofe/alist
25 lines
546 B
Go
25 lines
546 B
Go
![]() |
package mediatrack
|
||
|
|
||
|
import (
|
||
|
"github.com/alist-org/alist/v3/internal/driver"
|
||
|
"github.com/alist-org/alist/v3/internal/op"
|
||
|
)
|
||
|
|
||
|
type Addition struct {
|
||
|
AccessToken string `json:"access_token" required:"true"`
|
||
|
ProjectID string `json:"project_id"`
|
||
|
driver.RootID
|
||
|
OrderBy string `json:"order_by" type:"select" options:"updated_at,title,size" default:"title"`
|
||
|
OrderDesc bool `json:"order_desc"`
|
||
|
}
|
||
|
|
||
|
var config = driver.Config{
|
||
|
Name: "MediaTrack",
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
op.RegisterDriver(config, func() driver.Driver {
|
||
|
return &MediaTrack{}
|
||
|
})
|
||
|
}
|