refactor(admin): optimize log data processing and display

- Update log data serialization and deserialization method
- Improve log data display format in the admin interface- Refactor log model initialization and table suffix handling
- Optimize time model configuration for better timestamp management
This commit is contained in:
wolfcode
2025-03-25 18:08:35 +08:00
parent fc202be987
commit 12b38c7bf5
18 changed files with 214 additions and 108 deletions

View File

@@ -8,7 +8,12 @@ use app\common\model\TimeModel;
class SystemAdmin extends TimeModel
{
protected $deleteTime = 'delete_time';
protected function getOptions(): array
{
return [
'deleteTime' => 'delete_time',
];
}
public array $notes = [
'login_type' => [
@@ -17,12 +22,9 @@ class SystemAdmin extends TimeModel
],
];
public function getAuthList()
public function getAuthList(): array
{
$list = (new SystemAuth())
->where('status', 1)
->column('title', 'id');
return $list;
return (new SystemAuth())->removeOption('where')->where('status', 1)->column('title', 'id');
}
}