12345678910111213 |
- /**
- * 主页数据接口
- * @param array $where
- * @return array
- * @date {%DATE%}
- */
- public function getCrudListIndex(array $where = [])
- {
- [$page, $limit] = $this->getPageValue();
- $model = $this->dao->searchCrudModel($where, '{%FIELD%}', '{%KEY%} desc', {%WITH%});
- return ['count' => $model->count(), 'list' => $model->page($page ?: 1, $limit ?: 10)->select()->toArray()];
- }
|