rbac_router.go
396 字节
package routers
import (
"github.com/astaxie/beego"
"gitlab.fjmaimaimai.com/mmm-go/godevp/pkg/port/beego/controllers"
)
func init() {
beego.Router("/rbac/access", &controllers.RbacController{}, "get:Access")
beego.Router("/rbac/roleAccess/:roleId", &controllers.RbacController{}, "get:RoleAccess")
beego.Router("/rbac/setRoleAccess", &controllers.RbacController{}, "post:SetRoleAccess")
}