You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
600 B
39 lines
600 B
import request from '@/utils/requestUtil'
|
|
|
|
export function addCartItem(data) {
|
|
return request({
|
|
method: 'POST',
|
|
url: '/cart/add',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
export function fetchCartList() {
|
|
return request({
|
|
method: 'GET',
|
|
url: '/cart/list'
|
|
})
|
|
}
|
|
|
|
export function deletCartItem(params) {
|
|
return request({
|
|
method: 'POST',
|
|
url: '/cart/delete',
|
|
params:params
|
|
})
|
|
}
|
|
|
|
export function updateQuantity(params) {
|
|
return request({
|
|
method: 'GET',
|
|
url: '/cart/update/quantity',
|
|
params:params
|
|
})
|
|
}
|
|
|
|
export function clearCartList() {
|
|
return request({
|
|
method: 'POST',
|
|
url: '/cart/clear'
|
|
})
|
|
} |