CN113761553A - Menu batch authorization method and device, electronic equipment and computer readable medium - Google Patents

Menu batch authorization method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113761553A
CN113761553A CN202110057947.6A CN202110057947A CN113761553A CN 113761553 A CN113761553 A CN 113761553A CN 202110057947 A CN202110057947 A CN 202110057947A CN 113761553 A CN113761553 A CN 113761553A
Authority
CN
China
Prior art keywords
information
target user
menu
basic menu
pushed
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
Application number
CN202110057947.6A
Other languages
Chinese (zh)
Inventor
魏振江
姜自觉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Tuoxian Technology Co Ltd
Original Assignee
Beijing Jingdong Tuoxian Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Tuoxian Technology Co Ltd filed Critical Beijing Jingdong Tuoxian Technology Co Ltd
Priority to CN202110057947.6A priority Critical patent/CN113761553A/en
Publication of CN113761553A publication Critical patent/CN113761553A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the disclosure discloses a menu batch authorization method, a menu batch authorization device, electronic equipment and a computer readable medium. One embodiment of the method comprises: creating a basic menu, wherein the basic menu comprises at least one basic menu function label; determining target user information corresponding to each mechanism information to be pushed in a mechanism information set to be pushed to obtain a target user information set, wherein the mechanism information to be pushed is mechanism information corresponding to a mechanism which is not distributed with the basic menu; and associating the basic menu with each piece of target user information in the target user information set so that a target management terminal allocates the use permission of the basic menu function corresponding to the basic menu function label to the user, wherein the target management terminal is a terminal which has logged in a user account included in the target user information. This embodiment reduces the time cost of menu authorization and reduces the waste of menu configuration resources.

Description

