新增列表查询
This commit is contained in:
@@ -4,6 +4,19 @@ namespace catcher\traits\db;
|
|||||||
|
|
||||||
trait BaseOptionsTrait
|
trait BaseOptionsTrait
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* 查询列表
|
||||||
|
*
|
||||||
|
* @time 2020年04月28日
|
||||||
|
* @return mixed
|
||||||
|
*/
|
||||||
|
public function getList()
|
||||||
|
{
|
||||||
|
return $this->catchSearch()
|
||||||
|
->order($this->getPk(), 'desc')
|
||||||
|
->paginate();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @time 2019年12月03日
|
* @time 2019年12月03日
|
||||||
|
Reference in New Issue
Block a user