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 | 12 ++++++++++-- 1 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/whyc/controller/TestParamController.java b/src/main/java/com/whyc/controller/TestParamController.java index c60d76f..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; @@ -11,7 +12,7 @@ @RestController @RequestMapping(("testParam")) -@Api(value = "娴嬭瘯鍙傛暟-鍒嗙骇璇勪环") +@Api(tags = "娴嬭瘯鍙傛暟-鍒嗙骇璇勪环") public class TestParamController { @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