1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- 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,
- },
- },
- };
|