From 2b19cbb51291624d4f3494404f7ba7c0e44e5e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8E=E9=9D=9E?= Date: Thu, 17 Sep 2026 11:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E7=9B=AE=E5=AF=BC=E5=85=A5=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E4=BF=AE=E6=AD=A3=EF=BC=9A=E6=96=B0=E5=A2=9E=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E6=9A=82=E5=AD=98=E6=A0=A1=E9=AA=8C=E4=B8=8E=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E5=A5=91=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/JsonRpcInterface/QuestionInterface.php | 10 ++++++++++ .../JsonRpcInterface/QuestionParseInterface.php | 5 +++++ 2 files changed, 15 insertions(+) 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; }