.setting.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. module.exports = {
  2. create: {
  3. requestBody: [
  4. "planyearid",
  5. "planid",
  6. "termid",
  7. "user_email",
  8. "auth_code",
  9. "am_start",
  10. "am_end",
  11. "pm_start",
  12. "pm_end",
  13. "bd_start",
  14. "bd_end",
  15. "ques_setting",
  16. "template_term",
  17. ],
  18. },
  19. destroy: {
  20. params: ["!id"],
  21. service: "delete",
  22. },
  23. update: {
  24. params: ["!id"],
  25. requestBody: [
  26. "planyearid",
  27. "planid",
  28. "termid",
  29. "user_email",
  30. "auth_code",
  31. "am_start",
  32. "am_end",
  33. "pm_start",
  34. "pm_end",
  35. "bd_start",
  36. "bd_end",
  37. "ques_setting",
  38. "template_term",
  39. ],
  40. },
  41. show: {
  42. parameters: {
  43. params: ["!id"],
  44. },
  45. service: "fetch",
  46. },
  47. index: {
  48. parameters: {
  49. query: {
  50. planyearid: "planyearid",
  51. planid: "planid",
  52. termid: "termid",
  53. user_email: "user_email",
  54. auth_code: "auth_code",
  55. am_start: "am_start",
  56. ques_setting: "ques_setting",
  57. },
  58. },
  59. service: "query",
  60. options: {
  61. query: ["skip", "limit"],
  62. sort: ["meta.createdAt"],
  63. desc: true,
  64. count: true,
  65. },
  66. },
  67. termList:{
  68. service:'termList'
  69. }
  70. };