zhitong.yu
7 天以前 7fc9c42987a13c1d8d2159591a5803e70518827f
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
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.hxzk.gps.controller.Radar;
 
import cn.dev33.satoken.annotation.SaCheckLogin;
 
import com.hxzk.gps.controller.Radar.dto.TableSearchResult.TableSearchResult;
import com.hxzk.gps.entity.FzRadar.TbFzanchor;
import com.hxzk.gps.entity.Person.TbPerson;
import com.hxzk.gps.result.ResultTable;
import com.hxzk.gps.service.FzRadar.TbFzanchorService;
import com.hxzk.gps.service.Loragateway.TbLoragatewayService;
import com.hxzk.gps.util.Result.ReturnMessage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author YuZhiTong
 * @since 2025-05-22
 */
@RestController
@Api(tags="防撞雷达管理")
@RequestMapping("/Radar")
public class TbFzanchorController {
    @Autowired
    private TbFzanchorService fzanchorService;
    @SaCheckLogin
    @ApiOperation(value = "平台防撞雷达列表接口", notes = "该接口提供了平台防撞雷达信息列表查询功能")
    @PostMapping("FindRadarInfo")
    public ResultTable FindRadarInfo(@RequestBody TableSearchResult TableSearchResult){
        return fzanchorService.FindRadarInfo(TableSearchResult);
    }
 
 
 
 
    @SaCheckLogin
    @ApiOperation(value = "防撞雷达新增接口", notes = "该接口提供了平台防撞雷达新增功能")
    @PostMapping("add")
    public ReturnMessage add(@RequestBody TbFzanchor fzanchor){
        return fzanchorService.add(fzanchor);
    }
 
    @SaCheckLogin
    @ApiOperation(value = "防撞雷达修改接口", notes = "该接口提供了平台防撞雷达修改功能")
    @PostMapping("update")
    public ReturnMessage update(@RequestBody TbFzanchor fzanchor){
        return fzanchorService.update(fzanchor);
    }
 
    @SaCheckLogin
    @ApiOperation(value = "防撞雷达删除接口", notes = "该接口提供了平台防撞雷达删除功能")
    @PostMapping("delete")
    public ReturnMessage delete(@RequestBody TbFzanchor fzanchor){
        return fzanchorService.delete(fzanchor);
    }
}