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:
14
internal/http/request/template.go
Normal file
14
internal/http/request/template.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user