This commit is contained in:
@@ -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}`)
|
||||
}
|
||||
|
||||
// ========== 单卡列表(未绑定设备)相关 ==========
|
||||
|
||||
Reference in New Issue
Block a user