From bfe41c4b99ebbec80b44af842849955d227e8369 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: Mon, 31 Aug 2026 16:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=84=E5=BC=B1=E9=A1=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ExamService/JsonRpcInterface/ExamServiceInterface.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ExamService/JsonRpcInterface/ExamServiceInterface.php b/src/ExamService/JsonRpcInterface/ExamServiceInterface.php index 575e216..f72e23e 100644 --- a/src/ExamService/JsonRpcInterface/ExamServiceInterface.php +++ b/src/ExamService/JsonRpcInterface/ExamServiceInterface.php @@ -99,6 +99,14 @@ interface ExamServiceInterface */ public function submitWrongPractice(int $userId, array $params): array; + /** + * 获取用户薄弱项(有错题且正确率低于阈值且正确率最低的模块;无则 null). + * + * 用于首页弹窗「薄弱项:{模块名}正确率低 → 攻克它 → 专项刷题」, + * 以及错题记录页面薄弱项展示;与错题记录首页统计字段 weak_category 同口径. + */ + public function appGetWeakPoint(int $userId): ?array; + /** * 获取考试类型列表(V1 兼容接口). */