Merge branch 'develop' into feature/purchase-app

This commit is contained in:
hossein 2026-03-25 06:57:02 +00:00
commit 5d91cd9947
13 changed files with 49 additions and 0 deletions

1
patientapp/app.go Normal file
View File

@ -0,0 +1 @@
package patientapp

View File

View File

1
paymentapp/app.go Normal file
View File

@ -0,0 +1 @@
package paymentapp

1
paymentapp/config.go Normal file
View File

@ -0,0 +1 @@
package paymentapp

View File

@ -0,0 +1,15 @@
package http
type Handler struct {
}
func NewHandler(userService UserService) *Handler {
return &Handler{
}
}
func (h *Handler) HealthCheck(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("OK"))
}

View File

@ -0,0 +1,5 @@
package http
func (s *Server) registerRoutes() {
s.httpServer.GET("/health", s.handler.HealthCheck)
}

View File

@ -0,0 +1,22 @@
package http
type Server struct {
httpServer *httpserver.Server
handler *Handler
}
func NewServer(httpServer *httpserver.Server, handler *Handler) *Server {
return &Server{
httpServer: httpServer,
handler: handler,
}
}
func (s *Server) Serve() error {
s.registerRoutes()
return s.httpServer.Start()
}
func (s *Server) Stop() error {
return s.httpServer.Stop()
}

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service

View File

@ -0,0 +1 @@
package service