* Code for finish task #87405.

This commit is contained in:
tianshujie
2023-03-21 16:01:35 +08:00
parent 0362953766
commit 8944424005
12 changed files with 309 additions and 312 deletions
+6 -4
View File
@@ -394,12 +394,13 @@ class apiModel extends model
/**
* Get api doc list by module id.
*
* @param int $libID
* @param int $moduleID
* @param int $release
* @param int $libID
* @param int $moduleID
* @param int $release
* @param object $pager
* @return array $list
*/
public function getListByModuleId($libID = 0, $moduleID = 0, $release = 0)
public function getListByModuleId($libID = 0, $moduleID = 0, $release = 0, $pager = null)
{
/* Get release info. */
if($release > 0)
@@ -437,6 +438,7 @@ class apiModel extends model
->from(TABLE_API)
->where($where)
->andWhere('deleted')->eq(0)
->page($pager)
->fetchAll();
}
array_map(function ($item) {