整理考试聚合契约的做卷接口
This commit is contained in:
@@ -15,25 +15,12 @@ interface ExamService extends
|
||||
QuestionTypeInterface,
|
||||
QuestionCategoryInterface,
|
||||
SmartPaperInterface,
|
||||
UserPaperInterface,
|
||||
CampusRelationInterface,
|
||||
PaperImportInterface,
|
||||
QuestionNoteInterface,
|
||||
AiInterviewQuestionInterface
|
||||
{
|
||||
/**
|
||||
* 开始做卷.
|
||||
*/
|
||||
public function startDoPaper(int $userId, int $paperId): array;
|
||||
|
||||
/**
|
||||
* 获取用户试卷详情.
|
||||
*/
|
||||
public function getUserPaperDetail(int $paperRecordId, bool $getCorrect): array;
|
||||
|
||||
/**
|
||||
* 获取用户试卷记录列表.
|
||||
*/
|
||||
public function getUserPaperList(array $params, int $userId): array;
|
||||
/**
|
||||
* 获取练习列表.
|
||||
*/
|
||||
|
||||
@@ -22,21 +22,6 @@ interface SmartPaperInterface
|
||||
*/
|
||||
public function getUserSmartPaperDetail(int $paperRecordId, bool $getCorrect): array;
|
||||
|
||||
/**
|
||||
* 提交题目答案
|
||||
* @param array $params 参数:paper_record_id, question_id, user_answer, used_time
|
||||
* @param int $userId 用户ID
|
||||
* @return array
|
||||
*/
|
||||
public function submitAnswer(array $params, int $userId): array;
|
||||
|
||||
/**
|
||||
* 提交用户试卷
|
||||
* @param array $params 参数:paper_record_id, used_time
|
||||
* @return array
|
||||
*/
|
||||
public function submitUserPaper(array $params): array;
|
||||
|
||||
/**
|
||||
* 获取用户试卷历史列表
|
||||
* @param array $params 参数:campus_id, exam_type_id, page, limit
|
||||
|
||||
Reference in New Issue
Block a user