Menu batch authorization method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a menu batch authorization method, a menu batch authorization device, electronic equipment and a computer readable medium.
Background
Menu authorization refers to a technique for distributing a function (e.g., a query function, a statistic function, etc.) required by a user to the user in the form of a menu. Currently, a commonly used menu authorization method is to allocate different menus according to the requirements of each user.
However, when the above-described method is used for batch authorization of menus, the following technical problems often exist:
as the number of users increases, different menus are allocated according to the needs of each user, which increases the time cost of menu authorization. In addition, since different menus often include some common menu functions, authorizing a menu individually for each user may result in a waste of menu configuration resources.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose a menu bulk authorization method, apparatus, electronic device and computer readable medium to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a menu batch authorization method, including: creating a basic menu, wherein the basic menu comprises at least one basic menu function label; determining target user information corresponding to each mechanism information to be pushed in a mechanism information set to be pushed to obtain a target user information set, wherein the mechanism information to be pushed is mechanism information corresponding to a mechanism which is not distributed with the basic menu; and associating the basic menu with each piece of target user information in the target user information set so that a target management terminal allocates the use permission of the basic menu function corresponding to the basic menu function label to a user, wherein the target management terminal is a terminal which has logged in a user account included in the target user information.
Optionally, before determining target user information corresponding to each piece of mechanism information to be pushed in the mechanism information set to be pushed, the method further includes: responding to the received target service type information and target mechanism type information, filtering mechanism information meeting a mechanism information filtering condition group as candidate mechanism information to obtain a candidate mechanism information set, wherein the mechanism information filtering condition group comprises: the service type information included in the mechanism information is matched with the target service type information; the organization information includes organization type information that matches the target organization type information.
Optionally, the method further includes: and screening out candidate mechanism information which does not contain the target menu identification from the candidate mechanism information set to serve as the mechanism information to be pushed, and obtaining the mechanism information set to be pushed.
Optionally, the creating the basic menu includes: acquiring at least one basic menu function number;
and combining the basic menu function labels corresponding to the basic menu function numbers in the at least one basic menu function number to generate the basic menu.
Optionally, the information of the mechanism to be pushed includes: the organization number, the target user information includes: the number of the affiliated organization and the level information of the target user; and the determining target user information corresponding to each mechanism information to be pushed in the mechanism information set to be pushed to obtain a target user information set, including: for each mechanism information to be pushed in the mechanism information set to be pushed, acquiring target user information meeting a target user information screening condition set from a target user information table, wherein the target user information screening condition set comprises: the mechanism number included by the target user information is the same as the mechanism number included by the mechanism information to be pushed; the target user information includes target user level information identical to the preset level information.
Optionally, associating the basic menu with each piece of target user information in the set of target user information includes: storing target user authority information to a user authority information table, wherein the target user authority information comprises: target user information and the menu number of the basic menu.
In a second aspect, some embodiments of the present disclosure provide an apparatus for batch authorization of menus, the apparatus comprising: a creating unit configured to create a basic menu, wherein the basic menu includes at least one basic menu function label; the determining unit is configured to determine target user information corresponding to each mechanism information to be pushed in a mechanism information set to be pushed, so as to obtain the target user information set, wherein the mechanism information to be pushed is mechanism information corresponding to a mechanism which is not distributed with the basic menu; and the association unit is configured to associate the basic menu with each piece of target user information in the target user information set so that a target management terminal allocates the use permission of the basic menu function corresponding to the basic menu function label to a user, wherein the target management terminal is a terminal which has logged in a user account included in the target user information.
Optionally, before determining target user information corresponding to each piece of mechanism information to be pushed in the mechanism information set to be pushed, the apparatus further includes: responding to the received target service type information and target mechanism type information, filtering mechanism information meeting a mechanism information filtering condition group as candidate mechanism information to obtain a candidate mechanism information set, wherein the mechanism information filtering condition group comprises: the service type information included in the mechanism information is matched with the target service type information; the organization information includes organization type information that matches the target organization type information.
Optionally, the apparatus further comprises: and screening out candidate mechanism information which does not contain the target menu identification from the candidate mechanism information set to serve as the mechanism information to be pushed, and obtaining the mechanism information set to be pushed.
Optionally, the creating unit is configured to: acquiring at least one basic menu function number; and combining the basic menu function labels corresponding to the basic menu function numbers in the at least one basic menu function number to generate the basic menu.
Optionally, the information of the mechanism to be pushed includes: the organization number, the target user information includes: the number of the affiliated organization and the level information of the target user; and the determination unit is configured to: for each mechanism information to be pushed in the mechanism information set to be pushed, acquiring target user information meeting a target user information screening condition set from a target user information table, wherein the target user information screening condition set comprises: the mechanism number included by the target user information is the same as the mechanism number included by the mechanism information to be pushed; the target user information includes target user level information identical to the preset level information.
Optionally, the associating unit is configured to: storing target user authority information to a user authority information table, wherein the target user authority information comprises: target user information and the menu number of the basic menu.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: the menu batch authorization method of some embodiments of the present disclosure reduces the time cost of menu authorization and reduces the waste of menu configuration resources. Specifically, the time cost for menu authorization is high, and the reason for the waste of menu configuration resources is that: firstly, different menus are allocated according to the user requirements, and especially in case of a surge in the number of users, the time cost of menu authorization is increased. Secondly, different menus often contain part of common function labels, and the menu is authorized independently for each user, which causes waste of menu configuration resources. Based on this, the menu batch authorization method of some embodiments of the present disclosure, first, creates a basic menu, wherein the basic menu includes at least one basic menu function label. The menu function labels corresponding to the common menu functions of the menu functions required by different users can be packaged into the basic menu, so that the waste of menu configuration resources caused by repeated configuration of the common menu functions is reduced. And secondly, determining target user information corresponding to each mechanism information to be pushed in the mechanism information set to be pushed. In practical situations, function authorization for basic menu functions in a menu is often performed through accounts and devices in an organization for function authorization. And determining target user information corresponding to each mechanism information to be pushed so as to determine the target user information used for function authorization in the mechanism. And finally, associating the basic menu with each piece of target user information in the target user information set, thereby realizing batch authorization of the menu. Especially, under the condition that the number of users is increased rapidly, the method can greatly reduce the time cost and the waste of menu configuration resources.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of a menu bulk authorization method of some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a menu bulk authorization method according to the present disclosure;
FIG. 3 is a schematic diagram of a menu function table in some embodiments of a menu bulk authorization method according to the present disclosure.
FIG. 4 is a flow diagram of further embodiments of a menu bulk authorization method according to the present disclosure;
FIG. 5 is a schematic block diagram illustration of some embodiments of a menu bulk authorization apparatus according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of an application scenario of a menu bulk authorization method according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may create a basic menu 102, wherein the basic menu 102 includes at least one basic menu function tag 103 (e.g., a data analysis function tag, a medication information adding function tag, etc.). Next, the computing device 101 may determine target user information (e.g., [0001, "XXX medical company" ]) corresponding to each to-be-pushed mechanism information in the to-be-pushed mechanism information set 104 (e.g., the to-be-pushed mechanism information may be [ "XXX medical company" ]), which is mechanism information corresponding to a mechanism to which the basic menu 102 is not distributed, to obtain a target user information set 105. Finally, the computing device 101 may associate the basic menu 102 with each piece of target user information in the set of target user information 105, so that a target management terminal assigns, to a user, a usage right of a basic menu function corresponding to a basic menu function tag, where the target management terminal is a terminal that has logged in a user account included in the piece of target user information.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to FIG. 2, a flow 200 of some embodiments of a menu bulk authorization method according to the present disclosure is shown. The menu batch authorization method comprises the following steps:
step 201, a basic menu is created.
In some embodiments, an executive (e.g., computing device 101 shown in fig. 1) of a menu bulk authorization method may select at least one base menu function tab from a menu function table to generate the base menu in response to receiving a base menu creation instruction. The basic menu creating instruction may be an instruction for creating a basic menu. The basic menu instruction may include: instruction category, menu number, and set of basic menu function names. The above instruction classes may be used to characterize classes of instructions. The instruction type may be "a" or "B". An "A" may characterize that the instruction is an instruction for creating a base menu. "B" may characterize that the instruction is an instruction for canceling the creation of the basic menu. The menu number may represent unique identification information of the menu. The menu function table may be a data table containing basic menu function labels for basic menu generation. The basic menu function tag may serve as identification information of the basic menu function. The basic menu function label may be a "medicine information adding function label" or a "medicine information deleting function label". The basic menu may include at least one basic menu function label.
As an example, the above-described basic menu creation instruction may be [ "a", "medicine information inquiry function, medicine information deletion function, medicine information modification function" ].
As yet another example, the menu function table may be as shown in fig. 3. Wherein, the menu function table comprises: menu function label description 301 and menu function category 302. The menu function tag description 301 may be used to functionally describe a menu function. The menu function category 302 described above may be used to characterize the function category of the menu function. For example, "C" may be used to characterize the function category of a menu function as a base menu function category.
As still another example, the execution body may select at least one basic menu function tag from the menu function table by the following DDL (Data Definition Language): "SELECT FROM medicine information table WHERE menu function category ═ C"; ".
Step 202, determining target user information corresponding to each mechanism information to be pushed in the mechanism information set to be pushed, and obtaining a target user information set.
In some embodiments, the executing entity may determine target user information corresponding to each to-be-pushed mechanism information in the to-be-pushed mechanism information set, so as to obtain the target user information set. The mechanism information to be pushed may be mechanism information corresponding to a mechanism of the basic menu that is not classified. The information of the mechanism to be pushed can be used for representing basic information of the mechanism. The information of the mechanism to be pushed may include: name of the organization. The target user information may be account information for managing the basic menu corresponding to the organization. The target user information may include: the target user number and the name of the organization to which the target user belongs.
As an example, the above-described mechanism-to-be-pushed information may be [ "XXX pharmaceutical company" ]. The target user information may be [0001, "XXX pharmaceutical company" ].
As still another example, the execution body may determine the target user information corresponding to the mechanism information to be pushed by DDL (Data Definition Language): "SELECT target user number," mechanism name "to which the mechanism name FROM the user information table WHERE belongs; ".
Step 203, associating the basic menu with each piece of target user information in the target user information set, so that the target management terminal allocates the use permission of the basic menu function corresponding to the basic menu function label to the user.
In some embodiments, the execution subject may associate the basic menu with each target user information in the target user information set, so that the target management terminal assigns the usage right of the basic menu function corresponding to the basic menu function tag to the user. The target management terminal may be a terminal that has logged in a user account included in the target user information. The target user information may further include: a base menu number may be used. The usable base menu number may be used to represent identification information of the base menu usable by the target user. The execution body may update the usable basic menu number included in the target user information to the menu number of the basic menu, so as to associate the basic menu with the target user information.
As an example, the execution agent may realize association of the basic menu and the target user information by the following DDL (Data Definition Language): the UPDATE user information table SET may use a basic menu number (menu number WHERE) and a target user number (100); ".
The above embodiments of the present disclosure have the following advantages: the menu batch authorization method of some embodiments of the present disclosure reduces the time cost of menu authorization and reduces the waste of menu configuration resources. Specifically, the time cost for menu authorization is high, and the reason for the waste of menu configuration resources is that: firstly, different menus are allocated according to the user requirements, and especially in case of a surge in the number of users, the time cost of menu authorization is increased. Secondly, different menus often contain part of common function labels, and the menu is authorized independently for each user, which causes waste of menu configuration resources. Based on this, the menu batch authorization method of some embodiments of the present disclosure, first, creates a basic menu, wherein the basic menu includes at least one basic menu function label. The menu function labels corresponding to the common menu functions of the menu functions required by different users can be packaged into the basic menu, so that the waste of menu configuration resources caused by repeated configuration of the common menu functions is reduced. And secondly, determining target user information corresponding to each mechanism information to be pushed in the mechanism information set to be pushed. In practical situations, function authorization for basic menu functions in a menu is often performed through accounts and devices in an organization for function authorization. And determining target user information corresponding to each mechanism information to be pushed so as to determine the target user information used for function authorization in the mechanism. And finally, associating the basic menu with each piece of target user information in the target user information set, thereby realizing batch authorization of the menu. Especially, under the condition that the number of users is increased rapidly, the method can greatly reduce the time cost and the waste of menu configuration resources.
With further reference to FIG. 4, a flow 400 of further embodiments of a menu bulk authorization method is shown. The process 400 of the menu batch authorization method includes the following steps:
step 401, at least one basic menu function number is obtained.
In some embodiments, an executing agent (e.g., the computing device 101 shown in fig. 1) of the menu bulk authorization method may first obtain at least one base menu function name from a base menu function table. And then, acquiring a basic menu function number corresponding to each basic menu function name in the at least one basic menu function name from a menu function table to obtain the at least one basic menu function number. The basic menu function number can be used as identification information of the basic menu function. The basic menu function table may be a data table for storing information corresponding to the basic function. The menu function table may be a data table for storing information corresponding to menu functions.
As an example, the execution agent may obtain at least one basic menu function name from the basic menu function table by using the following DDL (Data Definition Language): "SELECT FROM basic menu function table; ".
As another example, the execution agent may acquire a basic menu function number corresponding to a basic menu function name from the menu function table by using the following DDL (Data Definition Language): "SELECT basic menu function number FROM menu function table WHERE name is" basic menu function name "; ".
Step 402, combining basic menu function labels corresponding to each basic menu function number in at least one basic menu function number to generate a basic menu.
In some embodiments, the execution subject may combine the basic menu function labels corresponding to each basic menu function number in the at least one basic menu function number to generate the basic menu. The execution main body may fill a basic menu function label corresponding to each basic menu function number in at least one basic menu function number into a preset empty menu to generate the basic menu.
Step 403, in response to receiving the target service type information and the target organization type information, filtering out organization information meeting the organization information filtering condition group as candidate organization information, and obtaining a candidate organization information set.
In some embodiments, the execution subject may filter, in response to receiving the target service type information and the target organization type information, organization information that satisfies the organization information filtering condition set as candidate organization information, to obtain a candidate organization information set. The target service type information may be used to characterize a service type corresponding to the candidate mechanism information that needs to be filtered. The target service type information may be "self-service" or "third party". The target organization type information may be used to characterize the organization type of the organization corresponding to the candidate organization information that needs to be filtered. The target entity type information may be "single" or "chain". The mechanism information filtering condition set may include: the service type information included in the mechanism information is matched with the target service type information; the organization information includes organization type information that matches the target organization type information. The service type information included in the mechanism information is matched with the target service type information, and may be that the service type information included in the mechanism information is the same as the target service type information, or that the service type information included in the mechanism information is the same as the target service type information keyword. The mechanism type information included in the mechanism information may be matched with the target mechanism type information, and the mechanism type information included in the mechanism information may be the same as the target mechanism type information, or the mechanism type information included in the mechanism information may be the same as the target mechanism type information keyword.
As an example, the service type information included in the above organization information may be "three parties". The target service type information may be "third party". In this case, it is assumed that the service type information included in the organization information is the same as the target service type information keyword.
Optionally, the executing entity may use candidate mechanism information, which is included in the candidate mechanism information set and whose mechanism type information is not "self-owned", as the mechanism information to be pushed, to obtain the mechanism information set to be pushed.
And step 404, screening out candidate mechanism information which does not contain the target menu identification from the candidate mechanism information set as mechanism information to be pushed, and obtaining a mechanism information set to be pushed.
In some embodiments, the execution subject may filter out, from the candidate mechanism information set, candidate mechanism information that does not include the target menu identifier as mechanism information to be pushed, to obtain a mechanism information set to be pushed. The target menu identifier may be identifier information corresponding to the basic menu.
As an example, the identification information corresponding to the basic menu may be "BM". The above-mentioned candidate organization information sets [ [ "organization 1", "self-service", "linkage", "BM" ], [ "organization 2", "three-party", "linkage" ], [ "organization 3", "three-party", "monomer" ]. Therefore, the obtained information set of the mechanism to be pushed can be [ [ "mechanism 2", "three parties", "linkage" ], [ "mechanism 3", "three parties", "single body" ].
Step 405, for each mechanism information to be pushed in the mechanism information set to be pushed, target user information meeting the target user information screening condition set is obtained from the target user information table.
In some embodiments, the executing agent may obtain, for each mechanism information to be pushed in the mechanism information set to be pushed, target user information that satisfies the target user information filtering condition group from the target user information table. Wherein, the information of the mechanism to be pushed may include: and numbering the organizations. The target user information may include: the affiliated organization number and the target user level information. The set of target user information filtering conditions may include: the mechanism number included by the target user information is the same as the mechanism number included by the mechanism information to be pushed; the target user information includes target user level information identical to the preset level information.
And step 406, storing the target user authority information to a user authority information table.
In some embodiments, the execution subject may store the target user authority information in the user authority information table. Wherein, the target user authority information may include: target user information and the menu number of the basic menu. The user authority information table may be a data table for storing user authority.
As an example, the execution body may store the target user authority information to the user authority information table by the following DDL: "INSERT user rights information table VALUES (target user rights information); ".
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, in the process 400 of the menu bulk authorization method in some embodiments corresponding to fig. 3, at least one basic menu function number is first obtained, and since the basic menu function number can be used as identification information of the basic menu function, the basic menu function corresponding to the basic menu function number can be obtained from the basic menu function table based on the basic menu function number. And then obtaining at least one basic menu function to be filled in a preset empty menu so as to generate a basic menu. And then, screening out a candidate mechanism information set according to the target service type information and the target mechanism type information. In practical situations, the situation that the mechanism corresponding to the candidate mechanism information is authorized to the basic menu may occur. Therefore, the mechanism information corresponding to the mechanism authorized by the basic menu is filtered by judging whether the candidate mechanism information contains the target menu identification. Secondly, an organization often corresponds to at least one account for the management of menus. Therefore, the target user information meeting the condition is screened out through the target user information screening condition group. And finally, the target user authority information is stored in the user authority information table, so that the binding and storage of the user authority are realized.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a menu batch authorization apparatus, which correspond to those shown in fig. 2, and which may be applied in various electronic devices.
As shown in fig. 5, the menu batch authorization apparatus 500 of some embodiments includes: a creating unit 501, a determining unit 502 and an associating unit 503. The creating unit 501 is configured to create a basic menu, where the basic menu includes at least one basic menu function tag; a determining unit 502, configured to determine target user information corresponding to each to-be-pushed mechanism information in a to-be-pushed mechanism information set, to obtain a target user information set, where the to-be-pushed mechanism information is mechanism information corresponding to a mechanism to which the basic menu is not distributed; an associating unit 503, configured to associate the basic menu with each piece of target user information in the set of target user information, so that a target management terminal assigns, to a user, a usage right of a basic menu function corresponding to a basic menu function label, where the target management terminal is a terminal that has logged in a user account included in the target user information.
In an optional implementation manner of some embodiments, before determining target user information corresponding to each to-be-pushed mechanism information in the to-be-pushed mechanism information set, the apparatus 500 further includes: responding to the received target service type information and target mechanism type information, filtering mechanism information meeting a mechanism information filtering condition group as candidate mechanism information to obtain a candidate mechanism information set, wherein the mechanism information filtering condition group comprises: the service type information included in the mechanism information is matched with the target service type information; the organization information includes organization type information that matches the target organization type information.
In an optional implementation of some embodiments, the apparatus 500 further comprises: and screening out candidate mechanism information which does not contain the target menu identification from the candidate mechanism information set to serve as the mechanism information to be pushed, and obtaining the mechanism information set to be pushed.
In an alternative implementation of some embodiments, the creating unit 501 is configured to: acquiring at least one basic menu function number;
and combining the basic menu function labels corresponding to the basic menu function numbers in the at least one basic menu function number to generate the basic menu.
In an optional implementation manner of some embodiments, the information of the mechanism to be pushed includes: the organization number, the target user information includes: the number of the affiliated organization and the level information of the target user; and the determining unit 502 is configured to: for each mechanism information to be pushed in the mechanism information set to be pushed, acquiring target user information meeting a target user information screening condition set from a target user information table, wherein the target user information screening condition set comprises: the mechanism number included by the target user information is the same as the mechanism number included by the mechanism information to be pushed; the target user information includes target user level information identical to the preset level information.
In an optional implementation of some embodiments, optionally, the associating unit 503 is configured to: storing target user authority information to a user authority information table, wherein the target user authority information comprises: target user information and the menu number of the basic menu.
Referring now to FIG. 6, a block diagram of an electronic device (such as computing device 101 shown in FIG. 1)600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having 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 portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: creating a basic menu, wherein the basic menu comprises at least one basic menu function label; determining target user information corresponding to each mechanism information to be pushed in a mechanism information set to be pushed to obtain a target user information set, wherein the mechanism information to be pushed is mechanism information corresponding to a mechanism which is not distributed with the basic menu; and associating the basic menu with each piece of target user information in the target user information set so that a target management terminal allocates the use permission of the basic menu function corresponding to the basic menu function label to a user, wherein the target management terminal is a terminal which has logged in a user account included in the target user information.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a creating unit, a determining unit, and an associating unit. Where the names of these elements do not in some cases constitute a limitation on the elements themselves, for example, a creation element may also be described as an "element creating a base menu".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A menu batch authorization method, comprising:
creating a basic menu, wherein the basic menu comprises at least one basic menu function label;
determining target user information corresponding to each mechanism information to be pushed in a mechanism information set to be pushed to obtain a target user information set, wherein the mechanism information to be pushed is mechanism information corresponding to a mechanism which is not distributed with the basic menu;
and associating the basic menu with each piece of target user information in the target user information set so that a target management terminal allocates the use permission of the basic menu function corresponding to the basic menu function label to a user, wherein the target management terminal is a terminal which has logged in a user account included in the target user information.
2. The method of claim 1, wherein before the determining target user information corresponding to each mechanism information to be pushed in the mechanism information set to be pushed, the method further comprises:
responding to the received target service type information and target mechanism type information, filtering mechanism information meeting a mechanism information filtering condition group as candidate mechanism information to obtain a candidate mechanism information set, wherein the mechanism information filtering condition group comprises: the service type information included in the mechanism information is matched with the target service type information; the organization type information included in the organization information is matched with the target organization type information.
3. The method of claim 2, wherein the method further comprises:
and screening out candidate mechanism information which does not contain the target menu identification from the candidate mechanism information set to serve as the mechanism information to be pushed, and obtaining the mechanism information set to be pushed.
4. The method of claim 1, wherein the creating a base menu comprises:
acquiring at least one basic menu function number;
and combining the basic menu function labels corresponding to the basic menu function numbers in the at least one basic menu function number to generate the basic menu.
5. The method of claim 1, wherein the mechanism to push information comprises: the organization number, the target user information includes: the number of the affiliated organization and the level information of the target user; and
the determining target user information corresponding to each mechanism information to be pushed in the mechanism information set to be pushed to obtain a target user information set includes:
for each mechanism information to be pushed in the mechanism information set to be pushed, acquiring target user information meeting a target user information screening condition set from a target user information table, wherein the target user information screening condition set comprises: the mechanism number included by the target user information is the same as the mechanism number included by the mechanism information to be pushed; the target user information includes target user level information identical to the preset level information.
6. The method of claim 1, wherein the associating the base menu with each target user information in the set of target user information comprises:
storing target user authority information to a user authority information table, wherein the target user authority information comprises: target user information and a menu number of the basic menu.
7. A menu batch authorization apparatus, comprising:
a creating unit configured to create a basic menu, wherein the basic menu contains at least one basic menu function label;
the determining unit is configured to determine target user information corresponding to each piece of mechanism information to be pushed in a mechanism information set to be pushed, so as to obtain the target user information set, wherein the mechanism information to be pushed is mechanism information corresponding to a mechanism which is not distributed with the basic menu;
and the association unit is configured to associate the basic menu with each piece of target user information in the target user information set so that a target management terminal allocates the use permission of the basic menu function corresponding to the basic menu function label to a user, wherein the target management terminal is a terminal which has logged in a user account included in the target user information.
8. The apparatus of claim 7, wherein the association unit is further configured to:
storing target user authority information to a user authority information table, wherein the target user authority information comprises: target user information and a menu number of the basic menu.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1 to 6.
CN202110057947.6A 2021-01-15 2021-01-15 Menu batch authorization method and device, electronic equipment and computer readable medium Pending CN113761553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110057947.6A CN113761553A (en) 2021-01-15 2021-01-15 Menu batch authorization method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110057947.6A CN113761553A (en) 2021-01-15 2021-01-15 Menu batch authorization method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN113761553A true CN113761553A (en) 2021-12-07

Family

ID=78786391

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110057947.6A Pending CN113761553A (en) 2021-01-15 2021-01-15 Menu batch authorization method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113761553A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114969699A (en) * 2022-07-27 2022-08-30 杭州海亮铭优在线教育科技有限公司 Batch permission configuration method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114969699A (en) * 2022-07-27 2022-08-30 杭州海亮铭优在线教育科技有限公司 Batch permission configuration method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110008045B (en) Method, device and equipment for aggregating microservices and storage medium
CN113268761B (en) Information encryption method and device, electronic equipment and computer readable medium
CN111460129A (en) Method and device for generating identification, electronic equipment and storage medium
CN111126948A (en) Processing method and device for approval process
CN112702336A (en) Security control method and device for government affair service, security gateway and storage medium
CN113760991A (en) Data operation method and device, electronic equipment and computer readable medium
CN111857720A (en) Method and device for generating user interface state information, electronic equipment and medium
CN110795741A (en) Method and device for carrying out security processing on data
CN113761553A (en) Menu batch authorization method and device, electronic equipment and computer readable medium
CN112635034A (en) Service authority system, authority distribution method, electronic device and storage medium
US20230368083A1 (en) Method and apparatus for determining reservation information
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
CN114254347A (en) System access method, device, electronic equipment and storage medium
CN114329369A (en) Authority management method and device, electronic equipment and computer readable medium
CN113760927A (en) Data processing method and device, electronic equipment and computer readable medium
CN108683608B (en) Method and device for distributing flow
CN109547552B (en) API request processing method and device, storage medium and electronic equipment
CN113553206A (en) Data event execution method and device, electronic equipment and computer readable medium
CN112115154A (en) Data processing and data query method, device, equipment and computer readable medium
CN111897822A (en) Account state information processing method and device, electronic equipment and storage medium
CN111538717A (en) Data processing method and device, electronic equipment and computer readable medium
CN115114021A (en) Method, device and system for managing service
CN110262756B (en) Method and device for caching data
CN112261659B (en) Control method and device for terminal and server, terminal and storage medium
CN114566244A (en) Electronic medical record quality evaluation method and device and computer readable 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