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);
|
}
|
}
|