Skip to content

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)

参数名类型必填描述
idstring船舶主键列表,多条船舶以逗号分隔。
keystringUser authorization key. Optional when an instance key or global key is registered.

返回类型: ShipBatchGetData

查看类型定义
typescript
export type ShipBatchGetData = LoongshipRecord[];