refactor: DTO 레코드를 별도 파일(dto 패키지)로 분리
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
Some checks failed
Deploy to OCIWP / deploy (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,3 @@
|
|||||||
|
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
||||||
|
|
||||||
|
public record DailyQuoteRequest(String category) {}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
||||||
|
|
||||||
|
public record DailyQuoteResponse(String quote, String author) {}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
||||||
|
|
||||||
|
public record ExchangeRateRequest(String currencyCode) {}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
package io.shinhanlife.dap.mcc.biz.smp.dto;
|
||||||
|
|
||||||
|
public record ExchangeRateResponse(String baseCurrency, String targetCurrency, double rate) {}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user