Data/Exam 契约补充 App 招考地区级联平台方法
This commit is contained in:
@@ -37,6 +37,15 @@ interface ExamTypeSubjectInterface
|
||||
*/
|
||||
public function getSubjectsByRegionExamType(int $regionId, int $examTypeId): array;
|
||||
|
||||
/**
|
||||
* App 平台方法:指定地区+招考类型下的科目列表。
|
||||
* region_id=0 聚合全部地区去重;具体地区同时包含通用关系(region_id=0)。
|
||||
* @param int $regionId 招考地区ID,0=全部
|
||||
* @param int $examTypeId 招考类型ID
|
||||
* @return array
|
||||
*/
|
||||
public function appGetSubjectsByRegionExamType(int $regionId, int $examTypeId): array;
|
||||
|
||||
/**
|
||||
* 获取多个适用地区共同可用的科目,避免调用方分别查询后自行求交集。
|
||||
* @param int[] $regionIds
|
||||
|
||||
@@ -34,6 +34,14 @@ interface RegionExamTypeInterface
|
||||
*/
|
||||
public function getExamTypesByRegion(int $regionId): array;
|
||||
|
||||
/**
|
||||
* App 平台方法:指定地区可用的招考类型列表。
|
||||
* 全国类型始终包含;地区专属类型仅返回该地区启用关系,展示名优先使用地区别名。
|
||||
* @param int $regionId 招考地区ID,0=全部
|
||||
* @return array
|
||||
*/
|
||||
public function appGetExamTypesByRegion(int $regionId): array;
|
||||
|
||||
/**
|
||||
* 覆盖设置招考类型的适用地区(多选地区一次性写入)
|
||||
* @param int $examTypeId 招考类型ID
|
||||
|
||||
@@ -14,6 +14,13 @@ interface RegionInterface
|
||||
|
||||
public function appGetRegionCampus(int $id): array;
|
||||
|
||||
/**
|
||||
* App 招考地区菜单(V2):首项固定 id=0/region_id=0 表示全部,不再输出历史全国值 1。
|
||||
* @param array $params 兼容分页/过滤参数
|
||||
* @return array
|
||||
*/
|
||||
public function appGetRegionsV2(array $params = []): array;
|
||||
|
||||
public function getRegionBy(int $id): array;
|
||||
|
||||
public function createRegion(array $data): int;
|
||||
|
||||
Reference in New Issue
Block a user