From ef8909f94bb9e3b62517b5f3119e0ae4eb4b3807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=82=E5=90=89=E8=AF=83=E5=BE=B7=E6=8B=89=E6=9B=BC?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E8=8B=B1=E8=B1=AA?= Date: Fri, 14 Aug 2026 11:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=A5=91=E7=BA=A6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=8F=8D=E9=A6=88=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user/FeedbackInterface.php | 47 +++++++++++++++++++ src/UserService/UserService.php | 3 +- 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 src/UserService/JsonRpcInterface/user/FeedbackInterface.php diff --git a/src/UserService/JsonRpcInterface/user/FeedbackInterface.php b/src/UserService/JsonRpcInterface/user/FeedbackInterface.php new file mode 100644 index 0000000..2a77e26 --- /dev/null +++ b/src/UserService/JsonRpcInterface/user/FeedbackInterface.php @@ -0,0 +1,47 @@ + int, 'content' => string, 'images' => array, 'contact_phone' => string] + * @return array ['id' => int] + */ + public function submitFeedback(array $params): array; + + /** + * App我的反馈列表 + * @param array $params ['user_id' => int, 'page' => int, 'size' => int] + * @return array ['list' => array, 'page' => int, 'size' => int, 'total' => int] + */ + public function getFeedbackList(array $params): array; + + /** + * 后台反馈列表 + * @param array $params ['status' => int, 'keyword' => string, 'contact_phone' => string, 'page' => int, 'size' => int] + * @return array ['list' => array, 'page' => int, 'size' => int, 'total' => int] + */ + public function adminGetFeedbackList(array $params): array; + + /** + * 后台反馈详情 + * @param int $id 反馈ID + * @return array + */ + public function adminGetFeedbackDetail(int $id): array; + + /** + * 后台处理反馈 + * @param int $id 反馈ID + * @param int $handlerId 处理人ID(管理员ID) + * @param array $params ['status' => int, 'handle_note' => string] + * @return bool + */ + public function adminHandleFeedback(int $id, int $handlerId, array $params): bool; +} diff --git a/src/UserService/UserService.php b/src/UserService/UserService.php index b8e9f72..adb1636 100755 --- a/src/UserService/UserService.php +++ b/src/UserService/UserService.php @@ -12,4 +12,5 @@ interface UserService extends \Dhd\Micro\Interface\UserService\JsonRpcInterface\user\UserInfoCheckInterface, \Dhd\Micro\Interface\UserService\JsonRpcInterface\user\UserCurriculumVitaeInterface, \Dhd\Micro\Interface\UserService\JsonRpcInterface\UserDownloadRecordInterface, - \Dhd\Micro\Interface\UserService\JsonRpcInterface\user\StudentScoreInterface {} + \Dhd\Micro\Interface\UserService\JsonRpcInterface\user\StudentScoreInterface, + \Dhd\Micro\Interface\UserService\JsonRpcInterface\user\FeedbackInterface {}