package com.xiaopeng.operation.controller; import com.xiaopeng.operation.entity.XpGeoQueryEntity; import com.xiaopeng.operation.service.IXpGeoQueryEntityService; 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.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * MongoDB 地理查询控制器 */ @RestController @RequestMapping("/geo-query") public class XpGeoQueryEntityController { @Autowired private IXpGeoQueryEntityService geoQueryEntityService; /** * 查询所有实体 * @return 实体列表 */ @GetMapping("/all") public List findAll() { return geoQueryEntityService.findAll(); } }