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; package io.shinhanlife.dap.mcc.biz.smp.usecase;
public interface DailyQuoteToolUseCase { import io.shinhanlife.dap.mcc.biz.smp.dto.DailyQuoteRequest;
record DailyQuoteRequest(String category) {} import io.shinhanlife.dap.mcc.biz.smp.dto.DailyQuoteResponse;
record DailyQuoteResponse(String quote, String author) {}
public interface DailyQuoteToolUseCase {
DailyQuoteResponse execute(DailyQuoteRequest req); DailyQuoteResponse execute(DailyQuoteRequest req);
} }

View File

@@ -1,8 +1,8 @@
package io.shinhanlife.dap.mcc.biz.smp.usecase; package io.shinhanlife.dap.mcc.biz.smp.usecase;
public interface ExchangeRateToolUseCase { import io.shinhanlife.dap.mcc.biz.smp.dto.ExchangeRateRequest;
record ExchangeRateRequest(String currencyCode) {} import io.shinhanlife.dap.mcc.biz.smp.dto.ExchangeRateResponse;
record ExchangeRateResponse(String baseCurrency, String targetCurrency, double rate) {}
public interface ExchangeRateToolUseCase {
ExchangeRateResponse execute(ExchangeRateRequest req); 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.McpFunction;
import io.shinhanlife.dap.lib.annotation.McpTool; 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.biz.smp.usecase.DailyQuoteToolUseCase;
import io.shinhanlife.dap.mcc.usecase.AbstractMcpToolUseCase; import io.shinhanlife.dap.mcc.usecase.AbstractMcpToolUseCase;
import lombok.extern.slf4j.Slf4j; 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.McpFunction;
import io.shinhanlife.dap.lib.annotation.McpTool; 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.biz.smp.usecase.ExchangeRateToolUseCase;
import io.shinhanlife.dap.mcc.usecase.AbstractMcpToolUseCase; import io.shinhanlife.dap.mcc.usecase.AbstractMcpToolUseCase;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;