mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
16 lines
440 B
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"`
|
|
}
|