client md pasien
This commit is contained in:
26
handlers/client/mdpasien.handlers.go
Normal file
26
handlers/client/mdpasien.handlers.go
Normal 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)
|
||||
}
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user