Explorar o código

新增删除操作

Bay %!s(int64=6) %!d(string=hai) anos
pai
achega
90690efadf
Modificáronse 2 ficheiros con 30 adicións e 0 borrados
  1. 15 0
      helper/api/Question-问题.md
  2. 15 0
      helper/api/Quiz-测试.md

+ 15 - 0
helper/api/Question-问题.md

@@ -91,3 +91,18 @@ QuestionSerializer;
 ```
 
 see [QuestionSerializer](../serializer/QuestionSerializer.md)
+
+## 删除题目
+
+`TEACHER`
+
+```http
+delete /:questionId
+```
+
+### Response
+
+```ts
+{
+}
+```

+ 15 - 0
helper/api/Quiz-测试.md

@@ -105,6 +105,21 @@ QuizSerializer;
 
 see [QuizSerializer](../serializer/QuizSerializer.md)
 
+### 删除测试 (仅限未开始时可以删除)
+
+`TEACHER`
+
+```http
+delete /:quizId
+```
+
+### Response
+
+```ts
+{
+}
+```
+
 ## 提交答案
 
 `STUDENT`