2022-10-17 09:10:06 +08:00
|
|
|
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"`
|
2022-10-17 16:04:39 +08:00
|
|
|
Path string `json:"path"`
|
2022-10-17 09:10:06 +08:00
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ComposeTemplateUpdate struct {
|
|
|
|
From string `json:"from" validate:"required,oneof=edit path"`
|
|
|
|
Description string `json:"description"`
|
2022-10-17 16:04:39 +08:00
|
|
|
Path string `json:"path"`
|
2022-10-17 09:10:06 +08:00
|
|
|
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"`
|
2022-10-17 16:04:39 +08:00
|
|
|
Path string `json:"path"`
|
2022-10-17 09:10:06 +08:00
|
|
|
Content string `json:"content"`
|
|
|
|
}
|