mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/1Panel-dev/1Panel.git
synced 2026-09-21 00:24:12 +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>
29 lines
833 B
Go
29 lines
833 B
Go
package model
|
|
|
|
type WebsiteTemplate struct {
|
|
BaseModel
|
|
Name string `gorm:"not null" json:"name"`
|
|
Type string `gorm:"not null" json:"type"` // single | multi
|
|
Content string `gorm:"type:longtext" json:"content"`
|
|
FilePath string `json:"filePath"`
|
|
Variables string `gorm:"type:text" json:"variables"`
|
|
Remark string `json:"remark"`
|
|
}
|
|
|
|
func (w WebsiteTemplate) TableName() string {
|
|
return "website_templates"
|
|
}
|
|
|
|
type WebsiteTemplateOutput struct {
|
|
BaseModel
|
|
Name string `gorm:"not null" json:"name"`
|
|
TemplateID uint `gorm:"not null" json:"templateID"`
|
|
TemplateType string `json:"templateType"`
|
|
VariableValues string `gorm:"type:text" json:"variableValues"`
|
|
OutputPath string `json:"outputPath"`
|
|
}
|
|
|
|
func (w WebsiteTemplateOutput) TableName() string {
|
|
return "website_template_outputs"
|
|
}
|