import request from '@/utils/request'

export default {
    // 获取统计概览
    overview: {
        url: '/api/account/statistics/overview',
        name: '统计概览',
        get: async function(params) {
            return request.get(this.url, {params: params})
        }
    },
    // 获取收支趋势
    trend: {
        url: '/api/account/statistics/trend',
        name: '收支趋势',
        get: async function(params) {
            return request.get(this.url, {params: params})
        }
    },
    // 获取分类统计
    category: {
        url: '/api/account/statistics/category',
        name: '分类统计',
        get: async function(params) {
            return request.get(this.url, {params: params})
        }
    },
    // 获取月度报表
    monthly: {
        url: '/api/account/statistics/monthly',
        name: '月度报表',
        get: async function(params) {
            return request.get(this.url, {params: params})
        }
    },
    // 获取年度报表
    yearly: {
        url: '/api/account/statistics/yearly',
        name: '年度报表',
        get: async function(params) {
            return request.get(this.url, {params: params})
        }
    }
}
