QyBasicService.php 557 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace app\service;
  3. use app\model\QyBasic;
  4. use think\db\exception\DataNotFoundException;
  5. use think\db\exception\DbException;
  6. use think\db\exception\ModelNotFoundException;
  7. class QyBasicService
  8. {
  9. /**
  10. * @throws ModelNotFoundException
  11. * @throws DataNotFoundException
  12. * @throws DbException
  13. */
  14. static function selectQyBasic($page=1, $limit=10): array
  15. {
  16. $res["row"] = (new \app\model\QyBasic)->page($page,$limit)->select();
  17. $res["total"] = (new \app\model\QyBasic)->count();
  18. return $res;
  19. }
  20. }