💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 分页 对于需要分页的列表调用此方法后,会自动实现前端分页,后端接受page和limit两个参数即可。 ``` // 分页列表 $page = input('get.page/d') ?: 1; $limit = input('get.limit/d') ?: 10; $data_list = $this->core_article ->order('module asc') ->where('module', '=', $module) ->page($page . ',' . $limit) ->select()->toArray(); $total_count = $this->core_config ->where('module', '=', $module) ->count(); $list_data = $ibuilder_list->init() ->setDataList($data_list) ->setDataPage($total_count, $limit, $page) ->getData(); ```