123456789101112131415161718192021222324252627282930313233343536373839 |
- module.exports = {
- create: {
- requestBody: ["channel_id", "title", "start_time", "end_time", "file_path"],
- },
- destroy: {
- params: ["!id"],
- service: "delete",
- },
- update: {
- params: ["!id"],
- requestBody: ["channel_id", "title", "start_time", "end_time", "file_path"],
- },
- show: {
- parameters: {
- params: ["!id"],
- },
- service: "fetch",
- },
- index: {
- parameters: {
- query: {
- channel_id: "channel_id",
- title: "title",
- "create_time@start": "create_time@start",
- "create_time@end": "create_time@end",
- },
- // options: {
- // "meta.state": 0 // 默认条件
- // },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- };
|