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_templateController.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/fgkj/controller/User_task_batt_templateController.java b/src/main/java/com/fgkj/controller/User_task_batt_templateController.java
index 4b7bd2a..428e12e 100644
--- a/src/main/java/com/fgkj/controller/User_task_batt_templateController.java
+++ b/src/main/java/com/fgkj/controller/User_task_batt_templateController.java
@@ -6,6 +6,7 @@
 import com.fgkj.dto.User_task_batt_template;
 import com.fgkj.services.User_task_batt_templateService;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -15,13 +16,14 @@
 
 @RequestMapping("UserTaskBattTemplate")
 @RestController
-@Api
+@Api(tags = "UserTaskBattTemplate鎺ュ彛")
 public class User_task_batt_templateController{
 	@Resource
 	private User_task_batt_templateService service;
 	
 	//4.4 浣滀笟妯℃澘绠$悊(鏂板缓妯℃澘)
 	@PostMapping("/")
+	@ApiOperation(notes = "",value="浣滀笟妯℃澘绠$悊(鏂板缓妯℃澘)")
 	public ServiceModel add(@RequestBody User_task_batt_template utbt){
 		ServiceModel model=service.add(utbt);
 		
@@ -30,6 +32,7 @@
 	
 	//4.4 浣滀笟妯℃澘绠$悊(淇敼妯℃澘/閲嶅懡鍚�)
 	@PutMapping("/")
+	@ApiOperation(notes = "",value="浣滀笟妯℃澘绠$悊(淇敼妯℃澘/閲嶅懡鍚�)")
 	public ServiceModel update(@RequestBody List<User_task_batt_template> uplist) {
 		ServiceModel model=service.update(uplist);
 		
@@ -38,6 +41,7 @@
 	
 	//4.4 浣滀笟妯℃澘绠$悊(鍒犻櫎)
 	@DeleteMapping("/")
+	@ApiOperation(notes = "",value="浣滀笟妯℃澘绠$悊(鍒犻櫎)")
 	public ServiceModel delete(@RequestBody User_task_batt_template utbt){
 		ServiceModel model=service.delete(utbt);
 		
@@ -45,7 +49,8 @@
 	}
 	
 	//4.4鏍规嵁妯℃澘id鏌ヨ妯℃澘鐨勪俊鎭�
-	@GetMapping("byCondition")
+	@PostMapping("byCondition")
+	@ApiOperation(notes = "",value="妯℃澘id鏌ヨ妯℃澘鐨勪俊鎭�")
     public ServiceModel serchByCondition(@RequestBody User_task_batt_template utbt){
     	ServiceModel model=service.serchByCondition(utbt);
     	
@@ -54,6 +59,7 @@
     
   //4.4鏌ヨ鎵�鏈夌殑妯℃澘
 	@GetMapping("all")
+	@ApiOperation(notes = "",value="鏌ヨ鎵�鏈夌殑妯℃澘")
     public ServiceModel searchAll(){
     	ServiceModel model=service.searchAll();
     	

--
Gitblit v1.9.1