12345678910111213141516171819202122232425262728 |
- <?php
- namespace app\api\controller;
- use app\api\logic\AppointmentLogic;
- class Appointment
- {
- public function newinfo()
- {
- $post = request()->post();
- $l_a = new AppointmentLogic();
- $result = $l_a->newinfo($post);
- if (empty($result['status'])) {
- return backjson2(0, $result['msg']);
- }
- return backjson2(200, $result['msg'], $result['data']);
- }
- public function getlist()
- {
- $post = request()->post();
- $l_a = new AppointmentLogic();
- $result = $l_a->getlist($post);
- if (empty($result['status'])) {
- return backjson2(0, $result['msg']);
- }
- return backjson2(200, $result['msg'], $result['data']);
- }
- }
|