|
@@ -30,10 +30,10 @@ get /teacher/problems
|
|
|
|
|
|
|
|
### Parameters
|
|
### Parameters
|
|
|
|
|
|
|
|
-| Name | Type | Description |
|
|
|
|
|
-| -------- | ------ | ---------------- |
|
|
|
|
|
-| type | String | 题目类型 |
|
|
|
|
|
-| page | number | 当前页数 |
|
|
|
|
|
|
|
+| Name | Type | Description |
|
|
|
|
|
+| ----- | ------ | -------------- |
|
|
|
|
|
+| type | String | 题目类型 |
|
|
|
|
|
+| page | number | 当前页数 |
|
|
|
| limit | number | 每页的题目数量 |
|
|
| limit | number | 每页的题目数量 |
|
|
|
|
|
|
|
|
|
|
|
|
@@ -59,11 +59,11 @@ get /teacher/problems
|
|
|
|
|
|
|
|
### Parameters
|
|
### Parameters
|
|
|
|
|
|
|
|
-| Name | Type | Description |
|
|
|
|
|
-| -------- | ------ | ---------------- |
|
|
|
|
|
-| assignmenttype | String | 作业类型|
|
|
|
|
|
-| page | number | 当前页数 |
|
|
|
|
|
-| limit | number | 每页的题目数量 |
|
|
|
|
|
|
|
+| Name | Type | Description |
|
|
|
|
|
+| -------------- | ------ | -------------- |
|
|
|
|
|
+| assignmenttype | String | 作业类型 |
|
|
|
|
|
+| page | number | 当前页数 |
|
|
|
|
|
+| limit | number | 每页的题目数量 |
|
|
|
|
|
|
|
|
### Response
|
|
### Response
|
|
|
|
|
|
|
@@ -87,8 +87,8 @@ get /teacher/keyword
|
|
|
|
|
|
|
|
### Parameters
|
|
### Parameters
|
|
|
|
|
|
|
|
-| Name | Type | Description |
|
|
|
|
|
-| -------- | ------ | ---------------- |
|
|
|
|
|
|
|
+| Name | Type | Description |
|
|
|
|
|
+| ------- | ------ | -------------- |
|
|
|
| keyword | String | 用户查找关键字 |
|
|
| keyword | String | 用户查找关键字 |
|
|
|
|
|
|
|
|
### Response
|
|
### Response
|
|
@@ -144,11 +144,17 @@ post /teacher/problem
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-//TODO:
|
|
|
|
|
-- 题目名称重复
|
|
|
|
|
-
|
|
|
|
|
see [ProblemSerializer](../serializer/ProblemSerializer.md)
|
|
see [ProblemSerializer](../serializer/ProblemSerializer.md)
|
|
|
|
|
|
|
|
|
|
+### Error
|
|
|
|
|
+
|
|
|
|
|
+```json
|
|
|
|
|
+{
|
|
|
|
|
+ "code": 400,
|
|
|
|
|
+ "message": "题目名称重复",
|
|
|
|
|
+}
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
## 更新题目
|
|
## 更新题目
|
|
|
|
|
|
|
|
[TEACHER]
|
|
[TEACHER]
|
|
@@ -185,9 +191,9 @@ delete /teacher/problemDelete
|
|
|
|
|
|
|
|
### Parameters
|
|
### Parameters
|
|
|
|
|
|
|
|
-| Name | Type | Description |
|
|
|
|
|
-| -------- | ------ | ---------------- |
|
|
|
|
|
-| problemId | number | 题目ID |
|
|
|
|
|
|
|
+| Name | Type | Description |
|
|
|
|
|
+| --------- | ------ | ----------- |
|
|
|
|
|
+| problemId | number | 题目ID |
|
|
|
|
|
|
|
|
###Response
|
|
###Response
|
|
|
|
|
|