guhongwei 3 năm trước cách đây
mục cha
commit
07e0903f44
2 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 8 0
      app/controller/users/.personal.js
  2. 4 0
      app/model/personal.js

+ 8 - 0
app/controller/users/.personal.js

@@ -15,6 +15,10 @@ module.exports = {
       "juris",
       "create_time",
       "is_expert",
+      "school",
+      "major",
+      "card",
+      "zwzc",
     ],
   },
   destroy: {
@@ -37,6 +41,10 @@ module.exports = {
       "juris",
       "create_time",
       "is_expert",
+      "school",
+      "major",
+      "card",
+      "zwzc",
     ],
   },
   show: {

+ 4 - 0
app/model/personal.js

@@ -20,6 +20,10 @@ const personal = {
   remark: { type: String, maxLength: 200 },
   juris: { type: String }, // 辖区
   is_expert: { type: Boolean, default: false }, // 是否是专家
+  school: { type: String, required: false, maxLength: 500 }, // 院系
+  major: { type: String, required: false, maxLength: 200 }, // 专业
+  card: { type: String, required: false, maxLength: 200 }, // 身份证号
+  zwzc: { type: String, required: false, maxLength: 200 }, // 职务职称
   create_time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') },
 };
 const schema = new Schema(personal, { toJSON: { virtuals: true } });