aix
2024-08-05 52d6a8ddb4a1f631edffa7c339a3ba848c0e7a1e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.dji.sample.amap.controller;
 
import com.dji.sample.amap.service.IAmapService;
import com.dji.sample.common.model.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
@RequestMapping("map/amap")
public class AmapController {
 
    @Autowired
    private IAmapService amapService;
 
 
    @GetMapping("/searchByKeyword")
    public ResponseResult searchByKeyword(String keyword) {
        return ResponseResult.success(amapService.searchByKeyword(keyword));
    }
 
}