瀏覽代碼

Merge branch 'master' of http://git.cc-lotus.info/service-platform/service-market

guhongwei 5 年之前
父節點
當前提交
f1145ff9ef
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 2 2
      app/controller/.operationlog.js
  2. 4 4
      app/model/operationlog.js

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

@@ -1,7 +1,7 @@
 module.exports = {
   create: {
     requestBody: [
-      "dock_id",
+      "dockid",
       "login_role",
       "login_name",
       "operation_edit",
@@ -17,7 +17,7 @@ module.exports = {
   update: {
     params: ["!id"],
     requestBody: [
-      "dock_id",
+      "dockid",
       "login_role",
       "login_name",
       "operation_edit",

+ 4 - 4
app/model/operationlog.js

@@ -13,15 +13,15 @@ const OperationlogSchema = {
   remark: { type: String, required: false, maxLength: 500 }, // 说明
   dockid: { type: String, required: false, maxLength: 500 }, // 对接id
   create_userid: { type: String, required: false, maxLength: 500 }, // 对接id
-  userid: { type: String, required: true, maxLength: 500 }, // 购买人ID
+  userid: { type: String, required: false, maxLength: 500 }, // 购买人ID
   username: { type: String, required: false, maxLength: 500 }, // 购买人名称
-  product_id: { type: String, required: true, maxLength: 500 }, // 产品ID
+  product_id: { type: String, required: false, maxLength: 500 }, // 产品ID
   product_name: { type: String, required: false, maxLength: 500 }, // 产品名称
-  market_userid: { type: String, required: true, maxLength: 500 }, // 营销人ID
+  market_userid: { type: String, required: false, maxLength: 500 }, // 营销人ID
   market_username: { type: String, required: false, maxLength: 500 }, // 营销人名称
   description: { type: String, required: false, maxLength: 500 }, // 说明
   types: { type: String, required: false, maxLength: 20, default: '0' }, // 类别0、产品、1、专家
-  status: { type: String, required: true, maxLength: 500 }, // 交易状态,0-发起交易,1-交易中,2-交易成功,3-交易取消
+  status: { type: String, required: false, maxLength: 500 }, // 交易状态,0-发起交易,1-交易中,2-交易成功,3-交易取消
 };
 const schema = new Schema(OperationlogSchema, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });