| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- namespace App\Module\System\Models;
- use UCore\ModelCore;
- use App\Module\System\Enums\VIEW_TYPE;
- /**
- * 后台操作日志
- *
- * Class AdminActionlog
- *
- * field start
- * @property int $id
- * @property int $admin_id 操作的Admin ID
- * @property \App\Module\System\Enums\VIEW_TYPE $type1
- * @property string $title 视图标题
- * @property string $router_name 路由名字
- * @property array $p1 参数1
- * @property \Carbon\Carbon $updated_at
- * @property \Carbon\Carbon $created_at
- * field end
- *
- */
- class AdminGridView extends ModelCore
- {
- // attrlist start
- protected $fillable = [
- 'id',
- 'admin_id',
- 'type1',
- 'title',
- 'router_name',
- 'p1',
- ];
- // attrlist end
- protected $casts = [
- 'p1' => 'array',
- 'type1' => VIEW_TYPE::class
- ];
- public function admin()
- {
- return $this->hasOne(Administrator::class, 'id', 'admin_id');
- }
- }
|