Files
hm-server-v2/app/main/api/internal/handler/app/getappversionhandler.go
2025-10-07 11:48:29 +08:00

18 lines
406 B
Go

package app
import (
"net/http"
"hm-server/app/main/api/internal/logic/app"
"hm-server/app/main/api/internal/svc"
"hm-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)
}
}