aix
2024-07-19 c2defb8ee038ae780e2f8c57839ea3558f4f1f4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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));
    }
 
}