| 1234567891011121314151617181920212223242526 |
- // API List
- // /batchDownload/list - GET
- import http from '@/service/serverReq'
- import type { BatchDownloadFilter, BatchDownloadItemPage } from './interface'
- const API_List = {
- batchDownloadList: '/batchDownload/list',
- }
- // GET 后台任务信息
- export const getBatchDownloadList = async (
- pageSize: number,
- pageNum: number,
- filter?: BatchDownloadFilter,
- ): Promise<BatchDownloadItemPage> => {
- const res = await http.get<BatchDownloadItemPage>(API_List.batchDownloadList, {
- params: {
- pageSize,
- pageNum,
- sn: filter ? (filter.sn ?? '') : '',
- type: filter ? (filter.type ?? '') : '',
- },
- })
- return res
- }
|