Initial commit: GovAI 政务AI平台

This commit is contained in:
freedakgmail
2026-06-15 23:48:37 +08:00
commit 0f490f72a9
245 changed files with 51669 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package handler
import (
"net/http"
"runtime"
"time"
"github.com/enterprise-ai-platform/server/internal/response"
)
var startTime = time.Now()
func HealthCheck(w http.ResponseWriter, r *http.Request) {
response.JSON(w, http.StatusOK, map[string]any{
"status": "ok",
"service": "aily-portal-api",
"uptime": time.Since(startTime).String(),
"go": runtime.Version(),
})
}