当前位置:网站首页>视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
视频融合云平台EasyCVR增加多级分组,可灵活管理接入设备
2022-07-06 09:38:00 【EasyCVR】
EasyCVR支持多类型、多协议方式接入,可对前端接入设备进行统一管理,并能支持采用设备树对设备进行分组、分级管理、设备状态监测、云端运维等,实现对海量接入资源的集中控制与权限分配。
有用户在项目中提出需求,希望EasyCVR可以建立一级分组和不限制的子集分组,并且每级分组可以添加挂载的设备通道。通过对该需求的评估,我们将在平台中增加多级分组功能,以满足用户的个性化需求。
功能设计逻辑:采集前端传递的分组信息,然后创建对应的分组,在添加子集分组时,添加分组父级id,最后在前端查询分组列表时,一起传回给前端。参考代码如下:
roleIdstr := params["roleid"]
roleLabellist := make([]*cvrdo.RoleLabel, 0)
if roleIdstr != "" {
roleId, err := strconv.Atoi(roleIdstr)
if err == nil {
var roleLabel = dbclient.Model(cvrdo.RoleLabel{})
roleLabel = roleLabel.Where(fmt.Sprintf(`%s.role_id = ?`, cvrdo.RoleLabel{}.TableName()), roleId)
roleLabel.Find(&roleLabellist)
} else {
return
}
}
添加成功后,在前端页面分组结构展示如下:
多级分组功能有利于用户灵活管理接入设备,对设备进行相关的权限分配等操作,实现精细化管理。
EasyCVR具备很强的视频监控直播、录像、云存储、检索与回看、级联等能力,在很多实际场景中均有落地项目应用,如智慧工地、智慧校园、智慧社区、智慧楼宇等。平台可拓展性强、开放度高、部署轻快,支持与第三方集成,感兴趣的用户可以前往演示平台进行体验或部署测试。
边栏推荐
猜你喜欢
JVM class loading subsystem
Flink parsing (IV): recovery mechanism
About selenium starting Chrome browser flash back
C # nanoframework lighting and key esp32
Vscode matches and replaces the brackets
How does wechat prevent withdrawal come true?
网络分层概念及基本知识
PyTorch 提取中间层特征?
Grafana 9 正式发布,更易用,更酷炫了!
1. Introduction to JVM
随机推荐
Wordcloud colormap color set and custom colors
Models used in data warehouse modeling and layered introduction
学 SQL 必须了解的 10 个高级概念
[getting started with MySQL] fourth, explore operators in MySQL with Kiko
Final review of information and network security (based on the key points given by the teacher)
Debug and run the first xv6 program
[elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
Uipath browser performs actions in the new tab
February database ranking: how long can Oracle remain the first?
CTF逆向入门题——掷骰子
Kernel link script parsing
[CISCN 2021 华南赛区]rsa Writeup
Pyspark operator processing spatial data full parsing (4): let's talk about spatial operations first
04 products and promotion developed by individuals - data push tool
Program counter of JVM runtime data area
Xin'an Second Edition: Chapter 12 network security audit technology principle and application learning notes
轻量级计划服务工具研发与实践
The solution to the left-right sliding conflict caused by nesting Baidu MapView in the fragment of viewpager
MySQL basic addition, deletion, modification and query of SQL statements
应用服务配置器(定时,数据库备份,文件备份,异地备份)