1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import request from '@/sheep/request';
- import {
- t
- } from '@/locale';
- const SpuHistoryApi = {
- // 删除商品浏览记录
- deleteBrowseHistory: (spuIds) => {
- return request({
- url: '/product/browse-history/delete',
- method: 'DELETE',
- data: { spuIds },
- custom: {
- showSuccess: true,
- successMsg: t('common.delete_success'),
- },
- });
- },
- // 清空商品浏览记录
- cleanBrowseHistory: () => {
- return request({
- url: '/product/browse-history/clean',
- method: 'DELETE',
- custom: {
- showSuccess: true,
- successMsg: t('common.clear_success'),
- },
- });
- },
- // 获得商品浏览记录分页
- getBrowseHistoryPage: (data) => {
- return request({
- url: '/product/browse-history/page',
- method: 'GET',
- data,
- custom: {
- showLoading: false
- },
- });
- },
- };
- export default SpuHistoryApi;
|