use errorStatus & move error structs to responses.go
This commit is contained in:
3 files changed
+18
-27
No files matched your search
@@ -1,12 +0,0 @@
|
||||
package models
|
||||
|
||||
// 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
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user