Line.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace app\api\controller\travel;
  3. use app\api\controller\BaseController;
  4. use app\api\server\travel\LineServer;
  5. class Line extends BaseController
  6. {
  7. /**
  8. * Notes:获取店铺信息
  9. * @return \support\Response
  10. * User: YCP
  11. * Date: 2023/5/16
  12. */
  13. public function shopInfo()
  14. {
  15. $shop_id = $this->request->get('shop_id');//店铺id
  16. $result = LineServer::getShop($shop_id);
  17. return json_success($result, '成功');
  18. }
  19. /**
  20. * Notes:获取线路列表
  21. * @return \support\Response
  22. * User: YCP
  23. * Date: 2023/5/16
  24. */
  25. public function getLineList()
  26. {
  27. $result = LineServer::getLineList();
  28. return json_success($result, '成功');
  29. }
  30. /**
  31. * Notes:查询线路详情
  32. * @return \support\Response
  33. * User: YCP
  34. * Date: 2023/5/16
  35. */
  36. public function lineInfo()
  37. {
  38. $line_id = $this->request->get('line_id');
  39. $result = LineServer::lineInfo($line_id);
  40. return json_success($result, '成功');
  41. }
  42. }