Added migrations
This commit is contained in:
parent
4a16acc87e
commit
5b18009658
34 changed files with 929 additions and 154 deletions
13
internal/interfaces/api/responses/error_response.go
Normal file
13
internal/interfaces/api/responses/error_response.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package responses
|
||||
|
||||
type ErrorResponse struct {
|
||||
ErrorCode int `json:"error_code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
func CreateErrorResponse(code int, msg string) ErrorResponse {
|
||||
return ErrorResponse{
|
||||
ErrorCode: code,
|
||||
Message: msg,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue