import { StationCountQueryParam, StationCountModel } from '@/types'
import request from '@/until/request'

/**
 * 获取用水户统计列表
* @param unitCode string
* @param time string
 */
const QueryStationCountList = (unitCode: string, time: string) =>
    request({
        url: '/StationAccAction/findYslByStationCodeAndTime/' + unitCode + '/' + time,
        method: 'get'
    })
/**
* 下载文件
* @param unitCode string
* @param time string
*/
const DownLoadFile = (unitCode: string, time: string) =>
    request({
        url: '/FileDownLoadAction/getTongji_excel/' + unitCode + '/' + time,
        method: 'get',
        responseType: 'blob', //最关键的部分
    })


export default {
    QueryStationCountList,
    DownLoadFile,
}