detail
单船查询。
调用方式:
typescript
const data = await client.ship.detail(params);typescript
import { Ship } from 'loongship-data';
const data = await Ship.detail({ key: 'YOUR_KEY', ...params });请求参数 (ShipDetailParams)
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | number | 是 | 船舶主键。 |
| key | string | 否 | User authorization key. Optional when an instance key or global key is registered. |
返回类型: ShipDetailData
查看类型定义
typescript
export type LoongshipRecord = Record<string, unknown>;