Service.php 469 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\mobile\controller;
  3. use app\BaseController;
  4. use app\mobile\logic\ServiceLogic;
  5. //服务
  6. class Service extends BaseController
  7. {
  8. //列表
  9. public function list()
  10. {
  11. $param = $this->request->only(['page' => 1, 'size' => 10], 'post');
  12. return ServiceLogic::list($param);
  13. }
  14. //详情
  15. public function read()
  16. {
  17. $id = $this->request->post('id/d', 0);
  18. return ServiceLogic::read($id);
  19. }
  20. }