1234567891011121314151617181920212223242526272829303132333435363738 |
- <?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']);
- }
- public function getlistfy()
- {
- $post = request()->post();
- $l_a = new AppointmentLogic();
- $result = $l_a->getlistfy($post);
- if (empty($result['status'])) {
- return backjson2(0, $result['msg']);
- }
- return backjson2(200, $result['msg'], $result['data']);
- }
- }
|