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/Battresdata_infController.java | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/fgkj/controller/Battresdata_infController.java b/src/main/java/com/fgkj/controller/Battresdata_infController.java index 1088567..d648c52 100644 --- a/src/main/java/com/fgkj/controller/Battresdata_infController.java +++ b/src/main/java/com/fgkj/controller/Battresdata_infController.java @@ -6,6 +6,7 @@ import com.fgkj.dto.ServiceModel; import com.fgkj.services.Battresdata_infService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -13,7 +14,7 @@ @RequestMapping("battResDataInf") @RestController -@Api +@Api(tags = "battResDataInf鎺ュ彛") public class Battresdata_infController{ @Resource @@ -23,12 +24,14 @@ // private Battresdata_inf brdi; @PostMapping("/") + @ApiOperation(notes = "",value="鏂板") public ServiceModel add(@RequestBody Battresdata_inf brdi) { model = service.add(brdi); return model; } @PutMapping("/") + @ApiOperation(notes = "",value="淇敼") public ServiceModel update(@RequestBody Battresdata_inf brdi) { model = service.update(brdi); @@ -37,6 +40,7 @@ } @DeleteMapping("/") + @ApiOperation(notes = "",value="鍒犻櫎") public ServiceModel delete(@RequestBody Battresdata_inf brdi) { model = service.delete(brdi); @@ -45,6 +49,7 @@ } @GetMapping("byCondition") + @ApiOperation(notes = "",value="绛涢�夊瓨鍦╞attresdata_inf琛ㄤ腑鐨勬暟鎹�") public ServiceModel serchByCondition(@RequestBody Battresdata_inf brdi) { model = service.serchByCondition(brdi); @@ -53,6 +58,7 @@ } @GetMapping("all") + @ApiOperation(notes = "",value="all") public ServiceModel searchAll() { model = service.searchAll(); @@ -62,6 +68,7 @@ //6.4.1鏍规嵁鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犵數瀵兼祴璇曞畬鎴愮巼) @GetMapping("complete") + @ApiOperation(notes = "",value="鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犵數瀵兼祴璇曞畬鎴愮巼)") public ServiceModel serchComplete(@RequestBody Battresdata_inf b){ // Battresdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Battresdata_inf.class); ServiceModel model=service.serchComplete(b); @@ -70,6 +77,7 @@ //6.4.3鏍规嵁鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犵數瀵煎悎鏍肩巼) @GetMapping("serRate") + @ApiOperation(notes = "",value="鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犵數瀵煎悎鏍肩巼)") public ServiceModel serchSer(@RequestBody Battresdata_inf b){ // Battresdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Battresdata_inf.class); ServiceModel model=service.serchSer(b); -- Gitblit v1.9.1