.trainplanyear.js 639 B

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