You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
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"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ComposeTemplateUpdate struct {
|
|
|
|
From string `json:"from" validate:"required,oneof=edit path"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
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"`
|
|
|
|
Path string `json:"path"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|