.attendance.js 938 B

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