import { lotteryRequest } from "@/lib/lottery-http";
import type { PlayerMeData } from "@/types/api/player-me";
import type { ScopePingData } from "@/types/api/ping";


/** `GET /api/v1/player/ping`（无需登录） */
export function getPlayerPing(): Promise<ScopePingData> {
  return lotteryRequest.get<ScopePingData>(`/player/ping`);
}

/** `GET /api/v1/player/me`（需玩家 Token） */
export function getPlayerMe(): Promise<PlayerMeData> {
  return lotteryRequest.get<PlayerMeData>(`/player/me`);
}
