guhongwei пре 4 година
родитељ
комит
004cdf1933
2 измењених фајлова са 7 додато и 3 уклоњено
  1. 3 0
      app/controller/.dock.js
  2. 4 3
      app/model/dock.js

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

@@ -4,6 +4,7 @@ module.exports = {
       "title",
       "desc",
       "start_time",
+      "end_time",
       "join_end",
       "user_id",
       "province",
@@ -23,6 +24,7 @@ module.exports = {
       "title",
       "desc",
       "start_time",
+      "end_time",
       "join_end",
       "status",
       "province",
@@ -43,6 +45,7 @@ module.exports = {
         "title",
         "desc",
         "start_time",
+        "end_time",
         "join_end",
         "user_id",
         "is_allowed",

+ 4 - 3
app/model/dock.js

@@ -19,11 +19,12 @@ apply.index({ userid: 1 });
 const Dock = {
   title: { type: String, required: true, maxLength: 200 }, // 对接会标题
   desc: { type: String, maxLength: 1000 }, // 简介
-  status: { type: String, default: '0', maxLength: 1 }, // 状态:0准备中;1已开始;2已结束
+  status: { type: String, default: "0", maxLength: 1 }, // 状态:0准备中;1已开始;2已结束
   start_time: { type: String, required: true, maxLength: 200 }, // 开始时间
+  end_time: { type: String, required: true, maxLength: 200 }, // 结束时间
   join_end: { type: String, required: true, maxLength: 200 }, // 报名截止时间
-  apply: { type: [ apply ], default: [] },
-  is_allowed: { type: String, default: '0', maxLength: 1 }, // 0未审核;1已允许;2已拒绝
+  apply: { type: [apply], default: [] },
+  is_allowed: { type: String, default: "0", maxLength: 1 }, // 0未审核;1已允许;2已拒绝
   reason: { type: String, required: false, maxLength: 200 }, // 拒绝理由
   user_id: { type: String, required: true, maxLength: 200 }, // 申请用户
   province: { type: String, required: false }, // 省