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; } 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..aed92d0 100644 --- a/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php +++ b/src/ExamService/JsonRpcInterface/AiEssayQuestionInterface.php @@ -10,6 +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(int $userId, array $params): array; /** * 获取AI申论题详情 diff --git a/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php b/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php new file mode 100644 index 0000000..cf2eccf --- /dev/null +++ b/src/ExamService/JsonRpcInterface/AiInterviewCategoryInterface.php @@ -0,0 +1,38 @@ +