From 72f8d13b6446dbf3b532c75134a267f09b681f96 Mon Sep 17 00:00:00 2001
From: lxw <810412026@qq.com>
Date: 星期四, 09 十一月 2023 16:48:14 +0800
Subject: [PATCH] 读取设备下载操作

---
 src/main/java/com/whyc/controller/FgcdFiledownloadController.java |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/whyc/controller/FgcdFiledownloadController.java b/src/main/java/com/whyc/controller/FgcdFiledownloadController.java
index 7399580..978d851 100644
--- a/src/main/java/com/whyc/controller/FgcdFiledownloadController.java
+++ b/src/main/java/com/whyc/controller/FgcdFiledownloadController.java
@@ -1,11 +1,37 @@
 package com.whyc.controller;
 
+import com.whyc.pojo.Response;
+import com.whyc.service.FgcdFiledownloadService;
 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.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
 import org.springframework.web.bind.annotation.RestController;
 
 @RequestMapping("filedownload")
 @RestController
 @Api(tags = "鏂囦欢涓嬭浇")
 public class FgcdFiledownloadController {
+    @Autowired
+    private FgcdFiledownloadService service;
+
+    @ApiOperation(value = "璇诲彇鐢垫睜缁勫垪琛�")
+    @GetMapping("readBattList")
+    public Response readBattList(@RequestParam int devId,@RequestParam int battCount){
+        return service.readBattList(devId,battCount);
+    }
+
+    @ApiOperation(value = "璇诲彇鐢垫睜缁勬寚瀹氭枃浠跺垪琛�")
+    @GetMapping("readFileList")
+    public Response readFileList(@RequestParam int devId,@RequestParam int fileIndex,@RequestParam int battIndex){
+        return service.readFileList(devId,fileIndex,battIndex);
+    }
+
+    @ApiOperation(value = "涓嬭浇鎸囧畾鐢垫睜缁勭殑鏂囦欢鍒楄〃")
+    @GetMapping("downloadFileList")
+    public Response downloadFileList(@RequestParam int devId,@RequestParam int battIndex,@RequestParam String downloadFlag){
+        return service.doloadFileList(devId,battIndex,downloadFlag);
+    }
 }

--
Gitblit v1.9.1