| | |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.validation.Valid; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | |
| | |
| | | private MinioPojo pojo; |
| | | |
| | | @PostMapping("/createPoints") |
| | | public ResponseResult createPoints(@RequestBody CreateWaylineParam param) { |
| | | public ResponseResult createPoints(@RequestBody @Valid CreateWaylineParam param) { |
| | | return ResponseResult.success(PlaneCourseUtils.createWaylinePoints(param)); |
| | | } |
| | | |
| | | @PostMapping("/{workspace_id}/saveWayLineFile") |
| | | public ResponseResult saveWayLineFile(@PathVariable(name = "workspace_id") String workspaceId, |
| | | @RequestBody CreateWaylineParam param, |
| | | @RequestBody @Valid CreateWaylineParam param, |
| | | HttpServletRequest request |
| | | ) throws IOException { |
| | | CustomClaim customClaim = (CustomClaim) request.getAttribute(TOKEN_CLAIM); |