<?php namespace app\service; use app\model\QyBasic; use think\db\exception\DataNotFoundException; use think\db\exception\DbException; use think\db\exception\ModelNotFoundException; class QyBasicService { /** * @throws ModelNotFoundException * @throws DataNotFoundException * @throws DbException */ static function selectQyBasic($page=1, $limit=10): array { $res["row"] = (new \app\model\QyBasic)->page($page,$limit)->select(); $res["total"] = (new \app\model\QyBasic)->count(); return $res; } }