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 {}