基础数据-校区服务
This commit is contained in:
37
extend/MicroService/src/Contract/CampusServiceInterface.php
Normal file
37
extend/MicroService/src/Contract/CampusServiceInterface.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MicroService\Contract;
|
||||
|
||||
interface CampusServiceInterface
|
||||
{
|
||||
/**
|
||||
* 获取校区详情.
|
||||
* @param int $id 校区ID
|
||||
*/
|
||||
public function getCampusById(int $id): array;
|
||||
|
||||
/**
|
||||
* 批量获取校区信息.
|
||||
* @param array $ids 校区ID列表
|
||||
*/
|
||||
public function getCampusesByIds(array $ids): array;
|
||||
|
||||
/**
|
||||
* 根据父ID获取子校区.
|
||||
* @param int $parentId 父级ID
|
||||
*/
|
||||
public function getCampusesByParentId(int $parentId): array;
|
||||
|
||||
/**
|
||||
* 获取省份列表.
|
||||
*/
|
||||
public function getProvinces(): array;
|
||||
|
||||
/**
|
||||
* 根据省份获取城市列表.
|
||||
* @param string $province 省份名称
|
||||
*/
|
||||
public function getCitiesByProvince(string $province): array;
|
||||
}
|
||||
Reference in New Issue
Block a user