diff --git a/extend/catcher/traits/db/BaseOptionsTrait.php b/extend/catcher/traits/db/BaseOptionsTrait.php index bebeaa1..2a15911 100644 --- a/extend/catcher/traits/db/BaseOptionsTrait.php +++ b/extend/catcher/traits/db/BaseOptionsTrait.php @@ -4,6 +4,19 @@ namespace catcher\traits\db; trait BaseOptionsTrait { + /** + * 查询列表 + * + * @time 2020年04月28日 + * @return mixed + */ + public function getList() + { + return $this->catchSearch() + ->order($this->getPk(), 'desc') + ->paginate(); + } + /** * * @time 2019年12月03日