.notice.js 935 B

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