From 2f530d6595835484ab17afb0d8170e28cb74104f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A0=82=E5=90=89=E8=AF=83=E5=BE=B7=E6=8B=89=E6=9B=BC?= =?UTF-8?q?=E6=9F=A5=E7=9A=84=E8=8B=B1=E8=B1=AA?= Date: Wed, 2 Sep 2026 10:26:42 +0800 Subject: [PATCH] =?UTF-8?q?ExamService=E5=A5=91=E7=BA=A6=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=94=99=E9=A2=98=E7=BB=83=E4=B9=A0=E6=8A=BD=E9=A2=98=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/JsonRpcInterface/ExamServiceInterface.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/ExamService/JsonRpcInterface/ExamServiceInterface.php b/src/ExamService/JsonRpcInterface/ExamServiceInterface.php index f72e23e..4c3084e 100644 --- a/src/ExamService/JsonRpcInterface/ExamServiceInterface.php +++ b/src/ExamService/JsonRpcInterface/ExamServiceInterface.php @@ -99,6 +99,13 @@ interface ExamServiceInterface */ public function submitWrongPractice(int $userId, array $params): array; + /** + * 错题练习抽题:按分类抽取用户当前错题(仅错题,不足 num 时全量返回),随机排序. + * + * @param array $params category_id 分类ID(模块根或知识点);num 抽题数量;get_correct 是否附带正确答案 + */ + public function getWrongPracticeQuestions(array $params, int $userId): array; + /** * 获取用户薄弱项(有错题且正确率低于阈值且正确率最低的模块;无则 null). *