.cashOut.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. module.exports = {
  2. create: {
  3. requestBody: ['shop', 'card_name', 'card_bank', '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: ['shop', 'card_name', 'card_bank', '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. shop: 'shop',
  25. customer: 'customer',
  26. apply_time: 'apply_time',
  27. deal_person: 'deal_person',
  28. exam_time: 'exam_time',
  29. status: 'status',
  30. card_name: '%card_name%',
  31. },
  32. // options: {
  33. // "meta.state": 0 // 默认条件
  34. // },
  35. },
  36. service: 'query',
  37. options: {
  38. query: ['skip', 'limit'],
  39. sort: ['meta.createdAt'],
  40. desc: true,
  41. count: true,
  42. },
  43. },
  44. };