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/CustompageController.java |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/fgkj/controller/CustompageController.java b/src/main/java/com/fgkj/controller/CustompageController.java
index 8293e78..6ea5f73 100644
--- a/src/main/java/com/fgkj/controller/CustompageController.java
+++ b/src/main/java/com/fgkj/controller/CustompageController.java
@@ -6,6 +6,7 @@
 import com.fgkj.dto.ServiceModel;
 import com.fgkj.services.CustompageService;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -15,7 +16,7 @@
 
 @RequestMapping("customPage")
 @RestController
-@Api
+@Api(tags = "customPage鎺ュ彛")
 public class CustompageController{
 	
 	@Resource
@@ -25,6 +26,7 @@
 
 	//椤甸潰瀹氬埗涓嬫坊鍔犲鑸垨鑰呭瓙椤甸潰
 	@PostMapping("/")
+	@ApiOperation(notes = "",value="椤甸潰瀹氬埗涓嬫坊鍔犲鑸垨鑰呭瓙椤甸潰")
 	public ServiceModel add(@RequestBody Custompage cust) {
 	    // cust=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,Custompage.class);
 		ServiceModel model=service.add(cust);
@@ -34,6 +36,7 @@
 	
 	//椤甸潰瀹氬埗鍙互鐪嬪埌鐨勫瓙鑿滃崟鍜屽瓙妯″潡
 	@PutMapping("/")
+	@ApiOperation(notes = "",value="椤甸潰瀹氬埗鍙互鐪嬪埌鐨勫瓙鑿滃崟鍜屽瓙妯″潡")
 	public ServiceModel update(@RequestBody List<Custompage> list) {
 		// List<Custompage> list = ActionUtil.getGson().fromJson(result, new TypeToken<ArrayList<Custompage>>(){}.getType() );
 		ServiceModel model=service.update(list);		
@@ -42,6 +45,7 @@
 	}
 	//椤甸潰瀹氬埗淇敼涓诲鑸笅瀛愰〉闈㈢殑椤哄簭
 	@PutMapping("order")
+	@ApiOperation(notes = "",value="椤甸潰瀹氬埗淇敼涓诲鑸笅瀛愰〉闈㈢殑椤哄簭")
 	public ServiceModel updateOrder(@RequestBody List<Custompage> list) {
 		// List<Custompage> list = ActionUtil.getGson().fromJson(result, new TypeToken<ArrayList<Custompage>>(){}.getType() );
 		ServiceModel model=service.updateOrder(list);		
@@ -51,6 +55,7 @@
 	}
 
 	@DeleteMapping("/")
+	@ApiOperation(notes = "",value="鍒犻櫎")
 	public ServiceModel delete(@RequestBody Custompage cust) {
 		ServiceModel model=service.delete(cust);
 		
@@ -58,6 +63,7 @@
 	}
 
 	@GetMapping("byCondition")
+	@ApiOperation(notes = "",value="椤甸潰鏌ヨ瀛愭ā鍧�/瀛愯彍鍗�")
 	public ServiceModel serchByCondition(@RequestBody Custompage cust){
 		// cust=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,Custompage.class);
 		ServiceModel model=service.serchByCondition(cust);
@@ -68,6 +74,7 @@
 
     //鏌ヨ鎵�鏈夌殑鑿滃崟(椤甸潰瀹氬埗鍙互鐪嬪埌鐨勫瓙鑿滃崟鍜屽瓙妯″潡)
 	@GetMapping("all")
+	@ApiOperation(notes = "",value="鏌ヨ鎵�鏈夌殑鑿滃崟(椤甸潰瀹氬埗鍙互鐪嬪埌鐨勫瓙鑿滃崟鍜屽瓙妯″潡)")
     public ServiceModel searchAll(){
 		ServiceModel model=service.searchAll();
 		setCust(model);
@@ -77,6 +84,7 @@
 
     //鏍规嵁涓诲鑸殑鍚嶅瓧鏌ヨ鎵�鏈夌殑瀛愰〉闈�
 	@GetMapping("byInfo")
+	@ApiOperation(notes = "",value="涓诲鑸殑鍚嶅瓧鏌ヨ鎵�鏈夌殑瀛愰〉")
     public ServiceModel serchByInfo(@RequestBody Custompage cust){
     	// cust=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result,Custompage.class);
 		ServiceModel model=service.serchByInfo(cust);
@@ -85,6 +93,7 @@
 	}
     //灏嗗鑸璞℃暟缁勫瓨鍏ession
 	@PostMapping("custom2Session")
+	@ApiOperation(notes = "",value="灏嗗鑸璞℃暟缁勫瓨鍏ession")
     public static void setCust(ServiceModel obj){
 				if(obj!=null){
 					ServiceModel model=(ServiceModel) obj;

--
Gitblit v1.9.1