Appointment.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\api\controller;
  3. use app\api\logic\AppointmentLogic;
  4. class Appointment
  5. {
  6. public function newinfo()
  7. {
  8. $post = request()->post();
  9. $l_a = new AppointmentLogic();
  10. $result = $l_a->newinfo($post);
  11. if (empty($result['status'])) {
  12. return backjson2(0, $result['msg']);
  13. }
  14. return backjson2(200, $result['msg'], $result['data']);
  15. }
  16. public function getlist()
  17. {
  18. $post = request()->post();
  19. $l_a = new AppointmentLogic();
  20. $result = $l_a->getlist($post);
  21. if (empty($result['status'])) {
  22. return backjson2(0, $result['msg']);
  23. }
  24. return backjson2(200, $result['msg'], $result['data']);
  25. }
  26. public function getlistfy()
  27. {
  28. $post = request()->post();
  29. $l_a = new AppointmentLogic();
  30. $result = $l_a->getlistfy($post);
  31. if (empty($result['status'])) {
  32. return backjson2(0, $result['msg']);
  33. }
  34. return backjson2(200, $result['msg'], $result['data']);
  35. }
  36. }