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 试卷类型