mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-28 16:46:56 +08:00
46 lines
1.3 KiB
Go
46 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"`
|
||
|
|
}
|