抽象scope trait

This commit is contained in:
JaguarJack
2020-06-21 10:50:05 +08:00
parent 448154f363
commit 11f6419b4f
4 changed files with 30 additions and 22 deletions

View File

@@ -5,6 +5,7 @@ use catcher\CatchQuery;
use catcher\traits\db\BaseOptionsTrait;
use catcher\traits\db\TransTrait;
use think\model\concern\SoftDelete;
use catcher\traits\db\ScopeTrait;
/**
*
@@ -14,7 +15,7 @@ use think\model\concern\SoftDelete;
*/
abstract class CatchModel extends \think\Model
{
use SoftDelete, TransTrait, BaseOptionsTrait;
use SoftDelete, TransTrait, BaseOptionsTrait, ScopeTrait;
protected $createTime = 'created_at';