guhongwei 3 年之前
父節點
當前提交
cd48bd2448
共有 2 個文件被更改,包括 10 次插入1 次删除
  1. 4 0
      app/controller/users/.expert.js
  2. 6 1
      app/model/expert.js

+ 4 - 0
app/controller/users/.expert.js

@@ -18,6 +18,8 @@ module.exports = {
       "social",
       "status",
       "remark",
+      "major",
+      "card",
     ],
   },
   destroy: {
@@ -43,6 +45,8 @@ module.exports = {
       "social",
       "status",
       "remark",
+      "major",
+      "card",
     ],
   },
   show: {

+ 6 - 1
app/model/expert.js

@@ -23,10 +23,15 @@ const expert = {
   scienceaward: { type: String, required: false, maxLength: 200 }, // 科技奖励
   social: { type: String, required: false, maxLength: 200 }, // 社会任职
   status: { type: String, required: false, default: '0', maxLength: 200 }, // 审核状态,0-注册,1-通过,2-拒绝
+  major: { type: String, required: false, maxLength: 200 }, // 专业
+  card: { type: String, required: false, maxLength: 200 }, // 身份证号
 
   isdel: { type: String, required: false, default: '0' }, // 0=>未删除;1=>已删除
   remark: { type: String, maxLength: 200 },
-  create_time: { type: String, default: moment().format('YYYY-MM-DD HH:mm:ss') },
+  create_time: {
+    type: String,
+    default: moment().format('YYYY-MM-DD HH:mm:ss'),
+  },
 };
 const schema = new Schema(expert, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });