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

diff --git a/src/main/java/com/fgkj/controller/User_jiejiariController.java b/src/main/java/com/fgkj/controller/User_jiejiariController.java
index da0c566..156fac8 100644
--- a/src/main/java/com/fgkj/controller/User_jiejiariController.java
+++ b/src/main/java/com/fgkj/controller/User_jiejiariController.java
@@ -6,6 +6,7 @@
 import com.fgkj.dto.User_jiejiari;
 import com.fgkj.services.User_jiejiariService;
 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("holiday")
 @RestController
-@Api
+@Api(tags = "holiday鎺ュ彛")
 public class User_jiejiariController{
 	@Resource
 	private User_jiejiariService service;
 
 	//4.3鑺傚亣鏃ョ鐞�(澧炲姞)
 	@PostMapping("/")
+	@ApiOperation(notes = "",value="鑺傚亣鏃ョ鐞�(澧炲姞)")
 	public ServiceModel add(@RequestBody User_jiejiari ujjr) {
 		ServiceModel model=service.add(ujjr);
 		
@@ -27,6 +29,7 @@
 	}
 	//4.3鑺傚亣鏃ョ鐞�(淇敼)
 	@PutMapping("/")
+	@ApiOperation(notes = "",value="鑺傚亣鏃ョ鐞�(淇敼)")
 	public ServiceModel update(@RequestBody User_jiejiari ujjr) {
 		ServiceModel model=service.update(ujjr);
 		
@@ -35,6 +38,7 @@
 	
 	//4.3鑺傚亣鏃ョ鐞�(鍒犻櫎)
 	@DeleteMapping("/")
+	@ApiOperation(notes = "",value="鑺傚亣鏃ョ鐞�(鍒犻櫎)")
 	public ServiceModel delete(@RequestBody User_jiejiari ujjr) {
 		ServiceModel model=service.delete(ujjr);
 		
@@ -43,6 +47,7 @@
 	
 	//鏌ヨ鎵�鏈夎妭鍋囨棩
 	@GetMapping("all")
+	@ApiOperation(notes = "",value="鏌ヨ鎵�鏈夎妭鍋囨棩")
 	public ServiceModel serchAll(){
 		ServiceModel model=service.serchAll();
 				
@@ -50,7 +55,8 @@
 	}
 	
 	//鏍规嵁鍏巻鍜屽啘鍘嗕互鍙婂叏閮ㄦ煡璇㈣妭鍋囨棩
-	@GetMapping("byCondition")
+	@PostMapping("byCondition")
+	@ApiOperation(notes = "",value="鍏巻鍜屽啘鍘嗕互鍙婂叏閮ㄦ煡璇㈣妭鍋囨棩")
 	public ServiceModel serchByCondition(@RequestBody User_jiejiari ujjr){
 		ServiceModel model=service.serchByCondition(ujjr);
 		

--
Gitblit v1.9.1