新增 获取家庭成员病情记录列表-分页
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Constants\HttpEnumCode;
|
||||
use App\Request\PatientPathographyRequest;
|
||||
use App\Services\PatientPathographyService;
|
||||
use Psr\Http\Message\ResponseInterface;
|
||||
@@ -29,4 +28,25 @@ class PatientPathographyController extends AbstractController
|
||||
return $this->response->json(fail());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取家庭成员病情记录列表-分页
|
||||
* @return ResponseInterface
|
||||
*/
|
||||
public function getFamilyPathographyList(): ResponseInterface
|
||||
{
|
||||
try {
|
||||
$request = $this->container->get(PatientPathographyRequest::class);
|
||||
}catch (\Throwable $e){
|
||||
return $this->response->json(fail());
|
||||
}
|
||||
|
||||
$request->scene('getFamilyPathographyList')->validateResolved();
|
||||
|
||||
$PatientPathographyService = new PatientPathographyService();
|
||||
$data = $PatientPathographyService->getFamilyPathographyList();
|
||||
return $this->response->json($data);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -34,6 +34,7 @@ use App\Services\OrderProductService;
|
||||
use App\Services\PatientOrderService;
|
||||
use App\Services\UserDoctorService;
|
||||
use App\Utils\Data;
|
||||
use App\Utils\Jwt;
|
||||
use App\Utils\Log;
|
||||
use App\Utils\Mask;
|
||||
use Extend\Alibaba\Oss;
|
||||
@@ -463,39 +464,5 @@ class TestController extends AbstractController
|
||||
|
||||
public function test_17(){
|
||||
|
||||
$re = \Hyperf\Context\ApplicationContext::getContainer()->get(CacheInterface::class);
|
||||
$a = $re->set("wucongxing","1",100);
|
||||
dump($a);
|
||||
$b = $re->get("wucongxing");
|
||||
dump($b);
|
||||
|
||||
$redis = \Hyperf\Context\ApplicationContext::getContainer()->get(Redis::class);
|
||||
$c = $redis->get("wucongxing");
|
||||
dump($c);
|
||||
|
||||
|
||||
//
|
||||
// $weChat = new Wechat(1);
|
||||
//
|
||||
// $env_version = "release";
|
||||
// $app_env = \Hyperf\Support\env("APP_ENV",'dev');
|
||||
// if ($app_env == "dev"){
|
||||
// $env_version = "trial";
|
||||
// }
|
||||
//
|
||||
// $options = [
|
||||
// "scene" => "?doctor_id=516900370252341248",// query 参数
|
||||
// "page" => "pages/expertDetail/expertDetail",
|
||||
// "check_path" => false,
|
||||
// "env_version" => $env_version,
|
||||
// ];
|
||||
//
|
||||
// $img_buffer = $weChat->getUnlimitedQRCode($options);
|
||||
//
|
||||
// $oss = new Oss();
|
||||
//
|
||||
// $filename = "applet/doctor/card/516900370252341248.jpg";
|
||||
//
|
||||
// $oss->putObject($filename, $img_buffer);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user