mirror of https://github.com/Xhofe/alist
44 lines
872 B
Go
44 lines
872 B
Go
![]() |
package driver
|
||
|
|
||
![]() |
type Additional interface{}
|
||
![]() |
|
||
![]() |
type Select string
|
||
|
|
||
![]() |
type Item struct {
|
||
|
Name string `json:"name"`
|
||
|
Type string `json:"type"`
|
||
|
Default string `json:"default"`
|
||
|
Values string `json:"values"`
|
||
|
Required bool `json:"required"`
|
||
![]() |
Help string `json:"help"`
|
||
|
}
|
||
|
|
||
|
type Items struct {
|
||
![]() |
Common []Item `json:"common"`
|
||
![]() |
Additional []Item `json:"additional"`
|
||
![]() |
}
|
||
![]() |
|
||
|
type IRootFolderPath interface {
|
||
![]() |
GetRootFolderPath() string
|
||
|
}
|
||
|
|
||
|
type IRootFolderId interface {
|
||
|
GetRootFolderId() string
|
||
![]() |
}
|
||
|
|
||
|
type RootFolderPath struct {
|
||
![]() |
RootFolder string `json:"root_folder" required:"true" help:"root folder path"`
|
||
![]() |
}
|
||
|
|
||
![]() |
type RootFolderId struct {
|
||
![]() |
RootFolder string `json:"root_folder" required:"true" help:"root folder id"`
|
||
![]() |
}
|
||
|
|
||
|
func (r RootFolderPath) GetRootFolderPath() string {
|
||
|
return r.RootFolder
|
||
|
}
|
||
|
|
||
|
func (r RootFolderId) GetRootFolderId() string {
|
||
![]() |
return r.RootFolder
|
||
|
}
|