getPageValue(); $list = $this->dao->getList($where, '*', $page, $limit); $count = $this->dao->count($where); return compact('list', 'count'); } /** * 删除 * @param int $id */ public function del(int $id) { $res = $this->dao->delete($id); if (!$res) throw new AdminException('删除失败'); } }