reloaded 4 éve
szülő
commit
5c527b9971
2 módosított fájl, 4 hozzáadás és 0 törlés
  1. 3 0
      app/controller/.uploadtask.js
  2. 1 0
      app/model/uploadtask.js

+ 3 - 0
app/controller/.uploadtask.js

@@ -5,6 +5,7 @@ module.exports = {
       '!batchid',
       '!classid',
       '!lessonid',
+      'lessonname',
       '!studentid',
       'picrul',
       'taskid',
@@ -23,6 +24,7 @@ module.exports = {
       'batchid',
       'classid',
       'lessonid',
+      "lessonname",
       'studentid',
       'picrul',
       'taskid',
@@ -43,6 +45,7 @@ module.exports = {
         batchid: 'batchid',
         classid : 'classid',
         lessonid : 'lessonid',
+        lessonname:"lessonname",
         studentid : 'studentid',
         picrul : 'picrul',
         taskid: 'taskid',

+ 1 - 0
app/model/uploadtask.js

@@ -15,6 +15,7 @@ const UploadtaskSchema = {
   batchid: { type: String, required: true, maxLength: 200 }, // 批次id
   classid: { type: String, required: true, maxLength: 200 }, // 班级id
   lessonid: { type: String, required: true, maxLength: 200 }, // 课程信息id
+  lessonname: { type: String, required: false, maxLength: 200 }, // 课程信息名称
   studentid: { type: String, required: true, maxLength: 200 }, // 学生id
   picrul: { type: String, required: false, maxLength: 200 }, // 上传图片地址
   taskid: { type: String, required: false, maxLength: 200 }, // 作业id