client md panel

This commit is contained in:
sindhu
2024-05-08 16:27:30 +07:00
parent 88d9985ca1
commit 0ba409ab73
6 changed files with 218 additions and 2 deletions

View File

@@ -0,0 +1,26 @@
package client_handlers
import (
"cpone/utils"
client_mdpanel "cpone/views/client/mdpanel"
"github.com/labstack/echo/v4"
)
type MdPanelService interface {
}
func NewMdPanelHandler(us MdPanelService) *MdPanelHandler {
return &MdPanelHandler{
MdPanelService: us,
}
}
type MdPanelHandler struct {
MdPanelService MdPanelService
}
func (uh *MdPanelHandler) ShowMdPanel(c echo.Context) error {
helo := client_mdpanel.Show()
return utils.View(c, helo)
}

View File

@@ -80,4 +80,8 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) {
l := client_services.NewServicesMdBahan(appStore)
lh := client_handlers.NewMdBahanHandler(l)
public.GET("/md/bahan", lh.ShowMdBahan)
lpanel := client_services.NewServicesMdPanel(appStore)
lhpanel := client_handlers.NewMdPanelHandler(lpanel)
public.GET("/md/panel", lhpanel.ShowMdPanel)
}