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