[关闭]
@chengxuyuan 2021-07-14T08:07:45.000000Z 字数 1222 阅读 305

直播教室-学生学情-文档

橙旭园服务器


更新用户直播教室互动次数

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

  1. 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

  1. {"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

  1. {
  2. "username":"15201052252",
  3. "classroom_id":37,
  4. "is_ask_leave": true
  5. }

cURL Example

  1. 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

  1. {"status":0,"message":""}
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注