CN110471728B - Method and related device for displaying interface based on user permission - Google Patents

Method and related device for displaying interface based on user permission Download PDF

Info

Publication number
CN110471728B
CN110471728B CN201910626604.XA CN201910626604A CN110471728B CN 110471728 B CN110471728 B CN 110471728B CN 201910626604 A CN201910626604 A CN 201910626604A CN 110471728 B CN110471728 B CN 110471728B
Authority
CN
China
Prior art keywords
menu button
user
target
display
vector
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.)
Active
Application number
CN201910626604.XA
Other languages
Chinese (zh)
Other versions
CN110471728A (en
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.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China 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 Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910626604.XA priority Critical patent/CN110471728B/en
Publication of CN110471728A publication Critical patent/CN110471728A/en
Application granted granted Critical
Publication of CN110471728B publication Critical patent/CN110471728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a related device based on a user permission display interface, belonging to the technical field of data processing, comprising the following steps: responding to a display request input by a user through a registration account, acquiring a system name of a displayed system contained in the display request, and acquiring importance information of the user and entity type information of the user from registration information corresponding to the registration account; inputting the importance information, the entity type information and the system name into a preset system authority prediction model to determine a target menu button type with display authority in the displayed system and a target function button type under the target menu button type. The invention avoids the user from operating the menu buttons without showing rights and the function buttons under the menu buttons, thereby meeting the complex interface showing requirements.

Description

Method and related device for displaying interface based on user permission
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, an electronic device, and a storage medium for displaying an interface based on user rights.
Background
In the interface display of the system, for different users, there may be a difference between menu buttons to be displayed and function buttons under the menu buttons in the system. For example, in a display scenario of a resource website, there may be a difference between a menu button and a function button under a menu button that need to be displayed in different resource blocks for an unused user.
At present, after a user applies for the authority of a certain system, all menu buttons in the system and all function buttons under all menu buttons are displayed, so that the defect that the user can not only display the menu buttons with the display authority and the function buttons under the menu buttons in the system according to the authority of the user exists.
Disclosure of Invention
Based on the above, the invention provides a method, a device, electronic equipment and a storage medium based on a user permission display interface, which are used for solving the technical problem that a menu button and a function button under a menu button with display permission can not be displayed for a user only according to the permission of the user.
In a first aspect, a method for displaying an interface based on user rights is provided, including:
responding to a display request input by a user through a registration account, acquiring a system name of a displayed system contained in the display request, and acquiring importance information of the user and entity type information of the user from registration information corresponding to the registration account;
inputting the importance information, the entity type information and the system name into a preset system authority prediction model to determine a target menu button type with display authority in the displayed system and a target function button type under the target menu button type;
And displaying a target menu button and a target function button under the target menu button based on the target menu button type with the display authority and the target function button type under the target menu button type in the displayed system.
In a second aspect, there is provided an apparatus for displaying an interface based on user rights, the apparatus comprising:
The first acquisition unit is used for responding to a display request input by a user through a registration account, acquiring a system name of a displayed system contained in the display request, and acquiring importance information of the user and entity type information of the user from registration information corresponding to the registration account;
the first processing unit is used for inputting the importance information, the entity type information and the system name into a preset system authority prediction model to determine a target menu button type with display authority in the displayed system and a target function button type under the target menu button type;
And the display unit is used for displaying the target menu button and the target function button under the target menu button based on the target menu button type with the display authority and the target function button type under the target menu button type in the displayed system.
In a third aspect, an electronic device is provided, comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the steps of the above-described method of displaying an interface based on user rights.
In a fourth aspect, a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the above-described method of displaying an interface based on user rights is provided.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
When a user requests to display a certain system through a registration account number logged in by a client, the client can acquire importance information of the user and information of the entity type of the user from corresponding registration information of the registration account number, predict the information of the entity type of the user and the system name of a displayed system through a system permission prediction model, further adaptively determine and obtain a target menu button type with display permission and a target function button type under the target menu button type of the registration account number in the system, display the target menu button and the target function button under the target menu button based on the target menu button type with display permission and the target function button type under the target menu button in the displayed system, display the menu button and the function button under the menu button with display permission aiming at different display permissions of the user, and not display the menu button and the function button under the menu button without display permission, so that the user can press the function under the menu button and the menu button without display permission to meet the complex display interface requirement.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
FIG. 1 is a flowchart illustrating an implementation of a method for displaying an interface based on user rights in accordance with an exemplary embodiment of the present invention.
FIG. 2 is a flow chart illustrating training of a machine learning model according to an exemplary embodiment of the present invention.
FIG. 3 is a flowchart showing a specific implementation of step S130 in a method for displaying an interface based on user rights according to an exemplary embodiment of the present invention.
Fig. 4 is a flowchart of a method for displaying an interface based on user rights according to another exemplary embodiment of the present invention.
Fig. 5 is a block diagram of an apparatus for displaying an interface based on user rights according to an exemplary embodiment of the present invention.
Fig. 6 is an exemplary block diagram of an electronic device for implementing the above-described method for displaying an interface based on user rights according to an exemplary embodiment of the present invention.
Fig. 7 is a computer readable storage medium for implementing the above-described method for displaying an interface based on user rights according to an exemplary embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the invention.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Referring to fig. 1, a flowchart of an implementation of a method based on a user permission display interface according to an exemplary embodiment of the present invention is shown in fig. 1, where an execution subject of the method based on a user permission display interface in this embodiment is an electronic device, and the electronic device may specifically be a server or a client that manages a plurality of systems, and the method based on a user permission display interface shown in fig. 1 may include the following steps S110 to S130, which are described in detail below:
step S110, responding to a display request input by a user through a registration account, acquiring a system name of a displayed system contained in the display request, and acquiring importance information of the user and entity type information of the user from registration information corresponding to the registration account.
In an embodiment of the present invention, the display request may be a request initiated by a user to display an interface corresponding to a certain system. In the display scenario of the resource website, the system can be a management system corresponding to different resource plate interfaces in the website, for example, a management system corresponding to different resource plate interfaces such as a video resource library, an audio resource library or a text resource library, and the corresponding system name is the name of the resource plate interface; under the display scene of the business interfaces of the enterprise, the system can be a management system corresponding to different business interfaces in the enterprise, and the corresponding system name is the name of the business interface. The above-mentioned presentation request may be triggered by a user manually operating a physical button or virtual control provided by the client device, and when triggered, the user needs to input the system name of the presented system. It should be noted that, the user needs to log in the registered account number registered to trigger the display request.
In addition, when the client applies for the registration account, the client needs to input corresponding registration information to the client, wherein the registration information at least comprises importance information and entity type information, and of course, the registration information can also comprise other information such as names, and the client stores the registration account and the registration information corresponding to the registration account in a database corresponding to the client in an associated manner.
It should be noted that, in the display scenario of the resource website, the importance information may be a member level of the account registered by the user, and the entity type information may be an age level to which the user belongs. In a display scene of a business interface of an enterprise, the importance information can be the position types of staff of the enterprise, and specifically, the position types can be the position types of different grades such as president, manager, staff and the like; the affiliated entity type information may be a department type of the enterprise employee.
When responding to a display request input by a user through a registration account, the client acquires the system name of a displayed system contained in the display request, searches corresponding registration information of the registration account from a corresponding database according to the registered registration account, and acquires importance information of the user and entity type information of the user from the corresponding registration information of the registration account.
And step S120, inputting the importance information, the entity type information and the system name into a preset system authority prediction model to determine and obtain a target menu button type with display authority in the displayed system and a target function button type under the target menu button type.
In one embodiment of the present invention, in a display scenario of a resource website, the menu button is a system menu corresponding to a system command set under a certain resource plate; in the display scene of the business interface of the enterprise, the menu button is a system menu corresponding to the system command set under a certain business interface. The function button below the menu button is the function button of a specific system command in the system menu. Because of the users of different importance information and the users of different entity types information, the menu buttons and the function buttons under the menu buttons which can be displayed in each system are different. Namely, under the display scene of the resource website, the users with different member grades and the users with different age levels can display the same resource plate interface, and the menu buttons and the function buttons under the menu buttons are different; in the display scene of business interfaces of enterprises, enterprise staff of different job types and enterprise staff of different department types, menu buttons capable of being displayed under a certain same business interface and function buttons under menu buttons are different.
The system authority prediction model is obtained by training a machine learning model through training sample data and is used for determining and obtaining a target menu button type with display authority and a target function button type under the target menu button type in a displayed system according to importance information of a user, entity type information of the user and a system name of the system requesting display in the existing registered account. The machine learning model may be a CNN (Convolutional Neural Network ) model, or may also be a deep neural network model, or the like.
In one embodiment of the present invention, as shown in FIG. 2, a process for training a machine learning model according to one embodiment of the present invention includes the steps of:
Step S210, obtaining the importance information and the entity type information of the existing reference user, and the menu button type and the corresponding function button type of the reference user under the menu button type with the display authority in the system corresponding to each system name.
In one embodiment of the invention, in the display scene of the resource website, the reference user is the user registered in the resource website; in the display scene of the business interface of the enterprise, the user is referred to as the existing enterprise staff of the enterprise. In this embodiment, the importance information of the reference user, the entity type information of the reference user, and the menu button type and the corresponding function button type of the reference user with the display authority in different systems are used as training data of the machine learning model to train.
Step S220, generating training sample data based on the job position type of the reference staff, the department type of the reference staff, and the menu button type and the corresponding function button type under the menu button type of the reference staff with the display authority in the system corresponding to each system name.
In one embodiment of the present invention, the importance information of the reference user may be generated into a first vector, and correspondingly, the entity type information of the reference user may be generated into a second vector, the system name corresponding to the system may be generated into a third vector, and the first vector, the second vector and the third vector may be combined to generate a first feature vector.
In addition, a fourth vector and a fifth vector are respectively generated by a menu button type with display permission and a function button type under the menu button type in the system, a second feature vector is generated by combining a third vector, the fourth vector and the fifth vector generated by the system name corresponding to the system, and training sample data are generated according to the first feature vector and the second feature vector.
When the machine training model is trained, the first feature vector and the second feature vector are used as training sample data for training, wherein the process of training the machine training model is to determine the corresponding relation between the first feature vector and the second feature vector.
And step S230, training a machine learning model through the generated training sample data to obtain the system authority prediction model.
In one embodiment of the invention, after the system permission prediction model is obtained through training, the menu button type and the function button type under the menu button type of the user registration account with the display permission in each system can be predicted through the system permission prediction model.
With continued reference to fig. 1, in step S130, a target menu button and a target function button under the target menu button are presented based on the target menu button type and the target function button type under the target menu button type having presentation authority in the presented system.
In one embodiment of the invention, according to the determined type of the target menu button with the display permission and the determined type of the target function button under the type of the target menu button in the displayed system, the target menu button with the display permission and the target function button under the target menu button are displayed for the registered account in a system page. It can be understood that the menu buttons and the function buttons without the authority are not displayed, namely the menu buttons and the function buttons without the authority are hidden; specifically, when all the function buttons under a certain menu button do not have the display right, the menu button and all the function buttons under the menu button are not displayed; when a part of function buttons under a certain menu button or all function buttons under a certain menu button have display rights, the menu button needs to be displayed, in addition, the function buttons with the display rights under the menu button also need to be displayed, and the function buttons without the display rights under the menu button do not need to be displayed.
Referring to fig. 3, a flowchart of a specific implementation of step S130 in a method based on a user permission display interface according to an exemplary embodiment of the present invention is shown, in this embodiment, step S130 of displaying a target menu button and a target function button under the target menu button based on the target menu button type and the target function button type with a display permission in the displayed system includes:
Step S1301, based on the target menu button type with the display authority and the target function button type under the target menu button type in the displayed system, acquiring a target menu button resource and a target function button resource under the target menu button type from a preset resource library.
Step S1302, based on the target menu button resource and the target function button resource under the target menu button, displaying the target menu button and the target function button under the target menu button on a display interface.
In step S1301, the client determines, according to the system permission prediction model, a target menu button type with display permission and a target function button type under the target menu button type in a system for requesting display of the registered account, and obtains corresponding target menu button resources and target function button resources under the target menu button type from a preset resource library. The preset resource library can be a resource library in which the client stores all menu button resources corresponding to each system and all function button resources under each menu button type.
In step S1302, the client displays the target menu button and the target function button under the target menu button on the display interface according to the acquired target menu button resource and the target function button resource under the target menu button.
According to the method, when a user requests to display a certain system through a registration account logged in by the client, the client can acquire importance information of the user and entity type information of the user in corresponding registration information of the registration account, predict the function buttons with display authorities and the function buttons with menu buttons without display authorities according to the importance information of the user, the entity type information of the user and the system name of the displayed system through a system authority prediction model, further adaptively determine and obtain the target menu button type with display authorities and the target function button type with target menu buttons in the system of the registration account, display the target menu buttons and the target function buttons with target menu buttons based on the target menu button type with display authorities and the target function button type with target menu buttons in the displayed system, and accordingly display the menu buttons with display authorities and the function buttons with display authorities for different users in interface display of the interface display authorities, and the function buttons without display the menu buttons with display authorities and the function buttons with menu buttons with no display authorities in a self-adaptive manner, and the user is prevented from pressing down the functions without display authorities, and the complex interface display requirements are met.
Referring to fig. 4, fig. 4 is a flowchart illustrating an implementation of a method based on a user rights display interface according to another exemplary embodiment of the present invention, in an embodiment, before the step S110 of obtaining a system name of a displayed system included in a display request in response to the display request input by a user through a registration account, and obtaining importance information of the user and information of a type of entity to which the user belongs from registration information corresponding to the registration account, the method may further include the steps of:
step S107, receiving the registered account number and the password input by the user.
In step S107, before a user initiates a display request through a client, the user needs to log in a registration account in the client to obtain a display permission of the system, and when logging in, the user inputs a corresponding registration account and password through a login interface.
Step S108, judging whether the input password is consistent with the stored password corresponding to the registration account number.
In step S108, the client needs to verify the registered account and the password input in the login interface, where the client stores the registered account and the password of the user in the local database. When receiving a registration account number and a password input by a user on a login interface, the client firstly determines whether the registration account number input on the login interface exists according to the registration account number stored in a local database, if so, compares the password input on the login interface with the password corresponding to the registration account number stored in the local database, and judges whether the password input on the login interface is consistent with the password corresponding to the registration account number stored in the local database. If the password input in the login interface is consistent with the password corresponding to the registration account stored in the local database, checking the password passing; otherwise, the verification is not passed.
Step S109, if the input password is consistent with the stored password corresponding to the registration account, determining that the registration account has the access right of the corresponding system.
In step S109, if the password input in the login interface is consistent with the password corresponding to the login account stored in the local database, it is determined that the login account has the access right of the corresponding system, and a notification of successful login of the login account may be displayed in the login interface to prompt the user.
With continued reference to fig. 4, before the step S107 of receiving the employee account and password input by the employee, the method may further include the following steps:
Step S104, responding to the registration request of the application registration account number input by the user, and distributing the registration account number and the password for the user.
In step S104, the user needs to register the registered account before the client logs in the registered account, so as to trigger the display request. When registering the registration account, the client inputs a registration request for applying for registering the account to the client, and the registration request can be triggered by a virtual control for registering the account provided by a login interface of the client by the user.
And the client side responds to a registration request of the application registration account number input by the user and distributes the registration account number and the password for the user. Of course, only the registration account number may be allocated, and the user may input the corresponding password by customizing the virtual key provided by the client in the login interface.
Step S105, receiving registration information input by the user, wherein the registration information comprises importance information of the user and entity type information of the user.
In step S105, when registering the registered account, the user is required to input corresponding registration information, where the registration information includes at least importance information of the user and information of the entity type of the user, and may further include other information such as a name. Specifically, after the client side responds to the registration request of the application registration account number input by the user and distributes the registration account number and the password for the user, the display interface of the client side can jump to a registration page for inputting registration information, and in the registration page, the user inputs corresponding information such as importance information of the user, information of the type of the entity of the user, name and the like.
And step S106, correspondingly storing the registration account number, the password and the registration information allocated for the user.
In step S106, the client correspondingly stores the allocated registration account number, password and input registration information, specifically, may correspondingly store the registration account number, password and input registration information in a corresponding database.
Referring to fig. 5, fig. 5 is an apparatus based on a user permission display interface according to an exemplary embodiment of the present invention, and the apparatus based on a user permission display interface may be integrated in the above-mentioned electronic device, and may specifically include a first obtaining unit 110, a first processing unit 120, and a display unit 130.
The first obtaining unit 110 is configured to obtain, in response to a display request input by a user through a registration account, a system name of a displayed system included in the display request, and obtain importance information of the user and entity type information of the user from registration information corresponding to the registration account.
The first processing unit 120 is configured to input the importance information, the entity type information, and the system name into a preset system authority prediction model to determine a target menu button type with display authority in the displayed system and a target function button type under the target menu button type.
And a display unit 130, configured to display a target menu button and a target function button under the target menu button based on the target menu button type having display authority and the target function button type under the target menu button type in the displayed system.
Optionally, the display unit includes:
The acquisition subunit is used for acquiring target menu button resources and target function button resources under the target menu button types from a preset resource library based on the target menu button types with the display rights and the target function button types under the target menu button types in the displayed system.
And the display subunit is used for displaying the target menu button and the target function button under the target menu button on a display interface based on the target menu button resource and the target function button resource under the target menu button.
Optionally, the device for displaying an interface based on the user authority further comprises:
The second acquisition unit is used for acquiring the importance information and the entity type information of the existing reference user, and the menu button type and the corresponding function button type under the menu button type of the reference user with the display permission in the system corresponding to each system name.
The generation unit is used for generating training sample data based on the importance information of the reference user, the entity type information of the reference user and the menu button type with the display authority and the corresponding function button type under the menu button type in the system corresponding to each system name of the reference user.
And the training unit is used for training the machine learning model through the generated training sample data to obtain the system authority prediction model.
Optionally, the device for displaying an interface based on the user authority further comprises:
And the first receiving unit is used for receiving the registered account number and the password input by the user.
And the judging unit is used for judging whether the input password is consistent with the stored password corresponding to the registration account.
And the second processing unit is used for determining that the registered account has the access right of the corresponding system if the input password is consistent with the stored password corresponding to the registered account.
Optionally, the device for displaying the interface based on the user authority further comprises.
And the distribution unit is used for responding to the registration request of the application registration account number input by the user and distributing the registration account number and the password to the user.
And the second receiving unit is used for receiving the registration information input by the user, wherein the registration information comprises importance information of the user and entity type information of the user.
And the storage unit is used for correspondingly storing the registration account number and the password allocated for the user and the registration information.
The implementation process of the functions and roles of each module in the device is specifically detailed in the implementation process of the corresponding steps in the method based on the user permission display interface, and is not repeated here.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order, or that all illustrated steps be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer device capable of implementing the above method is also provided.
Those skilled in the art will appreciate that the various aspects of the invention may be implemented as a system, method, or program product. Accordingly, aspects of the invention may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
Referring to fig. 6, fig. 6 is an exemplary block diagram of an electronic device for implementing the above-described method for displaying an interface based on user rights according to an exemplary embodiment of the present invention. The computer device 400 shown in fig. 6 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 6, computer device 400 is in the form of a general purpose computing device. Components of computer device 400 may include, but are not limited to: the at least one processing unit 410, the at least one memory unit 420, and a bus 430 connecting the various system components, including the memory unit 420 and the processing unit 410.
Wherein the storage unit stores program code that is executable by the processing unit 410 such that the processing unit 410 performs steps according to various exemplary embodiments of the present invention described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 410 may perform step S110 as shown in fig. 1: responding to a display request input by a user through a registration account, acquiring a system name of a displayed system contained in the display request, and acquiring importance information of the user and entity type information of the user from registration information corresponding to the registration account; step S120: inputting the importance information, the entity type information and the system name into a preset system authority prediction model to determine a target menu button type with display authority in the displayed system and a target function button type under the target menu button type; step S130: and displaying a target menu button and a target function button under the target menu button based on the target menu button type with the display authority and the target function button type under the target menu button type in the displayed system.
The storage unit 420 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 4201 and/or cache memory 4202, and may further include Read Only Memory (ROM) 4203.
The storage unit 420 may also include a program/utility 4204 having a set (at least one) of program modules 4205, such program modules 4205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 430 may be a local bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or using any of a variety of bus architectures.
The computer device 400 may also communicate with one or more external devices 600 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the computer device 400, and/or any devices (e.g., routers, modems, etc.) that enable the computer device 400 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 440. Moreover, computer device 400 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 460. As shown, the network adapter 460 communicates with other modules of the computer device 400 over the bus 430. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with computer device 400, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification is also provided. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention as described in the "exemplary methods" section of this specification, when said program product is run on the terminal device.
Referring to fig. 7, fig. 7 is a computer-readable storage medium for implementing the above-described user rights display interface-based method according to an exemplary embodiment of the present invention. Fig. 7 depicts a program product 500 for implementing the above-described method according to an embodiment of the invention, which may employ a portable compact disc read-only memory (CD-ROM) and comprise program code, and which may be run on a computer device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a 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.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a 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 readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like 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 computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described drawings are only schematic illustrations of processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (8)

1. A method for displaying an interface based on user rights, comprising:
responding to a display request input by a user through a registration account, acquiring a system name of a displayed system contained in the display request, and acquiring importance information of the user and entity type information of the user from registration information corresponding to the registration account;
Inputting the importance information, the entity type information and the system name into a preset system authority prediction model to determine a target menu button type with display authority in the displayed system and a target function button type under the target menu button type, wherein the system authority prediction model is trained and obtained by the following modes: obtaining importance information and affiliated entity type information of a reference user, and a menu button type and a function button type under the menu button type of display permission of the reference user in a system corresponding to each system name, generating a first vector from the importance information of the reference user, generating a second vector from the affiliated entity type information of the reference user, generating a third vector from the system name corresponding to the system, combining the first vector, the second vector and the third vector to generate a first feature vector, respectively generating a fourth vector and a fifth vector from the menu button type and the function button type under the menu button type of the display permission in the system, combining the third vector, the fourth vector and the fifth vector to generate a second feature vector, generating training sample data according to the first feature vector and the second feature vector, and training a machine learning model according to the generated training sample data to obtain a system permission prediction model;
And displaying a target menu button and a target function button under the target menu button based on the target menu button type with the display authority and the target function button type under the target menu button type in the displayed system.
2. The method of claim 1, wherein the presenting a target menu button and a target function button under the target menu button based on the target menu button type and the target function button type under the target menu button type with presentation rights in the presented system comprises:
Acquiring target menu button resources and target function button resources under the target menu button types from a preset resource library based on the target menu button types with display rights and the target function button types under the target menu button types in the displayed system;
and displaying the target menu button and the target function button under the target menu button on a display interface based on the target menu button resource and the target function button resource under the target menu button.
3. The method according to claim 1, wherein before the obtaining, in response to a presentation request input by a user through a registration account, a system name of a presented system included in the presentation request, and obtaining importance information of the user and information of a type of entity of the user from registration information corresponding to the registration account, the method includes:
receiving the registered account number and the password input by the user;
Judging whether the input password is consistent with the stored password corresponding to the registration account;
If the input password is consistent with the stored password corresponding to the registration account, determining that the registration account has the access right of the corresponding system.
4. A method according to claim 3, wherein prior to said receiving said user entered registered account and password, said method comprises:
responding to a registration request of an application registration account number input by the user, and distributing the registration account number and the password to the user;
Receiving registration information input by the user, wherein the registration information comprises importance information of the user and entity type information of the user;
and correspondingly storing the registration account number, the password and the registration information which are allocated for the user.
5. An apparatus for displaying an interface based on user rights, comprising:
The first acquisition unit is used for responding to a display request input by a user through a registration account, acquiring a system name of a displayed system contained in the display request, and acquiring importance information of the user and entity type information of the user from registration information corresponding to the registration account;
The first processing unit is configured to input the importance information, the entity type information and the system name into a preset system authority prediction model to determine a target menu button type with display authority in the displayed system and a target function button type under the target menu button type, where the system authority prediction model is obtained through training in the following manner: obtaining importance information and affiliated entity type information of a reference user, and a menu button type and a function button type under the menu button type of display permission of the reference user in a system corresponding to each system name, generating a first vector from the importance information of the reference user, generating a second vector from the affiliated entity type information of the reference user, generating a third vector from the system name corresponding to the system, combining the first vector, the second vector and the third vector to generate a first feature vector, respectively generating a fourth vector and a fifth vector from the menu button type and the function button type under the menu button type of the display permission in the system, combining the third vector, the fourth vector and the fifth vector to generate a second feature vector, generating training sample data according to the first feature vector and the second feature vector, and training a machine learning model according to the generated training sample data to obtain a system permission prediction model;
And the display unit is used for displaying the target menu button and the target function button under the target menu button based on the target menu button type with the display authority and the target function button type under the target menu button type in the displayed system.
6. The apparatus of claim 5, wherein the presentation unit comprises:
The acquisition subunit is used for acquiring target menu button resources and target function button resources under the target menu button types from a preset resource library based on the target menu button types with the display rights and the target function button types under the target menu button types in the displayed system;
and the display subunit is used for displaying the target menu button and the target function button under the target menu button on a display interface based on the target menu button resource and the target function button resource under the target menu button.
7. An electronic device comprising a memory and a processor, the memory having stored therein computer readable instructions that, when executed by the processor, cause the processor to perform the method of any of claims 1-4.
8. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the method of any of claims 1 to 4.
CN201910626604.XA 2019-07-11 2019-07-11 Method and related device for displaying interface based on user permission Active CN110471728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910626604.XA CN110471728B (en) 2019-07-11 2019-07-11 Method and related device for displaying interface based on user permission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910626604.XA CN110471728B (en) 2019-07-11 2019-07-11 Method and related device for displaying interface based on user permission

Publications (2)

Publication Number Publication Date
CN110471728A CN110471728A (en) 2019-11-19
CN110471728B true CN110471728B (en) 2024-05-17

Family

ID=68508054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910626604.XA Active CN110471728B (en) 2019-07-11 2019-07-11 Method and related device for displaying interface based on user permission

Country Status (1)

Country Link
CN (1) CN110471728B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158812B (en) * 2019-12-17 2022-09-09 深圳平安医疗健康科技服务有限公司 Interface display method and device based on interface prediction model and computer equipment
CN111711529B (en) * 2020-06-12 2022-03-15 腾讯科技(深圳)有限公司 Group operation processing method, device, system, equipment and storage medium
CN112199255A (en) * 2020-10-15 2021-01-08 Oppo广东移动通信有限公司 Authority use monitoring method, device, equipment and storage medium
CN113326991B (en) * 2021-06-24 2023-04-07 深圳平安智汇企业信息管理有限公司 Automatic authorization method, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239694A (en) * 2017-05-27 2017-10-10 武汉大学 A kind of Android application permissions inference method and device based on user comment
CN109753783A (en) * 2018-11-28 2019-05-14 北京友信科技有限公司 A kind of single-point logging method based on machine learning, device and computer readable storage medium
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10084794B2 (en) * 2015-06-02 2018-09-25 ALTR Solutions, Inc. Centralized access management of web-based or native applications

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239694A (en) * 2017-05-27 2017-10-10 武汉大学 A kind of Android application permissions inference method and device based on user comment
CN109753783A (en) * 2018-11-28 2019-05-14 北京友信科技有限公司 A kind of single-point logging method based on machine learning, device and computer readable storage medium
CN109784033A (en) * 2018-12-13 2019-05-21 平安科技(深圳)有限公司 Operating right Dynamic Configuration and relevant device based on page menus

Also Published As

Publication number Publication date
CN110471728A (en) 2019-11-19

Similar Documents

Publication Publication Date Title
CN110471728B (en) Method and related device for displaying interface based on user permission
CN110612545B (en) Self-learning self-adaptive routing system
CN112036824A (en) Business approval method, system, storage medium and electronic equipment
US20160381000A1 (en) Session activity tracking for session adoption across multiple data centers
JP6442073B2 (en) Recommended registry based on customer relationship management data
CN107528830B (en) Account login method, system and storage medium
CA2948649A1 (en) Integrated learning system
CN103905651A (en) Method and system for application permission management in intelligent terminal
CN111159534A (en) User portrait based aid decision making method and device, equipment and medium
CN111833507B (en) Visitor authentication method, device, equipment and computer readable storage medium
CN112055064B (en) Data synchronization method, device, equipment and storage medium
CN113076104A (en) Page generation method, device, equipment and storage medium
CN113079164B (en) Remote control method and device for bastion machine resources, storage medium and terminal equipment
US11082514B2 (en) Push notification management
CN108173875B (en) Page login method and device, electronic equipment and storage medium
CN109726390B (en) Document processing method, device, electronic equipment and storage medium
US11206300B2 (en) Providing instructions during remote viewing of a user interface
CN111586177B (en) Cluster session loss prevention method and system
US11283806B2 (en) Adaptive security system
CN112130781A (en) Log printing method and device, electronic equipment and storage medium
CN109218024B (en) Method and device for controlling authority
CN110674426B (en) Webpage behavior reporting method and device
US20150229768A1 (en) Dynamic agent workflow based on contact center load
US20220191183A1 (en) Method and apparatus for providing user profile
US10303790B2 (en) Processing un-typed triple store data

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
GR01 Patent grant
GR01 Patent grant