直播教室-学生学情-文档
橙旭园服务器
更新用户直播教室互动次数
Method and URL Structure
Method |
Method Resource URL |
Descriptions |
Authentications Required |
PUT |
/server/job_management/student_academic/update_interaction_count/ |
更新用户直播教室互动次数 |
YES |
Request Parameters
Name |
Description |
Required |
Default |
classroom_id |
直播教室 pk |
YES |
|
cURL Example
curl -X PUT http://127.0.0.1:8000/server/job_management/student_academic/update_interaction_count/ --data '{ "classroom_id":41}' -H 'Content-Type: application/json' -H 'Authorization: Token f5d99e3acf2b3e76d63d4a8a8a2389d86e43d9cc'
Response
{"status":0,"message":""}
更新用户直播教室的某些数据
Method and URL Structure
Method |
Method Resource URL |
Descriptions |
Authentications Required |
PUT |
/server/job_management/student_academic/update_student_classroom/ |
更新用户直播教室互动次数 |
YES |
Request Parameters
Name |
Description |
Required |
Default |
classroom_id |
直播教室 pk |
YES |
|
username |
用户账号 |
YES |
|
is_ask_leave |
是否请假 |
NO |
|
is_deal_vacation |
请假是否已处理 |
NO |
|
student_classroom_evaluate |
评价内容 |
NO |
|
Request
{
"username":"15201052252",
"classroom_id":37,
"is_ask_leave": true
}
cURL Example
curl -X PUT http://127.0.0.1:8000/server/job_management/student_academic/update_student_classroom/ --data '{ "classroom_id":41, "username":"", "is_ask_leave": true}' -H 'Content-Type: application/json' -H 'Authorization: Token f5d99e3acf2b3e76d63d4a8a8a2389d86e43d9cc'
Response
{"status":0,"message":""}