mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
45 lines
1.6 KiB
Go
45 lines
1.6 KiB
Go
package dto
|
|
|
|
import (
|
|
"github.com/APIParkLab/APIPark/model/plugin_model"
|
|
"github.com/eolinker/go-common/auto"
|
|
)
|
|
|
|
type Item struct {
|
|
Name string `json:"name"`
|
|
Cname string `json:"cname"`
|
|
Extend string `json:"extend"`
|
|
Desc string `json:"desc"`
|
|
Operator *auto.Label `json:"operator,omitempty" aolabel:"operator"`
|
|
Update *auto.TimeLabel `json:"update,omitempty"`
|
|
Create *auto.TimeLabel `json:"create,omitempty"`
|
|
}
|
|
type Define struct {
|
|
Name string `json:"name"`
|
|
Cname string `json:"cname"`
|
|
Extend string `json:"extend"`
|
|
Desc string `json:"desc"`
|
|
Render plugin_model.Render `json:"render"`
|
|
Default plugin_model.ConfigType `json:"default"`
|
|
}
|
|
type PluginOutput struct {
|
|
//Cluster auto.Label `json:"partition,omitempty" aolabel:"partition"`
|
|
Name string `json:"name"`
|
|
Cname string `json:"cname"`
|
|
Extend string `json:"extend"`
|
|
Desc string `json:"desc"`
|
|
Status plugin_model.Status `json:"status"`
|
|
Config plugin_model.ConfigType `json:"config"`
|
|
Operator *auto.Label `json:"operator,omitempty" aolabel:"operator"`
|
|
Update *auto.TimeLabel `json:"update,omitempty"`
|
|
Create *auto.TimeLabel `json:"create,omitempty"`
|
|
}
|
|
|
|
type PluginOption struct {
|
|
Name string `json:"name"`
|
|
Cname string `json:"cname"`
|
|
Desc string `json:"desc"`
|
|
Default plugin_model.ConfigType `json:"default"`
|
|
Render plugin_model.Render `json:"render"`
|
|
}
|