diff --git a/src/ExamService/ExamService.php b/src/ExamService/ExamService.php index aa173ce..438e145 100644 --- a/src/ExamService/ExamService.php +++ b/src/ExamService/ExamService.php @@ -17,6 +17,7 @@ use Dhd\Micro\Interface\ExamService\JsonRpcInterface\SmartPaperInterface; 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; interface ExamService extends ExamServiceInterface, @@ -31,4 +32,5 @@ interface ExamService extends SmartPaperInterface, CampusRelationInterface, PaperImportInterface, - QuestionNoteInterface {} + QuestionNoteInterface, + DailyPracticeInterface {} diff --git a/src/ExamService/JsonRpcInterface/DailyPracticeInterface.php b/src/ExamService/JsonRpcInterface/DailyPracticeInterface.php new file mode 100644 index 0000000..24e535e --- /dev/null +++ b/src/ExamService/JsonRpcInterface/DailyPracticeInterface.php @@ -0,0 +1,21 @@ +} + */ + public function appGetDailyPractice(int $userId): array; +} diff --git a/src/ExamService/JsonRpcInterface/QuestionInterface.php b/src/ExamService/JsonRpcInterface/QuestionInterface.php index d1772db..2c5fdd1 100644 --- a/src/ExamService/JsonRpcInterface/QuestionInterface.php +++ b/src/ExamService/JsonRpcInterface/QuestionInterface.php @@ -89,4 +89,12 @@ interface QuestionInterface * @return array */ public function getUserQuestionRecordDetailListV2(string $testCode, int $userId): array; + + /** + * 获取刷题题目,V2版本(原抽题方式,无 success 包装) + * @param array $params 参数(num/category_id/parent_category_id/campus_id/exam_type_id/subject_id/test_type/is_fast/get_correct) + * @param int $userId 用户ID + * @return array 题目列表 + */ + public function getExerciseQuestionListV2(array $params, int $userId): array; }