client md user group

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

View File

@@ -0,0 +1,26 @@
package client_handlers
import (
"cpone/utils"
client_mdusergroup "cpone/views/client/mdusergroup"
"github.com/labstack/echo/v4"
)
type MdUserGroupService interface {
}
func NewMdUserGroupHandler(us MdUserGroupService) *MdUserGroupHandler {
return &MdUserGroupHandler{
MdUserGroupService: us,
}
}
type MdUserGroupHandler struct {
MdUserGroupService MdUserGroupService
}
func (uh *MdUserGroupHandler) ShowMdUserGroup(c echo.Context) error {
helo := client_mdusergroup.Show()
return utils.View(c, helo)
}

View File

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