Data/Exam 契约补充 App 招考地区级联平台方法

This commit is contained in:
堂吉诃德拉曼查的英豪
2026-08-12 15:00:27 +08:00
parent 0159960728
commit d56b6cd206
4 changed files with 43 additions and 0 deletions

View File

@@ -11,8 +11,27 @@ interface CampusRelationInterface
*/
public function getCampusRelationData(int $campusId = 1, int $examTypeId = 1, int $subjectId = 1, int $userId = 0): array;
/**
* App 平台方法:首页级联数据(地区/招考类型/科目/题型分类)。
* @param int $regionId 招考地区ID,0=全部
* @param int $examTypeId 招考类型ID,0=不限制
* @param int $subjectId 考试科目ID,0=不限制
* @param int $userId 用户ID,0=未登录
* @return array
*/
public function appGetCampusRelationData(int $regionId = 0, int $examTypeId = 0, int $subjectId = 0, int $userId = 0): array;
/**
* 按条件获取题型分类树.
*/
public function getCategoriesByConditions(int $campusId, int $examTypeId, int $subjectId): array;
/**
* App 平台方法:指定地区+招考类型+科目下的题型分类树。
* @param int $regionId 招考地区ID,0=全部
* @param int $examTypeId 招考类型ID
* @param int $subjectId 考试科目ID
* @return array
*/
public function appGetCategoriesByRegionExamTypeSubject(int $regionId, int $examTypeId, int $subjectId): array;
}