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/BattDischarge_planController.java |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/fgkj/controller/BattDischarge_planController.java b/src/main/java/com/fgkj/controller/BattDischarge_planController.java
index aa408aa..f95626a 100644
--- a/src/main/java/com/fgkj/controller/BattDischarge_planController.java
+++ b/src/main/java/com/fgkj/controller/BattDischarge_planController.java
@@ -5,6 +5,7 @@
 import com.fgkj.dto.*;
 import com.fgkj.services.BattDischarge_planService;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -14,13 +15,14 @@
 
 @RequestMapping("battDischargePlan")
 @RestController
-@Api
+@Api(tags = "battDischargePlan鎺ュ彛")
 public class BattDischarge_planController{
 
 	@Resource
 	private BattDischarge_planService service;
 
 	@PostMapping("/")
+	@ApiOperation(notes = "",value="鏂板")
 	public ServiceModel add(@RequestBody BattDischarge_plan plan){
 		// BattDischarge_plan plan = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_plan.class);
 		ServiceModel model =service.add(plan);
@@ -30,6 +32,7 @@
 	
 	//8.1鎵归噺娣诲姞鐢垫睜璁″垝
 	@PostMapping("/batch")
+	@ApiOperation(notes = "",value="鎵归噺娣诲姞鐢垫睜璁″垝")
 	public ServiceModel  addPro(@RequestBody List<BattDischarge_plan> plans){
 		// List<BattDischarge_plan> plans = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<BattDischarge_plan>>(){}.getType());
 		ServiceModel model = service.addPro(plans);
@@ -38,6 +41,7 @@
 	}
 
 	@PutMapping("/")
+	@ApiOperation(notes = "",value="淇敼")
 	public ServiceModel update(@RequestBody BattDischarge_plan plan){
 		// BattDischarge_plan plan = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_plan.class);
 		ServiceModel model = service.update(plan);///---------
@@ -47,6 +51,7 @@
 	
 	 //8.1鎵归噺淇敼鏀剧數璁″垝鐨勫紑濮嬫椂闂�
 	@PutMapping("/batch")
+	@ApiOperation(notes = "",value="鎵归噺淇敼鏀剧數璁″垝鐨勫紑濮嬫椂闂�")
 	public ServiceModel updatePro(@RequestBody List<BattDischarge_plan> plans){
 		// List<BattDischarge_plan> plans = getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<BattDischarge_plan>>(){}.getType());
 		ServiceModel model = service.updatePro(plans);///---------
@@ -55,6 +60,7 @@
 	}
 
 	@DeleteMapping("/")
+	@ApiOperation(notes = "",value="鍒犻櫎")
 	public ServiceModel del(@RequestBody BattDischarge_plan plan){
 		// BattDischarge_plan plan = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, BattDischarge_plan.class);
 		ServiceModel model = service.del(plan);
@@ -63,6 +69,7 @@
 	}
 
 	@GetMapping("all")
+	@ApiOperation(notes = "",value="all")
 	public ServiceModel searchAll(){
 		ServiceModel model = service.searchAll();
 
@@ -71,6 +78,7 @@
 	
 	//8.1鏀剧數璁″垝鏌ヨ
 	@GetMapping("byCondition")
+	@ApiOperation(notes = "",value="鏀剧數璁″垝鏌ヨ")
 	public ServiceModel serchByCondition(@RequestBody Batt_Maint_Dealarm bmd){
 		// Batt_Maint_Dealarm bmd = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(json, Batt_Maint_Dealarm.class);
 		User_inf uinf=(User_inf) ActionUtil.getUser();
@@ -88,6 +96,7 @@
 	}*/
 	//8.1鏀剧數璁″垝绠$悊涓繘椤甸潰鏌ヨ
 	@GetMapping("battGroupInfo")
+	@ApiOperation(notes = "",value="鏀剧數璁″垝绠$悊涓繘椤甸潰鏌ヨ")
 	public ServiceModel serchBattgroupinfo(){
 		User_inf uinf=(User_inf) ActionUtil.getUser();
 		ServiceModel model = service.serchBattgroupinfo(uinf);
@@ -96,6 +105,7 @@
 	}
 	//鏂扮増娣诲姞鏀剧數璁″垝鏌ヨ<鎺掗櫎璁剧疆杩囨斁鐢佃鍒掔殑鐢垫睜缁�>
 	@GetMapping("battPlan")
+	@ApiOperation(notes = "",value="鏂扮増娣诲姞鏀剧數璁″垝鏌ヨ<鎺掗櫎璁剧疆杩囨斁鐢佃鍒掔殑鐢垫睜缁�>")
 	public ServiceModel serchBattPlan(@RequestBody BattInf binf){
 		// BattInf binf= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,BattInf.class);
 		User_inf uinf=(User_inf) ActionUtil.getUser();
@@ -106,6 +116,7 @@
 	}
 	//8.1鏌ヨ鏈紑濮嬫斁鐢电殑鏀剧數璁″垝鎬绘暟
 	@GetMapping("nums")
+	@ApiOperation(notes = "",value="鏌ヨ鏈紑濮嬫斁鐢电殑鏀剧數璁″垝鎬绘暟")
 	public ServiceModel searchNums() {
 		User_inf uinf=(User_inf) ActionUtil.getUser();
 		ServiceModel model = service.searchNums(uinf);
@@ -121,6 +132,7 @@
 	 *Preset_groupvol锛氭斁鐢靛け璐� 
 	 *num: 鎬绘暟*/
 	@GetMapping("state")
+	@ApiOperation(notes = "",value="鏀剧數璁″垝绠$悊涓ゼ鐘跺浘(鏀剧數璁″垝缁熻鏌ヨ)")
 	public ServiceModel searchState(){
 		User_inf uinf=(User_inf) ActionUtil.getUser();
 		ServiceModel model = service.searchState(uinf);
@@ -133,6 +145,9 @@
 			 *1.鍚屾満鎴�(鎴栬澶�)鍚屼竴鏃堕棿鍙兘涓�缁勭數姹犵粍鏀剧數
 			 *2.鍚屾満鎴�(鎴栬澶�)鍐呯數姹犵粍鏀剧數鏃堕棿鐩搁殧鑷冲皯3澶�*/
 	@GetMapping("/judgePlan")
+	@ApiOperation(notes = "鍘熷垯锛歕n" +
+			"\t\t\t *1.鍚屾満鎴�(鎴栬澶�)鍚屼竴鏃堕棿鍙兘涓�缁勭數姹犵粍鏀剧數\n" +
+			"\t\t\t *2.鍚屾満鎴�(鎴栬澶�)鍐呯數姹犵粍鏀剧數鏃堕棿鐩搁殧鑷冲皯3澶�",value="鎵归噺娣诲姞浣滀笟璁″垝/淇敼浣滀笟璁″垝鏃舵椂鍏堟娴嬭鍒掔殑鍙鎬�")
 	public ServiceModel judgePlan(@RequestBody List<BattDischarge_plan> listAll){
 		// List<BattDischarge_plan> listAll= getGson("yyyy-MM-dd HH:mm:ss").fromJson(json,new TypeToken<List<BattDischarge_plan>>(){}.getType());
 		ServiceModel model = service.judgePlan(listAll);

--
Gitblit v1.9.1