beautyArchive.service.js 954 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. })
  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. }