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