From b46f7fa6d77852ae9e28a062da234a2ddf9405fb Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期一, 31 三月 2025 16:09:51 +0800 Subject: [PATCH] 2025-3-22定制修改导出去掉容量和连接条 --- src/main/java/com/whyc/controller/TestParamController.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/whyc/controller/TestParamController.java b/src/main/java/com/whyc/controller/TestParamController.java index 6fcc58b..747c259 100644 --- a/src/main/java/com/whyc/controller/TestParamController.java +++ b/src/main/java/com/whyc/controller/TestParamController.java @@ -4,6 +4,7 @@ import com.whyc.pojo.FileParam; import com.whyc.pojo.TestParam; import com.whyc.service.TestParamService; +import com.whyc.util.MessageUtils; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; @@ -28,7 +29,14 @@ @PutMapping("factorsAndThreshold") public Response updateFactorsAndThreshold(@RequestBody TestParam param){ service.updateFactorsAndThreshold(param); - return new Response().set(1,"鏇存柊瀹屾垚"); + return new Response().set(1, MessageUtils.getMessage("updateSuccessfully")); + } + + @ApiOperation("鏈嶅姟璋冪敤娴嬭瘯") + @GetMapping("callService") + public Response<TestParam> callService(@RequestParam Integer seconds) throws InterruptedException { + service.callService(seconds); + return new Response().set(1,"璋冪敤鏈嶅姟鎴愬姛!"); } } -- Gitblit v1.9.1