From a8f2f4e6f1a9173d7eb9779c7879674015c8cda0 Mon Sep 17 00:00:00 2001
From: dengzedong <dengzedong@email>
Date: 星期四, 10 十月 2024 14:07:31 +0800
Subject: [PATCH] 项目启动加载已发布的dll和jar 先判断文件是否存在

---
 iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mdk/MdkApi.java |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mdk/MdkApi.java b/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mdk/MdkApi.java
index d098d94..54be190 100644
--- a/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mdk/MdkApi.java
+++ b/iailab-module-model/iailab-module-model-api/src/main/java/com/iailab/module/model/api/mdk/MdkApi.java
@@ -2,11 +2,10 @@
 
 import com.iailab.module.model.api.mdk.dto.*;
 import com.iailab.module.model.enums.ApiConstants;
-import com.iailab.framework.common.pojo.CommonResult;
 import io.swagger.v3.oas.annotations.Operation;
 import io.swagger.v3.oas.annotations.tags.Tag;
 import org.springframework.cloud.openfeign.FeignClient;
-import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
 
 import javax.validation.Valid;
@@ -17,25 +16,24 @@
  * @createTime 2024年08月26日
  */
 @FeignClient(name = ApiConstants.NAME)
-@Tag(name = "RPC 服务 - MDK")
+@Tag(name = "RPC 服务 - 模型调用接口")
 public interface MdkApi {
 
     String PREFIX = ApiConstants.PREFIX + "/mdk";
 
-    @GetMapping(PREFIX + "/predict-module")
-    @Operation(summary = "模块预测")
-    CommonResult<MdkPredictModuleRespDTO> predictModule(@Valid @RequestBody MdkPredictReqDTO reqDTO);
+    @PostMapping(PREFIX + "/predict-module")
+    @Operation(summary = "执行模块预测")
+    MdkPredictModuleRespDTO predictModule(@Valid @RequestBody MdkPredictReqDTO reqDTO);
 
-    @GetMapping(PREFIX + "/predict-item")
-    @Operation(summary = "单独预测")
-    CommonResult<MdkPredictItemRespDTO> predictItem(@Valid @RequestBody MdkPredictReqDTO reqDTO);
+    @PostMapping(PREFIX + "/predict-item")
+    @Operation(summary = "执行单独预测")
+    MdkPredictItemRespDTO predictItem(@Valid @RequestBody MdkPredictReqDTO reqDTO);
 
-    @GetMapping(PREFIX + "/predict-auto-adjust")
+    @PostMapping(PREFIX + "/predict-adjust")
     @Operation(summary = "预测自动调整")
-    CommonResult<Boolean> predictAutoAdjust(@Valid @RequestBody MdkPredictReqDTO reqDTO);
+    Boolean predictAutoAdjust(@Valid @RequestBody MdkPredictReqDTO reqDTO);
 
-
-    @GetMapping(PREFIX + "/schedule")
-    @Operation(summary = "执行调度")
-    CommonResult<MdkScheduleRespDTO> doSchedule(@Valid @RequestBody MdkScheduleReqDTO reqDTO);
+    @PostMapping(PREFIX + "/schedule-scheme")
+    @Operation(summary = "执行调度方案")
+    MdkScheduleRespDTO doSchedule(@Valid @RequestBody MdkScheduleReqDTO reqDTO);
 }

--
Gitblit v1.9.3