client md dokter

This commit is contained in:
sindhu
2024-05-09 13:06:49 +07:00
parent 20387e14ab
commit 504bec64a2
5 changed files with 216 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package client_handlers
import (
"cpone/utils"
client_mddokter "cpone/views/client/mddokter"
"github.com/labstack/echo/v4"
)
type MdDokterService interface {
}
func NewMdDokterHandler(us MdDokterService) *MdDokterHandler {
return &MdDokterHandler{
MdDokterService: us,
}
}
type MdDokterHandler struct {
MdDokterService MdDokterService
}
func (uh *MdDokterHandler) ShowMdDokter(c echo.Context) error {
helo := client_mddokter.Show()
return utils.View(c, helo)
}

View File

@@ -88,4 +88,8 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) {
lpasien := client_services.NewServicesMdPasien(appStore)
lhpasien := client_handlers.NewMdPasienHandler(lpasien)
public.GET("/md/pasien", lhpasien.ShowMdPasien)
ldokter := client_services.NewServicesMdDokter(appStore)
lhdokter := client_handlers.NewMdDokterHandler(ldokter)
public.GET("/md/dokter", lhdokter.ShowMdDokter)
}