初始化
缺陷:主题配色需要优化整体的同风格
This commit is contained in:
@@ -14,6 +14,17 @@ class BaseController
|
||||
protected array $notRequest = [];
|
||||
protected array $updateField = [];
|
||||
protected $service;
|
||||
|
||||
/**
|
||||
* @var array<int, string> 不注册成路由的方法名
|
||||
*
|
||||
* autoRouteRegister 是反射整个类,继承来的方法也会被注册,
|
||||
* 于是每个控制器都白得一套 list/option/detail/create/update/delete。
|
||||
* 对不该有 CRUD 的控制器(比如登录),在子类里声明要排除的方法即可,
|
||||
* 不必为了挂 @Method NO 去空覆写六个方法。
|
||||
*/
|
||||
protected array $exceptRoute = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user