Explorar el Código

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

新增两个接口用于自主学习模块:
- update_cocoStudyTest_testJsonById 修改测验题目
- update_cocoStudyTest_jsonById 修改测验json
SanHQin hace 4 semanas
padre
commit
eb2ea1a2d7
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  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"]);
 })
 
+//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");
+})
+
 
 
 //教师管理 查看填写范围的教师权限