Api.php 429 B

12345678910111213141516171819202122
  1. <?php
  2. namespace catchAdmin\api\controller;
  3. use catcher\base\CatchRequest as Request;
  4. use catcher\CatchResponse;
  5. use catcher\base\CatchController;
  6. class Api extends CatchController
  7. {
  8. /**
  9. * 列表
  10. * @time 2022年09月27日 10:06
  11. * @param Request $request
  12. */
  13. public function index(Request $request) : \think\Response
  14. {
  15. return CatchResponse::paginate($this->apiModel->getList());
  16. }
  17. }