rbac_router.go 387 字节
package routers

import (
	"github.com/astaxie/beego"
	"github.com/tiptok/godevp/pkg/port/beego/controllers"
)

func init() {
	beego.Router("/rbacs/access", &controllers.RbacController{}, "Get:Access")
	beego.Router("/rbacs/roleAccess/:roleId", &controllers.RbacController{}, "Get:RoleAccess")
	beego.Router("/rbacs/setRoleAccess", &controllers.RbacController{}, "Post:SetRoleAccess")
}