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"], }, }, };