/**
 * 선박 API 서비스
 * 현재: mock 데이터 반환 / 향후: 실제 API 호출
 */
import type { VesselData } from '@data/mock/vessels';
import { MOCK_VESSELS, MOCK_SUSPECTS } from '@data/mock/vessels';
// import { apiGet } from './api';

/** TODO: GET /api/v1/vessels */
export async function getVessels(): Promise<VesselData[]> {
  // return apiGet<VesselData[]>('/vessels');
  return MOCK_VESSELS;
}

/** TODO: GET /api/v1/vessels/suspects */
export async function getSuspects(): Promise<VesselData[]> {
  // return apiGet<VesselData[]>('/vessels/suspects');
  return MOCK_SUSPECTS;
}

/** TODO: GET /api/v1/vessels/:mmsi */
export async function getVesselDetail(mmsi: string): Promise<VesselData | undefined> {
  // return apiGet<VesselData>(`/vessels/${mmsi}`);
  return MOCK_VESSELS.find(v => v.mmsi === mmsi);
}
