liujie
2026-05-14 c8dcc1a567c234e8bada64f01bc22256576268bc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.xiaopeng.operation.controller;
 
import com.xiaopeng.api.model.operation.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.RestController;
 
import java.util.List;
 
/**
 * MongoDB 地理查询控制器
 */
@RestController
@RequestMapping("/geo-query")
public class XpGeoQueryEntityController {
 
    @Autowired
    private IXpGeoQueryEntityService geoQueryEntityService;
 
 
    /**
     * 查询所有实体
     * @return 实体列表
     */
    @GetMapping("/all")
    public List<XpGeoQueryEntity> findAll() {
        return geoQueryEntityService.findAll();
    }
}