add hardcode tab daftar peserta
This commit is contained in:
38
handlers/corporate/mcudetail/tabdaftarpeserta.handlers.go
Normal file
38
handlers/corporate/mcudetail/tabdaftarpeserta.handlers.go
Normal file
@@ -0,0 +1,38 @@
|
||||
package mcu_corporate_handlers
|
||||
|
||||
import (
|
||||
"cpone/utils"
|
||||
corporate_mcudetail "cpone/views/corporate/mcu/mcutab"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
type TabDaftarPesertaServices interface {
|
||||
}
|
||||
|
||||
type TabDaftarPesertaHandlers struct {
|
||||
TabDaftarPesertaServices TabDaftarPesertaServices
|
||||
}
|
||||
|
||||
func NewTabDaftarPesertaHandlers(tdp TabDaftarPesertaServices) *TabDaftarPesertaHandlers {
|
||||
return &TabDaftarPesertaHandlers{
|
||||
TabDaftarPesertaServices: tdp,
|
||||
}
|
||||
}
|
||||
|
||||
func (tdp *TabDaftarPesertaHandlers) HandleShowTabDaftarPeserta(c echo.Context) error {
|
||||
title := "Daftar Peserta"
|
||||
|
||||
content := corporate_mcudetail.TabDaftarPesertaScreen()
|
||||
css := corporate_mcudetail.CSSTabDaftarPeserta()
|
||||
js := corporate_mcudetail.JsTabDaftarPeserta()
|
||||
|
||||
view := corporate_mcudetail.ShowTabDafterPeserta(
|
||||
title,
|
||||
content,
|
||||
css,
|
||||
js,
|
||||
)
|
||||
|
||||
return utils.View(c, view)
|
||||
}
|
||||
@@ -121,6 +121,10 @@ func SetupRoutesCorporate(app *echo.Echo, appStore db.AppStore) {
|
||||
kesimpulanHdr := mcu_corporate_handlers.NewTabKesimpulanHandler(kesimpulanSrv)
|
||||
corp.GET("/dashboard_pic/detail/:id/tabkesimpulan", kesimpulanHdr.HandleShowTabKesimpulanScreen)
|
||||
|
||||
daftarpesertaServ := mcu_corporate_services.NewTabDaftarPesertaServices(appStore)
|
||||
daftarpesertaHandl := mcu_corporate_handlers.NewTabDaftarPesertaHandlers(daftarpesertaServ)
|
||||
corp.GET("/dashboard_pic/detail/:id/tabdaftarpeserta", daftarpesertaHandl.HandleShowTabDaftarPeserta)
|
||||
|
||||
patientHandler := corporate_handlers.NewPatientHandler(l)
|
||||
corp.GET("/patient", patientHandler.ShowPatient)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user