.personalscore.js 771 B

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