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
66
67
68
69
70
71
72
73
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;
 
 
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @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<TbHksxt> 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);
    }
}