2022-11-01 07:31:31 +00:00
|
|
|
package _115
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alist-org/alist/v3/internal/driver"
|
|
|
|
"github.com/alist-org/alist/v3/internal/op"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Addition struct {
|
2023-03-13 12:02:52 +00:00
|
|
|
Cookie string `json:"cookie" type:"text" help:"one of QR code token and cookie required"`
|
|
|
|
QRCodeToken string `json:"qrcode_token" type:"text" help:"one of QR code token and cookie required"`
|
|
|
|
PageSize int64 `json:"page_size" type:"number" default:"56" help:"list api per page size of 115 driver"`
|
2022-11-01 07:31:31 +00:00
|
|
|
driver.RootID
|
|
|
|
}
|
|
|
|
|
|
|
|
var config = driver.Config{
|
2023-03-05 09:59:19 +00:00
|
|
|
Name: "115 Cloud",
|
|
|
|
DefaultRoot: "0",
|
|
|
|
OnlyProxy: true,
|
|
|
|
OnlyLocal: true,
|
|
|
|
NoOverwriteUpload: true,
|
2022-11-01 07:31:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2022-12-13 10:03:30 +00:00
|
|
|
op.RegisterDriver(func() driver.Driver {
|
|
|
|
return &Pan115{}
|
|
|
|
})
|
2022-11-01 07:31:31 +00:00
|
|
|
}
|