From 6b2eb3cff8847f98c70640b4885340aed1b84dc2 Mon Sep 17 00:00:00 2001 From: fantasticbin Date: Wed, 16 Nov 2022 15:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=97=AE=E9=A2=98=E5=8F=8D?= =?UTF-8?q?=E9=A6=88=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Controller/PunchCard/User/UserController.php | 11 +++++++++++ .../PunchCardSystemExternalServiceConsumer.php | 10 ++++++++++ .../PunchCardSystemExternalServiceInterface.php | 7 +++++++ 3 files changed, 28 insertions(+) diff --git a/app/Controller/PunchCard/User/UserController.php b/app/Controller/PunchCard/User/UserController.php index cbf85af..5606f02 100644 --- a/app/Controller/PunchCard/User/UserController.php +++ b/app/Controller/PunchCard/User/UserController.php @@ -58,6 +58,17 @@ class UserController extends BaseController // TODO 逻辑完善 } + /** + * 获取问题反馈类型列表 + * + * @return array + */ + #[GetMapping(path: "user/feedback_type")] + public function getFeedbackTypeList() : array + { + return $this->getServiceResult($this->punchCardSystemExternalService->getFeedbackTypeList()); + } + /** * 保存问题反馈 * diff --git a/app/JsonRpc/PunchCardSystemExternalServiceConsumer.php b/app/JsonRpc/PunchCardSystemExternalServiceConsumer.php index 913e4b1..b80a063 100644 --- a/app/JsonRpc/PunchCardSystemExternalServiceConsumer.php +++ b/app/JsonRpc/PunchCardSystemExternalServiceConsumer.php @@ -13,6 +13,16 @@ class PunchCardSystemExternalServiceConsumer extends AbstractServiceClient imple */ protected $serviceName = 'PunchCardSystemExternalService'; + /** + * 获取问题反馈类型列表 + * + * @return array + */ + public function getFeedbackTypeList() : array + { + return $this->__request(__FUNCTION__, []); + } + /** * 保存问题反馈 * diff --git a/app/JsonRpc/PunchCardSystemExternalServiceInterface.php b/app/JsonRpc/PunchCardSystemExternalServiceInterface.php index ce993cc..8657788 100644 --- a/app/JsonRpc/PunchCardSystemExternalServiceInterface.php +++ b/app/JsonRpc/PunchCardSystemExternalServiceInterface.php @@ -6,6 +6,13 @@ use Hyperf\HttpServer\Contract\RequestInterface; interface PunchCardSystemExternalServiceInterface { + /** + * 获取问题反馈类型列表 + * + * @return array + */ + public function getFeedbackTypeList() : array; + /** * 保存问题反馈 *