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

@@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Dhd\Micro\Interface\DataService\Course;
namespace Dhd\Micro\Interface\CourseService;
/**
* 课程服务接口

View File

@@ -6,9 +6,6 @@
namespace Dhd\Micro\Interface\DataService;
use Dhd\Micro\Interface\DataService\Course\CourseServiceInterface;
use Dhd\Micro\Interface\DataService\Exam\ExamServiceInterface;
interface DataService extends
DataServiceInterface,
AgreementInterface,
@@ -24,6 +21,4 @@ interface DataService extends
ExcelHeaderFieldsInterface,
DictionaryInterface,
MajorsInterface,
GuideNavInterface,
CourseServiceInterface,
ExamServiceInterface {}
GuideNavInterface {}

View File

@@ -1,6 +1,6 @@
<?php
namespace Dhd\Micro\Interface\DataService\Exam;
namespace Dhd\Micro\Interface\ExamService;
interface ExamServiceInterface extends GufenPaperInterface
{
@@ -334,7 +334,6 @@ interface ExamServiceInterface extends GufenPaperInterface
// 试卷相关
// 试卷相关
/**
* 创建试卷.
* @param array $params
@@ -489,7 +488,6 @@ interface ExamServiceInterface extends GufenPaperInterface
*/
public function getErrorStats(int $userId, int $questionId): array;
/**
* 保存用户答题记录.
* @param array $params
@@ -518,7 +516,6 @@ interface ExamServiceInterface extends GufenPaperInterface
*/
public function batchUpdateScores(array $params): bool;
public function getCategoryList(array $params): array;
public function getSubQuestionCategoryList(array $data): array;

View File

@@ -1,6 +1,6 @@
<?php
namespace Dhd\Micro\Interface\DataService\Exam;
namespace Dhd\Micro\Interface\ExamService;
interface GufenPaperInterface
{