rain
2024-03-25 471b033688cf85f503081e7401163bcc5fa45351
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.dji.sample.patches.controller;
 
import com.dji.sample.patches.service.impl.DemoServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
 
 
import java.io.File;
 
import java.io.IOException;
 
@RestController
@RequestMapping("${url.patches.prefix}${url.patches.version}")
public class DemoController {
    @Autowired
    private  DemoServiceImpl demoServiceImpl;
    @PostMapping("/getGeo")
    public void getGeo (@RequestParam("file") MultipartFile file) throws IOException {
        demoServiceImpl.insertGeo(file);
    }
 
 
}