Resource allocation method and device, computer equipment and storage medium

A technology for resource allocation and storage media, applied in the computer field, can solve the problems of increasing the duplication of operations and the complexity of the operation process, and achieve the effects of reducing duplication, simplifying authority management, and improving the efficiency of resource management and control.

A technology for resource allocation and storage media, applied in the computer field, can solve the problems of increasing the duplication of operations and the complexity of the operation process, and achieve the effects of reducing duplication, simplifying authority management, and improving the efficiency of resource management and control.

CN112733162APending Publication Date: 2021-04-30北京乐学帮网络技术有限公司

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Resource allocation method and device, computer equipment and storage medium
  • Resource allocation method and device, computer equipment and storage medium
  • Resource allocation method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] see figure 1 As shown, it is a flowchart of a resource allocation method provided by an embodiment of the present disclosure, the method includes steps S101-S103, wherein:

[0060] S101: Obtain multiple preset roles.

[0061] In this step, the preset role may be a user's role preset according to an application scenario, including all roles that can be assigned by the user.

example 1

[0062] Example 1. In the scenario where the user is configured to query student information, the preset roles that may be assigned to the user include the person in charge of the elementary school, the person in charge of the junior high school, the person in charge of the high school, the person in charge of the first grade, the person in charge of the second grade, and the person in charge of the junior high school. The person in charge of the third class, the person in charge of the first year of senior high school, the person in charge of the second year of senior high school, the person in charge of the third year of senior high school, the person in charge of the first class of the first year of junior high school, the person in charge of the second class of the first year of junior high school, the person in charge of the third class of the first year of junior high school, the person in charge of the first class of the third year of senior high school, and the person in c...

Embodiment 2

[0095] refer to Figure 6 As shown, it is a schematic diagram of a resource allocation device provided by an embodiment of the present disclosure, the device includes: an acquisition module 601, a determination module 602, and a first allocation module 603; wherein,

[0096] An acquisition module 601, configured to acquire multiple preset roles;

[0097] A determination module 602, configured to determine the hierarchical relationship among the plurality of preset roles according to the character feature information of the preset roles;

[0098] The first assignment module 603 is configured to assign resource permissions to each of the preset roles based on the hierarchical relationship, wherein, for any two preset roles with a subordinate hierarchical relationship, the resource permissions of the preset role with a higher hierarchy include Resource permissions for low-level preset roles.

[0099] In an optional implementation manner, the first assigning module 603 is config...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a resource allocation method and device, computer equipment and a storage medium, and the method comprises the steps of obtaining a plurality of preset roles; determining a hierarchical relationship among a plurality of preset roles according to the role feature information of the preset roles; and based on the hierarchical relationship, allocating resource permissions to each preset role, the resource permissions of any two preset roles having the membership hierarchical relationship being included in the resource permissions of the preset roles having the high hierarchy, and the resource permissions of the preset roles having the low hierarchy. According to the embodiment of the invention, the authority management of the user is simplified and the system overhead is reduced by presetting a plurality of roles; when the user role is changed, other roles having a membership hierarchical relationship with the role do not need to be modified, so that the replicability of the operation is reduced; besides, when the resources corresponding to the roles are changed, only the resources of the preset roles with low hierarchies need to be adjusted, and the resources of the preset roles with high hierarchies do not need to be modified, so that the operation replicability is reduced, the resource management and control efficiency is improved, and the refined management and control of the resource permission is met.

Description

technical field [0001] The present disclosure relates to the field of computer technology, and in particular, to a resource allocation method, device, computer equipment and storage medium. Background technique [0002] In the process of project development, as the project progresses, different requirements are often put forward for resource permissions. The existing data model includes access control list (Access Control List, ACL) and role-based access control (RoleBase Access Control, RBAC) , however, the ACL model directly assigns resource permissions to each user. Therefore, every time a new user is created, it is necessary to assign permission operations, which makes the operation process complicated; in the RBAC model, roles are independent of each other. When permissions change At the same time, the corresponding resource permissions need to be changed repeatedly for roles with subordinate hierarchical relationships, which increases the duplication of operations; in ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
30 Apr 2021
Publication
CN112733162A
IPC
G06F21/60; G06Q10/10
CPC
G06F21/604; G06Q10/103
Inventors
刘惠嘉