Refactoring
This commit is contained in:
@@ -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}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ func (c *Currency) Get() *Currency {
|
||||
return curr
|
||||
}
|
||||
|
||||
return c.getDefault()
|
||||
return c.Default()
|
||||
}
|
||||
|
||||
func (c *Currency) Equals(oc *Currency) bool {
|
||||
|
||||
Reference in New Issue
Block a user