Sfoglia il codice sorgente

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/pbl-api

lsc 1 anno fa
parent
commit
0987d92c52
1 ha cambiato i file con 81 aggiunte e 0 eliminazioni
  1. 81 0
      pbl.js

+ 81 - 0
pbl.js

@@ -5726,6 +5726,12 @@ router.route("/selectAllSourceType").all((req, res, next) => {
     getmysql(req, res, "selectAllSourceType", json["oid"], json["org"]);
 });
 
+//查询资源分类
+router.route("/selectAllEvaType").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "selectAllEvaType", json["oid"], json["org"]);
+});
+
 router.route("/addSource").all((req, res, next) => {
     //添加资源
     if (req.body[0]) {
@@ -5748,6 +5754,23 @@ router.route("/addSource").all((req, res, next) => {
         });
     }
 });
+
+//删除资源模板分类
+router.route("/deleteCETLabel").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(req, res, "deleteCETLabel", json["cid"]);
+});
+
+//添加资源模板分类
+router.route("/addCETLabel").all((req, res, next) => {
+    postmysql(req, res, "addCETLabel");
+});
+
+//资源模板分享
+router.route("/addCETShare").all((req, res, next) => {
+    postmysql(req, res, "addCETShare");
+});
+
 router.route("/updateSource").all((req, res, next) => {
     //修改资源
     if (req.body[0]) {
@@ -5816,6 +5839,64 @@ router.route("/selectSource").all((req, res, next) => {
     );
 });
 
+//评价资源查询
+router.route("/selectCourseEvaT").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "selectCourseEvaT",
+        json["uid"],
+        json["oid"],
+        json["org"],
+        json["typea"],
+        json["typeb"],
+        json["typeE"],
+        json["cn"],
+        json["type"],
+        json["page"],
+        json["pageSize"]
+    );
+});
+
+//评价资源重命名
+router.route("/updateCourseET").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "updateCourseET",
+        json["id"],
+        json["n"],
+    );
+});
+
+//删除评价资源
+router.route("/deleteCourseET").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "deleteCourseET",
+        json["id"],
+    );
+});
+
+//添加评价资源分类
+router.route("/addCETType").all((req, res, next) => {
+    var json = queryString(req.url);
+    getmysql(
+        req,
+        res,
+        "addCETType",
+        json["pid"],
+        json["ppid"],
+        json["n"],
+        json["uid"],
+        json["oid"],
+    );
+});
+
 //数据看板-综合数据
 router.route("/selectDataBoardSchool").all((req, res, next) => {
     postmysql(req, res, "selectDataBoardSchool");