AppointmentController.php 954 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace app\admin\controller\order;
  3. use app\admin\service\order\AppointmentService;
  4. use app\model\Appointment;
  5. use support\Request;
  6. use support\Response;
  7. class AppointmentController
  8. {
  9. /**
  10. * @Desc 列表
  11. * @Author Gorden
  12. * @Date 2024/3/29 10:44
  13. *
  14. * @param Request $request
  15. * @return Response
  16. * @throws \support\exception\BusinessException
  17. */
  18. public function select(Request $request): Response
  19. {
  20. return AppointmentService::select($request);
  21. }
  22. public function confirm($id): Response
  23. {
  24. return AppointmentService::confirm($id);
  25. }
  26. public function add(Request $request)
  27. {
  28. return AppointmentService::add($request);
  29. }
  30. public function update(Request $request)
  31. {
  32. return AppointmentService::update($request);
  33. }
  34. public function getTimes(Request $request)
  35. {
  36. return AppointmentService::getTimes($request);
  37. }
  38. }