.carousel.js 625 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. create: {
  3. requestBody: ['name','url','remark']
  4. },
  5. destroy: {
  6. params: ["!id"],
  7. service: "delete"
  8. },
  9. update: {
  10. params: ["!id"],
  11. requestBody: ['name','url','remark']
  12. },
  13. show: {
  14. parameters: {
  15. params: ["!id"]
  16. },
  17. service: "fetch"
  18. },
  19. index: {
  20. parameters: {
  21. query: {
  22. name: "%name%",
  23. "create_time@start": "create_time@start",
  24. "create_time@end": "create_time@end",
  25. },
  26. },
  27. service: "query",
  28. options: {
  29. query: ["skip", "limit"],
  30. sort: ["meta.createdAt"],
  31. desc: true,
  32. count: true,
  33. },
  34. },
  35. }