feat: login service and implement database storage
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type ErrorResponseData struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
}
|
||||
|
||||
type ErrorResponse struct {
|
||||
Error ErrorResponseData `json:"error"`
|
||||
}
|
||||
|
||||
func setDefaultHeaders(ctx context.Context, headers http.Header) {
|
||||
headers.Set("Content-Type", "application/json")
|
||||
}
|
||||
Reference in New Issue
Block a user