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; + /** * 保存问题反馈 *