2024-12-06 16:14:44 +01:00
|
|
|
package dto
|
2024-12-06 13:24:56 +01:00
|
|
|
|
|
|
|
type ErrorResponseDTO struct {
|
|
|
|
Error string `json:"error"`
|
|
|
|
}
|
|
|
|
|
2024-12-06 16:44:42 +01:00
|
|
|
func NewError(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
|
2024-12-06 13:24:56 +01:00
|
|
|
return &ErrorResponseDTO{err}
|
|
|
|
}
|