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.
45 lines
1.3 KiB
45 lines
1.3 KiB
import http from '../utils/http/index.js'
|
|
/**
|
|
* 查询收货地址
|
|
* swagger: http://api-ops-uec-test.qniao.cn/uec/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E4%BC%81%E4%B8%9A%E6%9F%A5%E8%AF%A2%E6%8E%A5%E5%8F%A3/getEnterpriseShippingAddressListByEnterpriseIdUsingGET
|
|
*/
|
|
export const getAddress = (data = {}) => {
|
|
return http.get({
|
|
url: '/uec/get/enterprise-shipping-address-list/by-enterpriseId',
|
|
data
|
|
})
|
|
}
|
|
|
|
|
|
/**
|
|
* 保存收货地址
|
|
* swagger: http://api-ops-uec-test.qniao.cn/uec/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E4%BC%81%E4%B8%9A/saveEnterpriseShippingAddressByEnterpriseIdUsingPOST
|
|
*/
|
|
export const createAddress = (data = {}) => {
|
|
return http.post({
|
|
url: '/uec/save/enterprise-shipping-address/by/enterprise-id',
|
|
data
|
|
})
|
|
}
|
|
// 删除收货地址
|
|
export const delAddress = (data = {}) => {
|
|
return http.post({
|
|
url: '/uec/delete/enterprise-shipping-address',
|
|
data
|
|
})
|
|
}
|
|
// 设置默认地址
|
|
export const setDefaultAddress = (data = {}) => {
|
|
return http.post({
|
|
url: '/uec/set/enterprise-shipping-address/as/default',
|
|
data
|
|
})
|
|
}
|
|
// 通过id查询企业收货地址 /uec/get/enterprise-shipping-address-detail
|
|
|
|
export const getAddressDetail = (data = {}) => {
|
|
return http.get({
|
|
url: '/uec/get/enterprise-shipping-address-detail',
|
|
data
|
|
})
|
|
}
|