client md pasien

This commit is contained in:
sindhu
2024-05-09 13:02:21 +07:00
parent 0ba409ab73
commit 20387e14ab
5 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package client_handlers
import (
"cpone/utils"
client_mdpasien "cpone/views/client/mdpasien"
"github.com/labstack/echo/v4"
)
type MdPasienService interface {
}
func NewMdPasienHandler(us MdPasienService) *MdPasienHandler {
return &MdPasienHandler{
MdPasienService: us,
}
}
type MdPasienHandler struct {
MdPasienService MdPasienService
}
func (uh *MdPasienHandler) ShowMdPasien(c echo.Context) error {
helo := client_mdpasien.Show()
return utils.View(c, helo)
}

View File

@@ -84,4 +84,8 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) {
lpanel := client_services.NewServicesMdPanel(appStore)
lhpanel := client_handlers.NewMdPanelHandler(lpanel)
public.GET("/md/panel", lhpanel.ShowMdPanel)
lpasien := client_services.NewServicesMdPasien(appStore)
lhpasien := client_handlers.NewMdPasienHandler(lpasien)
public.GET("/md/pasien", lhpasien.ShowMdPasien)
}