perbaikan

This commit is contained in:
2025-08-15 20:34:19 +07:00
parent 66f6d0a83b
commit c14587996e
3 changed files with 6 additions and 5 deletions

View File

@@ -284,7 +284,6 @@ type %sGetByIDResponse struct {
}
if data.HasPost {
modelContent += fmt.Sprintf(`// %sCreateRequest represents the request for creating %s
type %sCreateRequest struct {
Name string `+"`json:\"name\" binding:\"required\"`"+`
// Add more fields as needed
@@ -335,6 +334,7 @@ type ErrorResponse struct {
}
func updateRoutesFile(data HandlerData) {
fmt.Println("Updating routes file...") // Debug statement
routesFile := "internal/routes/v1/routes.go"
// Read existing routes file