mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-20 16:13:59 +08:00
* feat: Add Website Template * fix: Don't display the template list * feat: Add Mcp TopList * docs: Remove Mcp TopList * Add more languages --------- Co-authored-by: CityFun <31820853+zhengkunwang223@users.noreply.github.com>
47 lines
1.3 KiB
Go
47 lines
1.3 KiB
Go
package request
|
|
|
|
import (
|
|
"github.com/1Panel-dev/1Panel/agent/app/dto"
|
|
)
|
|
|
|
type WebsiteTemplateSearch struct {
|
|
dto.PageInfo
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type WebsiteTemplateCreate struct {
|
|
Name string `json:"name" validate:"required"`
|
|
Type string `json:"type" validate:"required,oneof=single multi"`
|
|
Content string `json:"content"`
|
|
FilePath string `json:"filePath"`
|
|
Variables string `json:"variables"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
|
|
type WebsiteTemplateUpdate struct {
|
|
ID uint `json:"id" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
Type string `json:"type" validate:"required,oneof=single multi"`
|
|
Content string `json:"content"`
|
|
FilePath string `json:"filePath"`
|
|
Variables string `json:"variables"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
|
|
type WebsiteTemplateOutputSearch struct {
|
|
dto.PageInfo
|
|
TemplateID uint `json:"templateID"`
|
|
}
|
|
|
|
type WebsiteTemplateOutputCreate struct {
|
|
TemplateID uint `json:"templateID" validate:"required"`
|
|
Name string `json:"name" validate:"required"`
|
|
VariableValues map[string]string `json:"variableValues"`
|
|
}
|
|
|
|
type WebsitePreviewReq struct {
|
|
TemplateID uint `json:"templateID" validate:"required"`
|
|
VariableValues map[string]string `json:"variableValues"`
|
|
}
|