Compressed menu permission coding method and system and storage medium

The invention discloses a compressed menu permission coding method and system and a storage medium. The method comprises the steps that preset menus are numbered in sequence; constructing a binary bit with the length of N, and enabling the value of each bit of the bit to correspond to a permission d...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: JIA CHENGXI, YU HUILING, ZHAO CHAO, ZHANG LEI, ZHANG YUYI, HUANG QINMEI
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a compressed menu permission coding method and system and a storage medium. The method comprises the steps that preset menus are numbered in sequence; constructing a binary bit with the length of N, and enabling the value of each bit of the bit to correspond to a permission dish unit of a role; and converting the binary bit into a preset system and storing the preset system. According to the method, the data storage space is reduced while the complexity of system deployment, operation, maintenance and development is not increased, and the problem that the authority data index is increased due to the increase of tenant roles is solved. 本申请公开了一种压缩菜单权限编码方法、系统及存储介质,所述方法包括:对预设菜单按顺序依次编号;构建长度为N的二进制比特位,将所述比特位每一位的值对应角色的权限菜单位;将二进制比特位转化为预设进制并保存。本发明实现了在不增加系统部署、运维、开发的复杂度的同时,降低了数据存储空间,解决了因租户角色增加导致的权限数据成指数增加的问题。