- users
id | username | password | role |
---|---|---|---|
1 | dht | dht | 1 |
- students
student_id | name | teacher_id | finished |
---|---|---|---|
1 | strider | 7 | 0 |
- problems
teacher_id | problem | total |
---|---|---|
7 | 1+1 | 1 |
root: http://39.105.8.165:3000
-
@reqParam:
- username string
- password string
-
@resParam:
- status integer
- id integer (teacher required)
return status
-1: login error
1: login by student
2: login by teacher
- @reqParam:
- teacher_id integer
- @resParam:
- stu{ student_id name teacher_id: finished: } array
- prob{ problem: total: } array
{
"stu":[{
"student_id":3,
"name":"myz",
"teacher_id":6,
"finished":0
},{
"student_id":4,
"name":"zgq",
"teacher_id":6,
"finished":0
},{
"student_id":5,
"name":"lxr",
"teacher_id":6,
"finished":0
}],
"prob":[{
"problem":"111",
"total":0
}]
}
- @reqParam:
- student_id integer
- @resParam:
- problems
- @reqParam:
- id
- finished(本次已完成的题数)
- @resParam:
- status
return status
0: error
1: success
- @reqParam:
- id
- problems
- num
- @resParam:
- status
return status
0: error
1: success