2022-10-17 01:10:06 +00:00
|
|
|
package dto
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
type ComposeTemplateCreate struct {
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ComposeTemplateUpdate struct {
|
2022-12-13 10:54:28 +00:00
|
|
|
ID uint `json:"id"`
|
2022-10-17 01:10:06 +00:00
|
|
|
Description string `json:"description"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type ComposeTemplateInfo struct {
|
|
|
|
ID uint `json:"id"`
|
|
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Description string `json:"description"`
|
|
|
|
Content string `json:"content"`
|
|
|
|
}
|