From a8d5109a0acc39ca32ded44f800dc7c953d997b7 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: Thu, 3 Sep 2026 14:34:21 +0800 Subject: [PATCH] =?UTF-8?q?CampusRelation=E5=A5=91=E7=BA=A6=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=A6=96=E9=A1=B5=E7=A7=91=E7=9B=AE=E5=A5=97=E5=8D=B7?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JsonRpcInterface/CampusRelationInterface.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/ExamService/JsonRpcInterface/CampusRelationInterface.php b/src/ExamService/JsonRpcInterface/CampusRelationInterface.php index 29d6f77..9623593 100644 --- a/src/ExamService/JsonRpcInterface/CampusRelationInterface.php +++ b/src/ExamService/JsonRpcInterface/CampusRelationInterface.php @@ -34,4 +34,12 @@ interface CampusRelationInterface * @return array */ public function appGetCategoriesByRegionExamTypeSubject(int $regionId, int $examTypeId, int $subjectId): array; + + /** + * App 平台方法:按招考类型获取首页科目列表,并统计模拟/真题套卷总套数。 + * @param int $examTypeId 招考类型ID + * @param int $regionId 招考地区ID,0=全部 + * @return array 科目列表,每项附加 mock_total(模拟套数)、zhenti_total(真题套数)、total(总套数) + */ + public function appGetSubjectsByExamType(int $examTypeId, int $regionId = 0): array; }