当前位置:网站首页>Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices

Video fusion cloud platform easycvr adds multi-level grouping, which can flexibly manage access devices

2022-07-06 17:49:00 EasyCVR

EasyCVR Support multiple types 、 Multi protocol access , It can uniformly manage the front-end access equipment , It can also support the use of device trees to group devices 、 Hierarchical management 、 Equipment condition monitoring 、 Cloud operation and maintenance, etc , Realize centralized control and permission allocation of massive access resources .

Some users put forward requirements in the project , hope EasyCVR One level grouping and unrestricted subset grouping can be established , And each level of grouping can add attached device channels . Through the evaluation of this demand , We will add multi-level grouping function to the platform , To meet the personalized needs of users .

Functional design logic : Collect the packet information transmitted by the front end , Then create the corresponding group , When adding subset grouping , Add group parent id, Finally, when querying the grouping list at the front end , Send it back to the front end together . The reference codes are as follows :

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

After successful addition , On the front page, the grouping structure is shown as follows :

The multi-level grouping function is conducive to users' flexible management of access devices , Perform relevant permission allocation and other operations on the device , Achieve refined management .

EasyCVR It has strong live video surveillance 、 videotape 、 Cloud storage 、 Retrieval and review 、 Cascade and other capabilities , In many practical scenarios, there are landing project applications , Such as smart construction site 、 Smart campus 、 Smart community 、 Intelligent buildings, etc . The platform has strong expansibility 、 High openness 、 Deployment is light , Support integration with third parties , Interested users can go to the demonstration platform for experience or deployment testing .

原网站

版权声明
本文为[EasyCVR]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/187/202207060938143193.html