package routers import ( errorlibs "git.baozhida.cn/ERP_libs/Error" beego "github.com/beego/beego/v2/server/web" ) func init() { beego.ErrorController(&errorlibs.ErrorController{}) //过滤器,拦截所有请求 beego.InsertFilter("/*", beego.BeforeRouter, RBACFilter) }