CN115688133A - Data processing method, device, equipment and storage medium - Google Patents
Data processing method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN115688133A CN115688133A CN202211312071.6A CN202211312071A CN115688133A CN 115688133 A CN115688133 A CN 115688133A CN 202211312071 A CN202211312071 A CN 202211312071A CN 115688133 A CN115688133 A CN 115688133A
- Authority
- CN
- China
- Prior art keywords
- menu
- information
- determining
- authorization
- login
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000013475 authorization Methods 0.000 claims abstract description 123
- 238000000034 method Methods 0.000 claims abstract description 28
- 238000012545 processing Methods 0.000 claims abstract description 16
- 230000006870 function Effects 0.000 claims description 130
- 238000004590 computer program Methods 0.000 claims description 16
- 230000000007 visual effect Effects 0.000 claims description 6
- 230000008859 change Effects 0.000 claims description 5
- 238000011022 operating instruction Methods 0.000 claims description 4
- 238000007726 management method Methods 0.000 description 18
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 2
- 230000008676 import Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a data processing method, a data processing device, data processing equipment and a storage medium. The method comprises the following steps: if a system login event is detected, determining corresponding menu authorization information and menu function item authorization information according to login identity information, generating authorization data, and storing the authorization data in the current session; in the session validity period, if an operation instruction on a system page is detected, determining a target function operation button according to the operation instruction and by combining authorization data in the current session; and loading the page according to the determined target function operating button, and displaying the page corresponding to the authority to the login system personnel. According to the technical scheme, the operation authority of the user can be controlled more accurately according to the login identity information of the user, and the page corresponding to the authority is displayed to login system personnel, so that effective authority management can be realized, and the safety of the system is ensured.
Description
Technical Field
The present invention relates to the field of big data, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
With the popularization of electronic informatization, various software systems appear in various industries, and in order to ensure the safe operation of various software systems, different user groups often need to perform targeted authority control after logging in the system in actual production.
Therefore, how to control the operation authority of the user more accurately according to the login identity information of the user, and realize effective authority management, so as to ensure the security of the system is a problem to be solved urgently at present.
Disclosure of Invention
The invention provides a data processing method, a data processing device, data processing equipment and a storage medium, which can more accurately control the operation authority of a user according to login identity information of the user, thereby realizing effective authority management and ensuring the safety of a system.
According to an aspect of the present invention, there is provided a data processing method including:
if a system login event is detected, determining corresponding menu authorization information and menu function item authorization information according to login identity information, generating authorization data, and storing the authorization data in the current session;
in the validity period of the session, if an operation instruction on a system page is detected, determining a target function operation button according to the operation instruction and the authorization data in the current session;
and loading the page according to the determined target function operating button, and displaying the page corresponding to the authority of the login system personnel.
According to another aspect of the present invention, there is provided a data processing apparatus comprising:
the storage module is used for determining corresponding menu authorization information and menu function item authorization information according to the login identity information if a system login event is detected, generating authorization data and storing the authorization data in the current session;
the determining module is used for determining a target function operating button according to an operating instruction and authorization data in the current session if the operating instruction to the system page is detected within the session validity period;
and the loading module is used for loading the page according to the determined target function operating button and displaying the page corresponding to the authority to the login system personnel.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the data processing method according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement a data processing method according to any one of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, if a system login event is detected, corresponding menu authorization information and menu function item authorization information are determined according to login identity information, authorization data are generated and stored in a current session, within the validity period of the session, if an operation instruction on a system page is detected, a target function operation button is determined according to the operation instruction and the authorization data in the current session, and page loading is carried out according to the determined target function operation button and is used for displaying a page corresponding to the authority of a login system worker. By the mode, the operation authority of the user can be controlled more accurately according to the login identity information of the user, and the page corresponding to the authority of the user is displayed to login system personnel, so that effective authority management can be realized, and the safety of the system is ensured.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a data processing method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a data processing apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," "target," "candidate," "alternative," and the like in the description and claims of the invention and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention, where the embodiment is suitable for a case where a software system performs authority control and response on a person logging in a system, and the method may be executed by a data processing apparatus, where the apparatus may be implemented in a software and/or hardware manner, and may be integrated in an electronic device with a data processing function. As shown in fig. 1, the method includes:
s101, if a system login event is detected, determining corresponding menu authorization information and menu function item authorization information according to login identity information, generating authorization data, and storing the authorization data in the current session.
The system login event refers to an event that a user logs in the system. The login identity information refers to identity information of a user who logs in the system, and may be information such as an account number and a password of the user.
The menu can represent the operation that the user can perform on the system, and the menu function item refers to the further refinement of the operation that the user can perform on the system under the menu. Each menu corresponds to at least one menu function item. The menu authorization information may include menu information that authorizes the user to allow the user to perform an operation. The menu function item authorization information may include function items corresponding to respective menus authorized for the user.
Specifically, the menu may include at least one of: the method comprises the steps of module setting, authority setting, operation setting, menu setting, unit management, account management and role management. The menu function item corresponding to each menu may include at least one of the following: list (i.e., view list), add, edit, status change (e.g., data status change), detail (i.e., view data details), import (import data), export (export data), authorize, audit, undo, reset, delete, and print.
Alternatively, a system login event may be considered to be detected when it is detected that the user enters a corresponding access address in the browser and logs into the system.
Optionally, after detecting the system login event, the system may query the local database according to the received login identity information input by the user, determine the menu authorization information and the menu function item authorization information corresponding to the user, form authorization data of the user according to the determined menu authorization information and the menu function item authorization information, and store the authorization data in the current Session (Session).
Optionally, after determining the corresponding menu authorization information and menu function item authorization information according to the login identity information, the method further includes: determining interface information of a login system; and according to the menu authorization information, the menu function item authorization information and the interface information, performing module authorization check to judge whether the current interface request is legal or not.
The interface information refers to attribute information of an interface of a user login system, and for example, the interface information may include corresponding code (code) and value (value) information.
Optionally, a preset method function (e.g., a Has Permission function) may be used to perform Permission verification, specifically, when a user performs an interface call to a login system, code and value information transmitted by an annotation may be obtained, that is, interface information of the login system is determined, the interface information is further compared with authorization data (i.e., menu authorization information and menu function authorization information) stored in a current Session (Session) based on a preset rule, if a result of the comparison indicates that a Permission corresponding to the interface exists, a request of the user to log in the system is considered to be legal, that is, a module authorization check passes, the current interface request is determined to be legal, and subsequent operations are normally performed. And if the comparison result shows that the authority corresponding to the interface does not exist, the verification is illegal operation, the module authorization check is not passed, the current interface request is determined to be illegal, the response to the subsequent operation instruction of the user is not carried out, and the abnormal request interaction information is returned.
It should be noted that after determining the corresponding menu authorization information and menu function item authorization information, further performing module authorization check according to the menu authorization information, menu function item authorization information, and interface information, and determining whether the current interface request is legal, so that it can be avoided that a relevant person modifies a page site at a web end by an illegal means to bypass a front-end control to directly initiate an operation request to a background, thereby ensuring the security of the system.
S102, in the session validity period, if an operation instruction to the system page is detected, determining a target function operation button according to the operation instruction and the authorization data in the current session.
The session validity period refers to the validity period of the user login session. The operation instruction refers to an operation instruction sent by a user through selecting a menu name, and the operation instruction corresponds to the menu one by one. Specifically, the operation instruction may include at least one of: and carrying out module setting, authority setting, operation setting, menu setting, unit management, account management and role management operation instructions. The target function operation button refers to a function operation button displayed to a user by a target, and the target function operation button corresponds to the menu function items one by one. The target function operation button represents a menu function item that the user allows to operate.
Optionally, if an operation instruction for the system page is detected, the operation authority of the user sending the operation instruction may be analyzed according to the operation instruction and by combining with the authorization data in the current session, and the corresponding target function operation button may be determined according to the analysis result.
Illustratively, within the session validity period, if it is detected that a user sends an operation instruction on a system page, such as an operation instruction for account management, the associated menu is determined to be account management according to the operation instruction, a menu function item corresponding to the account management menu is determined by combining with the menu function item authorization information in the authorization data in the current session, and the determined menu function item is used as a target function operation button.
And S103, loading a page according to the determined target function operation button, and displaying the page corresponding to the authority to the login system personnel.
The page may be, for example, a Web page (Web page).
For example, after the determined target function operation button is determined, page loading data may be generated based on a preset display mode by combining a menu corresponding to the operation instruction and the corresponding target function operation button, and page loading is performed according to the page loading data, so as to display a page corresponding to the authority of the login system staff.
According to the technical scheme of the embodiment of the invention, if a system login event is detected, corresponding menu authorization information and menu function item authorization information are determined according to login identity information, authorization data are generated and stored in a current session, within the validity period of the session, if an operation instruction on a system page is detected, a target function operation button is determined according to the operation instruction and the authorization data in the current session, and page loading is carried out according to the determined target function operation button and is used for displaying a page corresponding to the authority of a login system worker. By the mode, the operation authority of the user can be controlled more accurately according to the login identity information of the user, and the authority control of the user is limited to be in a finer function item granularity, so that a page corresponding to the authority is displayed to login system personnel more accurately, richer, comprehensive and effective authority management is realized, and the safety of the system is ensured.
Optionally, in response to the menu registration request, determining a menu to be registered and menu parameter information associated with the menu to be registered; displaying the alternative function items corresponding to the menu to be registered by using a visual interface; and determining the target function item, and updating the authorization information according to the user information, the menu to be registered and the target function item.
The menu registration request refers to a request for registering a new menu from a user. The menu to be registered refers to a menu of target registration in the menu registration request. The menu parameter information includes at least one of: menu name, menu number, and menu address. The alternative function item refers to an alternative menu function item. The target function item refers to a function item associated with the menu to be registered. The user information refers to information of the user who issued the menu registration request, and the user information may be, for example, an identity number of the user. The authorization information may include menu authorization information and menu function item authorization information. The user information may be obtained from a menu registration request issued by the user.
Optionally, when a user sends a menu registration instruction through a system interface, the user may consider that a menu registration request is detected, further perform feature extraction on the menu registration request, determine a menu to be registered and a menu code, a menu name, and a menu address associated with the menu to be registered, and determine, according to a preset rule, that a display area of the menu to be registered is first page display or other page display, that is, determine the menu to be registered and menu parameter information associated with the menu to be registered.
Optionally, the codes and/or name information of all the pre-stored menu function items may be displayed to the relevant personnel by using a visual interface, so that the user can select the authorization function item corresponding to the menu to be registered, that is, the alternative function item corresponding to the menu to be registered is displayed, and the subsequent registration of the menu function item of the menu to be registered is facilitated.
Optionally, the target function item may be determined according to a check result of the user on the visual interface; the target function item corresponding to the menu to be registered may also be determined based on experience through related service settings, for example, determining the target function item includes: if the menu to be registered is managed as a unit, determining the target function item corresponding to the menu to be registered as follows according to the service setting: list, add, edit, status change, detail, and delete.
Optionally, the updating of the authorization information is implemented according to the user information, the menu to be registered, and the target function item, and includes: determining a target role corresponding to the user information according to the user information; and adding the menu to be registered, the menu parameter information and the target function item associated with the menu to be registered into an authority list and a resource list associated with the target role, so as to realize the updating of the menu authorization information and the menu function item authorization information.
The target role may refer to a role to which the user belongs. The authority table is a table for storing menu authority and menu function item authority related to the target role. The resource table is a table for storing resource data information related to a target role. The permission and resource tables may be stored in the form of table structures in a database, such as a MySQL (My Structured Query Language) database, or the like.
Illustratively, according to user information, the identity code of a user can be analyzed, the role to which the user belongs is determined, further query is performed in a local database, the authority table and the resource table for storing the added authority and resource of the role are determined, the determined menu to be registered and the target function item are added into the authority table associated with the target role, the determined menu parameter information associated with the menu to be registered is added into the resource table associated with the target role, and therefore updating of menu authorization information and menu function item authorization information is achieved.
Example two
Fig. 2 is a flowchart of a data processing method according to a second embodiment of the present invention, and this embodiment further explains in detail "determining corresponding menu authorization information and menu function item authorization information according to login identity information" based on the above embodiment, and as shown in fig. 2, the method includes:
s201, determining the role of the login system personnel according to the login identity information.
The login system personnel refers to personnel who log in the system. The roles are preset roles representing the user function information, and the types of the roles can be predefined by a system administrator according to business design. Roles may include, for example, at least one of: administrators, clerks, and auditors. The user's role is different, and the menu and menu function items authorized by the user are different.
Optionally, the login identity information of the user can be input into a pre-trained model, and a corresponding role is output, that is, the role to which the login system personnel belongs is determined according to the login identity information; the user identity code in the login identity information can also be analyzed to determine the role to which the login system personnel belong, namely, the role to which the login system personnel belong is determined according to the login identity information.
S202, according to the preset roles, menus and the corresponding relations among the menu function items corresponding to the menus, determining menu authorization information and menu function item authorization information of login system personnel, generating authorization data and storing the authorization data in the current session.
Wherein, the roles, the menus and the menu function items in the corresponding relation are in one-to-one correspondence.
Optionally, after determining the role to which the login system person belongs, matching may be performed in the correspondence among preset roles, menus, and menu function items corresponding to the menus based on the determined role to which the login system person belongs, and determining the menus and menu function items associated with the login system person, thereby generating menu authorization information and menu function item authorization information of the login system person.
It should be noted that the process of determining the corresponding menu authorization information and menu function item authorization information, generating authorization data, and storing the authorization data in the current session in this embodiment is the same as the process described in the above embodiment S101, and is not described herein again.
S203, in the session validity period, if an operation instruction to the system page is detected, determining a target function operation button according to the operation instruction and the authorization data in the current session.
And S204, loading a page according to the determined target function operation button, and displaying the page corresponding to the authority to the login system personnel.
According to the technical scheme of the embodiment of the invention, the role to which the login system personnel belongs is determined according to login identity information, the menu authorization information and the menu function item authorization information of the login system personnel are determined according to the corresponding relation among preset roles, menus and menu function items corresponding to the menus, authorization data are generated and stored in the current session, and within the validity period of the session, if an operation instruction for a system page is detected, a target function operation button is determined according to the operation instruction and the authorization data in the current session, and finally, page loading is carried out according to the determined target function operation button and is used for displaying the page corresponding to the authority of the login system personnel. After the login of the user is detected, the role to which the user belongs is determined, the corresponding authority is further determined according to the role to which the user belongs, and an implementable mode for determining the menu authorization information and the menu function item authorization information of the user is provided, so that the visibility of the menu and the function item associated with the user can be controlled in a targeted manner, namely only the menu and the function item within the authority range are displayed, the authority control of function granularity is realized, and the safety of the system is ensured.
Optionally, in response to a role registration request of a user, determining a role to be registered, and displaying an alternative menu associated with the role to be registered; and determining a target menu and a target function item associated with the target menu, and registering the roles according to the roles to be registered, the target menu and the target function item. The role registration request refers to a request sent by a user to register a new role. The alternative menus may be all menus associated with the character to be registered. The target menu refers to a menu in which a target specified by the relevant person from the candidate menu is associated with a character to be registered. The alternative menu includes at least one of: the method comprises the steps of module setting, authority setting, operation setting, menu setting, unit management, account management and role management. The target function item refers to a function item designated by the user under the target menu.
EXAMPLE III
Fig. 3 is a block diagram of a data processing apparatus according to a third embodiment of the present invention, where the data processing apparatus according to the third embodiment of the present invention is capable of executing a data processing method according to any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
As shown in fig. 3, the apparatus includes:
a storage module 301, configured to determine, according to login identity information, corresponding menu authorization information and menu function item authorization information if a system login event is detected, generate authorization data, and store the authorization data in a current session;
a determining module 302, configured to determine, within a session validity period, a target function operation button according to an operation instruction and by combining authorization data in a current session if the operation instruction on a system page is detected;
and the loading module 303 is configured to load a page according to the determined target function operation button, and is configured to display a page corresponding to the authority of the login system staff.
According to the technical scheme of the embodiment of the invention, if a system login event is detected, corresponding menu authorization information and menu function item authorization information are determined according to login identity information, authorization data are generated and stored in a current session, within the validity period of the session, if an operation instruction on a system page is detected, a target function operation button is determined according to the operation instruction and the authorization data in the current session, and page loading is carried out according to the determined target function operation button and is used for displaying a page corresponding to the authority of a login system worker. By the mode, the operation authority of the user can be controlled more accurately according to the login identity information of the user, and the page corresponding to the authority of the user is displayed to login system personnel, so that effective authority management can be realized, and the safety of the system is ensured.
Further, the saving module 301 is specifically configured to:
determining the role of a login system person according to the login identity information;
and determining menu authorization information and menu function item authorization information of the login system personnel according to the preset roles, menus and the corresponding relations among the menu function items corresponding to the menus.
Further, the above apparatus is further configured to:
determining interface information of a login system;
and according to the menu authorization information, the menu function item authorization information and the interface information, performing module authorization check and judging whether the current interface request is legal or not.
Further, the above apparatus further comprises:
the information determining module is used for responding to the menu registration request and determining the menu to be registered and the menu parameter information associated with the menu to be registered; the menu parameter information includes at least one of: a menu name, a menu number and a menu address;
the display module is used for displaying the alternative function items corresponding to the menu to be registered by using a visual interface;
and the updating module is used for determining the target function item and updating the authorization information according to the user information, the menu to be registered and the target function item.
Further, the update module is specifically configured to:
determining a target role corresponding to the user information according to the user information;
and adding the menu to be registered, the menu parameter information and the target function item associated with the menu to be registered into the authority list and the resource list associated with the target role, so as to realize the updating of the menu authorization information and the menu function item authorization information.
Further, the update module is further configured to:
if the menu to be registered is managed as a unit, determining the target function item corresponding to the menu to be registered as follows according to the service setting: list, add, edit, status change, detail, and delete.
Further, the above apparatus is further configured to:
responding to a role registration request of a user, determining a role to be registered, and displaying an alternative menu associated with the role to be registered; the alternative menu includes at least one of: setting a module, setting authority, setting operation, setting a menu, managing units, managing accounts and managing roles;
and determining a target menu and a target function item associated with the target menu, and registering the role according to the role to be registered, the target menu and the target function item.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 shows a schematic block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as a data processing method.
In some embodiments, the data processing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the data processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the data processing method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. A data processing method, comprising:
if a system login event is detected, determining corresponding menu authorization information and menu function item authorization information according to login identity information, generating authorization data, and storing the authorization data in the current session;
in the session validity period, if an operation instruction on a system page is detected, determining a target function operation button according to the operation instruction and by combining authorization data in the current session;
and loading the page according to the determined target function operating button, and displaying the page corresponding to the authority to the login system personnel.
2. The method of claim 1, wherein determining corresponding menu authorization information and menu function authorization information according to the login identity information comprises:
determining the role of a login system person according to the login identity information;
and determining menu authorization information and menu function item authorization information of login system personnel according to the preset corresponding relationship among roles, menus and menu function items corresponding to the menus.
3. The method of claim 1, wherein after determining the corresponding menu authorization information and menu function item authorization information according to the login identity information, further comprising:
determining interface information of a login system;
and according to the menu authorization information, the menu function item authorization information and the interface information, performing module authorization check and judging whether the current interface request is legal or not.
4. The method of claim 1, further comprising:
responding to a menu registration request, and determining a menu to be registered and menu parameter information associated with the menu to be registered; the menu parameter information includes at least one of: menu name, menu number and menu address;
displaying the alternative function items corresponding to the menu to be registered by using a visual interface;
and determining the target function item, and updating the authorization information according to the user information, the menu to be registered and the target function item.
5. The method of claim 4, wherein updating the authorization information according to the user information, the menu to be registered and the target function item comprises:
determining a target role corresponding to the user information according to the user information;
and adding the menu to be registered, the menu parameter information and the target function item associated with the menu to be registered into the authority list and the resource list associated with the target role, so as to realize the updating of the menu authorization information and the menu function item authorization information.
6. The method of claim 4, wherein determining a target function item comprises:
if the menu to be registered is managed as a unit, determining the target function item corresponding to the menu to be registered as follows according to the service setting: list, add, edit, status change, detail, and delete.
7. The method of claim 1, further comprising:
responding to a role registration request of a user, determining a role to be registered, and displaying an alternative menu associated with the role to be registered; the alternative menu includes at least one of: setting a module, setting authority, setting operation, setting a menu, managing units, managing accounts and managing roles;
and determining a target menu and a target function item associated with the target menu, and registering the role according to the role to be registered, the target menu and the target function item.
8. A data processing apparatus, comprising:
the storage module is used for determining corresponding menu authorization information and menu function item authorization information according to the login identity information if a system login event is detected, generating authorization data and storing the authorization data in the current session;
the determining module is used for determining a target function operating button according to an operating instruction and combined with authorization data in the current session if the operating instruction to the system page is detected within the session validity period;
and the loading module is used for loading the page according to the determined target function operating button and displaying the page corresponding to the authority to the login system personnel.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data processing method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that it stores computer instructions for causing a processor to implement the data processing method of any of claims 1-7 when executed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211312071.6A CN115688133A (en) | 2022-10-25 | 2022-10-25 | Data processing method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211312071.6A CN115688133A (en) | 2022-10-25 | 2022-10-25 | Data processing method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115688133A true CN115688133A (en) | 2023-02-03 |
Family
ID=85099563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211312071.6A Pending CN115688133A (en) | 2022-10-25 | 2022-10-25 | Data processing method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115688133A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115878647A (en) * | 2023-02-08 | 2023-03-31 | 北京全路通信信号研究设计院集团有限公司 | Data processing method and device, electronic equipment and storage medium |
CN116720224A (en) * | 2023-06-28 | 2023-09-08 | 北京和德宇航技术有限公司 | Display method, device, equipment and storage medium |
-
2022
- 2022-10-25 CN CN202211312071.6A patent/CN115688133A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115878647A (en) * | 2023-02-08 | 2023-03-31 | 北京全路通信信号研究设计院集团有限公司 | Data processing method and device, electronic equipment and storage medium |
CN116720224A (en) * | 2023-06-28 | 2023-09-08 | 北京和德宇航技术有限公司 | Display method, device, equipment and storage medium |
CN116720224B (en) * | 2023-06-28 | 2024-04-26 | 北京和德宇航技术有限公司 | Display method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115688133A (en) | Data processing method, device, equipment and storage medium | |
CN115619364B (en) | Recruitment information release method, device and system based on artificial intelligence | |
CN110765137A (en) | Electronic certificate processing method, device, equipment, platform and medium | |
CN112069490A (en) | Method, device, electronic equipment and storage medium for providing applet capability | |
CN115222176A (en) | Risk control method, apparatus, device and medium | |
CN115204733A (en) | Data auditing method and device, electronic equipment and storage medium | |
CN114493901A (en) | Data access application processing method and device, computer equipment and storage medium | |
CN116451210A (en) | Rights recovery method, device, equipment and storage medium | |
CN116305324A (en) | Host safety protection method, device, equipment and storage medium | |
CN115935395A (en) | Data processing method, device, equipment and storage medium | |
CN115550413A (en) | Data calling method and device, service gateway and storage medium | |
CN115130012A (en) | Method and device for joining group, electronic equipment and storage medium | |
CN112968876A (en) | Content sharing method and device, electronic equipment and storage medium | |
CN116566737B (en) | Permission configuration method and device based on SaaS platform and related equipment | |
CN115879429B (en) | Electronic form verification method and device, electronic equipment and storage medium | |
CN116432169B (en) | Automatic task permission control method, system and equipment based on sharing strategy | |
CN115080111A (en) | Method, device and equipment for flow management of target application and storage medium | |
KR102675087B1 (en) | Method for generating and visualizing threat intelligence-based ontology and computing device using the same | |
CN116305308A (en) | Account security management method, device, equipment and storage medium | |
CN115439104A (en) | Business auditing method, device, equipment and storage medium | |
CN114756398A (en) | Data processing method, device, equipment and medium | |
CN116760527A (en) | Method, device, equipment and medium for determining identification analysis system | |
CN115756532A (en) | Configuration file updating method and device and electronic equipment | |
CN118036063A (en) | Authority configuration method, device, equipment and medium based on micro-service architecture | |
CN115766048A (en) | Reminding method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |