add initial application structure with configuration, logging, and health check endpoints
This commit is contained in:
@@ -3,7 +3,7 @@ package vo
|
||||
type Response struct {
|
||||
Code string `json:"code"`
|
||||
Message string `json:"message"`
|
||||
Data any `json:"data,omitempty"`
|
||||
Data any `json:"data"`
|
||||
}
|
||||
|
||||
func OK(data any) Response {
|
||||
@@ -18,5 +18,6 @@ func Error(message string) Response {
|
||||
return Response{
|
||||
Code: "ERROR",
|
||||
Message: message,
|
||||
Data: nil,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user