diff --git a/src/ExamService/JsonRpcInterface/QuestionInterface.php b/src/ExamService/JsonRpcInterface/QuestionInterface.php index 9a7d925..d905df7 100644 --- a/src/ExamService/JsonRpcInterface/QuestionInterface.php +++ b/src/ExamService/JsonRpcInterface/QuestionInterface.php @@ -14,6 +14,16 @@ interface QuestionInterface */ public function submitImportQuestion(array $params): array; + /** + * 只读校验解析暂存内容,返回逐题校验结果,不写库、不移动图片. + */ + public function previewImportQuestion(array $params): array; + + /** + * 保存对解析暂存内容的修改,并返回最新暂存内容和逐题校验结果. + */ + public function updateImportQuestion(array $params): array; + /** * 随机获取用户错题 * @param $userId 用户id diff --git a/src/FileService/JsonRpcInterface/QuestionParseInterface.php b/src/FileService/JsonRpcInterface/QuestionParseInterface.php index ecbb519..be4fb88 100644 --- a/src/FileService/JsonRpcInterface/QuestionParseInterface.php +++ b/src/FileService/JsonRpcInterface/QuestionParseInterface.php @@ -22,4 +22,9 @@ interface QuestionParseInterface * 读取解析暂存数据,不确认导入且不移动图片。 */ public function getQuestionParseByCode(string $code): array; + + /** + * 修改解析暂存数据,仅允许未确认导入的批次按主键更新白名单字段。 + */ + public function updateQuestionParseByCode(string $code, array $questionList, array $materialList): array; }