cheny 4 年之前
父节点
当前提交
47035c2814
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 4 0
      app/controller/.dock.js
  2. 2 2
      app/model/dock.js

+ 4 - 0
app/controller/.dock.js

@@ -19,6 +19,8 @@ module.exports = {
       "phone",
       "passwd",
       "vipuser",
+      "email",
+      "company",
     ],
   },
   destroy: {
@@ -43,6 +45,8 @@ module.exports = {
       "phone",
       "passwd",
       "vipuser",
+      "email",
+      "company",
     ],
   },
   show: {

+ 2 - 2
app/model/dock.js

@@ -51,8 +51,8 @@ const vipuser = new Schema({
   vipphone: { type: String, required: false, maxLength: 200 }, // 联系人手机
   role: { type: String, required: false, maxLength: 200 }, // 申请人类型
   company: { type: String, required: false, maxLength: 500 }, // 单位名称
-  email: { type: String, required: false, maxLength: 20 }, // 单位名称
-  content: { type: String, required: false }, // 单位名称
+  email: { type: String, required: false, maxLength: 20 }, // 郵箱
+  content: { type: String, required: false }, // 内容
 });
 vipuser.index({ id: 1 });
 const Dock = {