beautyArchive.service.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * 这是商品资料库相关的业务逻辑的服务
  3. */
  4. export default class BeautyArchiveService {
  5. constructor(AjaxService) {
  6. Object.assign(this, { AjaxService })
  7. this.name = 'BeautyArchiveService'
  8. }
  9. /* 获取资料库商品列表 */
  10. GetArchiveProduct(data = {}) {
  11. return this.AjaxService.get({
  12. url: '/commodity/product/archive',
  13. data,
  14. isLoading: true,
  15. })
  16. }
  17. /* 获取商品资料列表 */
  18. GetProdcutArchiveDetails(data = {}) {
  19. return this.AjaxService.get({
  20. url: '/commodity/product/archive/detail',
  21. data,
  22. isLoading: false,
  23. })
  24. }
  25. /* 采美豆抵扣 */
  26. SearchArchiveByBeans(data = {}) {
  27. return this.AjaxService.post({
  28. url: '/user/club/archive/deduction',
  29. data,
  30. isLoading: true,
  31. })
  32. }
  33. // 用户浏览资料记录
  34. GetStatisticsAddPv(data = {}) {
  35. return this.AjaxService.get({
  36. url: '/commodity/statistics/addPv',
  37. data,
  38. isLoading: true,
  39. })
  40. }
  41. }