From c8332186836b3dfe1fbd32d7bec7cd29a57e1888 Mon Sep 17 00:00:00 2001 From: whycrzh <ruanzhigang@whycst.com> Date: 星期四, 28 一月 2021 10:06:22 +0800 Subject: [PATCH] update swagger online API --- src/main/java/com/fgkj/controller/BatttestdataController.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/fgkj/controller/BatttestdataController.java b/src/main/java/com/fgkj/controller/BatttestdataController.java index e476959..89c84b0 100644 --- a/src/main/java/com/fgkj/controller/BatttestdataController.java +++ b/src/main/java/com/fgkj/controller/BatttestdataController.java @@ -6,6 +6,7 @@ import com.fgkj.dto.ServiceModel; import com.fgkj.services.BatttestdataService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -16,7 +17,7 @@ @RequestMapping("battTestData") @RestController -@Api +@Api(tags = "battTestData鎺ュ彛") public class BatttestdataController{ @Resource @@ -25,6 +26,7 @@ // private Batttestdata btd; @GetMapping("byInfo") + @ApiOperation(notes = "",value="byInfo") public ServiceModel findByInfo(@RequestBody Batttestdata btd) { ServiceModel model = service.serchByCondition(btd); @@ -38,6 +40,7 @@ * @return */ @GetMapping("history") + @ApiOperation(notes = "",value="鍘嗗彶鏁版嵁鏌ヨ") public ServiceModel findhistory(@RequestBody Batttestdata btd){ // Batttestdata btd = ActionUtil.getGson().fromJson(json, Batttestdata.class); ServiceModel model = service.serchByCondition(btd); @@ -50,6 +53,7 @@ * @return */ @GetMapping("history_ky") + @ApiOperation(notes = "璺ㄥ煙璁块棶",value="鍘嗗彶鏁版嵁鏌ヨ") public ServiceModel findhistory_ky(@RequestBody Batttestdata btd){ // btd = ActionUtil.getGson().fromJson(json, Batttestdata.class); ServiceModel model = service.serchByCondition_ky(btd); -- Gitblit v1.9.1