Browse Source

社区管理

11wqe1 2 tháng trước cách đây
mục cha
commit
8480a44903
1 tập tin đã thay đổi với 59 bổ sung0 xóa
  1. 59 0
      pbl.js

+ 59 - 0
pbl.js

@@ -6431,13 +6431,72 @@ router.route("/getEvaluation").all((req, res, next) => {
         10
     );
 });
+//查询社区列表
+router.route("/getcylist").all((req, res, next) => {
+    var json = queryString(req.url); //cid 课程id,page 页数
+    getmysql(
+        req,
+        res,
+        "getcylist",
+        json["oid"],
+        json["n"],
+        json["page"],
+        json["num"]
+    );
+});
 
+//查询社区列表
+router.route("/getAddcyPersonlist").all((req, res, next) => {
+    var json = queryString(req.url); //cid 课程id,page 页数
+    getmysql(
+        req,
+        res,
+        "getAddcyPersonlist",
+        json["oid"],
+        json["inp"],
+        json["page"],
+        json["num"]
+    );
+});
+
+//查询社区人员列表
+router.route("/getcypersonlist").all((req, res, next) => {
+    var json = queryString(req.url); //cid 课程id,page 页数
+    getmysql(
+        req,
+        res,
+        "getcypersonlist",
+        json["id"]
+    );
+});
 //添加评价体系
 router.route("/addEvaluation").all((req, res, next) => {
     postmysql(req, res, "add_evaluation");
     //uid 用户id t标题 c内容
 });
 
+//添加社区
+router.route("/addCommunity").all((req, res, next) => {
+    postmysql(req, res, "addCommunity");
+    //uid 用户id t标题 c内容
+});
+//删除社区
+router.route("/delCommunity").all((req, res, next) => {
+    postmysql(req, res, "delCommunity");
+    //uid 用户id t标题 c内容
+});
+//修改社区
+router.route("/updateCommunity").all((req, res, next) => {
+    postmysql(req, res, "updateCommunity");
+    //uid 用户id t标题 c内容
+});
+
+//更新社区人员
+router.route("/updateCommunityperson").all((req, res, next) => {
+    postmysql(req, res, "updateCommunityperson");
+    //uid 用户id t标题 c内容
+});
+
 //修改评价体系
 router.route("/updateEvaluation").all((req, res, next) => {
     postmysql(req, res, "update_evaluation");