[feature] Merged with api-prototype
This commit is contained in:
9
internal/app/definition/error.go
Normal file
9
internal/app/definition/error.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package definition
|
||||
|
||||
type ErrorResponse struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
func Error(err string) *ErrorResponse {
|
||||
return &ErrorResponse{err}
|
||||
}
|
||||
Reference in New Issue
Block a user