修复bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m59s

This commit is contained in:
sexygoat
2026-04-09 17:47:32 +08:00
parent 472099bf96
commit c2c1644799
13 changed files with 166 additions and 172 deletions

View File

@@ -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)
}
/**