1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-20 00:39:17 +08:00
1Panel/backend/app/dto/website.go

44 lines
1.2 KiB
Go
Raw Normal View History

2022-10-28 17:04:57 +08:00
package dto
2022-11-02 15:19:14 +08:00
import "github.com/1Panel-dev/1Panel/backend/app/model"
type WebSiteReq struct {
2022-10-28 17:04:57 +08:00
PageInfo
}
2022-11-02 15:19:14 +08:00
type AppType string
const (
NewApp AppType = "new"
InstalledApp AppType = "installed"
)
2022-10-28 17:04:57 +08:00
type WebSiteCreate struct {
2022-11-02 15:19:14 +08:00
PrimaryDomain string `json:"primaryDomain" validate:"required"`
Type string `json:"type" validate:"required"`
Alias string `json:"alias" validate:"required"`
Remark string `json:"remark"`
Domains []string `json:"domains"`
AppType AppType `json:"appType" validate:"required"`
AppInstall NewAppInstall `json:"appInstall"`
AppID uint `json:"appID"`
AppInstallID uint `json:"appInstallID"`
WebSiteGroupID uint `json:"webSiteGroupID" validate:"required"`
}
type NewAppInstall struct {
Name string `json:"name"`
AppDetailId uint `json:"appDetailID"`
Params map[string]interface{} `json:"params"`
}
type WebSiteDel struct {
ID uint `json:"id"`
DeleteApp bool `json:"deleteApp"`
DeleteBackup bool `json:"deleteBackup"`
}
type WebSiteDTO struct {
model.WebSite
2022-10-28 17:04:57 +08:00
}