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.
34 lines
678 B
34 lines
678 B
import http from '@/utils/http/index.js'
|
|
|
|
/**
|
|
* 获取用户地址列表
|
|
* @param {object} data 参数 userId
|
|
*/
|
|
export function getAddressList(data = {}) {
|
|
return http.get({
|
|
url: `/wukong-fast-print/get/personal-shipping-address/list`,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 保存或修改用户地址列表
|
|
* @param {object} data 参数 id
|
|
*/
|
|
export function changeAddress(data = {}) {
|
|
return http.post({
|
|
url: `/wukong-fast-print/save/personal-shipping-address`,
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 删除用户地址
|
|
* @param {object} data 参数 id
|
|
*/
|
|
export function deleteAddress(data = {}) {
|
|
return http.post({
|
|
url: `/wukong-fast-print/delete/my-address`,
|
|
data
|
|
})
|
|
}
|