2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 06:47:20 +08:00

feat: 初步实现compose template

This commit is contained in:
2026-01-13 23:31:37 +08:00
parent 908509e06b
commit c07a60d1c8
28 changed files with 866 additions and 47 deletions

View File

@@ -0,0 +1,14 @@
package request
import "github.com/acepanel/panel/pkg/types"
type TemplateSlug struct {
Slug string `uri:"slug" validate:"required"`
}
type TemplateCreate struct {
Slug string `json:"slug" validate:"required"`
Name string `json:"name" validate:"required|regex:^[a-zA-Z0-9_-]+$"`
Envs []types.KV `json:"envs"`
AutoFirewall bool `json:"auto_firewall"`
}