Browse Source

用户表新增字段

guhongwei 3 years ago
parent
commit
cd9a1c9fab
2 changed files with 4 additions and 0 deletions
  1. 3 0
      app/controller/.user.js
  2. 1 0
      app/model/user.js

+ 3 - 0
app/controller/.user.js

@@ -8,6 +8,7 @@ module.exports = {
       "nickname",
       "gender",
       "work",
+      "mechanism",
       "email",
       "status",
     ],
@@ -26,6 +27,7 @@ module.exports = {
       "nickname",
       "gender",
       "work",
+      "mechanism",
       "email",
       "status",
     ],
@@ -44,6 +46,7 @@ module.exports = {
         nickname: "nickname",
         gender: "gender",
         work: "work",
+        mechanism:"mechanism",
         email: "email",
         status: "status",
         "meta.createdAt@start": "meta.createdAt@start",

+ 1 - 0
app/model/user.js

@@ -12,6 +12,7 @@ const user = {
   nickname: { type: String, required: false }, // 昵称
   gender: { type: String, required: false }, // 性别
   work: { type: String, required: false }, // 岗位
+  mechanism: { type: String, required: false }, // 机构
   email: { type: String, required: false }, // 邮箱
   status: { type: String, required: false, default: '0' }, // 状态,0-待审,1:审核通过,2:审核拒绝
   // account: { type: String, required: false }, // 账号