.caseapply.js 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "!name",
  5. "!address",
  6. "!area",
  7. "!create_time",
  8. "!image",
  9. "!content",
  10. ],
  11. },
  12. destroy: {
  13. params: ["!id"],
  14. service: "delete",
  15. },
  16. update: {
  17. params: ["!id"],
  18. requestBody: [
  19. "!name",
  20. "!address",
  21. "!area",
  22. "!create_time",
  23. "!image",
  24. "!content",
  25. ],
  26. },
  27. show: {
  28. parameters: {
  29. params: ["!id"],
  30. },
  31. service: "fetch",
  32. },
  33. index: {
  34. parameters: {
  35. query: {
  36. name: "name",
  37. address: "address",
  38. area: "area",
  39. create_time: "create_time",
  40. image: "image",
  41. content: "content",
  42. },
  43. },
  44. service: "query",
  45. options: {
  46. query: ["skip", "limit"],
  47. sort: ["meta.createdAt"],
  48. desc: true,
  49. count: true,
  50. },
  51. },
  52. };