19 lines
449 B
JavaScript
19 lines
449 B
JavaScript
import request from '@/utils/request.js';
|
|
|
|
export const exchangeApi = {
|
|
getPending(identifier) {
|
|
return request({
|
|
url: '/api/c/v1/exchange/pending',
|
|
method: 'GET',
|
|
data: { identifier }
|
|
});
|
|
},
|
|
|
|
submitShippingInfo(id, recipient_name, recipient_phone, recipient_address) {
|
|
return request({
|
|
url: `/api/c/v1/exchange/${id}/shipping-info`,
|
|
method: 'POST',
|
|
data: { recipient_name, recipient_phone, recipient_address }
|
|
});
|
|
}
|
|
}; |