mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-05 10:28:59 +08:00
55 lines
1.5 KiB
Go
55 lines
1.5 KiB
Go
package request
|
|
|
|
import "github.com/1Panel-dev/1Panel/backend/app/dto"
|
|
|
|
type RuntimeSearch struct {
|
|
dto.PageInfo
|
|
Type string `json:"type"`
|
|
Name string `json:"name"`
|
|
Status string `json:"status"`
|
|
}
|
|
|
|
type RuntimeCreate struct {
|
|
AppDetailID uint `json:"appDetailId"`
|
|
Name string `json:"name"`
|
|
Params map[string]interface{} `json:"params"`
|
|
Resource string `json:"resource"`
|
|
Image string `json:"image"`
|
|
Type string `json:"type"`
|
|
Version string `json:"version"`
|
|
Source string `json:"source"`
|
|
CodeDir string `json:"codeDir"`
|
|
NodeConfig
|
|
}
|
|
|
|
type NodeConfig struct {
|
|
Install bool `json:"install"`
|
|
Clean bool `json:"clean"`
|
|
}
|
|
|
|
type RuntimeDelete struct {
|
|
ID uint `json:"id"`
|
|
ForceDelete bool `json:"forceDelete"`
|
|
}
|
|
|
|
type RuntimeUpdate struct {
|
|
Name string `json:"name"`
|
|
ID uint `json:"id"`
|
|
Params map[string]interface{} `json:"params"`
|
|
Image string `json:"image"`
|
|
Version string `json:"version"`
|
|
Rebuild bool `json:"rebuild"`
|
|
Source string `json:"source"`
|
|
CodeDir string `json:"codeDir"`
|
|
NodeConfig
|
|
}
|
|
|
|
type NodePackageReq struct {
|
|
CodeDir string `json:"codeDir"`
|
|
}
|
|
|
|
type RuntimeOperate struct {
|
|
Operate string `json:"operate"`
|
|
ID uint `json:"ID"`
|
|
}
|