perbaikan
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user