This commit is contained in:
@@ -1,3 +1,16 @@
|
|||||||
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
||||||
|
|
||||||
public record DailyQuoteRequest(String category) {}
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import io.shinhanlife.dap.lib.annotation.McpParameter;
|
||||||
|
import io.shinhanlife.dap.lib.annotation.McpValidation;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class DailyQuoteRequest {
|
||||||
|
|
||||||
|
@McpParameter(description = "카테고리 (예: 속담 등)", required = false)
|
||||||
|
@McpValidation(examples = {"속담"})
|
||||||
|
private String category;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,15 @@
|
|||||||
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
||||||
|
|
||||||
public record ExchangeRateRequest(String currencyCode) {}
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||||
|
import io.shinhanlife.dap.lib.annotation.McpParameter;
|
||||||
|
import io.shinhanlife.dap.lib.annotation.McpValidation;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
|
public class ExchangeRateRequest {
|
||||||
|
@McpParameter(description = "환율 코드 (예: USD 등)", required = false)
|
||||||
|
@McpValidation(examples = {"USD"})
|
||||||
|
private String currencyCode;
|
||||||
|
}
|
||||||
@@ -23,6 +23,6 @@ import lombok.Data;
|
|||||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||||
public class TeamMemberRequest {
|
public class TeamMemberRequest {
|
||||||
@McpParameter(description = "조회할 팀 이름 (예: AX, MCP, TOOL, 전체 등)", required = false)
|
@McpParameter(description = "조회할 팀 이름 (예: AX, MCP, TOOL, 전체 등)", required = false)
|
||||||
@McpValidation(examples = {"개발1팀"})
|
@McpValidation(examples = {"TOOL"})
|
||||||
private String teamName;
|
private String teamName;
|
||||||
}
|
}
|
||||||
@@ -2,6 +2,8 @@ package io.shinhanlife.dap.mcc.biz.smp.dto;
|
|||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
|
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
|
||||||
|
import io.shinhanlife.dap.lib.annotation.McpParameter;
|
||||||
|
import io.shinhanlife.dap.lib.annotation.McpValidation;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @package io.shinhanlife.dap.mcc.dto
|
* @package io.shinhanlife.dap.mcc.dto
|
||||||
@@ -18,8 +20,8 @@ import com.fasterxml.jackson.annotation.JsonPropertyDescription;
|
|||||||
* </pre>
|
* </pre>
|
||||||
*/
|
*/
|
||||||
public record WeatherRequest(
|
public record WeatherRequest(
|
||||||
@JsonProperty(required = true, value = "city")
|
@McpParameter(description = "도시를 입력하세여(예: 서울)", required = true)
|
||||||
@JsonPropertyDescription("날씨를 조회할 도시 이름 (예: 서울, 부산, 제주)")
|
@McpValidation(examples = {"서울"})
|
||||||
String city
|
String city
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
@@ -34,7 +34,7 @@ public class ExchangeRateToolUseCaseImpl extends AbstractMcpToolUseCase implemen
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ExchangeRateResponse execute(ExchangeRateRequest req) {
|
public ExchangeRateResponse execute(ExchangeRateRequest req) {
|
||||||
String targetCurrency = req.currencyCode() != null ? req.currencyCode().toUpperCase().trim() : "USD";
|
String targetCurrency = req.getCurrencyCode() != null ? req.getCurrencyCode().toUpperCase().trim() : "USD";
|
||||||
|
|
||||||
// 간단한 모의 데이터로 반환 (실제 구현 시 외부 연동)
|
// 간단한 모의 데이터로 반환 (실제 구현 시 외부 연동)
|
||||||
double dummyRate = 1350.50;
|
double dummyRate = 1350.50;
|
||||||
|
|||||||
Reference in New Issue
Block a user