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

diff --git a/src/main/java/com/fgkj/controller/Batttestdata_infController.java b/src/main/java/com/fgkj/controller/Batttestdata_infController.java
index ab2260c..2d3d76d 100644
--- a/src/main/java/com/fgkj/controller/Batttestdata_infController.java
+++ b/src/main/java/com/fgkj/controller/Batttestdata_infController.java
@@ -8,6 +8,7 @@
 import com.fgkj.dto.ServiceModel;
 import com.fgkj.services.Batttestdata_infService;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -20,7 +21,7 @@
 
 @RequestMapping("battTestDataInf")
 @RestController
-@Api
+@Api(tags = "battTestDataInf鎺ュ彛")
 public class Batttestdata_infController{
 	
 	ServiceModel model = new ServiceModel();
@@ -32,6 +33,7 @@
 	// private Batt_Maint_Dealarm bmd;
 	
 	@GetMapping("byInfo")
+	@ApiOperation(notes = "",value="鍘嗗彶鏁版嵁鏌ヨ")
 	public ServiceModel findByInfo(@RequestBody Batttestdata_inf bti){
 		model=service.serchByCondition(bti);
 		
@@ -42,6 +44,7 @@
 	 * 鏍规嵁鐢垫睜缁刬d鏌ヨ鐢垫睜缁勭殑inf琛ㄤ腑鐨勬斁鐢典俊鎭�
 	 */
 	@GetMapping("battTestInfDataById")
+	@ApiOperation(notes = "",value="鐢垫睜缁刬d鏌ヨ鐢垫睜缁勭殑inf琛ㄤ腑鐨勬斁鐢典俊鎭�")
 	public ServiceModel searchBattTestInfDataById(@RequestBody Batttestdata_inf bti){
 		// Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class);
 		model=service.serchByCondition(bti);
@@ -51,6 +54,7 @@
 	
 	//0.7鐢垫祴鏀剧數娴嬭瘯姣斾緥
 	@GetMapping("testScale")
+	@ApiOperation(notes = "",value="鐢垫祴鏀剧數娴嬭瘯姣斾緥")
 	public ServiceModel searchTestsCale(@RequestBody Batt_Maint_Dealarm bmd){
 		try {
 			model=service.serchByInfo(bmd);
@@ -63,6 +67,7 @@
 	
 	//0.10鐢垫睜鍋ュ悍鐜�
 	@GetMapping("healthRate")
+	@ApiOperation(notes = "",value="鐢垫睜鍋ュ悍鐜�")
 	public ServiceModel searchGood(){
 		model=service.serchGood();
 		
@@ -71,6 +76,7 @@
 	
 	//6.4.2鏍规嵁鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犳斁鐢垫祴璇曞畬鎴愮巼)
 	@GetMapping("completeRate")
+	@ApiOperation(notes = "",value="鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犳斁鐢垫祴璇曞畬鎴愮巼)")
 	public ServiceModel serchComplete(@RequestBody Batttestdata_inf b){
 		// Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class);
 		ServiceModel model=service.serchComplete(b);
@@ -80,6 +86,7 @@
 	
 	//6.4.4鏍规嵁鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犲閲忛璀�)
 	@GetMapping("capWarning")
+	@ApiOperation(notes = "",value="鏉′欢鏌ヨ绗﹀悎鏉′欢鐨勬祴璇曞畬鎴愮殑鐢垫睜缁�(钃勭數姹犲閲忛璀�)")
 	public ServiceModel serchCap(@RequestBody Batttestdata_inf b){
 		// Batttestdata_inf b=ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, Batttestdata_inf.class);
 		ServiceModel model=service.serchCap(b);
@@ -89,6 +96,7 @@
 	
 	//鐢垫睜缁勫巻鍙叉斁鐢垫暟鎹画鑸兘鍔涙煡璇�
 	@GetMapping("battLife")
+	@ApiOperation(notes = "",value="鐢垫睜缁勫巻鍙叉斁鐢垫暟鎹画鑸兘鍔涙煡璇�")
     public ServiceModel serchBattLife(@RequestBody BattInf binf){
     	// BattInf binf = ActionUtil.getGson("yyyy-MM-dd HH:mm:ss").fromJson(result, BattInf.class);
     	ServiceModel model = new ServiceModel();
@@ -102,6 +110,7 @@
     /* 鏍规嵁鐢垫睜缁刬d鏌ヨ鐢垫睜缁勭殑inf琛ㄤ腑鐨勬斁鐢典俊鎭�    <!------    璺ㄥ煙璁块棶     --------->
 	 */
     @GetMapping("battTestInfDataById_ky")
+	@ApiOperation(notes = "璺ㄥ煙璁块棶",value="鏍规嵁鐢垫睜缁刬d鏌ヨ鐢垫睜缁勭殑inf琛ㄤ腑鐨勬斁鐢典俊鎭�")
 	public ServiceModel searchBattTestInfDataById_ky(@RequestBody Batttestdata_inf bti){
 		// Batttestdata_inf bti = ActionUtil.getGson().fromJson(json, Batttestdata_inf.class);
 		model=service.serchByCondition_ky(bti);			

--
Gitblit v1.9.1