Skip to content

该接口用于查询试卷详情信息。

信息查询

  • 请求方法:GET

  • 是否鉴权:是

  • 请求编码:Content-Type:application/x-www-form-urlencoded

  • 响应编码:Content-Type:application/json;charset=UTF-8

  • 请求地址:index/collection/collectionInfo

  • 请求参数:

参数名参数类型是否必填参数说明示例值
uidstring试卷uid
typeint11模拟考试2每日练习
  • 成功示例:
javascript
{
  "data": {
    "exam_count": {
      "real_option_count": 45,
      "real_checkbox_count": 59,
      "real_jude_count": 0,
      "real_write_count": 0,
      "real_question_count": 0
    },
    "category": {
        "uid": "sdfsd123123",
        "title": "模拟考试",
    },
    "uid": "6a352aet6q1fa",
    "title": "近现代中国新旧民主主义革命的发展与实践",
    "year": 0,
    "time": "00:10:00",
    "option_count": 10,
    "option_score": "1.00",
    "checkbox_count": 10,
    "checkbox_score": "1.00",
    "jude_count": 10,
    "jude_score": "1.00",
    "remark": "",
    "publish_date": "2023-07-01",
    "free_state": 1,
    "author": "兔兔答题",
    "cover": "https://xxxx/xxxxx.png",
    "level": 1,
    "submit": 0
  },
  "code": 100,
  "msg": "请求成功"
}
参数名参数类型是否必有参数说明示例值
uidString试卷idf1f15b624e
titleString试卷名称学科知识
authorString试卷作者兔兔答题
free_stateint收费状态参考字典配置中的收费状态(free_status)
submitint答题次数10
timeString试卷时长00:10:00
yearint试卷年份0表示后端没有设置页面需要展示的地方就写无
coverString试卷封面http://a.com/32097c8b47634.png
publish_dateString试卷发布日期f1f15b624e
category.uidstring试卷分类idf97fb3397d
category.titlestring试卷分类名称(展示的二级分类名称)高考真题
real_question_countint问答题数量16
real_option_countint选择题数量1
real_checkbox_countint多选题总数1
real_jude_countint判断题总数0
real_write_countint填空题总数0
real_question_countint问答题数量16
option_countint选择题总数(模拟考试)1
checkbox_countint选择题总数(模拟考试)1
jude_countint选择题总数(模拟考试)1
option_scoreString选择题总分(模拟考试)1.00
checkbox_scoreString选择题总分(模拟考试)1.00
jude_scoreString选择题总分(模拟考试)1.00
  • 失败示例:
javascript
{
	"code": 101,
	"data": [],
	"msg": "获取失败"
}