学生答题系统
用户
dt_user
id
name
account
secret
email
status //1正常2登录过多3系统封禁
管理后台接口
curd dtuser()
api
post register(dt_user)
post login(loginType,dt_user)//account+secret+(op)email,email+secret
get getUserInfo((header)authorization)
post resetSecret(dt_user)//account+secret+email
考卷/试题维护
dt_q //题库
id
type//1单选 2多选 3填空 4简述题
status//1正常 2停用
title
subtitle
score
option//json:["A."...] or ["_"]
answer//json:["A"...]
dt_st //试卷
id
status//1正常 2停用
totalscore
title
subtitle
answers: [["A"...],...]
dt_st_q //试卷问题(问题是快照)
id
stid
qid
type//1单选 2多选 3填空 4简述题
score
title
subtitle
option//json:["A."...] or ["_"]
answer//json:["A"...]
管理后台接口
curd dtq()
curd dtst()
api
get dtstById() //获取试卷
用户答题
dt_user_st
id
uid
stid
score
status//1正常 2作弊
answers:[],
answers0:[10,0,20]
管理后台接口
curd dtUserSt()
api
post userSt(userId,stid,answers) //考生答题