| | |
| | | |
| | | import com.ard.common.core.domain.AjaxResult; |
| | | import com.ard.route.domain.djuav.UavRouteReq; |
| | | import com.ard.route.domain.vo.KmzInfoVo; |
| | | import com.ard.route.service.UavRouteService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | * 编辑kmz文件 |
| | | */ |
| | | @ApiOperation("编辑kmz文件") |
| | | @PreAuthorize("@ss.hasPermi('route:kmz:updateKmz')") |
| | | //@PreAuthorize("@ss.hasPermi('route:kmz:updateKmz')") |
| | | @PostMapping("/updateKmz/{fileName}") |
| | | public AjaxResult updateKmz(@RequestBody UavRouteReq uavRouteReq, |
| | | @PathVariable("fileName") String fileName){ |
| | |
| | | * 生成kmz文件 |
| | | */ |
| | | @ApiOperation("生成kmz文件") |
| | | @PreAuthorize("@ss.hasPermi('route:kmz:buildKmz')") |
| | | //@PreAuthorize("@ss.hasPermi('route:kmz:buildKmz')") |
| | | @PostMapping("/buildKmz/{fileName}") |
| | | public AjaxResult buildKmz(@RequestBody UavRouteReq uavRouteReq, |
| | | @PathVariable("fileName") String fileName){ |
| | |
| | | * 解析kmz文件 |
| | | */ |
| | | @ApiOperation("解析kmz文件") |
| | | @PreAuthorize("@ss.hasPermi('route:kmz:parseKmz')") |
| | | //@PreAuthorize("@ss.hasPermi('route:kmz:parseKmz')") |
| | | @PostMapping("/parseKmz") |
| | | public AjaxResult parseKmz(@RequestParam("fileUrl") String fileUrl){ |
| | | return success(routeService.parseKmz(fileUrl)); |
| | | } |
| | | |
| | | /** |
| | | * KmzInfoVo实体类转换为UavRouteReq实体类 |
| | | */ |
| | | @ApiOperation("KmzInfoVo转换UavRouteReq") |
| | | @PostMapping("/KmzInfoVoToUavRouteReq") |
| | | public AjaxResult parseKmz(@RequestBody KmzInfoVo kmzInfoVo){ |
| | | return success(routeService.kmzInfoVoToUavRouteReq(kmzInfoVo)); |
| | | } |
| | | |
| | | } |
| | | |