.cashOut.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. module.exports = {
  2. create: {
  3. requestBody: ['card', '!money', '!customer', '!apply_time', '!apply_reason', 'deal_person', 'exam_time', 'exam_reason', 'status'],
  4. },
  5. destroy: {
  6. params: ['!id'],
  7. service: 'delete',
  8. },
  9. update: {
  10. params: ['!id'],
  11. requestBody: ['card', 'money', 'customer', 'apply_time', 'apply_reason', 'deal_person', 'exam_time', 'exam_reason', 'status'],
  12. },
  13. show: {
  14. parameters: {
  15. params: ['!id'],
  16. },
  17. service: 'fetch',
  18. },
  19. index: {
  20. parameters: {
  21. query: {
  22. 'meta.createdAt@start': 'meta.createdAt@start',
  23. 'meta.createdAt@end': 'meta.createdAt@end',
  24. customer: 'customer',
  25. apply_time: 'apply_time',
  26. deal_person: 'deal_person',
  27. exam_time: 'exam_time',
  28. status: 'status',
  29. },
  30. // options: {
  31. // "meta.state": 0 // 默认条件
  32. // },
  33. },
  34. service: 'query',
  35. options: {
  36. query: ['skip', 'limit'],
  37. sort: ['meta.createdAt'],
  38. desc: true,
  39. count: true,
  40. },
  41. },
  42. };