use errorStatus & move error structs to responses.go

This commit is contained in:
SowinskiBraeden committed 2022-09-28 08:20:58 -07:00
1 parent 488ab8adf3
commit b926102645
3 files changed
+18 -27

No files matched your search

+11
View File
@@ -11,3 +11,14 @@ type UserResponse struct {
Message string `json:"message"`
Data map[string]interface{} `json:"data"`
}
// ErrorMessageResponse returns the error message response struct
type ErrorMessageResponse struct {
Response MessageError
}
// MessageError contains the inner details for the error message response
type MessageError struct {
Message string
Error string
}