.teaplan.js 759 B

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