Showing
1 changed file
with
131 additions
and
0 deletions
smallclass.md
0 → 100644
| 1 | +## 创建群组接口 | ||
| 2 | + | ||
| 3 | +>小班授课建群 | ||
| 4 | +> | ||
| 5 | + | ||
| 6 | +接口地址: /teaching/smallclass/group | ||
| 7 | + | ||
| 8 | +Request method:POST | ||
| 9 | + | ||
| 10 | +Request body: | ||
| 11 | + | ||
| 12 | +``` | ||
| 13 | +{ | ||
| 14 | + "smallClassId": 123, | ||
| 15 | + "teacherId": [ | ||
| 16 | + 111, | ||
| 17 | + 222, | ||
| 18 | + 333 | ||
| 19 | + ], | ||
| 20 | + "studentId": [ | ||
| 21 | + 444, | ||
| 22 | + 555, | ||
| 23 | + 666 | ||
| 24 | + ] | ||
| 25 | +} | ||
| 26 | +``` | ||
| 27 | + | ||
| 28 | +Response: | ||
| 29 | + | ||
| 30 | +``` | ||
| 31 | +{ | ||
| 32 | + "data": { | ||
| 33 | + "groupId": "@TGP#demo", | ||
| 34 | + "chatRoomId": 2231445 | ||
| 35 | + }, | ||
| 36 | + "returnCode": 200, | ||
| 37 | + "returnMsg": "success" | ||
| 38 | +} | ||
| 39 | +``` | ||
| 40 | + | ||
| 41 | +## 获取群组接口 | ||
| 42 | + | ||
| 43 | +>小班授课获取群房间信息 | ||
| 44 | +> | ||
| 45 | + | ||
| 46 | +接口地址: /teaching/smallclass/group | ||
| 47 | + | ||
| 48 | +Request method:GET | ||
| 49 | + | ||
| 50 | +Request Params: | ||
| 51 | + | ||
| 52 | +|参数名 |是否必须 |说明 |参数类型 | | ||
| 53 | +|--------------|-----------|--------|-----------------| | ||
| 54 | +|small_class_id|是 |小班id |Long | | ||
| 55 | + | ||
| 56 | +response: | ||
| 57 | + | ||
| 58 | +``` | ||
| 59 | +{ | ||
| 60 | + "data": { | ||
| 61 | + "groupId": "@TGP#demo", | ||
| 62 | + "chatRoomId": 2231445 | ||
| 63 | + }, | ||
| 64 | + "returnCode": 200, | ||
| 65 | + "returnMsg": "success" | ||
| 66 | +} | ||
| 67 | +``` | ||
| 68 | + | ||
| 69 | +## 解散群组接口 | ||
| 70 | + | ||
| 71 | +>小班授课解散群房间信息 | ||
| 72 | +> | ||
| 73 | + | ||
| 74 | +接口地址: /teaching/smallclass/group | ||
| 75 | + | ||
| 76 | +Request method:DELETE | ||
| 77 | + | ||
| 78 | +Request Params: | ||
| 79 | + | ||
| 80 | +|参数名 |是否必须 |说明 |参数类型 | | ||
| 81 | +|--------------|-----------|--------|-----------------| | ||
| 82 | +|small_class_id|是 |小班id |Long | | ||
| 83 | + | ||
| 84 | +response: | ||
| 85 | + | ||
| 86 | +``` | ||
| 87 | + | ||
| 88 | +{ | ||
| 89 | + "data": "", | ||
| 90 | + "returnCode": 200, | ||
| 91 | + "returnMsg": "success" | ||
| 92 | +} | ||
| 93 | +``` | ||
| 94 | + | ||
| 95 | + | ||
| 96 | +## 公开课加积分接口 | ||
| 97 | + | ||
| 98 | +>1.公开课加积分接口,目前是加300分 | ||
| 99 | +>2.此接口需要access_token | ||
| 100 | +> | ||
| 101 | +>3.class_type: | ||
| 102 | +>正常课,NORMAL | ||
| 103 | +>小班课,SMALL | ||
| 104 | +>公开课,PUBLIC | ||
| 105 | +> | ||
| 106 | +>目前只能传 PUBLIC | ||
| 107 | + | ||
| 108 | +接口地址: /teaching/student/score/constant | ||
| 109 | + | ||
| 110 | +Request method:POST | ||
| 111 | + | ||
| 112 | +Request Params: | ||
| 113 | + | ||
| 114 | +|参数名 |是否必须 |说明 |参数类型 | | ||
| 115 | +|--------------|-----------|----------------|-----------------| | ||
| 116 | +|lesson_id |是 |课程id |String | | ||
| 117 | +|user_id |是 |需要加积分的用户id |Long | | ||
| 118 | +|class_type |是 |课程类型,见说明 |String | | ||
| 119 | + | ||
| 120 | + | ||
| 121 | +response: | ||
| 122 | + | ||
| 123 | +``` | ||
| 124 | +{ | ||
| 125 | + "data": { | ||
| 126 | + "score": 300 | ||
| 127 | + }, | ||
| 128 | + "returnCode": 200, | ||
| 129 | + "returnMsg": "success" | ||
| 130 | +} | ||
| 131 | +``` |
-
Please register or login to post a comment