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.
40 lines
640 B
40 lines
640 B
7 months ago
|
import request from '@/utils/requestUtil'
|
||
|
|
||
|
export function fetchAddressList() {
|
||
|
return request({
|
||
|
method: 'GET',
|
||
|
url: '/member/address/list'
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function fetchAddressDetail(id) {
|
||
|
return request({
|
||
|
method: 'GET',
|
||
|
url: `/member/address/${id}`
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function addAddress(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: '/member/address/add',
|
||
|
data:data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function updateAddress(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: `/member/address/update/${data.id}`,
|
||
|
data:data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function deleteAddress(id) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: `/member/address/delete/${id}`
|
||
|
})
|
||
|
}
|
||
|
|