| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace app\agent\model\auth;
- use app\common\model\BaseModel;
- class Permission extends BaseModel
- {
- /**
- * @var string
- */
- protected $name = 'agent_system_permissions';
- /**
- * @var array
- */
- protected $insert = ['created_at','updated_at'];
- /**
- * @var array
- */
- protected $update = ['updated_at'];
- /**
- * 模型事件定义
- *
- * @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) {
- });
- }
- }
|