.goods.js 570 B

123456789101112131415161718192021222324252627
  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. },
  27. };