From df2acd46db9bf7bfa4be06ea79d999c8ab49445f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Mon, 1 Aug 2022 14:28:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#20220801=20=E6=97=A5=E5=BF=97=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Log.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Models/Log.php b/app/Models/Log.php index 99f4e46..61b95c5 100644 --- a/app/Models/Log.php +++ b/app/Models/Log.php @@ -2,7 +2,20 @@ namespace App\Models; +use App\Models\traits\Filter; + class Log extends Model { + use Filter; + //查询字段 + public $fieldSearchable = [ + 'moudule', + 'action', + 'target_type', + 'target_id', + 'target_field', + 'user_id', + 'created_at', + ]; }