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/BattMap_informationController.java |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/fgkj/controller/BattMap_informationController.java b/src/main/java/com/fgkj/controller/BattMap_informationController.java
index 6c7551b..427b81b 100644
--- a/src/main/java/com/fgkj/controller/BattMap_informationController.java
+++ b/src/main/java/com/fgkj/controller/BattMap_informationController.java
@@ -7,6 +7,7 @@
 import com.fgkj.services.BattMap_informationService;
 import com.fgkj.services.User_logService;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -16,7 +17,7 @@
 
 @RequestMapping("battMapInformation")
 @RestController
-@Api
+@Api(tags = "battMapInformation鎺ュ彛")
 public class BattMap_informationController{
 
 	@Resource
@@ -27,6 +28,7 @@
 	
 	//9.1褰曞叆鏈烘埧淇℃伅
 	@PostMapping("/")
+	@ApiOperation(notes = "",value="褰曞叆鏈烘埧淇℃伅")
 	public ServiceModel add(@RequestBody BattMap_information binfo){
 		// BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		ServiceModel model = service.add(binfo);
@@ -41,6 +43,7 @@
 	}
 	//9.1褰曞叆鏈烘埧淇℃伅
 	@PostMapping("dev")
+	@ApiOperation(notes = "",value="褰曞叆鏈烘埧淇℃伅")
 	public ServiceModel addDev(@RequestBody BattMap_information binfo){
 		// BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		ServiceModel model = service.addDev(binfo);
@@ -48,6 +51,7 @@
 		return model;
 	}
 	@PutMapping("/")
+	@ApiOperation(notes = "",value="淇敼")
 	public ServiceModel update(@RequestBody BattMap_information binfo){
 		// BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		ServiceModel model = service.update(binfo);
@@ -56,6 +60,7 @@
 	}
 	//鍒犻櫎鏈烘埧鐨勪綅缃俊鎭�
 	@DeleteMapping("/")
+	@ApiOperation(notes = "",value="鍒犻櫎鏈烘埧鐨勪綅缃俊鎭�")
 	public ServiceModel del(@RequestBody BattMap_information binfo){
 		// BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		ServiceModel model = service.del(binfo);
@@ -70,12 +75,14 @@
 	
 	//9.1鐧惧害鍦板浘瀹氫綅鏌ヨ鐢垫睜缁勪俊鎭�
 	@GetMapping("all")
+	@ApiOperation(notes = "",value="鐧惧害鍦板浘瀹氫綅鏌ヨ鐢垫睜缁勪俊鎭�")
 	public List searchAll(){
 		List list = service.searchAll();
 		return list;
 	}
 	//9.1鍦板浘涓婃牴鎹淮鎶ゅ尯鏌ヨ鏈烘埧缁忕含搴�
 	@GetMapping("byInfo")
+	@ApiOperation(notes = "",value="鍦板浘涓婃牴鎹淮鎶ゅ尯鏌ヨ鏈烘埧缁忕含搴�")
 	public ServiceModel serchByInfo(@RequestBody BattMap_information binfo){
 		// BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		ServiceModel model = service.serchByInfo(binfo);
@@ -86,6 +93,7 @@
 	
 	//9.1鐧惧害鍦板浘瀹氫綅鏍规嵁鐪佷唤鏌ヨ鎵�鏈夎鍖哄煙鐨勬満鎴�
 	@GetMapping("byCondition")
+	@ApiOperation(notes = "",value="鐧惧害鍦板浘瀹氫綅鏍规嵁鐪佷唤鏌ヨ鎵�鏈夎鍖哄煙鐨勬満鎴�")
 	public List serchByCondition(@RequestBody BattMap_information binfo){
 		// BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		List list = service.serchByCondition(binfo);
@@ -94,6 +102,7 @@
 	
 	//9.1鏈烘埧璇︽儏鏄剧ず鏈烘埧鍏蜂綋钀藉悗鍜屽憡璀︾殑淇℃伅(鏈烘埧淇℃伅鍐呭鐢诲浘)
 	@GetMapping("monNum")
+	@ApiOperation(notes = "",value="鏈烘埧璇︽儏鏄剧ず鏈烘埧鍏蜂綋钀藉悗鍜屽憡璀︾殑淇℃伅(鏈烘埧淇℃伅鍐呭鐢诲浘)")
 	public List serchMonNum(@RequestBody BattMap_information binfo){
 		// BattMap_information binfo = getGson().fromJson(json, BattMap_information.class);
 		List list = service.serchMonNum(binfo);
@@ -102,6 +111,7 @@
 	
 	//9.1鏌ヨ鏈坊鍔犵墿鐞嗕俊鎭殑鏈烘埧
 	@GetMapping("notInBattMap")
+	@ApiOperation(notes = "",value="鏌ヨ鏈坊鍔犵墿鐞嗕俊鎭殑鏈烘埧")
 	public ServiceModel serchNotInBattMap(){
 		ServiceModel model = service.serchNotInBattMap();
 
@@ -109,6 +119,7 @@
 	}
 	//9.1鏌ヨ鏈坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨�)
 	@GetMapping("notInBattMapByUid")
+	@ApiOperation(notes = "",value="鏌ヨ鏈坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨�)")
 	public ServiceModel serchNotInBattMapByUid() {
 		User_inf uinf=(User_inf) ActionUtil.getUser();
 		ServiceModel model = service.serchNotInBattMapByUid(uinf);
@@ -117,6 +128,7 @@
 	}
 	//9.1鏌ヨ宸茬粡娣诲姞鐗╃悊淇℃伅鐨勬満鎴�(鐢ㄦ埛绠$悊鐨�)
 	@GetMapping("inBattMapByUid")
+	@ApiOperation(notes = "",value="鏌ヨ宸茬粡娣诲姞鐗╃悊淇℃伅鐨勬満鎴�(鐢ㄦ埛绠$悊鐨�)")
 	public ServiceModel serchInBattMapByUid() {
 		User_inf uinf=(User_inf) ActionUtil.getUser();
 		ServiceModel model = service.serchInBattMapByUid(uinf);
@@ -125,6 +137,7 @@
 	}
 	//9.1棣栭〉涓婃煡璇㈠凡缁忔坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨�)  鍖呮嫭(鍛婅鎬绘暟钀藉悗鎬绘暟寤惰繜鎬绘暟)
 	@GetMapping("userManageStation")
+	@ApiOperation(notes = "",value="棣栭〉涓婃煡璇㈠凡缁忔坊鍔犵墿鐞嗕俊鎭殑鏈烘埧(鐢ㄦ埛绠$悊鐨�)  鍖呮嫭(鍛婅鎬绘暟钀藉悗鎬绘暟寤惰繜鎬绘暟)")
 	public List searchUserManageStation() {
 		User_inf uinf=(User_inf) ActionUtil.getUser();
 		List list = service.searchUserManageStation(uinf);
@@ -133,6 +146,7 @@
 	
 	//9.1鐢垫睜瀵垮懡绠$悊
 	@GetMapping("byStationId")
+	@ApiOperation(notes = "",value="鐢垫睜瀵垮懡绠$悊")
     public ServiceModel serchByStationid(@RequestBody BattMap_information bmap){
     	// BattMap_information bmap = getGson().fromJson(json, BattMap_information.class);
     	ServiceModel model = service.serchByStationid(bmap);
@@ -142,6 +156,7 @@
     
     //9.1鏌ヨ鏈烘埧鎵�鍦ㄧ殑鎵�鏈夌渷浠�
 	@GetMapping("stationName1")
+	@ApiOperation(notes = "",value="鏌ヨ鏈烘埧鎵�鍦ㄧ殑鎵�鏈夌渷浠�")
   	public ServiceModel serchStationName1(){
   		ServiceModel model = service.serchStationName1();
 
@@ -150,6 +165,7 @@
   	
   	//9.1鏍规嵁鐪佷唤鏌ヨ鏈烘埧鎵�鍦ㄧ殑鎵�鏈夊煄甯�
 	@GetMapping("stationName2")
+	@ApiOperation(notes = "",value="鏍规嵁鐪佷唤鏌ヨ鏈烘埧鎵�鍦ㄧ殑鎵�鏈夊煄甯�")
   	public ServiceModel serchStationName2(@RequestBody BattMap_information bmap){
   		// BattMap_information bmap = getGson().fromJson(json, BattMap_information.class);
   		ServiceModel model = service.serchStationName2(bmap);
@@ -158,6 +174,7 @@
   	}
   //鏍规嵁鐪�/甯�/鍖哄幙鏌ヨ鎵�鏈夌殑绔欑偣
 	@GetMapping("stationName3")
+	@ApiOperation(notes = "",value="鏍规嵁鐪�/甯�/鍖哄幙鏌ヨ鎵�鏈夌殑绔欑偣")
   	public ServiceModel serchStationName3(@RequestBody BattInf binf){
   		// BattInf binf = getGson().fromJson(json, BattInf.class);
   		ServiceModel model = service.serchStationName3(binf);
@@ -166,6 +183,7 @@
   	}
   	//9.1鏍规嵁鐪佷唤鍜屽煄甯傛煡璇㈡満鎴挎墍鍦ㄧ殑鎵�鏈夋満鎴�
 	@GetMapping("stationName")
+	@ApiOperation(notes = "",value="鏍规嵁鐪佷唤鍜屽煄甯傛煡璇㈡満鎴挎墍鍦ㄧ殑鎵�鏈夋満鎴�")
   	public ServiceModel serchStationName(@RequestBody BattMap_information bmap){
   		// BattMap_information bmap = getGson().fromJson(json, BattMap_information.class);
   		ServiceModel model = service.serchStationName(bmap);
@@ -174,6 +192,7 @@
   	}
   //鏌ヨ绔欑偣鐨勭粡绾害
 	@GetMapping("addressByStationName3")
+	@ApiOperation(notes = "",value="鏌ヨ绔欑偣鐨勭粡绾害")
   	public ServiceModel serchAddressByStationName3(@RequestBody BattMap_information bmap){
   		// BattMap_information bmap = getGson().fromJson(json, BattMap_information.class);
   		ServiceModel model = service.serchAddressByStationName3(bmap);

--
Gitblit v1.9.1