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). *