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