文档
测试

提交在线考试分数

POST
https://demo14.xiaoxiaocx.com/index/index/submit_grade

接口描述

交卷

请求头

参数名
类型
描述
必填
store
int
店铺ID
必填

请求参数

参数名
类型
描述
必填
openId
string
openid
必填
subject_id
string
科目ID
必填
grade
number
[ { "topic_id":1, "user_result":"A" }, { "topic_id":2, "user_result":"B" }, { "topic_id":3, "user_result":"C" } ]
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:success
必填
data
object
数据字典
必填
total_grade
int
示例:3 总分数
必填
total_count
int
总题数
必填
true_count
int
正确提数
必填
false_count
int
错误提数
必填
data
array
数据列表
必填
id
int
示例:1 (题目ID)
必填
store_id
int
示例:1 (平台ID)
必填
class_id
int
示例:1 (分类ID)
必填
title
string
示例:下面属于系统软件的是( ) (题目)
必填
img
string
示例: (题目图片)
必填
result
string
示例:A (真实结果)
必填
type
int
示例:1 (类型 1.单选 2.多选)
必填
grade
int
示例:0 (单题分数 目前没啥用)
必填
status
int
示例:1 (状态 1.正常 0.非正常)
必填
deleted
int
示例:0
必填
create_time
string
示例:2021-09-13 22:45:59
必填
update_time
string
示例:2021-09-13 22:45:59
必填
simple
int
示例:0 (难易程度)
必填
parse
object
示例:null (解析)
必填
sort
int
示例:1
必填
user_result
string
示例:A (用户真实答案)
必填
is_true
int
示例:1 (用户答案是否正确 1.正确 0.不正确)
必填
option
array
数据列表 (选项)
必填
label
string
示例:A
必填
title
string
示例:Oracle数据库管理系统
必填
value
string
示例:true
必填
num
int
题目序号
必填