rain
2024-07-18 76b7d06f5f8ff283279fcc8409b3c28f02cbd37c
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));
    }
 
}