文档
测试

获取试卷详情(改)

POST
base_url/ai/testsys/record_detail?pattern=spoken

接口描述

API中pattern(模式)选择:spoken(口语)、word(单词)、grammar(语法),新增multi(综合模式)

请求参数

参数名
类型
描述
必填
account
String
用户账号
必填
paperid
String
试卷ID(对应口语考试历史列表接口返回数据中data->studyHistory->paper_id字段)
必填

pattern=multi时响应参数

参数名
类型
描述
必填
code
int
状态码,200表示成功,其它表示失败或错误,示例:200
必填
info
string
状态码说明,示例:success
必填
data
object
数据字典
必填
detail
object
数据字典
必填
speak
array
同上传时结构,数据列表
必填
word
array
同上传时结构,数据列表
必填
grammar
object
新语法模块(同接口“t_api/v1/test_details”响应数据),数据字典
必填
titleGms
array
数据列表
必填
tid
int
示例:4
必填
gm
array
数据列表
必填
paper
array
数据列表
必填
type
string
示例:选择
必填
topic
array
数据列表
必填
topicID
int
示例:4
必填
testBasketID
int
示例:-1
必填
date
string
示例:2021-09-26
必填
counts
int
示例:0
必填
estimatedTime
int
示例:40
必填
open
boolean
示例:true
必填
type
int
示例:0
必填
titleid
string
示例:a19b8995-1ea5-11ec-b4d9-00cfe047e0e8
必填
gradeMain
string
示例:初中
必填
gradeSub
array
数据列表
必填
typeMain
string
示例:选择
必填
typeSub
string
示例:单项选择
必填
typeMainID
string
示例:MC
必填
bookVerID
int
示例:0
必填
typeid
string
示例:MC-SingleMC
必填
labels
string
示例:纳米级语法
必填
single
object
数据字典
必填
title
array
数据列表
必填
titleDesc
string
示例:
必填
listeningAudio
string
示例:
必填
listeningText
string
示例:
必填
options
array
数据列表
必填
id
string
示例:1
必填
op
string
示例:has gone to
必填
optionsType
string
示例:TXT
必填
answers
array
数据列表
必填
grammar
array
数据列表
必填
labels
array
数据列表
必填
analysis
array
数据列表
必填
remarks
string
示例:
必填
userAnswers
array
数据列表
必填
complex
object
数据字典
必填
totalScore
int
示例:1
必填
eachScore
int
示例:1
必填

说明 / 示例

