| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\admin\model;
- use app\common\model\BaseModel;
- class Permissions extends BaseModel
- {
- /**
- * @var string
- */
- protected $name = 'system_permissions';
- /**
- * @var array
- */
- protected $auto = [];
- /**
- * @var array
- */
- protected $insert = ['created_at','updated_at'];
- /**
- * @var array
- */
- protected $update = ['updated_at'];
- protected $field = [
- ];
- /**
- * 模型事件定义
- *
- * @author 许祖兴 < zuxing.xu@lettered.cn>
- * @date 2020/3/26 20:54
- *
- * @return void
- */
- public static function init()
- {
- self::event('before_update', function ($permission) {
- });
- // 更新之后--更新权限内数据
- self::event('after_update', function ($permission) {
- });
- }
- }
|