This commit is contained in:
@@ -19,7 +19,9 @@ import type {
|
||||
BaseResponse,
|
||||
PaginationResponse,
|
||||
ListResponse,
|
||||
GatewayRealnameLinkResponse
|
||||
GatewayRealnameLinkResponse,
|
||||
ImportIotCardRequest,
|
||||
ImportIotCardResponse
|
||||
} from '@/types/api'
|
||||
|
||||
export class CardService extends BaseService {
|
||||
@@ -286,15 +288,8 @@ export class CardService extends BaseService {
|
||||
* 批量导入ICCID(新版:使用 JSON 格式)
|
||||
* @param data 导入请求参数
|
||||
*/
|
||||
static importIotCards(data: {
|
||||
carrier_id: number
|
||||
file_key: string
|
||||
batch_no?: string
|
||||
}): Promise<BaseResponse<{ task_id: number; task_no: string; message: string }>> {
|
||||
return this.post<BaseResponse<{ task_id: number; task_no: string; message: string }>>(
|
||||
'/api/admin/iot-cards/import',
|
||||
data
|
||||
)
|
||||
static importIotCards(data: ImportIotCardRequest): Promise<BaseResponse<ImportIotCardResponse>> {
|
||||
return this.post<BaseResponse<ImportIotCardResponse>>('/api/admin/iot-cards/import', data)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user