摘要
随着我国信息产业的发展,越来越多的公司和单位都开发了自己的手机App、小程序等信息管理软件,这些软件都需要一个后台管理系统供管理人员对软件上的内容信息进行管理。而后台管理系统一项非常重要的功能就是权限管理,针对不同的登录账号赋予不同的操作权限。因此,文章使用树形结构的方式对权限进行操作,生成权限字符串存储在数据库中,使用时只需验证该用户的权限字符串中是否有相关的权限字符,再在前端页面根据权限渲染出相应内容即可,是一种简易高效的权限系统。
With the development of China’s information industry,more and more companies and units have built their own mobile apps,applets and other information management software,which need a backend management system for managers to manage the content information on the software.A very important function of backend management system is permission management,which gives different operation rights to different login accounts.Therefore,the article uses a tree structure to operate permissions,generating permission strings to be stored in the database,and when using it,it only needs to verify whether the user has the relevant permission character in the permission string,and then render the corresponding content in the front-end page according to the permission,which is an easy and efficient permission system.
作者
陈进川
CHEN Jinchuan(Guangdong East Guangdong Technician College,Shantou Guangdong 515041,China)
出处
《信息与电脑》
2022年第15期7-9,共3页
Information & Computer
关键词
权限
树形结构
后台管理系统
permission
tree structure
background management system