client md test

This commit is contained in:
Sas Andy
2024-05-10 14:07:37 +07:00
parent f2a84daea0
commit d3d59ebedb
5 changed files with 214 additions and 0 deletions

View 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)
}

View File

@@ -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)
}