refactor: DTO 레코드를 별도 파일(dto 패키지)로 분리
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled

This commit is contained in:
jade
2026-07-27 10:06:43 +09:00
parent 2c64d86a56
commit db46f30e72
8 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,3 @@
package io.shinhanlife.dap.mcc.biz.smp.dto;
public record DailyQuoteRequest(String category) {}

View File

@@ -0,0 +1,3 @@
package io.shinhanlife.dap.mcc.biz.smp.dto;
public record DailyQuoteResponse(String quote, String author) {}

View File

@@ -0,0 +1,3 @@
package io.shinhanlife.dap.mcc.biz.smp.dto;
public record ExchangeRateRequest(String currencyCode) {}

View File

@@ -0,0 +1,3 @@
package io.shinhanlife.dap.mcc.biz.smp.dto;
public record ExchangeRateResponse(String baseCurrency, String targetCurrency, double rate) {}

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcc.biz.smp.usecase;
public interface DailyQuoteToolUseCase {
record DailyQuoteRequest(String category) {}
record DailyQuoteResponse(String quote, String author) {}
import io.shinhanlife.dap.mcc.biz.smp.dto.DailyQuoteRequest;
import io.shinhanlife.dap.mcc.biz.smp.dto.DailyQuoteResponse;
public interface DailyQuoteToolUseCase {
DailyQuoteResponse execute(DailyQuoteRequest req);
}

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcc.biz.smp.usecase;
public interface ExchangeRateToolUseCase {
record ExchangeRateRequest(String currencyCode) {}
record ExchangeRateResponse(String baseCurrency, String targetCurrency, double rate) {}
import io.shinhanlife.dap.mcc.biz.smp.dto.ExchangeRateRequest;
import io.shinhanlife.dap.mcc.biz.smp.dto.ExchangeRateResponse;
public interface ExchangeRateToolUseCase {
ExchangeRateResponse execute(ExchangeRateRequest req);
}

View File

@@ -2,6 +2,8 @@ package io.shinhanlife.dap.mcc.biz.smp.usecase.impl;
import io.shinhanlife.dap.lib.annotation.McpFunction;
import io.shinhanlife.dap.lib.annotation.McpTool;
import io.shinhanlife.dap.mcc.biz.smp.dto.DailyQuoteRequest;
import io.shinhanlife.dap.mcc.biz.smp.dto.DailyQuoteResponse;
import io.shinhanlife.dap.mcc.biz.smp.usecase.DailyQuoteToolUseCase;
import io.shinhanlife.dap.mcc.usecase.AbstractMcpToolUseCase;
import lombok.extern.slf4j.Slf4j;

View File

@@ -2,6 +2,8 @@ package io.shinhanlife.dap.mcc.biz.smp.usecase.impl;
import io.shinhanlife.dap.lib.annotation.McpFunction;
import io.shinhanlife.dap.lib.annotation.McpTool;
import io.shinhanlife.dap.mcc.biz.smp.dto.ExchangeRateRequest;
import io.shinhanlife.dap.mcc.biz.smp.dto.ExchangeRateResponse;
import io.shinhanlife.dap.mcc.biz.smp.usecase.ExchangeRateToolUseCase;
import io.shinhanlife.dap.mcc.usecase.AbstractMcpToolUseCase;
import lombok.extern.slf4j.Slf4j;