guhongwei 2 rokov pred
rodič
commit
89d883a7a7
1 zmenil súbory, kde vykonal 73 pridanie a 65 odobranie
  1. 73 65
      app/controller/.schedule.js

+ 73 - 65
app/controller/.schedule.js

@@ -1,89 +1,89 @@
 module.exports = {
 module.exports = {
   create: {
   create: {
     requestBody: [
     requestBody: [
-      'match_id',
+      "match_id",
-      'match_name',
+      "match_name",
-      'red_id',
+      "red_id",
-      'red_name',
+      "red_name",
-      'red_logo',
+      "red_logo",
-      'red_members',
+      "red_members",
-      'red_branch',
+      "red_branch",
-      'red_integral',
+      "red_integral",
-      'red_position',
+      "red_position",
-      'blue_id',
+      "blue_id",
-      'blue_name',
+      "blue_name",
-      'blue_logo',
+      "blue_logo",
-      'blue_members',
+      "blue_members",
-      'blue_branch',
+      "blue_branch",
-      'blue_integral',
+      "blue_integral",
-      'blue_position',
+      "blue_position",
-      'match_time',
+      "match_time",
-      'match_file',
+      "match_file",
-      'status',
+      "status",
-      'remark',
+      "remark",
-      'is_bye',
+      "is_bye",
-      'format',
+      "format",
     ],
     ],
   },
   },
   destroy: {
   destroy: {
-    params: ['!id'],
+    params: ["!id"],
-    service: 'delete',
+    service: "delete",
   },
   },
   update: {
   update: {
-    params: ['!id'],
+    params: ["!id"],
     requestBody: [
     requestBody: [
-      'match_id',
+      "match_id",
-      'match_name',
+      "match_name",
-      'red_id',
+      "red_id",
-      'red_name',
+      "red_name",
-      'red_logo',
+      "red_logo",
-      'red_members',
+      "red_members",
-      'red_branch',
+      "red_branch",
-      'red_integral',
+      "red_integral",
-      'red_position',
+      "red_position",
-      'blue_id',
+      "blue_id",
-      'blue_name',
+      "blue_name",
-      'blue_logo',
+      "blue_logo",
-      'blue_members',
+      "blue_members",
-      'blue_branch',
+      "blue_branch",
-      'blue_integral',
+      "blue_integral",
-      'blue_position',
+      "blue_position",
-      'match_time',
+      "match_time",
-      'match_file',
+      "match_file",
-      'status',
+      "status",
-      'remark',
+      "remark",
-      'is_bye',
+      "is_bye",
-      'format',
+      "format",
     ],
     ],
   },
   },
   show: {
   show: {
     parameters: {
     parameters: {
-      params: ['!id'],
+      params: ["!id"],
     },
     },
-    service: 'fetch',
+    service: "fetch",
   },
   },
   index: {
   index: {
     parameters: {
     parameters: {
       query: {
       query: {
-        match_id: 'match_id',
+        match_id: "match_id",
-        match_name: 'match_name',
+        match_name: "match_name",
-        red_id: 'red_id',
+        red_id: "red_id",
-        red_name: 'red_name',
+        red_name: "red_name",
-        blue_id: 'blue_id',
+        blue_id: "blue_id",
-        blue_name: 'blue_name',
+        blue_name: "blue_name",
-        match_time: 'match_time',
+        match_time: "match_time",
-        status: 'status',
+        status: "status",
-        'meta.createdAt@start': 'meta.createdAt@start',
+        "meta.createdAt@start": "meta.createdAt@start",
-        'meta.createdAt@end': 'meta.createdAt@end',
+        "meta.createdAt@end": "meta.createdAt@end",
       },
       },
       // options: {
       // options: {
       //   "meta.state": 0 // 默认条件
       //   "meta.state": 0 // 默认条件
       // },
       // },
     },
     },
-    service: 'query',
+    service: "query",
     options: {
     options: {
-      query: ['skip', 'limit'],
+      query: ["skip", "limit"],
-      sort: ['meta.createdAt'],
+      sort: ["meta.createdAt"],
       desc: true,
       desc: true,
       count: true,
       count: true,
     },
     },
@@ -91,12 +91,20 @@ module.exports = {
   getByTeamCreater: {
   getByTeamCreater: {
     parameters: {
     parameters: {
       query: {
       query: {
-        user_id: 'user_id',
+        user_id: "user_id",
-        status: 'status',
+        status: "status",
+        match_id: "match_id",
+        match_name: "match_name",
+        red_id: "red_id",
+        red_name: "red_name",
+        blue_id: "blue_id",
+        blue_name: "blue_name",
+        match_time: "match_time",
+        status: "status",
       },
       },
     },
     },
     options: {
     options: {
-      query: ['skip', 'limit'],
+      query: ["skip", "limit"],
     },
     },
   },
   },
 };
 };