DataService契约按实际提供方修正,拆分Course/Exam服务契约并补消费者配置
This commit is contained in:
18
src/CourseService/CourseServiceInterface.php
Normal file
18
src/CourseService/CourseServiceInterface.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Dhd\Micro\Interface\CourseService;
|
||||
|
||||
/**
|
||||
* 课程服务接口
|
||||
*/
|
||||
interface CourseServiceInterface
|
||||
{
|
||||
/**
|
||||
* 根据教师ID获取课程列表
|
||||
* @param int $teacherId 教师ID
|
||||
* @param string $platform 平台 admin-后台 app-APP
|
||||
*/
|
||||
public function getCoursesByTeacherId(int $teacherId, string $platform = 'app'): array;
|
||||
}
|
||||
Reference in New Issue
Block a user