20 lines
824 B
JavaScript
20 lines
824 B
JavaScript
import Vue from 'vue';
|
|
|
|
async function getCalculateLive(startDate, endDate) {
|
|
return Vue.axios.get('/admin/calculate/live?startDateStr=' + startDate + '&endDateStr=' + endDate);
|
|
}
|
|
|
|
async function getCalculateContent(startDate, endDate) {
|
|
return Vue.axios.get('/admin/calculate/content-list?startDateStr=' + startDate + '&endDateStr=' + endDate);
|
|
}
|
|
|
|
async function getCumulativeSalesByContent(page, size) {
|
|
return Vue.axios.get('/admin/calculate/cumulative-sales-by-content?page=' + (page - 1) + "&size=" + size);
|
|
}
|
|
|
|
async function getCalculateContentDonation(startDate, endDate) {
|
|
return Vue.axios.get('/admin/calculate/content-donation-list?startDateStr=' + startDate + '&endDateStr=' + endDate);
|
|
}
|
|
|
|
export { getCalculateLive, getCalculateContent, getCumulativeSalesByContent, getCalculateContentDonation }
|