This commit is contained in:
2026-01-22 16:04:12 +08:00
commit 864c4168b9
605 changed files with 64539 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package app
import (
"net/http"
"tyc-server/app/main/api/internal/logic/app"
"tyc-server/app/main/api/internal/svc"
"tyc-server/common/result"
)
func GetAppVersionHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := app.NewGetAppVersionLogic(r.Context(), svcCtx)
resp, err := l.GetAppVersion()
result.HttpResult(r, w, resp, err)
}
}

View File

@@ -0,0 +1,17 @@
package app
import (
"net/http"
"tyc-server/app/main/api/internal/logic/app"
"tyc-server/app/main/api/internal/svc"
"tyc-server/common/result"
)
func HealthCheckHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
l := app.NewHealthCheckLogic(r.Context(), svcCtx)
resp, err := l.HealthCheck()
result.HttpResult(r, w, resp, err)
}
}