[关闭]
@JackieQu 2018-08-16T18:31:47.000000Z 字数 3955 阅读 298

教室评分、查询

儿童编程


教室查询、搜索

Method and Url Structure

Method Resource URL
GET /server/classroom/classroom_score_list/

cURL Example

  1. curl -X GET -H -d data{...}
  2. https://app.bcjiaoyu.com/server/classroom/classroom_score_list/
  3. # 搜索姓名手机,传 keyword
  4. # 搜索结束时间,传 date
  5. https://app.bcjiaoyu.com/server/classroom/classroom_score_list/?keyword=哈哈&date=2018-07-24

JSON Response

  1. # scores = 0 表示未评分过
  2. # new_score 表示新分数
  3. {
  4. "count": 5346,
  5. "next": "http://app.bcjiaoyu.com/server/classroom/classroom_score_list/?page=2",
  6. "previous": null,
  7. "results": [
  8. {
  9. "pk": 9044,
  10. "teacher": {
  11. "pk": 367,
  12. "owner": "15201052252",
  13. "name": "啦啦啦"
  14. },
  15. "student": [
  16. {
  17. "pk": 7249,
  18. "owner": "18516271364",
  19. "name": "",
  20. "nickname": "",
  21. "avatar": "",
  22. "sex": "S",
  23. "birthday": null
  24. }
  25. ],
  26. "lesson": {
  27. "pk": 64,
  28. "order_index": 215,
  29. "course": {
  30. "pk": 25,
  31. "name": "第三阶段:HTML5(二)",
  32. "types": "paid",
  33. "price": "999.00",
  34. "content": "橙旭园儿童编程三阶段课程,适合11岁以上,学习过前两阶段的学员。\r\n\r\nHTML5,即超文本标记语言(HTML)第五次重大修改。\r\n\r\n包含了新的元素,属性和行为,同时包含了一系列可以被用来让 Web 站点和应用更加多样化,功能更强大的技术。\r\n\r\n本课程学习之后,将会自己设计并开发个人网站、网页游戏、动画及H5轻应用。",
  35. "banner": "http://resource.bcgame-face2face.haorenao.cn/h52.png",
  36. "lesson_duration": "40分钟",
  37. "lesson_total": "5",
  38. "teacher": "专业计算机工程师",
  39. "offer_price": "799.00",
  40. "grade": "9-16岁",
  41. "isbuy": true,
  42. "iswelfare": false,
  43. "teach_types": "online",
  44. "class_types": "onetoone",
  45. "inventory": 940,
  46. "bought": false,
  47. "need_ship": false,
  48. "isrent": false,
  49. "free_days": 0,
  50. "price_days": "0.00",
  51. "outside_buy_url": "",
  52. "isend": true
  53. },
  54. "name": "15-大作业-HTML介绍网站2",
  55. "content": "第十五课 大作业-HTML介绍网站2",
  56. "banner": ""
  57. },
  58. "classschedule": {
  59. "pk": 14715,
  60. "starttime": "2018-07-24T16:15:00",
  61. "endtime": "2018-07-24T17:25:00",
  62. "quantity": 1,
  63. "lesson_total": 1,
  64. "is_large_class": false
  65. },
  66. "name": "18516271364",
  67. "status": "finish",
  68. "types": "onetoone",
  69. "teach_types": "program_face2face",
  70. "join_datetime_student": null,
  71. "join_datetime_teacher": "2018-07-24T16:12:52",
  72. "leave_datetime_student": null,
  73. "leave_datetime_teacher": "2018-07-24T16:13:01",
  74. "teacher_userinfo": {
  75. "name": "啦啦啦",
  76. "avatar": "https://static1.bcjiaoyu.com/5a7ede147308f194ed9b108f98589a07_v.jpg-1080x1920"
  77. },
  78. "record": true,
  79. "student_userinfo": {
  80. "name": "18516271364",
  81. "avatar": "",
  82. "lesson_total": 1006
  83. },
  84. "scores": 0,
  85. "new_score": 0
  86. },
  87. ...
  88. ]
  89. }

评分细则

Method and Url Structure

Method Resource URL
GET /server/classroom/score_options/

cURL Example

  1. curl -X GET -H -d data{...}
  2. https://app.bcjiaoyu.com/server/classroom/score_options/

