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)); } }