beautyArchive.service.js 982 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. isHost: true
  16. })
  17. }
  18. /* 获取商品资料列表 */
  19. GetProdcutArchiveDetails(data = {}) {
  20. return this.AjaxService.get({
  21. url: '/commodity/product/archive/detail',
  22. data,
  23. isLoading: true,
  24. isHost: true
  25. })
  26. }
  27. /* 采美豆抵扣 */
  28. SearchArchiveByBeans(data = {}) {
  29. return this.AjaxService.post({
  30. url: '/user/club/archive/deduction',
  31. data,
  32. isLoading: true,
  33. isHost:true
  34. })
  35. }
  36. }