1234567891011121314151617181920212223242526272829303132333435 |
- module.exports = {
- create: {
- requestBody: ['name','url','remark']
- },
- destroy: {
- params: ["!id"],
- service: "delete"
- },
- update: {
- params: ["!id"],
- requestBody: ['name','url','remark']
- },
- show: {
- parameters: {
- params: ["!id"]
- },
- service: "fetch"
- },
- index: {
- parameters: {
- query: {
- name: "%name%",
- "create_time@start": "create_time@start",
- "create_time@end": "create_time@end",
- },
- },
- service: "query",
- options: {
- query: ["skip", "limit"],
- sort: ["meta.createdAt"],
- desc: true,
- count: true,
- },
- },
- }
|