..
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
<?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;
|
||||
}
|
||||
@@ -1,11 +1,41 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace MicroService\Contract;
|
||||
|
||||
interface TeacherServiceInterface
|
||||
interface DataServiceInterface
|
||||
{
|
||||
// ----------------- 校区服务 -----------------
|
||||
/**
|
||||
* 获取校区详情.
|
||||
* @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;
|
||||
|
||||
// ----------------- 教师服务 -----------------
|
||||
|
||||
/**
|
||||
* 获取教师详情.
|
||||
* @param int $id 教师ID
|
||||
@@ -41,4 +71,4 @@ interface TeacherServiceInterface
|
||||
* @param int $size 每页条数
|
||||
*/
|
||||
public function searchTeachers(string $keyword, int $page = 1, int $size = 20): array;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user