import request from '@/utils/request'

const get = (url, params) => request({ url, method: 'get', params })

export const getDisposeStatusStat = params => get('/warning/disposeStatus/stat', params)
export const getDisposalTypeStat = params => get('/warning/disposeStatus/disposal-type', params)

export const getDisposeEfficiencyOverview = params => get('/warning/disposeEfficiency/overview', params)
export const getDisposeEfficiencyRange = params => get('/warning/disposeEfficiency/range', params)
export const getDisposeEfficiencySpecial = params => get('/warning/disposeEfficiency/special', params)
export const pageDisposeEfficiency = params => get('/warning/disposeEfficiency/page', params)

export const getTodayWarningStats = () => get('/warning/today/stats')
export const pageTodayWarnings = params => get('/warning/today/page', params)

export const getWarningTrendByDay = params => get('/warning/trend/day', params)
export const getWarningTrendByMonth = params => get('/warning/trend/month', params)

export const getReceiveEfficiencyOverview = params => get('/warning/receiveEfficiency/overview', params)
export const getReceiveEfficiencyRange = params => get('/warning/receiveEfficiency/range', params)
export const getReceiveEfficiencyType = params => get('/warning/receiveEfficiency/type', params)
export const pageReceiveEfficiency = params => get('/warning/receiveEfficiency/page', params)
