Appointment.php 734 B

12345678910111213141516171819202122232425262728
  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. }