| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.FileInfo; |
| | | import com.whyc.pojo.FileParam; |
| | | import com.whyc.service.FileInfoService; |
| | | import com.whyc.service.FileParamService; |
| | | 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.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @Api(tags = "文件") |
| | | @RestController |
| | |
| | | private FileParamService paramService; |
| | | |
| | | |
| | | @ApiOperation(value = "获取文件信息xml属性") |
| | | @GetMapping("getXmlFileParam") |
| | | public Response getXmlFileParam(){ |
| | | return paramService.getXmlFileParam(); |
| | | @ApiOperation(value = "解析xml文件") |
| | | @GetMapping("getXmlValue") |
| | | public Response getXmlValue(@RequestParam String filePath){ |
| | | return paramService.getXmlValue(filePath); |
| | | } |
| | | |
| | | @ApiOperation("通过修改属性窗口值来修改文件值") |
| | | @PostMapping("updateXmlByFileParam") |
| | | public Response updateXmlByFileParam(@RequestBody FileParam fileParam,@RequestParam String filePath){ |
| | | return paramService.updateXmlByFileParam(fileParam,filePath); |
| | | } |
| | | } |