.actOrder.js 1003 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. module.exports = {
  2. create: {
  3. requestBody: ['platform_act', 'order_detail', 'is_deal', 'goods'],
  4. },
  5. destroy: {
  6. params: ['!id'],
  7. service: 'delete',
  8. },
  9. update: {
  10. params: ['!id'],
  11. requestBody: ['platform_act', 'order_detail', 'is_deal', 'goods'],
  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. platform_act: 'platform_act',
  25. order_detail: 'order_detail',
  26. is_deal: 'is_deal',
  27. goods: 'goods',
  28. },
  29. // options: {
  30. // "meta.state": 0 // 默认条件
  31. // },
  32. },
  33. service: 'query',
  34. options: {
  35. query: ['skip', 'limit'],
  36. sort: ['meta.createdAt'],
  37. desc: true,
  38. count: true,
  39. },
  40. },
  41. grmm: {
  42. params: ['!id'],
  43. service: 'getRefundMaxMoney',
  44. },
  45. toRefund: {
  46. requestBody: ['data'],
  47. },
  48. };