alist/internal/driver/addition.go

27 lines
475 B
Go
Raw Normal View History

2022-06-06 22:31:56 +08:00
package driver
2022-06-08 16:20:58 +08:00
type Additional interface{}
2022-06-07 18:13:55 +08:00
2022-06-08 16:32:20 +08:00
type Select string
const (
TypeString = "string"
TypeSelect = "select"
TypeBool = "bool"
TypeText = "text"
)
2022-06-07 18:13:55 +08:00
type Item struct {
Name string `json:"name"`
Type string `json:"type"`
Default string `json:"default"`
Values string `json:"values"`
Required bool `json:"required"`
2022-06-08 16:20:58 +08:00
Help string `json:"help"`
}
type Items struct {
Main []Item `json:"main"`
Additional []Item `json:"additional"`
2022-06-06 22:31:56 +08:00
}