lrf402788946 5 years ago
parent
commit
b2c0b2201c
2 changed files with 3 additions and 1 deletions
  1. 1 1
      app/controller/.dock.js
  2. 2 0
      app/model/dock.js

+ 1 - 1
app/controller/.dock.js

@@ -8,7 +8,7 @@ module.exports = {
   },
   update: {
     params: ["!id"],
-    requestBody: ["title", "desc"],
+    requestBody: ["title", "desc", "start_time", "join_end"],
   },
   show: {
     parameters: {

+ 2 - 0
app/model/dock.js

@@ -23,6 +23,8 @@ const Dock = {
   start_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已拒绝
+  reason: { type: String, required: true, maxLength: 200 }, // 拒绝理由
 };
 const schema = new Schema(Dock, { toJSON: { virtuals: true } });
 schema.index({ id: 1 });