lrf402788946 4 years ago
parent
commit
a5d38a13a6
2 changed files with 15 additions and 12 deletions
  1. 8 6
      app/controller/.teacher.js
  2. 7 6
      app/model/teacher.js

+ 8 - 6
app/controller/.teacher.js

@@ -40,6 +40,7 @@ module.exports = {
       "nation",
       "qq",
       "mobile",
+      "course",
     ],
   },
   destroy: {
@@ -88,6 +89,7 @@ module.exports = {
       "nation",
       "qq",
       "mobile",
+      "course",
     ],
   },
   show: {
@@ -131,12 +133,12 @@ module.exports = {
         xsscore: "xsscore",
         file: "file",
         status: "status",
-        withpersonal:"withpersonal",
-        career : "career",
-        training :"training",
-        nation:"nation",
-        qq:"qq",
-        mobile:"mobile",
+        withpersonal: "withpersonal",
+        career: "career",
+        training: "training",
+        nation: "nation",
+        qq: "qq",
+        mobile: "mobile",
       },
     },
     service: "query",

+ 7 - 6
app/model/teacher.js

@@ -71,12 +71,13 @@ const TeacherSchema = {
   xsscore: { type: String, required: false, maxLength: 200 }, // 学生评分
   file: { type: [ FileInfo ], select: false }, // 资料,教案PPT视频等
   status: { type: String, required: false, maxLength: 200, default: '0' },
-  withpersonal: { type: String, required: false, maxLength: 200 }, // 与人合作
-  career: { type: String, required: false, maxLength: 200 },
-  training: { type: String, required: false, maxLength: 200 },
-  nation: { type: String, required: false, maxLength: 200 },
-  qq: { type: String, required: false, maxLength: 200 },
-  mobile: { type: String, required: false, maxLength: 200 },
+  withpersonal: { type: String, required: false }, // 与人合作
+  career: { type: String, required: false }, // 职业探索
+  training: { type: String, required: false }, // 面试训练
+  nation: { type: String, required: false, maxLength: 200 }, // 民族
+  qq: { type: String, required: false, maxLength: 200 }, // qq
+  mobile: { type: String, required: false, maxLength: 200 }, // 固定电话
+  course: { type: String, required: false, maxLength: 200 }, // 课程模块
   // 状态:0-注册,1-确认身份,2-资料评分,3-面试评分,4-确认入库
 };