| | |
| | | |
| | | import cn.gistack.sm.hk.constant.HkConstant; |
| | | import cn.gistack.sm.hk.constant.ProtocolConstant; |
| | | import cn.gistack.sm.hk.service.HkService; |
| | | import cn.gistack.sm.hk.vo.HkVO; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | import static cn.gistack.sm.hk.util.GetCameraPreviewURL.*; |
| | | import static cn.gistack.sm.hk.util.GetCameraUtils.*; |
| | | |
| | | /** |
| | | * @author zhongrj |
| | |
| | | @RequestMapping("/hk/hk") |
| | | @AllArgsConstructor |
| | | public class HkController { |
| | | |
| | | private final HkService hkService; |
| | | |
| | | /** |
| | | * 分页列表查询 |
| | |
| | | return R.data(result); |
| | | } |
| | | |
| | | /** |
| | | * 懒加载树 |
| | | * @param hk 查询参数 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "海康设备-懒加载树", notes = "海康设备-懒加载树") |
| | | @GetMapping(value = "/lazy-tree") |
| | | public R lazyTree(HkVO hk) { |
| | | // 查询海康设备懒加载树并返回 |
| | | return R.data(hkService.lazyTree(hk)); |
| | | } |
| | | |
| | | /** |
| | | * 查询监控统计数量 |
| | | * @param hk 查询参数 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "海康设备-查询监控统计数量", notes = "海康设备-查询监控统计数量") |
| | | @GetMapping(value = "/getHkStatisticData") |
| | | public R getHkStatisticData(HkVO hk,Query query) { |
| | | // 查询海康设备懒加载树并返回 |
| | | return R.data(hkService.getHkStatisticData(hk,query)); |
| | | } |
| | | |
| | | } |