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