Restructurization
This commit is contained in:
9
common/dto/error.go
Normal file
9
common/dto/error.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package common
|
||||
|
||||
type ErrorResponseDTO struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
func Error(err string) *ErrorResponseDTO { // FIXME Can DTOs have functions?
|
||||
return &ErrorResponseDTO{err}
|
||||
}
|
||||
Reference in New Issue
Block a user