cheny 4 年之前
父节点
当前提交
462dedf486
共有 3 个文件被更改,包括 18 次插入31 次删除
  1. 0 6
      app/controller/.dock.js
  2. 18 17
      app/model/dock.js
  3. 0 8
      app/service/dock.js

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

@@ -80,12 +80,8 @@ module.exports = {
     requestBody: [
     requestBody: [
       "user_id",
       "user_id",
       "user_name",
       "user_name",
-      "buyer",
-      "contact",
       "contact_tel",
       "contact_tel",
-      "email",
       "role",
       "role",
-      "company",
     ],
     ],
     service: "apply",
     service: "apply",
   },
   },
@@ -108,7 +104,6 @@ module.exports = {
       "end_date",
       "end_date",
       "difficult_problem",
       "difficult_problem",
       "demand",
       "demand",
-      "company",
       "address",
       "address",
       "mature",
       "mature",
       "team",
       "team",
@@ -116,7 +111,6 @@ module.exports = {
       "mature",
       "mature",
       "coopercompany",
       "coopercompany",
       "other",
       "other",
-      "contact_user",
       "contact_tel",
       "contact_tel",
     ],
     ],
     service: "goods",
     service: "goods",

+ 18 - 17
app/model/dock.js

@@ -16,31 +16,32 @@ const goods = new Schema({
   scope: { type: String, maxLength: 200 }, // 服务范围
   scope: { type: String, maxLength: 200 }, // 服务范围
   coopermode: { type: String, maxLength: 200 }, // 合作方式
   coopermode: { type: String, maxLength: 200 }, // 合作方式
   business: { type: String, maxLength: 200 }, // 交易方式
   business: { type: String, maxLength: 200 }, // 交易方式
-  budget: { type: String, default: 0, maxLength: 200 }, // 投入预算
-  end_date: { type: String, default: 0, maxLength: 200 }, // 需求截止日期
-  difficult_problem: { type: String, default: 0, maxLength: 500 }, // 难题或瓶颈问题
-  demand: { type: String, default: 0, maxLength: 500 }, // 企业解决技术需求已具备的条件
-  company: { type: String, default: 0, maxLength: 200 }, // 企业名称
-  address: { type: String, default: 0, maxLength: 200 }, // 企业地址
-  team: { type: String, default: 0, maxLength: 200 }, // 技术团队情况
-  property: { type: String, default: 0, maxLength: 200 }, // 知识产权情况
-  mature: { type: String, default: 0, maxLength: 200 }, // 技术成熟度
-  coopercompany: { type: String, default: 0, maxLength: 200 }, // 是否拟有合同
-  other: { type: String, default: 0, maxLength: 200 }, // 其他需求
-  contact_user: { type: String, default: 0, maxLength: 200 }, // 联系人
-  contact_tel: { type: String, default: 0, maxLength: 200 }, // 联系电话
+  budget: { type: String, maxLength: 200 }, // 投入预算
+  end_date: { type: String, maxLength: 200 }, // 需求截止日期
+  difficult_problem: { type: String, maxLength: 500 }, // 难题或瓶颈问题
+  demand: { type: String, maxLength: 500 }, // 企业解决技术需求已具备的条件
+  company: { type: String, maxLength: 200 }, // 企业名称
+  address: { type: String, maxLength: 200 }, // 企业地址
+  team: { type: String, maxLength: 200 }, // 技术团队情况
+  property: { type: String, maxLength: 200 }, // 知识产权情况
+  mature: { type: String, maxLength: 200 }, // 技术成熟度
+  coopercompany: { type: String, maxLength: 200 }, // 是否拟有合同
+  other: { type: String, maxLength: 200 }, // 其他需求
+  contact_user: { type: String, maxLength: 200 }, // 联系人
+  contact_tel: { type: String, maxLength: 200 }, // 联系电话
+  status: { type: String, default: 0, maxLength: 5 }, // 0未审核,1已通过,2已拒绝
 });
 });
 goods.index({ id: 1 });
 goods.index({ id: 1 });
 // 申请用户
 // 申请用户
 const apply = new Schema({
 const apply = new Schema({
   user_id: { type: String, required: true, maxLength: 200 }, // 用户id
   user_id: { type: String, required: true, maxLength: 200 }, // 用户id
   user_name: { type: String, required: true, maxLength: 200 }, // 用户名称
   user_name: { type: String, required: true, maxLength: 200 }, // 用户名称
-  buyer: { type: String, required: true, maxLength: 1 }, // 买家/卖家 0/1
+  // buyer: { type: String, required: true, maxLength: 1 }, // 买家/卖家 0/1
   goodsList: { type: [ goods ], default: [] }, // 产品列表
   goodsList: { type: [ goods ], default: [] }, // 产品列表
-  contact: { type: String, required: false, maxLength: 200 }, // 联系人
+  // contact: { type: String, required: false, maxLength: 200 }, // 联系人
   contact_tel: { type: String, required: false, maxLength: 200 }, // 联系人电话
   contact_tel: { type: String, required: false, maxLength: 200 }, // 联系人电话
-  email: { type: String, maxLength: 200 }, // 邮箱
-  company: { type: String, maxLength: 200 }, // 单位名称
+  // email: { type: String, maxLength: 200 }, // 邮箱
+  // company: { type: String, maxLength: 200 }, // 单位名称
   apply_time: { type: String, maxLength: 200 }, // 申请时间
   apply_time: { type: String, maxLength: 200 }, // 申请时间
   role: { type: String, maxLength: 200 }, // 申请人类型
   role: { type: String, maxLength: 200 }, // 申请人类型
   status: { type: String, default: 0, maxLength: 1 }, // 申请状态 (0未审核;1已通过;2已拒绝)
   status: { type: String, default: 0, maxLength: 1 }, // 申请状态 (0未审核;1已通过;2已拒绝)

+ 0 - 8
app/service/dock.js

@@ -119,12 +119,6 @@ class ChatService extends CrudService {
     if (info.role) {
     if (info.role) {
       vipuser.role = info.role;
       vipuser.role = info.role;
     }
     }
-    if (info.company) {
-      vipuser.company = info.company;
-    }
-    if (info.email) {
-      vipuser.email = info.email;
-    }
     if (info.content) {
     if (info.content) {
       vipuser.content = info.content;
       vipuser.content = info.content;
     }
     }
@@ -140,8 +134,6 @@ class ChatService extends CrudService {
     vipuser.vipname = info.vipname;
     vipuser.vipname = info.vipname;
     vipuser.vipphone = info.vipphone;
     vipuser.vipphone = info.vipphone;
     vipuser.role = info.role;
     vipuser.role = info.role;
-    vipuser.company = info.company;
-    vipuser.email = info.email;
     vipuser.content = info.content;
     vipuser.content = info.content;
     dock.vipuser.push(vipuser);
     dock.vipuser.push(vipuser);
     return await dock.save();
     return await dock.save();