client md result non lab

This commit is contained in:
sindhu
2024-05-09 13:36:36 +07:00
parent 698e81eda7
commit 4b2470ea84
5 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package client_handlers
import (
"cpone/utils"
client_mdresultnonlab "cpone/views/client/mdresultnonlab"
"github.com/labstack/echo/v4"
)
type MdResultNonLabService interface {
}
func NewMdResultNonLabHandler(us MdResultNonLabService) *MdResultNonLabHandler {
return &MdResultNonLabHandler{
MdResultNonLabService: us,
}
}
type MdResultNonLabHandler struct {
MdResultNonLabService MdResultNonLabService
}
func (uh *MdResultNonLabHandler) ShowMdResultNonLab(c echo.Context) error {
helo := client_mdresultnonlab.Show()
return utils.View(c, helo)
}

View File

@@ -96,4 +96,8 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) {
lhargasingle := client_services.NewServicesMdHargaSingle(appStore)
lhhargasingle := client_handlers.NewMdHargaSingleHandler(lhargasingle)
public.GET("/md/hargasingle", lhhargasingle.ShowMdHargaSingle)
lresultnonlab := client_services.NewServicesMdResultNonLab(appStore)
lhresultnonlab := client_handlers.NewMdResultNonLabHandler(lresultnonlab)
public.GET("/md/resultnonlab", lhresultnonlab.ShowMdResultNonLab)
}