package com.hxzk.gps.controller.Video; import cn.dev33.satoken.annotation.SaCheckLogin; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.hxzk.gps.controller.Video.dto.TableSearchResult.TableVideoSearchResult; import com.hxzk.gps.dto.TableSearchResult.TableSearchResult; import com.hxzk.gps.entity.Tag.TbTag; import com.hxzk.gps.entity.Video.TbHksxt; import com.hxzk.gps.result.ResultTable; import com.hxzk.gps.service.Video.TbHksxtService; import com.hxzk.gps.util.GetUser.UserInfoUtil; import com.hxzk.gps.util.Result.ReturnMessage; 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; import java.util.List; /** *

* 前端控制器 *

* * @author YuZhiTong * @since 2025-07-01 */ @RestController @RequestMapping("/Video") public class TbHksxtController { @Autowired TbHksxtService hksxtService; @SaCheckLogin @ApiOperation(value = "平台操作日志列表接口", notes = "该接口提供了平台操作日志列表查询功能") @PostMapping("FindVideoInfo") public ResultTable FindVideoInfo(@RequestBody TableVideoSearchResult tableVideoSearchResult){ return hksxtService.FindVideoInfo(tableVideoSearchResult); } // 添加监控到地图 @SaCheckLogin @PostMapping("AddVideoMap") public List AddVideoMap(){ QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("company", UserInfoUtil.getUserCompany()); return hksxtService.getBaseMapper().selectList(queryWrapper); } @SaCheckLogin @ApiOperation(value = "监控新增接口", notes = "该接口提供了平台监控新增功能") @PostMapping("add") public ReturnMessage add(@RequestBody TbHksxt hksxt){ return hksxtService.add(hksxt); } @SaCheckLogin @ApiOperation(value = "监控修改接口", notes = "该接口提供了平台监控修改功能") @PostMapping("update") public ReturnMessage update(@RequestBody TbHksxt hksxt){ return hksxtService.update(hksxt); } @SaCheckLogin @ApiOperation(value = "监控删除接口", notes = "该接口提供了平台监控删除功能") @PostMapping("delete") public ReturnMessage delete(@RequestBody TbHksxt hksxt){ return hksxtService.delete(hksxt); } }