2022-12-14 07:08:21 +00:00
|
|
|
package response
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/app/model"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AppRes struct {
|
2023-02-14 03:17:02 +00:00
|
|
|
Items []*AppDTO `json:"items"`
|
|
|
|
Total int64 `json:"total"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppUpdateRes struct {
|
|
|
|
Version string `json:"version"`
|
|
|
|
CanUpdate bool `json:"canUpdate"`
|
|
|
|
DownloadPath string `json:"downloadPath"`
|
2022-12-14 07:08:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type AppDTO struct {
|
|
|
|
model.App
|
|
|
|
Versions []string `json:"versions"`
|
|
|
|
Tags []model.Tag `json:"tags"`
|
|
|
|
}
|
|
|
|
|
2023-01-16 07:30:24 +00:00
|
|
|
type TagDTO struct {
|
|
|
|
model.Tag
|
|
|
|
}
|
|
|
|
|
2022-12-14 07:08:21 +00:00
|
|
|
type AppInstalledCheck struct {
|
|
|
|
IsExist bool `json:"isExist"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
App string `json:"app"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
LastBackupAt string `json:"lastBackupAt"`
|
|
|
|
AppInstallID uint `json:"appInstallId"`
|
|
|
|
ContainerName string `json:"containerName"`
|
2022-12-21 09:36:14 +00:00
|
|
|
InstallPath string `json:"installPath"`
|
2022-12-14 07:08:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type AppDetailDTO struct {
|
|
|
|
model.AppDetail
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Params interface{} `json:"params"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppInstalledDTO struct {
|
|
|
|
model.AppInstall
|
|
|
|
Total int `json:"total"`
|
|
|
|
Ready int `json:"ready"`
|
|
|
|
AppName string `json:"appName"`
|
|
|
|
Icon string `json:"icon"`
|
|
|
|
CanUpdate bool `json:"canUpdate"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppService struct {
|
|
|
|
Label string `json:"label"`
|
|
|
|
Value string `json:"value"`
|
|
|
|
Config interface{} `json:"config"`
|
|
|
|
}
|
2023-01-03 06:57:13 +00:00
|
|
|
|
|
|
|
type AppParam struct {
|
|
|
|
Label string `json:"label"`
|
|
|
|
Value interface{} `json:"value"`
|
|
|
|
}
|