Explorar o código

[新增]作业成绩统计api

soleil %!s(int64=7) %!d(string=hai) anos
pai
achega
039beda0c6

+ 2 - 1
prefix.md

@@ -9,6 +9,7 @@
 | 周玮璐 | 新增考试&&考试结果&&考试提交记录&&运行记录前缀     | 2018/12/22 |
 | 周玮璐 | 更改题目前缀为question     | 2018/12/25 |
 | 张亚森 | 新增作业前缀 | 2018/12/25|
+| 周玮璐 | 新增作业成绩统计前缀 | 2018/01/13|
 
 ## 前缀列表
 
@@ -22,4 +23,4 @@
 - [commit](exam/api/Commit-提交记录.md)
 - [record](exam/api/Record-运行记录.md)
 - [assignment](assignment/api/Code-代码作业.md)
-
+- [resultstatistics](resultstatistics/api/Resultstatistics-成绩统计.md)

+ 3 - 2
question/api/Question-题目.md

@@ -26,7 +26,8 @@ see [QuestionTypeSerializer](../serializer/QuestionTypeSerializer.md)
 [TEACHER]
 
 ```http
-get /teacher/questions
+get /teacher/questions/type?type="xxx"&
+get /teacher/questions/assignmenttype?type="xxx
 ```
 
 ### Parameters
@@ -71,7 +72,7 @@ get /teacher/questions
 
 | Name     | Type   | Description      |
 | -------- | ------ | ---------------- |
-| assignmenttype | String | 作业类型|
+| type | String | 作业类型|
 | page | number | 当前页数 |
 | limit | number | 每页的题目数量 |
 

+ 22 - 0
resultstatistics/api/Resultstatistics-成绩统计.md

@@ -0,0 +1,22 @@
+# Resultstatistics - 成绩统计
+
+> url 前缀:**resultstatistics**
+>
+> 示例:**https://xxxxxxxxx/api/resultstatistics/xxxx**
+
+## 获得所有学生所有作业的统计
+
+[TEACHER]
+
+```http
+post /course/:courseId
+```
+
+### Response
+
+```json
+{
+  "data": List<ResultstatisticsSerializer>
+}
+```
+see [ResultstatisticsSerializer](./serializer/ResultstatisticsSerializer.md)

+ 8 - 0
resultstatistics/serializer/NestedScoreSerializer.md

@@ -0,0 +1,8 @@
+# NestedScoreSerializer
+
+作业成绩的基本信息
+
+## Attributes
+- id: **number** - 作业id
+- name: **Sreing** - 作业名称
+- score: **number** - 作业成绩 | `[0-100]`

+ 10 - 0
resultstatistics/serializer/ResultstatisticsSerializer.md

@@ -0,0 +1,10 @@
+# ResultstatisticsSerializer
+
+作业成绩统计的基本信息
+
+## Attributes
+- id: **number** - 成绩统计id
+- user: [**UserSerializer**](../../user/serializer/UserSerializer.md) - 学生信息
+- documents: [**Array<NestedScoreSerializer>**](./NestedScoreSerializer.md) - 文档作业成绩
+- reviews: [**Array<NestedScoreSerializer>**](./NestedScoreSerializer.md) - 互评作业成绩
+- codes: [**Array<NestedScoreSerializer>**](./NestedScoreSerializer) - 代码作业成绩