permission_controller.go
521 字节
package controllers
import (
"github.com/linmadan/egglib-go/web/beego"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/pkg/application/permission/query"
"gitlab.fjmaimaimai.com/mmm-go-pp/partner01/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)
}