mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
package request
|
|
|
|
import (
|
|
"github.com/1Panel-dev/1Panel/backend/app/dto"
|
|
"github.com/1Panel-dev/1Panel/backend/constant"
|
|
)
|
|
|
|
type AppSearch struct {
|
|
dto.PageInfo
|
|
Name string `json:"name"`
|
|
Tags []string `json:"tags"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
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
|
|
Type string `json:"type"`
|
|
Name string `json:"name"`
|
|
}
|
|
|
|
type AppBackupSearch struct {
|
|
dto.PageInfo
|
|
AppInstallID uint `json:"appInstallID"`
|
|
}
|
|
|
|
type AppBackupDelete struct {
|
|
Ids []uint `json:"ids"`
|
|
}
|
|
|
|
type AppInstalledOperate struct {
|
|
InstallId uint `json:"installId" validate:"required"`
|
|
BackupId uint `json:"backupId"`
|
|
DetailId uint `json:"detailId"`
|
|
Operate constant.AppOperate `json:"operate" validate:"required"`
|
|
}
|
|
|
|
type PortUpdate struct {
|
|
Key string `json:"key"`
|
|
Name string `json:"name"`
|
|
Port int64 `json:"port"`
|
|
}
|