2024-07-23 14:48:37 +08:00
|
|
|
package dto
|
|
|
|
|
|
|
|
|
|
import "time"
|
|
|
|
|
|
|
|
|
|
type ComposeTemplateCreate struct {
|
|
|
|
|
Name string `json:"name" validate:"required"`
|
|
|
|
|
Description string `json:"description"`
|
|
|
|
|
Content string `json:"content"`
|
|
|
|
|
}
|
|
|
|
|
|
2025-10-29 13:36:24 +08:00
|
|
|
type ComposeTemplateBatch struct {
|
|
|
|
|
Templates []ComposeTemplateCreate `json:"templates" validate:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-23 14:48:37 +08:00
|
|
|
type ComposeTemplateUpdate struct {
|
|
|
|
|
ID uint `json:"id"`
|
|
|
|
|
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"`
|
|
|
|
|
}
|