如何让RBAC AccessRules 统一调用 DB 里的设定

我在 db 里建了 rbac 的三个 table, 如何才能让所有的 Controller 都继承某个类,然后就不用每个 Controller 里写 AccessRules() 这个 function 了.