26 lines
433 B
JavaScript
26 lines
433 B
JavaScript
import { get } from '../utils/request'
|
|
|
|
// 按日期范围统计
|
|
export function getDailyStatistics(startDate, endDate) {
|
|
return get('/statistics/daily', { startDate, endDate })
|
|
}
|
|
|
|
// 按周统计
|
|
export function getWeeklyStatistics(weekStart) {
|
|
return get('/statistics/weekly', { weekStart })
|
|
}
|
|
|
|
// 按月统计
|
|
export function getMonthlyStatistics(year, month) {
|
|
return get('/statistics/monthly', { year, month })
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|