chen před 5 roky
rodič
revize
0ee12d58d4

+ 2 - 2
app/controller/.intelligentDocking.js

@@ -2,8 +2,8 @@ module.exports = {
   create: {
     requestBody: [
       '!uid',
-      '!company_name',
-      '!code',
+      // '!company_name',
+      // '!code',
       '!person',
       'phone',
       '!opening_bank',

+ 3 - 3
app/model/intelligentDocking.js

@@ -11,8 +11,8 @@ const info = new Schema({
 const IntelligentDockingSchema = {
   uid: { type: String, required: true, maxLength: 200 }, // 企业用户id
   // 对接需求
-  company_name: { type: String, required: true, maxLength: 200 }, // 企业名称
-  code: { type: String, required: true, maxLength: 200 }, // 统一社会信用代码
+  // company_name: { type: String, required: false, maxLength: 200 }, // 企业名称
+  // code: { type: String, required: false, maxLength: 200 }, // 统一社会信用代码
   person: { type: String, required: true, maxLength: 200 }, // 联系人
   phone: { type: String, required: false, maxLength: 200 }, // 手机号
   opening_bank: { type: String, required: false, maxLength: 200 }, // 首选开户行
@@ -25,7 +25,7 @@ const IntelligentDockingSchema = {
   ensure_id: { type: String, required: true, maxLength: 200 }, // 担保方式的code(字典表)
   ensure_name: { type: String, required: false, maxLength: 200 }, // 担保方式
   when: { type: String, required: true, maxLength: 200 }, // 预计何时有融资需求  非必填
-  additional_information: { type: String, required: true, maxLength: 200 }, // 补充信息  非必填
+  additional_information: { type: String, required: false, maxLength: 200 }, // 补充信息  非必填
   // 对接结果
   create_time: { type: String, required: false, maxLength: 200 }, // 查询时间
   cid: { type: String, required: false, maxLength: 200 }, // 对接结果-产品