增加AI申论题相关管理接口

This commit is contained in:
2026-09-15 13:43:24 +08:00
parent b86dc5715e
commit 121e1f72dc
2 changed files with 53 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ use Dhd\Micro\Interface\ExamService\JsonRpcInterface\CampusRelationInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\PaperImportInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\QuestionNoteInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\DailyPracticeInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\AiEssayQuestionInterface;
interface ExamService extends
ExamServiceInterface,
@@ -33,4 +34,5 @@ interface ExamService extends
CampusRelationInterface,
PaperImportInterface,
QuestionNoteInterface,
DailyPracticeInterface {}
DailyPracticeInterface,
AiEssayQuestionInterface {}

View File

@@ -0,0 +1,50 @@
<?php
namespace Dhd\Micro\Interface\ExamService\JsonRpcInterface;
interface AiEssayQuestionInterface
{
/**
* 获取AI申论题列表
* @param array $params 查询参数
* @return array
*/
public function getAiEssayQuestionList(array $params): array;
/**
* 获取AI申论题详情
* @param int $id AI申论题id
* @return array|null
*/
public function getAiEssayQuestionDetail(int $id): ?array;
/**
* 创建AI申论题
* @param array $params AI申论题参数
* @return void
*/
public function createAiEssayQuestion(array $params): void;
/**
* 更新AI申论题
* @param int $id AI申论题id
* @param array $params AI申论题参数
*/
public function updateAiEssayQuestion(int $id, array $params): void;
/**
* 删除AI申论题
* @param int $id AI申论题id
* @return void
*/
public function deleteAiEssayQuestion(int $id): void;
/**
* 随机获取一个问题
* @param int $examTypeId 考试类型
* @param int $campusId 地区ID
* @param int $subjectId 考试科目
* @return array|null
*/
public function getQuestionRandom(int $examTypeId, int $campusId, int $subjectId): ?array;
}