add initial application structure with configuration, logging, and health check endpoints

This commit is contained in:
kever
2026-01-15 22:48:28 +08:00
parent fe67f09e72
commit 2efefc7e05
24 changed files with 178 additions and 83 deletions

View File

@@ -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,
}
}