You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
shipin/crmeb/services/crud/stubs/service/crudListIndex.stub

14 lines
439 B

10 months ago
/**
* 主页数据接口
* @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()];
}