2023-03-29 14:58:28 +08:00
|
|
|
package request
|
|
|
|
|
|
|
|
import "github.com/1Panel-dev/1Panel/backend/app/dto"
|
|
|
|
|
|
|
|
type RuntimeSearch struct {
|
|
|
|
dto.PageInfo
|
2023-04-06 00:09:58 +08:00
|
|
|
Type string `json:"type"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Status string `json:"status"`
|
2023-03-29 14:58:28 +08:00
|
|
|
}
|
2023-03-30 16:47:47 +08:00
|
|
|
|
|
|
|
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"`
|
2023-09-18 17:18:20 +08:00
|
|
|
Source string `json:"source"`
|
2023-09-25 17:50:14 +08:00
|
|
|
CodeDir string `json:"codeDir"`
|
|
|
|
NodeConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodeConfig struct {
|
|
|
|
Install bool `json:"install"`
|
|
|
|
Clean bool `json:"clean"`
|
2023-09-28 15:28:21 +08:00
|
|
|
Port int `json:"port"`
|
2023-03-30 16:47:47 +08:00
|
|
|
}
|
2023-03-31 14:02:28 +08:00
|
|
|
|
|
|
|
type RuntimeDelete struct {
|
2023-09-25 17:50:14 +08:00
|
|
|
ID uint `json:"id"`
|
|
|
|
ForceDelete bool `json:"forceDelete"`
|
2023-04-02 16:54:00 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
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"`
|
2023-08-28 22:18:15 +08:00
|
|
|
Rebuild bool `json:"rebuild"`
|
2023-09-18 17:18:20 +08:00
|
|
|
Source string `json:"source"`
|
2023-09-25 17:50:14 +08:00
|
|
|
CodeDir string `json:"codeDir"`
|
|
|
|
NodeConfig
|
|
|
|
}
|
|
|
|
|
|
|
|
type NodePackageReq struct {
|
|
|
|
CodeDir string `json:"codeDir"`
|
2023-03-31 14:02:28 +08:00
|
|
|
}
|
2023-09-26 22:50:16 +08:00
|
|
|
|
|
|
|
type RuntimeOperate struct {
|
|
|
|
Operate string `json:"operate"`
|
|
|
|
ID uint `json:"ID"`
|
|
|
|
}
|
2023-10-09 19:36:32 +08:00
|
|
|
|
|
|
|
type NodeModuleReq struct {
|
|
|
|
Operate string `json:"operate"`
|
|
|
|
ID uint `json:"ID"`
|
|
|
|
Module string `json:"module"`
|
|
|
|
}
|