chore: change select values case
This commit is contained in:
43
internal/driver/item.go
Normal file
43
internal/driver/item.go
Normal file
@ -0,0 +1,43 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user