client md test
This commit is contained in:
26
handlers/client/mdtest.handlers.go
Normal file
26
handlers/client/mdtest.handlers.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package client_handlers
|
||||
|
||||
import (
|
||||
"cpone/utils"
|
||||
client_mdtest "cpone/views/client/mdtest"
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
)
|
||||
|
||||
type MdTestService interface {
|
||||
}
|
||||
|
||||
func NewMdTestHandler(us MdTestService) *MdTestHandler {
|
||||
return &MdTestHandler{
|
||||
MdTestService: us,
|
||||
}
|
||||
}
|
||||
|
||||
type MdTestHandler struct {
|
||||
MdTestService MdTestService
|
||||
}
|
||||
|
||||
func (uh *MdTestHandler) ShowMdTest(c echo.Context) error {
|
||||
helo := client_mdtest.Show()
|
||||
return utils.View(c, helo)
|
||||
}
|
||||
@@ -92,4 +92,6 @@ func SetupRoutesClient(app *echo.Echo, appStore db.AppStore) {
|
||||
public.GET("/md/corp", mdCorpHandler.ShowMdCorp)
|
||||
mdUserGroupHandler := client_handlers.NewMdUserGroupHandler(l)
|
||||
public.GET("/md/usergroup", mdUserGroupHandler.ShowMdUserGroup)
|
||||
mdTestpHandler := client_handlers.NewMdTestHandler(l)
|
||||
public.GET("/md/test", mdTestpHandler.ShowMdTest)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user