From 88c1279f12eea0094821c43d64b894db8ef2c369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8E=E9=9D=9E?= Date: Wed, 14 Oct 2026 14:52:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E5=88=86=E7=B1=BB=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=8D=B7=E5=86=85=E5=88=86=E5=80=BC=20?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=8D=B7=E5=86=85=E5=8D=95=E9=A2=98=E5=88=86?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/JsonRpcInterface/PaperInterface.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ExamService/JsonRpcInterface/PaperInterface.php b/src/ExamService/JsonRpcInterface/PaperInterface.php index 83995b0..7469dea 100644 --- a/src/ExamService/JsonRpcInterface/PaperInterface.php +++ b/src/ExamService/JsonRpcInterface/PaperInterface.php @@ -58,6 +58,18 @@ interface PaperInterface */ public function getPaperQuestionList(int $paperId, bool $getCorrect = false, string $platform = 'admin'): array; + /** + * 设置卷内单题分值(后台试卷详情即时改分,只改本卷卷内分值) + * @param array $params ['paper_id' => int, 'question_id' => int, 'score' => float] + */ + public function setPaperQuestionScore(array $params): array; + + /** + * 按分类批量设置卷内分值(设置分类总分,按该分类在本卷的题目数平均分配,末题吸收差额) + * @param array $params ['paper_id' => int, 'categories' => [['category_id' => int, 'total_score' => float], ...]] + */ + public function batchSetPaperQuestionScores(array $params): array; + /** * 按年份统计试卷数量 * @param int $paperType 试卷类型