huanghongfa
2021-05-28 0d04ed7200f46c3f278b74a73775a53c279881db
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
32
33
34
35
36
37
package com.panzhihua.service_grid.api;
 
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_grid.service.EventGridDataService;
import com.panzhihua.service_grid.service.EventService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
 
/**
 * 地图模块api
 */
@Slf4j
@RestController
@RequestMapping("/map")
public class MapApi {
 
    @Resource
    private EventService eventService;
    @Resource
    private EventGridDataService eventGridDataService;
 
    /**
     * 地图模块-根据网格id查询网格详细信息
     * @param gridId    网格id
     * @return  网格详细信息
     */
    @PostMapping("getGridDetail")
    public R getGridDetail(@RequestParam("gridId") Long gridId){
        return eventGridDataService.getMapGridDetail(gridId);
    }
 
}