guhongwei преди 2 години
родител
ревизия
c56161bd5f
променени са 2 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 3 0
      app/controller/.schedule.js
  2. 2 2
      app/model/schedule.js

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

@@ -20,6 +20,7 @@ module.exports = {
       "match_time",
       "match_file",
       "status",
+      "position",
       "remark",
       "is_bye",
       "format",
@@ -51,6 +52,7 @@ module.exports = {
       "match_time",
       "match_file",
       "status",
+      "position",
       "remark",
       "is_bye",
       "format",
@@ -73,6 +75,7 @@ module.exports = {
         blue_name: "blue_name",
         match_time: "match_time",
         status: "status",
+        position:"position",
         "meta.createdAt@start": "meta.createdAt@start",
         "meta.createdAt@end": "meta.createdAt@end",
       },

+ 2 - 2
app/model/schedule.js

@@ -26,8 +26,8 @@ const schedule = {
 
   match_time: { type: String }, // 比赛时间
   match_file: { type: Array }, // 比赛图片
-  status: { type: String, default: '0' }, // 状态
-
+  status: { type: String, default: "0" }, // 状态
+  position: { type: String }, // 比赛场次轮数
   format: { type: Array }, // 赛制
   is_bye: { type: Boolean, default: false }, // 是否轮空, 轮空只有1个队伍
   remark: { type: String },