Skip to content

用于查询热门试卷,目前热门试卷判断的标准是根据试卷的提交次数。

试卷查询

  • 请求方法:GET

  • 是否鉴权:否

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

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

  • 请求地址:index/collection/hotCollectionList

  • 请求参数:

参数名参数类型是否必填参数说明示例值
pageint页码1
sizeint每页数量10
category_uidstring试卷分类id
  • 成功示例:
javascript
{
	"data": {
		"items": [
			{
				"title": "测试试卷1",
				"cover": "http://a.com/adse.png",
				"publish_date": "2024-04-26",
				"uid": "9a19e01f61",
                "author": "兔兔答题",
                "free_state": 1,
                "submit": 10,
				"category": {
					"uid": "f97fb3397d",
					"title": "高考真题"
				},
                "exam_count": {
                    "real_option_count": 1,
                    "real_checkbox_count": 1,
                    "real_jude_count": 0,
                    "real_write_count": 0,
                    "real_question_count": 16
                },
			}
		],
		"total": 1,
		"page": 1,
		"size": 10
	},
	"code": 100,
	"msg": "请求成功"
}
参数名参数类型是否必有参数说明示例值
uidString试卷idf1f15b624e
titleString试卷名称学科知识
authorString试卷作者兔兔答题
free_stateint收费状态参考字典配置中的收费状态(free_status)
submitint答题人数10
coverString试卷封面http://a.com/32097c8b47634.png
share_qr_imageString试卷小程序二维码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
  • 失败示例:
javascript
{
	"code": 101,
	"data": [],
	"msg": "获取失败"
}