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/User_task_batt_checkController.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/fgkj/controller/User_task_batt_checkController.java b/src/main/java/com/fgkj/controller/User_task_batt_checkController.java index 47f7da6..201cd9b 100644 --- a/src/main/java/com/fgkj/controller/User_task_batt_checkController.java +++ b/src/main/java/com/fgkj/controller/User_task_batt_checkController.java @@ -6,6 +6,7 @@ import com.fgkj.dto.User_task_batt_check; import com.fgkj.services.User_task_batt_checkService; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -13,13 +14,14 @@ @RequestMapping("UserTaskBattCheck") @RestController -@Api +@Api(tags = "UserTaskBattCheck鎺ュ彛") public class User_task_batt_checkController{ @Resource private User_task_batt_checkService service; @PostMapping("/") + @ApiOperation(notes = "",value="鏂板") public ServiceModel add(@RequestBody User_task_batt_check utbc) { ServiceModel model=service.add(utbc); @@ -28,6 +30,7 @@ } //4.1鎻愪氦,澶嶆煡浣滀笟 @PutMapping("/") + @ApiOperation(notes = "",value="鎻愪氦,澶嶆煡浣滀笟") public ServiceModel update(@RequestBody User_task_batt_check utbc) { ServiceModel model=service.update(utbc); @@ -35,6 +38,7 @@ } @DeleteMapping("/") + @ApiOperation(notes = "",value="鍒犻櫎") public ServiceModel delete(@RequestBody User_task_batt_check utbc) { ServiceModel model=service.delete(utbc); @@ -42,12 +46,14 @@ } @GetMapping("byCondition") + @ApiOperation(notes = "",value="task_id鏌ヨuser_task_batt_check淇℃伅") public ServiceModel serchByCondition(@RequestBody User_task_batt_check utbc){ ServiceModel model=service.serchByCondition(utbc); return model; } @GetMapping("all") + @ApiOperation(notes = "",value="all") public ServiceModel searchAll(){ ServiceModel model=service.searchAll(); -- Gitblit v1.9.1