智慧保安后台管理-外网项目备份
钟日健
2026-06-01 62eb499b0c969f246d3245d1429a97da4de1ce28
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package org.springblade.modules.location.controller;
 
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springblade.core.boot.ctrl.BladeController;
import org.springblade.core.tool.api.R;
import org.springblade.modules.location.entity.LivePersonLocation;
import org.springblade.modules.location.entity.Locus;
import org.springblade.modules.location.service.ILivePersonLocationService;
import org.springblade.modules.location.vo.LivePersonLocationVO;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
/**
 * @author zhongrj
 * @time 2021-07-21
 * @desc 实时位置控制层
 */
@RestController
@AllArgsConstructor
@RequestMapping("/livePersonLocation")
public class LivePersonLocationController extends BladeController {
 
    private final ILivePersonLocationService livePersonLocationService;
 
    /**
     * 新增
     */
    @PostMapping("/save")
    public R save(@RequestBody LivePersonLocation livePersonLocation) {
        return R.status(livePersonLocationService.save(livePersonLocation));
    }
 
 
    /**
     * 新增或更新位置信息
     */
    @PostMapping("/saveOrUpdate")
    public R saveOrUpdate(@RequestBody LivePersonLocation livePersonLocation) {
        return R.status(livePersonLocationService.saveOrUpdate(livePersonLocation));
    }
 
    /**
     * 新增或更新位置信息
     */
    @GetMapping("/getList")
    public R getList(LivePersonLocationVO livePersonLocation) {
        List<LivePersonLocationVO> list = livePersonLocationService.getList(livePersonLocation);
        return R.data(list);
    }
}