1Panel/backend/app/dto/request/runtime.go

34 lines
969 B
Go
Raw Normal View History

2023-03-29 06:58:28 +00:00
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"`
2023-03-29 06:58:28 +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-03-31 06:02:28 +00:00
type RuntimeDelete struct {
2023-04-02 08:54:00 +00:00
ID uint `json:"id"`
}
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"`
2023-03-31 06:02:28 +00:00
}