.goods.js 641 B

1234567891011121314151617181920212223242526272829303132
  1. module.exports = {
  2. goodsDetail: {
  3. requestBody: ['!id'],
  4. },
  5. indexGoodsList: {
  6. parameters: {
  7. query: {
  8. 'meta.createdAt@start': 'meta.createdAt@start',
  9. 'meta.createdAt@end': 'meta.createdAt@end',
  10. name: '%name%',
  11. view_num: 'view_num',
  12. sell_num: 'sell_num',
  13. sell_money: 'sell_money',
  14. shop: 'shop',
  15. },
  16. // options: {
  17. // "meta.state": 0 // 默认条件
  18. // },
  19. },
  20. options: {
  21. query: ['skip', 'limit'],
  22. },
  23. },
  24. iatg: {
  25. service: 'indexActTagsGoods',
  26. parameters: {
  27. query: {
  28. shop: 'shop',
  29. },
  30. },
  31. },
  32. };