.bedroom.js 842 B

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