.schtime.js 753 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. module.exports = {
  2. create: {
  3. requestBody: ["!schid", "year", "planid", "remark", "daterange", "arrange"],
  4. },
  5. destroy: {
  6. params: ["!id"],
  7. service: "delete",
  8. },
  9. update: {
  10. params: ["!id"],
  11. requestBody: ["schid", "year", "planid", "remark", "daterange", "arrange"],
  12. },
  13. show: {
  14. parameters: {
  15. params: ["!id"],
  16. },
  17. service: "fetch",
  18. },
  19. index: {
  20. parameters: {
  21. query: {
  22. schid: "schid",
  23. year: "year",
  24. planid: "planid",
  25. remark: "remark",
  26. daterange: "daterange",
  27. arrange: "arrange",
  28. },
  29. },
  30. service: "query",
  31. options: {
  32. query: ["skip", "limit"],
  33. sort: ["meta.createdAt"],
  34. desc: true,
  35. count: true,
  36. },
  37. },
  38. };