module.exports = { create: { requestBody: [ "user_id", "column_id", "column_name", "title", "publish_time", "origin", "brief", "picture", "filepath", "video", "content", "type", "remark" ], }, destroy: { params: ["!id"], service: "delete", }, update: { params: ["!id"], requestBody: [ "user_id", "column_id", "column_name", "title", "publish_time", "origin", "brief", "picture", "video", "filepath", "content", "type", "remark" ], }, show: { parameters: { params: ["!id"], }, service: "fetch", }, index: { parameters: { query: { title:"%title%", type:"type", column_id:"column_id", "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, }, }, };