From e2ce404e87c30654bdf3a450221fccbff83bfef7 Mon Sep 17 00:00:00 2001 From: zhaojun <873019219@qq.com> Date: Sun, 5 Mar 2023 15:31:18 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E4=B8=BA=E4=BA=86=E5=AE=89?= =?UTF-8?q?=E5=85=A8=E6=80=A7=EF=BC=8C=E5=8E=BB=E9=99=A4=E4=BB=8E=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E5=8A=A0=E8=BD=BD=E6=96=87=E6=9C=AC=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/file/FileParseController.java | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 src/main/java/im/zhaojun/zfile/module/storage/controller/file/FileParseController.java diff --git a/src/main/java/im/zhaojun/zfile/module/storage/controller/file/FileParseController.java b/src/main/java/im/zhaojun/zfile/module/storage/controller/file/FileParseController.java deleted file mode 100644 index 5d754e9..0000000 --- a/src/main/java/im/zhaojun/zfile/module/storage/controller/file/FileParseController.java +++ /dev/null @@ -1,33 +0,0 @@ -package im.zhaojun.zfile.module.storage.controller.file; - -import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; -import com.github.xiaoymin.knife4j.annotations.ApiSort; -import im.zhaojun.zfile.core.util.AjaxJson; -import im.zhaojun.zfile.core.util.HttpUtil; -import io.swagger.annotations.Api; -import io.swagger.annotations.ApiImplicitParam; -import io.swagger.annotations.ApiOperation; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * 文件解析接口 - * - * @author zhaojun - */ -@Api(tags = "文件解析模块") -@ApiSort(4) -@RestController -@RequestMapping("/api/parse") -public class FileParseController { - - @GetMapping("/content") - @ApiOperationSupport(order = 1) - @ApiOperation(value = "获取文本内容", notes = "获取文本文件的文件内容,一般用于 txt, md, ini 等普通文本文件") - @ApiImplicitParam(paramType = "query", name = "url", value = "文本文件下载地址", required = true, dataTypeClass = String.class) - public AjaxJson getContent(String url) { - return AjaxJson.getSuccessData(HttpUtil.getTextContent(url)); - } - -} \ No newline at end of file