调整AI面试相关接口

This commit is contained in:
2026-09-20 10:24:39 +08:00
parent 3ef41a50ec
commit 4c0429489d
4 changed files with 48 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ namespace Dhd\Micro\Interface\ExamService;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\ExamServiceInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\UserPaperInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\AiInterviewCategoryInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\AiInterviewQuestionInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\CustomQuestionInterface;
use Dhd\Micro\Interface\ExamService\JsonRpcInterface\PaperInterface;
@@ -23,6 +24,7 @@ use Dhd\Micro\Interface\ExamService\JsonRpcInterface\AiEssayQuestionInterface;
interface ExamService extends
ExamServiceInterface,
UserPaperInterface,
AiInterviewCategoryInterface,
AiInterviewQuestionInterface,
CustomQuestionInterface,
PaperInterface,

View File

@@ -11,6 +11,13 @@ interface AiEssayQuestionInterface
*/
public function getAiEssayQuestionList(array $params): array;
/**
* app获取AI申论题列表
* @param array $params 查询参数
* @return array
*/
public function appGetAiEssayQuestionList(array $params): array;
/**
* 获取AI申论题详情
* @param int $id AI申论题id

View File

@@ -0,0 +1,32 @@
<?php
namespace Dhd\Micro\Interface\ExamService\JsonRpcInterface;
interface AiInterviewCategoryInterface
{
/**
* 获取AI面试类型列表
* @param array $params 查询参数
* @return array
*/
public function getAiInterviewCategoryList(array $params): array;
/**
* 创建AI面试类型
* @param array $params 创建参数
*/
public function createAiInterviewCategory(array $params): void;
/**
* 更新AI面试类型
* @param int $id 类型ID
* @param array $params 更新参数
*/
public function updateAiInterviewCategory(int $id, array $params): void;
/**
* 删除AI面试类型
* @param int $id 类型ID
*/
public function deleteAiInterviewCategory(int $id): void;
}

View File

@@ -11,6 +11,13 @@ interface AiInterviewQuestionInterface
*/
public function getAiInterviewQuestionList(array $params): array;
/**
* app获取面试题列表
* @param array $params 查询参数
* @return array
*/
public function appGetAiInterviewQuestionList(array $params): array;
/**
* 管理端获取面试题列表(平台方法):在通用列表基础上逐行附加音频生成状态 audio
* @param array $params 查询参数,同 getAiInterviewQuestionList