JSON Response

  1. {
  2. "count": 12,
  3. "next": "http://app.bcjiaoyu.com/server/classroom/score_options/?page=2",
  4. "previous": null,
  5. "results": [
  6. {
  7. "pk": 1,
  8. "describe": "按时上课、下课",
  9. "limit": 5
  10. },
  11. {
  12. "pk": 2,
  13. "describe": "仪容仪表",
  14. "limit": 5
  15. },
  16. {
  17. "pk": 3,
  18. "describe": "教姿教态",
  19. "limit": 5
  20. },
  21. {
  22. "pk": 4,
  23. "describe": "导入自然恰当",
  24. "limit": 5
  25. },
  26. {
  27. "pk": 5,
  28. "describe": "互动",
  29. "limit": 15
  30. },
  31. {
  32. "pk": 6,
  33. "describe": "趣味性、亲合力",
  34. "limit": 5
  35. },
  36. {
  37. "pk": 7,
  38. "describe": "讲解技巧",
  39. "limit": 20
  40. },
  41. {
  42. "pk": 8,
  43. "describe": "重难点集中讲解",
  44. "limit": 15
  45. },
  46. {
  47. "pk": 9,
  48. "describe": "课前课中出现问题及时联系班主任",
  49. "limit": 5
  50. },
  51. {
  52. "pk": 10,
  53. "describe": "学生表现、家长反馈",
  54. "limit": 5
  55. }
  56. ]
  57. }

评分

Method and Url Structure

Method Resource URL
POST /server/classroom/score/${pk}/

cURL Example

  1. curl -X POST -H -d data{...}
  2. https://app.bcjiaoyu.com/server/classroom/score/9044/

Request Data

  1. # key: 评分细则中的 pk
  2. # value: 每项对应的分数
  3. {
  4. "1": 5,
  5. "2": 2,
  6. "3": 5,
  7. "4": 4,
  8. "5": 15,
  9. "6": 3,
  10. "7": 18,
  11. "8": 10,
  12. "9": 5,
  13. "10": 4,
  14. "11": 1,
  15. "12": 0
  16. }

JSON Response

  1. {
  2. "status": 0,
  3. "message": ""
  4. }

教室评分明细

Method and Url Structure

Method Resource URL
GET /server/classroom/score_list/

cURL Example

  1. curl -X GET -H -d data{...}
  2. https://app.bcjiaoyu.com/server/classroom/score_list/?classroom=9044

JSON Response

  1. {
  2. "count": 12,
  3. "next": "http://app.bcjiaoyu.com/server/classroom/score_list/?classroom=9044&page=2",
  4. "previous": null,
  5. "results": [
  6. {
  7. "option": {
  8. "pk": 1,
  9. "describe": "按时上课、下课",
  10. "limit": 5
  11. },
  12. "score": 5
  13. },
  14. {
  15. "option": {
  16. "pk": 2,
  17. "describe": "仪容仪表",
  18. "limit": 5
  19. },
  20. "score": 2
  21. },
  22. {
  23. "option": {
  24. "pk": 3,
  25. "describe": "教姿教态",
  26. "limit": 5
  27. },
  28. "score": 5
  29. },
  30. {
  31. "option": {
  32. "pk": 4,
  33. "describe": "导入自然恰当",
  34. "limit": 5
  35. },
  36. "score": 4
  37. },
  38. {
  39. "option": {
  40. "pk": 5,
  41. "describe": "互动",
  42. "limit": 15
  43. },
  44. "score": 15
  45. },
  46. {
  47. "option": {
  48. "pk": 6,
  49. "describe": "趣味性、亲合力",
  50. "limit": 5
  51. },
  52. "score": 3
  53. },
  54. {
  55. "option": {
  56. "pk": 7,
  57. "describe": "讲解技巧",
  58. "limit": 20
  59. },
  60. "score": 18
  61. },
  62. {
  63. "option": {
  64. "pk": 8,
  65. "describe": "重难点集中讲解",
  66. "limit": 15
  67. },
  68. "score": 10
  69. },
  70. {
  71. "option": {
  72. "pk": 9,
  73. "describe": "课前课中出现问题及时联系班主任",
  74. "limit": 5
  75. },
  76. "score": 5
  77. },
  78. {
  79. "option": {
  80. "pk": 10,
  81. "describe": "学生表现、家长反馈",
  82. "limit": 5
  83. },
  84. "score": 4
  85. }
  86. ]
  87. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注