first commit
This commit is contained in:
19
api/modules/exchange.js
Normal file
19
api/modules/exchange.js
Normal file
@@ -0,0 +1,19 @@
|
||||
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 }
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user