From c36210f961aa55a0e8558e16f96c07e2fbe5d9aa Mon Sep 17 00:00:00 2001 From: lxw <810412026@qq.com> Date: 星期二, 20 九月 2022 15:21:09 +0800 Subject: [PATCH] 修改打开文件 --- src/main/java/com/whyc/controller/FileInfoController.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/whyc/controller/FileInfoController.java b/src/main/java/com/whyc/controller/FileInfoController.java index 493ee22..22cb17c 100644 --- a/src/main/java/com/whyc/controller/FileInfoController.java +++ b/src/main/java/com/whyc/controller/FileInfoController.java @@ -25,12 +25,18 @@ private FileParamService paramService; - @ApiOperation(value = "瑙f瀽xml鏂囦欢") + @ApiOperation(value = "瑙f瀽xml鏂囦欢(浼犲弬涓�涓枃浠�)") @GetMapping("getXmlValue") public Response getXmlValue(@RequestParam String filePath){ return paramService.getXmlValue(filePath); } + @ApiOperation(value = "瑙f瀽xml鏂囦欢(浼犲弬涓�涓枃浠跺す)") + @GetMapping("getXmlValueByPath") + public Response getXmlValueByPath(@RequestParam String filePath){ + return paramService.getXmlValueByPath(filePath); + } + @ApiOperation("閫氳繃淇敼灞炴�х獥鍙e�兼潵淇敼鏂囦欢鍊�(浼犲弬瀵硅薄)") @PostMapping("updateXmlByFileParam") public Response updateXmlByFileParam(@RequestBody FileParam fileParam,@RequestParam String filePath){ -- Gitblit v1.9.1