chong

课包五星榜

@@ -148,4 +148,65 @@ @@ -148,4 +148,65 @@
148 "star": "1" 148 "star": "1"
149 }] 149 }]
150 } 150 }
  151 + ```
  152 +# 课包上节课成绩查询接口
  153 + * URL {env.url}/omnipotent/thinking/clazz/group/{groupId}/last/total/completion
  154 + * GET Method
  155 + * path 参数:
  156 +
  157 + |参数名 | 类型 | 必填 | 说明 | 示例 |
  158 + |-------------|--------|------|----------|------|
  159 + | groupId | Long | Y |班级id| classSmallId |
  160 +
  161 +
  162 + * request 参数:
  163 +
  164 + |参数名 | 类型 | 必填 | 说明 | 示例 |
  165 + |-------------|--------|------|----------|------|
  166 + | class_id | String | Y |班级id| classId |
  167 + | class_unit | String | Y |班级id| classUnit |
  168 +
  169 + * response:
  170 +
  171 + httpcode:404 没有上次课程成绩
  172 + httpcode:200
  173 +
  174 + |参数名 | 类型 | 必填 | 说明 | 示例 |
  175 + |-------------|--------|------|----------|------|
  176 + | coruse | object | Y |课程信息| |
  177 + | total_completion | List | Y |排行榜 |
  178 +
  179 + * course
  180 +
  181 + |参数名 | 类型 | 必填 | 说明 | 示例 |
  182 + |-------------|--------|------|----------|------|
  183 + | courseId | String | Y |课程id| |
  184 + | courseName | String | Y |课程名称 |
  185 + | paperId | String | N |纸质课程id |
  186 + | paperName | String | N |纸质课程名字 | |
  187 +
  188 + * total_completion
  189 +
  190 + |参数名 | 类型 | 必填 | 说明 | 示例 |
  191 + |-------------|--------|------|----------|------|
  192 + | user_id | String | Y |用户id| |
  193 + | user_real_name | String | Y |用户姓名 |
  194 + | figure_url | String | N |用户头像 |
  195 + | star | String | N |五星 | "1" |
  196 +
  197 + ```json
  198 + {
  199 + "course":{
  200 + "paperId":"",
  201 + "paperName":""
  202 + },
  203 + "total_completion":[{
  204 + "user_id": 100000008807,
  205 + "user_real_name": "周",
  206 + "figure_url": "https://avatars.boxfish.cn/user/1298889/figure/1467366361.jpg",
  207 + "paper_rate_score": 0,
  208 + "total_completion_grade": 0.8,
  209 + "star": "1"
  210 + }]
  211 + }
151 ``` 212 ```