2022-12-14 07:08:21 +00:00
|
|
|
package request
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/app/dto"
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/constant"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AppSearch struct {
|
|
|
|
dto.PageInfo
|
2023-02-08 08:21:17 +00:00
|
|
|
Name string `json:"name"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Recommend bool `json:"recommend"`
|
2022-12-14 07:08:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type AppInstallCreate struct {
|
|
|
|
AppDetailId uint `json:"appDetailId" validate:"required"`
|
|
|
|
Params map[string]interface{} `json:"params"`
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
Services map[string]string `json:"services"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppInstalledSearch struct {
|
|
|
|
dto.PageInfo
|
2023-01-16 07:30:24 +00:00
|
|
|
Type string `json:"type"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Tags []string `json:"tags"`
|
|
|
|
Update bool `json:"update"`
|
|
|
|
Unused bool `json:"unused"`
|
2022-12-14 07:08:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type AppBackupSearch struct {
|
|
|
|
dto.PageInfo
|
|
|
|
AppInstallID uint `json:"appInstallID"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppBackupDelete struct {
|
|
|
|
Ids []uint `json:"ids"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type AppInstalledOperate struct {
|
2022-12-21 03:32:52 +00:00
|
|
|
InstallId uint `json:"installId" validate:"required"`
|
|
|
|
BackupId uint `json:"backupId"`
|
|
|
|
DetailId uint `json:"detailId"`
|
|
|
|
Operate constant.AppOperate `json:"operate" validate:"required"`
|
|
|
|
ForceDelete bool `json:"forceDelete"`
|
|
|
|
DeleteBackup bool `json:"deleteBackup"`
|
2023-03-06 09:24:00 +00:00
|
|
|
DeleteDB bool `json:"deleteDB"`
|
2022-12-14 07:08:21 +00:00
|
|
|
}
|
|
|
|
|
2023-03-08 03:04:22 +00:00
|
|
|
type AppInstalledUpdate struct {
|
|
|
|
InstallId uint `json:"installId" validate:"required"`
|
|
|
|
Params map[string]interface{} `json:"params" validate:"required"`
|
|
|
|
}
|
|
|
|
|
2022-12-14 07:08:21 +00:00
|
|
|
type PortUpdate struct {
|
|
|
|
Key string `json:"key"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Port int64 `json:"port"`
|
|
|
|
}
|