DataService契约按实际提供方修正,拆分Course/Exam服务契约并补消费者配置

This commit is contained in:
堂吉诃德拉曼查的英豪
2026-08-06 09:26:02 +08:00
parent 19af705883
commit 64a5645e60
6 changed files with 88 additions and 12 deletions

View 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;
}