Refactoring

This commit is contained in:
Piotr Biernat
2024-12-06 16:44:42 +01:00
parent 2cf4d4c25d
commit 5a5f643be8
18 changed files with 62 additions and 66 deletions

View File

@@ -4,6 +4,6 @@ type ErrorResponseDTO struct {
Error string `json:"error"`
}
func Error(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
func NewError(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
return &ErrorResponseDTO{err}
}

View File

@@ -34,7 +34,7 @@ func (c *Currency) Get() *Currency {
return curr
}
return c.getDefault()
return c.Default()
}
func (c *Currency) Equals(oc *Currency) bool {