**code 状态码** 1. 200 成功 2. 500 失败 **响应结果** 注意:和上传数据的字段对应且类型一致(单词、口语、语法响应数据和上传数据字段格式以及名称相同) **口语响应示例** ``` { "code": 200, "info": "success", "data": { "detail": { "paper_id": "1231587690161", // 试卷ID "pattern": "spoken", // 试卷类型 spoken口语 word单词 grammar语法 "time": "1587626308", // 考试时间戳 String "useTime": 34, // 考试用时(单位:秒) Int "score": 90, // 考试得分 Int "bookID": ["book1", "book2"], // 课本ID列表 "questionInfos": [ { "type": 0, // 0表示单词 1表示句子 "content": "floor", // 单词内容 "score": 60, // 考试分数 "fScore": 0, // 流利度 "iScore": 0, // 完整度 "aScore": 0, // 准确度 "answer": "https://aiwx.pgcxhy.com.cn/static/testsys/user_audio/a.wav", // 录音 "words": [] // 该字段表示一个句子中每个单词对应的分数,当类型是单词时,该字段为空,当为句子时,该字段中会显示句子中每个单词对应的分数信息(如下方words中所示) }, { "type": 1, "content": "Where is the picture?", "score": 94, "fScore": 0, "iScore": 0, "aScore": 0, "answer": "https://aiwx.pgcxhy.com.cn/static/testsys/user_audio/a.wav", "words": [ { "chara": "Where", "score": 100 }, { "chara": " ", "score": -1 } ] } ], "ipaInfo": { // 音标信息(此次测试涉及到的音频得分信息) "charas": [ { "chara": "f", // 音标 "score": 0 // 得分 }, { "chara": "l", "score": 93 } ] } } } } ``` **单词响应示例** ``` { "code": 200, "info": "success", "data": { "detail": { "paper_id": "1231587867689", // 此结构中字段含义和spoken中相同 "pattern": "word", "time": "1587864185", "useTime": 24, "score": 0, "bookID": [ "\\u4eba\\u6559\\u7248\\u4e09\\u8d77\\u70b9-\\u7b2c4\\u5e74\\u7ea7--\\u5355\\u8bcd\\uff1a187-\\u6587\\u7ae0\\uff1a3" ], "questionInfos": [ { "type": 0, // 考试类型 0英选汉 1汉选英 2根据汉语拼写单词 "content": "shoe", // 单词 "score": 100, // 得分 "answer": "A", // 用户选项 "options": [ // 测试题目 { "id": "A", "content": "n. \\u978b\\u5b50" }, { "id": "B", "content": "n. \\u7b7e\\u540d\\u7c3f\\uff0c\\u76f8\\u518c" }, { "id": "C", "content": "n. \\u53d1\\u5c55\\uff1b\\u8fdb\\u6b65\\uff1b\\u53d1\\u80b2\\uff1b\\u6210\\u957f" }, { "id": "D", "content": "v. \\u4fdd\\u62a4" } ], "right_Answer": "A" // 正确选项 }, { "type": 0, "content": "right", "score": 100, "answer": "D", "options": [ { "id": "A", "content": "n. (\\u590d\\u6570)\\u5185\\u6709\\u7684\\u7269\\u54c1" }, { "id": "B", "content": "v. \\u51b2\\u6d6a" }, { "id": "C", "content": "n. \\u9662\\u5b50" }, { "id": "D", "content": "adj. \\u6b63\\u786e\\u7684\\uff1b\\u9002\\u5f53\\u7684; \\u53f3\\u8fb9\\u7684\\uff0c\\u53f3\\u4fa7\\u7684" } ], "right_Answer": "D" }, { "type": 1, "content": "pron. \\u4ed6\\u7684", "score": 100, "answer": "D", "options": [ { "id": "A", "content": "Statue of Liberty" }, { "id": "B", "content": "Olympics" }, { "id": "C", "content": "advertising" }, { "id": "D", "content": "his" } ], "right_Answer": "D" }, { "type": 1, "content": "pron. \\u5979\\uff1b\\u5979\\u7684", "score": 100, "answer": "A", "options": [ { "id": "A", "content": "her" }, { "id": "B", "content": "snowman" }, { "id": "C", "content": "design" }, { "id": "D", "content": "confidence" } ], "right_Answer": "A" }, { "type": 2, "content": "n. \\u5934\\u53d1\\uff1b\\u6bdb\\u53d1", "score": 100, "answer": "hair", "options": [], "right_Answer": "hair" }, { "type": 2, "content": "adj. \\u5f3a\\u70c8\\u7684\\uff1b\\u5f3a\\u58ee\\u7684\\uff1b\\u575a\\u56fa\\u7684", "score": 0, "answer": "stronger", "options": [], "right_Answer": "strong" } ] } } } ``` **语法响应示例** ``` { "code": 200, "info": "success", "data": { "detail": { "paper_id": "1231588234029", // 试卷ID "pattern": "grammar", // 试卷类型 "time": "1588229448", // 考试时间戳 String "useTime": 59, // 考试用时(单位:秒) Int "score": 78.6, // 得分 Float "bookID": [], // 课本列表 List<String> "beginGrade": 8, // 开始年级 Int "endGrade": 7, // 结束时的年级 Int "averageTime": 5.8, // 没到题目平均用时 Float "questions": [ { "grade": 8, // 年级 Int "type": 25, // 类型 "id": 3, "answer": "C", // 答案 String "score": 93, // 该题目得分 Float "useTime": 17, // 该题用时(单位:秒) Int "grammar": {} // 语法点 } ] } } } ```