2022-12-13 17:20:13 +08:00
|
|
|
package response
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/1Panel-dev/1Panel/backend/app/model"
|
2024-06-18 18:06:54 +08:00
|
|
|
"time"
|
2022-12-13 17:20:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
type WebsiteDTO struct {
|
|
|
|
model.Website
|
2022-12-26 11:42:37 +08:00
|
|
|
ErrorLogPath string `json:"errorLogPath"`
|
|
|
|
AccessLogPath string `json:"accessLogPath"`
|
2022-12-26 18:32:13 +08:00
|
|
|
SitePath string `json:"sitePath"`
|
2023-03-09 17:50:47 +08:00
|
|
|
AppName string `json:"appName"`
|
2023-04-10 16:24:26 +08:00
|
|
|
RuntimeName string `json:"runtimeName"`
|
2024-06-18 18:06:54 +08:00
|
|
|
SiteDir string `gorm:"type:varchar;" json:"siteDir"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteRes struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Protocol string `json:"protocol"`
|
|
|
|
PrimaryDomain string `json:"primaryDomain"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Alias string `json:"alias"`
|
|
|
|
Remark string `json:"remark"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
ExpireDate time.Time `json:"expireDate"`
|
|
|
|
SitePath string `json:"sitePath"`
|
|
|
|
AppName string `json:"appName"`
|
|
|
|
RuntimeName string `json:"runtimeName"`
|
|
|
|
SSLExpireDate time.Time `json:"sslExpireDate"`
|
|
|
|
SSLStatus string `json:"sslStatus"`
|
2024-08-06 11:34:29 +08:00
|
|
|
AppInstallID uint `json:"appInstallId"`
|
2022-12-13 17:20:13 +08:00
|
|
|
}
|
|
|
|
|
2024-01-11 11:01:40 +08:00
|
|
|
type WebsiteOption struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
PrimaryDomain string `json:"primaryDomain"`
|
|
|
|
Alias string `json:"alias"`
|
|
|
|
}
|
|
|
|
|
2022-12-13 17:20:13 +08:00
|
|
|
type WebsitePreInstallCheck struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
Version string `json:"version"`
|
|
|
|
AppName string `json:"appName"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteNginxConfig struct {
|
2022-12-13 18:54:46 +08:00
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Params []NginxParam `json:"params"`
|
2022-12-13 17:20:13 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
type WebsiteHTTPS struct {
|
2022-12-28 18:59:05 +08:00
|
|
|
Enable bool `json:"enable"`
|
|
|
|
HttpConfig string `json:"httpConfig"`
|
|
|
|
SSL model.WebsiteSSL `json:"SSL"`
|
|
|
|
SSLProtocol []string `json:"SSLProtocol"`
|
|
|
|
Algorithm string `json:"algorithm"`
|
2024-06-14 18:22:39 +08:00
|
|
|
Hsts bool `json:"hsts"`
|
2022-12-13 17:20:13 +08:00
|
|
|
}
|
2022-12-30 17:39:17 +08:00
|
|
|
|
|
|
|
type WebsiteLog struct {
|
|
|
|
Enable bool `json:"enable"`
|
|
|
|
Content string `json:"content"`
|
2023-08-25 23:42:14 +08:00
|
|
|
End bool `json:"end"`
|
2023-09-15 18:02:16 +08:00
|
|
|
Path string `json:"path"`
|
2022-12-30 17:39:17 +08:00
|
|
|
}
|
2023-04-06 00:09:58 +08:00
|
|
|
|
|
|
|
type PHPConfig struct {
|
2023-05-24 16:31:18 +08:00
|
|
|
Params map[string]string `json:"params"`
|
|
|
|
DisableFunctions []string `json:"disableFunctions"`
|
2023-05-24 18:38:50 +08:00
|
|
|
UploadMaxSize string `json:"uploadMaxSize"`
|
2023-04-06 00:09:58 +08:00
|
|
|
}
|
2023-04-14 16:01:06 +08:00
|
|
|
|
|
|
|
type NginxRewriteRes struct {
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
2023-09-05 22:28:11 +08:00
|
|
|
|
|
|
|
type WebsiteDirConfig struct {
|
|
|
|
Dirs []string `json:"dirs"`
|
|
|
|
User string `json:"user"`
|
|
|
|
UserGroup string `json:"userGroup"`
|
|
|
|
Msg string `json:"msg"`
|
|
|
|
}
|
2024-06-19 10:17:36 +08:00
|
|
|
|
|
|
|
type WebsiteHtmlRes struct {
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|