2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 12:40:25 +08:00
Files
panel/internal/http/request/template.go

16 lines
440 B
Go

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_-]+$"`
Compose string `json:"compose"`
Envs []types.KV `json:"envs"`
AutoFirewall bool `json:"auto_firewall"`
}