10 lines
189 B
Go
10 lines
189 B
Go
|
package common
|
||
|
|
||
|
type ErrorResponseDTO struct {
|
||
|
Error string `json:"error"`
|
||
|
}
|
||
|
|
||
|
func Error(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
|
||
|
return &ErrorResponseDTO{err}
|
||
|
}
|