1234567891011121314151617181920212223242526 |
- # -*- coding: utf-8 -*-
- from fastapi import APIRouter
- from schemas.app.paper import QuestionList, QuestionAnswerDetail
- from .question import get_paper_questions, get_question_answer
- router = APIRouter(tags=["作业/考试中心-教师学生端"])
- router.add_api_route("/papers/{pid}/questions",
- get_paper_questions,
- methods=["get"],
- response_model=QuestionList,
- response_model_exclude_none=True,
- summary="作业/考试中心 - 试卷试题列表")
- router.add_api_route("/papers/{pid}/questions/{qno}-{sqno}/answer",
- get_question_answer,
- methods=["get"],
- response_model=QuestionAnswerDetail,
- response_model_exclude_none=True,
- response_model_by_alias=True,
- summary="作业/考试中心 - 批阅 - 查看答案")
- __all__ = [router]
|