permission_controller.go
537 字节
package controllers
import (
"github.com/linmadan/egglib-go/web/beego"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01-gateway/pkg/application/permission/query"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01-gateway/pkg/application/permission/service"
)
type PermissionController struct {
beego.BaseController
}
func (controller *PermissionController) Menus() {
permissionService := service.NewPermissionService(nil)
menusQuery := &query.MenusQuery{}
data, err := permissionService.Menus(menusQuery)
controller.Response(data, err)
}