fix: adjust docker and any file for starting project

This commit is contained in:
Hafizh A. Y
2025-09-30 14:45:54 +07:00
parent c136206f2d
commit 94a6d41a61
27 changed files with 599 additions and 600 deletions
+15 -3
View File
@@ -8,9 +8,13 @@ import (
// === DTO Structs ===
type {{Pascal .Entity}}ListDTO struct {
type {{Pascal .Entity}}BaseDTO struct {
Id uint `json:"id"`
Name string `json:"name"`
}
type {{Pascal .Entity}}ListDTO struct {
{{Pascal .Entity}}BaseDTO
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
@@ -21,10 +25,18 @@ type {{Pascal .Entity}}DetailDTO struct {
// === Mapper Functions ===
func To{{Pascal .Entity}}BaseDTO(m model.{{Pascal .Entity}}) {{Pascal .Entity}}BaseDTO {
return {{Pascal .Entity}}BaseDTO{
Id: m.Id,
Name: m.Name,
}
}
func To{{Pascal .Entity}}ListDTO(m model.{{Pascal .Entity}}) {{Pascal .Entity}}ListDTO {
return {{Pascal .Entity}}ListDTO{
Id: m.Id,
Name: m.Name,
{{Pascal .Entity}}BaseDTO: To{{Pascal .Entity}}BaseDTO(m),
CreatedAt: m.CreatedAt,
UpdatedAt: m.UpdatedAt,
}
}