Restructurization

This commit is contained in:
Piotr Biernat
2024-12-06 13:24:56 +01:00
parent f9acb885a8
commit d7d8ac5091
19 changed files with 113 additions and 52 deletions

9
common/dto/error.go Normal file
View File

@@ -0,0 +1,9 @@
package common
type ErrorResponseDTO struct {
Error string `json:"error"`
}
func Error(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
return &ErrorResponseDTO{err}
}

5
common/dto/health.go Normal file
View File

@@ -0,0 +1,5 @@
package common
type HealthResponseDTO struct {
Status string `json:"status"`
}