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

diff --git a/src/main/java/com/fgkj/controller/MyFileController.java b/src/main/java/com/fgkj/controller/MyFileController.java
index a54a5d7..fca786f 100644
--- a/src/main/java/com/fgkj/controller/MyFileController.java
+++ b/src/main/java/com/fgkj/controller/MyFileController.java
@@ -6,6 +6,7 @@
 import com.fgkj.util.*;
 import com.google.gson.Gson;
 import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.web.bind.annotation.*;
 
 import javax.imageio.ImageIO;
@@ -21,7 +22,7 @@
 
 @RequestMapping("myFile")
 @RestController
-@Api
+@Api(tags = "myFile鎺ュ彛")
 public class MyFileController{
 	
 
@@ -37,6 +38,7 @@
 	
 	//涓婁紶鏂囦欢
 	@PostMapping("/uploadTestFile")
+	@ApiOperation(notes = "",value="byInfo")
 	public ServiceModel UploadTestFile(@RequestParam File[] file,String[] fileFileName,String battName){
 		HttpServletResponse res = ActionUtil.getResponse();
 		res.setHeader("Access-Control-Allow-Origin", "*");				//鍏佽璺ㄥ煙璁块棶
@@ -109,6 +111,7 @@
 	}
 
 	@PostMapping("uploadIphoneFile")
+	@ApiOperation(notes = "",value="byInfo")
 	public ServiceModel UploadIphoneFile(@RequestParam String filestr,String fname,String battname){
 		HttpServletResponse res = ActionUtil.getResponse();
 		res.setHeader("Access-Control-Allow-Origin", "*");				//鍏佽璺ㄥ煙璁块棶
@@ -183,6 +186,7 @@
 	
 	//涓婁紶鏈烘埧瑙嗛鎺ュ彛
 	@PostMapping("uploadStationFile")
+	@ApiOperation(notes = "",value="涓婁紶鏈烘埧瑙嗛鎺ュ彛")
 	public ServiceModel uploadStationFile(@RequestBody BattInf binf,@RequestParam File[] file,String[] fileFileName){
 		// BattInf binf = getGson().fromJson(json, BattInf.class);
 		String fileRoot = "stationsrc";
@@ -212,7 +216,8 @@
 	 * 
 	 *	 鑾峰彇鎸囧畾鏈烘埧寰楄祫婧�
 	 */
-	@GetMapping("stationSource")
+	@PostMapping("stationSource")
+	@ApiOperation(notes = "",value="鑾峰彇鎸囧畾鏈烘埧寰楄祫婧�")
 	public ServiceModel searchStationSource(@RequestBody BattInf binf){
 		String fileRoot = "stationsrc";															//瀛樻斁鏈烘埧璧勬簮鏂囦欢鐨勬枃浠跺す
 		// BattInf binf = getGson().fromJson(json, BattInf.class);
@@ -288,6 +293,7 @@
 	
 	//涓婁紶鏈烘埧瑙嗛鎺ュ彛(鎵嬫満绔�)
 	@PostMapping("uploadStationFile4Mobile")
+	@ApiOperation(notes = "",value="涓婁紶鏈烘埧瑙嗛鎺ュ彛(鎵嬫満绔�)")
 	public ServiceModel uploadStationFile_mobile(@RequestBody BattInf binf,@RequestParam File[] file,String[] fileFileName){
 		// BattInf binf = getGson().fromJson(json, BattInf.class);
 		String fileRoot = "stationsrc";
@@ -456,6 +462,7 @@
      * @return
      */
     @GetMapping("readAllStation")
+	@ApiOperation(notes = "",value="璇诲彇鎵�鏈変笂浼犺繃鍥剧墖鍜岃棰戠殑鏈烘埧id鏂囦欢澶�")
     public ServiceModel ReadAllStation() {
     	String fileRoot = "stationsrc";
 		ServiceModel model = new ServiceModel();	
@@ -486,6 +493,7 @@
      * @return
      */
     @DeleteMapping("file")
+	@ApiOperation(notes = "",value="鍒犻櫎鎸囧畾鐨勮祫婧愭枃浠�")
     public ServiceModel deleteFile(@RequestBody MyFile myFile) {
     	ServiceModel model = new ServiceModel();
     	// MyFile myfile = getGson().fromJson(json, MyFile.class);
@@ -517,13 +525,13 @@
 
     	return model;
     }
-    
+ /*
 	public static void main(String[] args) {
-		/*String filePath = "D:/test/a/a.txt";
+		*//*String filePath = "D:/test/a/a.txt";
 		//ActionUtil.createFileRootIFNotExist(filePath);
 		
 		File file = new File(filePath);
-		System.out.println(ActionUtil.tojson(file));*/
+		System.out.println(ActionUtil.tojson(file));*//*
 		//GraphicsFile("鎴戞槸椴佹槦浼�","D:\\1.jpg","D:\\2.jpg",0,new Color(255,0,0),"JPG");
 		BattMap_information binfmation=new BattMap_information();
 		binfmation.setStationId("42000001");
@@ -535,5 +543,5 @@
 		String filePath = "D:\\2.jpg";
 		//String filename="2.jpg";
 		GraphicsFile(binfmation,file,filePath);
-	}
+	}*/
 }

--
Gitblit v1.9.1