Files
cashier/app/admin/model/SystemLog.php
你的名字 ac0f12b21a 1
2025-10-15 14:53:54 +08:00

29 lines
518 B
PHP

<?php
namespace app\admin\model;
use app\admin\service\SystemLogService;
use app\common\model\TimeModel;
use think\model\relation\BelongsTo;
class SystemLog extends TimeModel
{
protected array $type = [
'content' => 'json',
'response' => 'json',
];
protected function init(): void
{
SystemLogService::instance()->detectTable();
}
public function admin(): BelongsTo
{
return $this->belongsTo('app\admin\model\SystemAdmin', 'admin_id', 'id');
}
}