lrf402788946 4 years ago
parent
commit
913f143640
2 changed files with 6 additions and 6 deletions
  1. 4 4
      app/controller/.trainvideo.js
  2. 2 2
      app/model/trainvideo.js

+ 4 - 4
app/controller/.trainvideo.js

@@ -3,8 +3,8 @@ module.exports = {
     requestBody: [
       "!url",
       "!subid",
-      "!teacher",
-      "!teacherid",
+      "teacher",
+      "teacherid",
       "subname",
       "touser",
       "status",
@@ -19,8 +19,8 @@ module.exports = {
     requestBody: [
       "!url",
       "!subid",
-      "!teacher",
-      "!teacherid",
+      "teacher",
+      "teacherid",
       "touser",
       "status",
       "subname",

+ 2 - 2
app/model/trainvideo.js

@@ -7,8 +7,8 @@ const TrainVideoSchema = {
   url: { type: String, required: true, maxLength: 200 }, // 视频地址
   subid: { type: String, required: true, maxLength: 200 }, // 科目id
   subname: { type: String, required: true, maxLength: 200 }, // 科目名称
-  teacher: { type: String, required: true, maxLength: 200 }, // 教师姓名
-  teacherid: { type: String, required: true, maxLength: 200 }, // 教师id
+  teacher: { type: String, required: false, maxLength: 200 }, // 教师姓名
+  teacherid: { type: String, required: false, maxLength: 200 }, // 教师id
   status: { type: String, required: false, maxLength: 200, default: "0" }, // 状态:0=>未审核;1=>审核通过(中心直接传来,通过);2=>审核失败
   touser: { type: String, required: false, maxLength: 20 }, // 面向对象:0=>所有人;1=>教师;2=>学生;3=>班主任
 };