From e8c574b2c6a0a8d7527fe84ccd91f9bbb03d675d Mon Sep 17 00:00:00 2001 From: jade Date: Mon, 13 Jul 2026 09:56:10 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20HrTest=20=ED=88=B4(=EA=B8=B0=EB=8A=A5)?= =?UTF-8?q?=20=EC=8A=A4=EC=BA=90=ED=8F=B4=EB=94=A9=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../axhub/biz/mcp/tool/dto/hr_testReq.java | 24 +++++++++++ .../axhub/biz/mcp/tool/dto/hr_testRes.java | 26 ++++++++++++ .../biz/mcp/tool/service/hr_testService.java | 42 +++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testReq.java create mode 100644 axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testRes.java create mode 100644 axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/service/hr_testService.java diff --git a/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testReq.java b/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testReq.java new file mode 100644 index 0000000..ac1730f --- /dev/null +++ b/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testReq.java @@ -0,0 +1,24 @@ +package io.shinhanlife.axhub.biz.mcp.tool.dto; + +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.Data; + +/** + * @package io.shinhanlife.axhub.biz.mcp.tool.dto + * @className hr_testReq + * @description AX HUB 시스템 처리 클래스 + * @author root + * @create 2026.07.13 + *
+ * ---------- 개정이력 ----------
+ * 수정일      수정자    수정내용
+ * ---------- -------- ---------------------------
+ * 2026.07.13  root    최초생성
+ *
+ * 
+ */ +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +public class hr_testReq { + // TODO: Add request fields here +} diff --git a/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testRes.java b/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testRes.java new file mode 100644 index 0000000..0f310d2 --- /dev/null +++ b/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/dto/hr_testRes.java @@ -0,0 +1,26 @@ +package io.shinhanlife.axhub.biz.mcp.tool.dto; + +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.Data; + +/** + * @package io.shinhanlife.axhub.biz.mcp.tool.dto + * @className hr_testRes + * @description AX HUB 시스템 처리 클래스 + * @author root + * @create 2026.07.13 + *
+ * ---------- 개정이력 ----------
+ * 수정일      수정자    수정내용
+ * ---------- -------- ---------------------------
+ * 2026.07.13  root    최초생성
+ *
+ * 
+ */ +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +public class hr_testRes { + private String status; + private String message; + // TODO: Add response fields here +} diff --git a/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/service/hr_testService.java b/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/service/hr_testService.java new file mode 100644 index 0000000..1633821 --- /dev/null +++ b/axhub-tool-hr/src/main/java/io/shinhanlife/axhub/biz/mcp/tool/service/hr_testService.java @@ -0,0 +1,42 @@ +package io.shinhanlife.axhub.biz.mcp.tool.service; + +import io.shinhanlife.axhub.biz.mcp.tool.annotation.McpFunction; +import io.shinhanlife.axhub.biz.mcp.tool.annotation.McpTool; +import io.shinhanlife.axhub.biz.mcp.tool.dto.hr_testReq; +import io.shinhanlife.axhub.biz.mcp.tool.dto.hr_testRes; +import org.springframework.stereotype.Service; + +/** + * @package io.shinhanlife.axhub.biz.mcp.tool.service + * @className hr_testService + * @description AX HUB 시스템 처리 클래스 + * @author root + * @create 2026.07.13 + *
+ * ---------- 개정이력 ----------
+ * 수정일      수정자    수정내용
+ * ---------- -------- ---------------------------
+ * 2026.07.13  root    최초생성
+ *
+ * 
+ */ +@Service +@McpTool( + routingType = "MCI", + categoryKey = "common" +) +public class hr_testService extends AbstractMcpToolService { + + @McpFunction( + displayName = "hr_test 툴", + name = "hr_test", + description = "hr 조회 합니다.", + prompt = "hr 조회 합니다. 해줘.", + mappingId = "HR_001", + register = false, + requiresApproval = false + ) + public Object execute(hr_testReq req) { + return executeLegacy("MCI", "HR_001", req); + } +}