api-entities/common/dto/error.go

10 lines
186 B
Go
Raw Normal View History

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"`
}
func Error(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
return &ErrorResponseDTO{err}
}