Просмотр исходного кода

feat(自主学习): 添加修改测验题目和json的接口

新增两个接口用于自主学习模块:
- update_cocoStudyTest_testJsonById 修改测验题目
- update_cocoStudyTest_jsonById 修改测验json
SanHQin 4 недель назад
Родитель
Сommit
eb2ea1a2d7
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      pbl.js

+ 10 - 0
pbl.js

@@ -9973,6 +9973,16 @@ router.route("/select_cocoStudyTest_ById").all((req,res,next)=>{
   getmysql(req, res, "select_cocoStudyTest_ById",json["uid"],json["id"]);
   getmysql(req, res, "select_cocoStudyTest_ById",json["uid"],json["id"]);
 })
 })
 
 
+//qgt 自主学习-修改测验的题目
+router.route("/update_cocoStudyTest_testJsonById").all((req,res,next)=>{
+	postmysql(req, res, "update_cocoStudyTest_testJsonById");
+})
+
+//qgt 自主学习-修改测验的json
+router.route("/update_cocoStudyTest_jsonById").all((req,res,next)=>{
+	postmysql(req, res, "update_cocoStudyTest_jsonById");
+})
+
 
 
 
 
 //教师管理 查看填写范围的教师权限
 //教师管理 查看填写范围的教师权限