| New file |
| | |
| | | package com.dji.sample.wayline.plane.controller; |
| | | |
| | | import com.dji.sample.common.model.ResponseResult; |
| | | import com.dji.sample.wayline.plane.PlaneCourseUtils; |
| | | import com.dji.sample.wayline.plane.param.CreateWaylineParam; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @Author AIX |
| | | * @Date 2024/7/19 10:46 |
| | | * @Version 1.0 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/wayline/plane/createWayline") |
| | | public class CreateWayLineController { |
| | | |
| | | @PostMapping("/createPoints") |
| | | public ResponseResult createPoints(@RequestBody CreateWaylineParam param) { |
| | | return ResponseResult.success(PlaneCourseUtils.createWaylinePoints(param)); |
| | | } |
| | | |
| | | } |