Преглед на файлове

将教师表微信openid改为非必填

reloaded преди 5 години
родител
ревизия
36cc2f379c
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      app/controller/.teacher.js
  2. 1 1
      app/model/teacher.js

+ 1 - 1
app/controller/.teacher.js

@@ -10,7 +10,7 @@ module.exports = {
       '!schid',
       '!schname',
       '!email',
-      '!openid',
+      'openid',
       '!age',
       '!birthday',
       '!entrydate',

+ 1 - 1
app/model/teacher.js

@@ -27,7 +27,7 @@ const TeacherSchema = {
   schid: { type: String, required: true, maxLength: 200 }, // 学校id
   schname: { type: String, required: true, maxLength: 200 }, // 学校名称
   email: { type: String, required: true, maxLength: 200 }, // 邮箱
-  openid: { type: String, required: true, maxLength: 200 }, // 微信openid
+  openid: { type: String, required: false, maxLength: 200 }, // 微信openid
   age: { type: String, required: true, maxLength: 200 }, // 年龄
   birthday: { type: String, required: true, maxLength: 200 }, // 出生年月
   entrydate: { type: String, required: true, maxLength: 200 }, // 入职时间