client md corp

This commit is contained in:
Sas Andy
2024-05-10 09:51:59 +07:00
parent 6a8f7ef656
commit 0bc1cb2a49
5 changed files with 214 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package client_handlers
import (
"cpone/utils"
client_mdcorp "cpone/views/client/mdcorp"
"github.com/labstack/echo/v4"
)
type MdCorpService interface {
}
func NewMdCorpHandler(us MdCorpService) *MdCorpHandler {
return &MdCorpHandler{
MdCorpService: us,
}
}
type MdCorpHandler struct {
MdCorpService MdCorpService
}
func (uh *MdCorpHandler) ShowMdCorp(c echo.Context) error {
helo := client_mdcorp.Show()
return utils.View(c, helo)
}

View File

@@ -88,4 +88,6 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) {
public.GET("", clientdshbrdHandler.ShowClientDashboard)
mdUserHandler := client_handlers.NewMdUserHandler(l)
public.GET("/md/user", mdUserHandler.ShowMdUser)
mdCorpHandler := client_handlers.NewMdCorpHandler(l)
public.GET("/md/corp", mdCorpHandler.ShowMdCorp)
}