lsc 2 年 前
コミット
8f436b7f6e
1 ファイル変更17 行追加0 行削除
  1. 17 0
      pbl.js

+ 17 - 0
pbl.js

@@ -838,6 +838,23 @@ router.route('/getWorkData').all((req, res, next) => {
     getmysql(req, res, "select_work_data", json['cid']);
 });
 
+//查询评价体系
+router.route('/getEvaluation').all((req, res, next) => {
+    var json = queryString(req.url); //cid 课程id,page 页数
+    getmysql(req, res, "select_evaluation", json['n'], json['page'],10);
+});
+
+//添加评价体系
+router.route('/addEvaluation').all((req, res, next) => {
+    postmysql(req, res, "add_evaluation");
+    //uid 用户id t标题 c内容
+});
+
+//修改评价体系
+router.route('/updateEvaluation').all((req, res, next) => {
+    postmysql(req, res, "update_evaluation");
+    //c内容 t标题 id评价id
+});
 
 
 router.route('/batchRegistrationMore').post(function(req, res, next) {