batchGet
多船查询,id 使用逗号分隔字符串。
调用方式:
typescript
const data = await client.ship.batchGet(params);typescript
import { Ship } from 'loongship-data';
const data = await Ship.batchGet({ key: 'YOUR_KEY', ...params });请求参数 (ShipBatchGetParams)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 是 | 船舶主键列表,多条船舶以逗号分隔。 |
| key | string | 否 | User authorization key. Optional when an instance key or global key is registered. |
返回类型: ShipBatchGetData
查看类型定义
typescript
export type ShipBatchGetData = LoongshipRecord[];