client md harga single

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

View File

@@ -0,0 +1,26 @@
package client_handlers
import (
"cpone/utils"
client_mdhargasingle "cpone/views/client/mdhargasingle"
"github.com/labstack/echo/v4"
)
type MdHargaSingleService interface {
}
func NewMdHargaSingleHandler(us MdHargaSingleService) *MdHargaSingleHandler {
return &MdHargaSingleHandler{
MdHargaSingleService: us,
}
}
type MdHargaSingleHandler struct {
MdHargaSingleService MdHargaSingleService
}
func (uh *MdHargaSingleHandler) ShowMdHargaSingle(c echo.Context) error {
helo := client_mdhargasingle.Show()
return utils.View(c, helo)
}

View File

@@ -92,4 +92,8 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) {
ldokter := client_services.NewServicesMdDokter(appStore)
lhdokter := client_handlers.NewMdDokterHandler(ldokter)
public.GET("/md/dokter", lhdokter.ShowMdDokter)
lhargasingle := client_services.NewServicesMdHargaSingle(appStore)
lhhargasingle := client_handlers.NewMdHargaSingleHandler(lhargasingle)
public.GET("/md/hargasingle", lhhargasingle.ShowMdHargaSingle)
}