package com.kt.event.eventservice.infrastructure.client;

import com.kt.event.eventservice.infrastructure.client.dto.AIRecommendationResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * AI Service Feign Client
 *
 * AI Service의 추천안 조회 API를 호출합니다.
 *
 * @author Event Service Team
 * @version 1.0.0
 * @since 2025-10-30
 */
@FeignClient(
    name = "ai-service",
    url = "${feign.ai-service.url:http://localhost:8083}"
)
public interface AIServiceClient {

    /**
     * AI 추천 결과 조회
     *
     * @param eventId 이벤트 ID
     * @return AI 추천 결과
     */
    @GetMapping("/recommendations/{eventId}")
    AIRecommendationResponse getRecommendation(@PathVariable("eventId") String eventId);
}
