From 4c0429489d7901589c568bbc5ffc49e6f9d15d6e Mon Sep 17 00:00:00 2001 From: zj Date: Sun, 20 Sep 2026 10:24:39 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E8=B0=83=E6=95=B4AI=E9=9D=A2=E8=AF=95?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/ExamService.php | 2 ++ .../AiEssayQuestionInterface.php | 7 ++++ .../AiInterviewCategoryInterface.php | 32 +++++++++++++++++++ .../AiInterviewQuestionInterface.php | 7 ++++ 4 files changed, 48 insertions(+) create mode 100644 src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php diff --git a/src/ExamService/ExamService.php b/src/ExamService/ExamService.php index 25668f8..6b8f036 100644 --- a/src/ExamService/ExamService.php +++ b/src/ExamService/ExamService.php @@ -6,6 +6,7 @@ namespace Dhd\Micro\Interface\ExamService; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\ExamServiceInterface; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\UserPaperInterface; +use Dhd\Micro\Interface\ExamService\JsonRpcInterface\AiInterviewCategoryInterface; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\AiInterviewQuestionInterface; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\CustomQuestionInterface; use Dhd\Micro\Interface\ExamService\JsonRpcInterface\PaperInterface; @@ -23,6 +24,7 @@ use Dhd\Micro\Interface\ExamService\JsonRpcInterface\AiEssayQuestionInterface; interface ExamService extends ExamServiceInterface, UserPaperInterface, + AiInterviewCategoryInterface, AiInterviewQuestionInterface, CustomQuestionInterface, PaperInterface, diff --git a/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php b/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php index 9874ae6..14d94fa 100644 --- a/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php +++ b/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php @@ -11,6 +11,13 @@ interface AiEssayQuestionInterface */ public function getAiEssayQuestionList(array $params): array; + /** + * app获取AI申论题列表 + * @param array $params 查询参数 + * @return array + */ + public function appGetAiEssayQuestionList(array $params): array; + /** * 获取AI申论题详情 * @param int $id AI申论题id diff --git a/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php b/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php new file mode 100644 index 0000000..68c1472 --- /dev/null +++ b/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php @@ -0,0 +1,32 @@ + Date: Sun, 20 Sep 2026 10:51:57 +0800 Subject: [PATCH 2/4] update --- .../JsonRpcInterface/AiInterviewCategoryInterface.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php b/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php index 68c1472..cf2eccf 100644 --- a/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php +++ b/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php @@ -11,6 +11,12 @@ interface AiInterviewCategoryInterface */ public function getAiInterviewCategoryList(array $params): array; + /** + * 获取AI面试类型下拉列表 + * @return array + */ + public function getAiInterviewCategorySelectList(): array; + /** * 创建AI面试类型 * @param array $params 创建参数 From cba3c123c98d6652496264268947a120becc66d2 Mon Sep 17 00:00:00 2001 From: zj Date: Mon, 21 Sep 2026 08:43:12 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=9C=80=E6=96=B0=E4=B8=80=E6=9D=A1AI=E6=89=B9=E6=94=B9?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AIService/AiEssayCheckInterface.php | 8 ++++++++ src/AIService/AiInterviewCheckInterface.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/AIService/AiEssayCheckInterface.php b/src/AIService/AiEssayCheckInterface.php index 12462b4..a0dcce5 100644 --- a/src/AIService/AiEssayCheckInterface.php +++ b/src/AIService/AiEssayCheckInterface.php @@ -29,4 +29,12 @@ interface AiEssayCheckInterface * 用户提交申论批改 */ public function submitAiEssay(array $params): int; + + /** + * 获取用户最近一次申论批改记录 + * @param int $userId 用户ID + * @param int $questionId 面试题ID + * @return array|null + */ + public function getEssayQuestionUserLastRecord(int $userId, int $questionId): ?array; } diff --git a/src/AIService/AiInterviewCheckInterface.php b/src/AIService/AiInterviewCheckInterface.php index 2d0a9c1..77a2027 100644 --- a/src/AIService/AiInterviewCheckInterface.php +++ b/src/AIService/AiInterviewCheckInterface.php @@ -39,4 +39,12 @@ interface AiInterviewCheckInterface * @return array */ public function getInterviewQuestionExamTypeList(): array; + + /** + * 获取用户最近一次面试批改记录 + * @param int $userId 用户ID + * @param int $questionId 面试题ID + * @return array|null + */ + public function getInterviewQuestionUserLastRecord(int $userId, int $questionId): ?array; } From 7d13b700f18f016509417eeb6eb0a13376eca3b9 Mon Sep 17 00:00:00 2001 From: zj Date: Mon, 21 Sep 2026 09:02:15 +0800 Subject: [PATCH 4/4] update --- .../JsonRpcInterface/AiEssayQuestionInterface.php | 5 +++-- .../JsonRpcInterface/AiInterviewQuestionInterface.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php b/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php index 14d94fa..aed92d0 100644 --- a/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php +++ b/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php @@ -10,13 +10,14 @@ interface AiEssayQuestionInterface * @return array */ public function getAiEssayQuestionList(array $params): array; - + /** * app获取AI申论题列表 + * @param int $userId 用户ID * @param array $params 查询参数 * @return array */ - public function appGetAiEssayQuestionList(array $params): array; + public function appGetAiEssayQuestionList(int $userId, array $params): array; /** * 获取AI申论题详情 diff --git a/src/ExamService/JsonRpcInterface/AiInterviewQuestionInterface.php b/src/ExamService/JsonRpcInterface/AiInterviewQuestionInterface.php index db15edf..74edf5f 100644 --- a/src/ExamService/JsonRpcInterface/AiInterviewQuestionInterface.php +++ b/src/ExamService/JsonRpcInterface/AiInterviewQuestionInterface.php @@ -13,10 +13,11 @@ interface AiInterviewQuestionInterface /** * app获取面试题列表 + * @param int $userId 用户ID * @param array $params 查询参数 * @return array */ - public function appGetAiInterviewQuestionList(array $params): array; + public function appGetAiInterviewQuestionList(int $userId, array $params): array; /** * 管理端获取面试题列表(平台方法):在通用列表基础上逐行附加音频生成状态 audio