Files
in-server/app/main/api/internal/handler/app/healthcheckhandler.go

18 lines
400 B
Go
Raw Normal View History

2026-03-18 00:01:48 +08:00
package app
import (
"net/http"
"in-server/app/main/api/internal/logic/app"
"in-server/app/main/api/internal/svc"
"in-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)
}
}