feat: 文件下载
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 3m54s

This commit is contained in:
sexygoat
2026-04-30 18:04:01 +08:00
parent 81155fd8e4
commit 950520635d
19 changed files with 438 additions and 44 deletions

View File

@@ -21,7 +21,9 @@ import type {
ListResponse,
GatewayRealnameLinkResponse,
ImportIotCardRequest,
ImportIotCardResponse
ImportIotCardResponse,
IotCardImportTask,
IotCardImportTaskDetail
} from '@/types/api'
export class CardService extends BaseService {
@@ -296,7 +298,7 @@ export class CardService extends BaseService {
* 获取导入任务列表
* @param params 查询参数
*/
static getIotCardImportTasks(params?: any): Promise<PaginationResponse<any>> {
static getIotCardImportTasks(params?: any): Promise<PaginationResponse<IotCardImportTask>> {
return this.getPage('/api/admin/iot-cards/import-tasks', params)
}
@@ -304,8 +306,8 @@ export class CardService extends BaseService {
* 获取导入任务详情
* @param id 任务ID
*/
static getIotCardImportTaskDetail(id: number): Promise<BaseResponse<any>> {
return this.getOne(`/api/admin/iot-cards/import-tasks/${id}`)
static getIotCardImportTaskDetail(id: number): Promise<BaseResponse<IotCardImportTaskDetail>> {
return this.getOne<IotCardImportTaskDetail>(`/api/admin/iot-cards/import-tasks/${id}`)
}
// ========== 单卡列表(未绑定设备)相关 ==========