mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-20 00:39:17 +08:00
26 lines
727 B
Go
26 lines
727 B
Go
|
package dto
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
type ComposeTemplateCreate struct {
|
||
|
Name string `json:"name" validate:"required"`
|
||
|
From string `json:"from" validate:"required,oneof=edit path"`
|
||
|
Description string `json:"description"`
|
||
|
Content string `json:"content"`
|
||
|
}
|
||
|
|
||
|
type ComposeTemplateUpdate struct {
|
||
|
From string `json:"from" validate:"required,oneof=edit path"`
|
||
|
Description string `json:"description"`
|
||
|
Content string `json:"content"`
|
||
|
}
|
||
|
|
||
|
type ComposeTemplateInfo struct {
|
||
|
ID uint `json:"id"`
|
||
|
CreatedAt time.Time `json:"createdAt"`
|
||
|
Name string `json:"name"`
|
||
|
From string `json:"from"`
|
||
|
Description string `json:"description"`
|
||
|
Content string `json:"content"`
|
||
|
}
|