guhongwei há 3 anos atrás
pai
commit
6616cd7cb0
2 ficheiros alterados com 8 adições e 1 exclusões
  1. 7 1
      app/controller/config/.reviewExpert.js
  2. 1 0
      app/model/reviewExpert.js

+ 7 - 1
app/controller/config/.reviewExpert.js

@@ -16,6 +16,8 @@ module.exports = {
       "desc",
       "type",
       "status",
+      "role",
+      "code",
     ],
   },
   destroy: {
@@ -40,6 +42,8 @@ module.exports = {
       "desc",
       "type",
       "status",
+      "role",
+      "code",
     ],
   },
   show: {
@@ -57,7 +61,9 @@ module.exports = {
         score: "score",
         desc: "desc",
         type: "type",
-        status:"status",
+        status: "status",
+        role:"role",
+        code:"code",
         "meta.createdAt@start": "meta.createdAt@start",
         "meta.createdAt@end": "meta.createdAt@end",
       },

+ 1 - 0
app/model/reviewExpert.js

@@ -22,6 +22,7 @@ const review_expert = {
   type: { type: String }, // 工作类型:1=>评分;2=>会审
   status: { type: String, required: false, default: '0', maxLength: 200 }, // 审核状态,0-注册,1-通过,2-拒绝,3-审核完成,账号不可用
   role: { type: String, required: false, default: '9' }, // 角色
+  code: { type: String, required: false }, // 邀请码
   remark: { type: String },
 };
 const schema = new Schema(review_expert, { toJSON: { virtuals: true } });