A permission control method and related equipment

By receiving user text through natural language to generate permission configuration requirements, monitoring and executing operations, it solves the problem of ordinary users having difficulty understanding permission configuration and improves user experience.

CN113704743BActive Publication Date: 2025-09-19ZHUHAI YOUTE ENTERPRISE MANAGEMENT CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010446030.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-05-22
Publication Date
2025-09-19
Estimated Expiration
2040-05-22

AI Technical Summary

Technical Problem

When ordinary users configure permissions, they have difficulty understanding professional configuration items, which increases the difficulty of operation and causes a poor user experience.

Method used

Receive user input text through natural language, generate permission configuration requirements, monitor user operation instructions, determine control results based on configuration requirements and instructions, and perform corresponding operations.

Benefits of technology

It reduces the difficulty of permission configuration for ordinary users and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113704743B_ABST
    Figure CN113704743B_ABST
Patent Text Reader

Abstract

This application provides a permission control method and related equipment that can set permission control through natural language, reducing the difficulty of permission configuration for ordinary users. The method includes: receiving natural language text corresponding to a target user; generating permission configuration requirements corresponding to the natural language text; monitoring the target user's operation instructions; determining a control result based on the operation instructions and the permission configuration requirements; and performing corresponding operations based on the control result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a permission control method and related equipment. Background Art

[0002] The current permission setting systems basically adopt professional function setting methods.

[0003] However, when some ordinary users want to personalize permissions, they need to understand some professional configuration items of the permission system. Ordinary users often have difficulty understanding the permission configuration items, which invisibly increases the difficulty of permission configuration for ordinary users and results in a poor user experience. Summary of the Invention

[0004] The present application provides a permission control method and related equipment, which can configure permission control through natural language, reducing the difficulty of permission configuration for ordinary users.

[0005] In a first aspect, the present application provides a permission control method, which is applied to a permission control system, comprising:

[0006] Receive natural language text corresponding to the target user;

[0007] Generating permission configuration requirements corresponding to the natural language text;

[0008] Monitoring the target user's operation instructions;

[0009] Determine a control result according to the operation instruction and the permission configuration requirement;

[0010] Execute corresponding operations according to the control result.

[0011] Optionally, generating the permission configuration requirement corresponding to the natural language text includes:

[0012] Determining a permission language corresponding to the natural language text, wherein the natural language text conforms to preset grammatical rules;

[0013] The permissions of the target user are set according to the permission language to generate the permission configuration requirement.

[0014] Optionally, determining the permission language corresponding to the natural language text includes:

[0015] Configure permission term base;

[0016] The natural language text is matched according to the rights term library to obtain the rights language.

[0017] Optionally, the permission configuration requirement includes permission control instructions and target permission description information, and performing corresponding operations according to the control result includes:

[0018] When the operation instruction matches the permission control instruction, a corresponding operation is performed based on the target permission description information.

[0019] Optionally, performing a corresponding operation according to the control result includes:

[0020] When the operation instruction does not match the authority control instruction, a prompt message is issued.

[0021] A second aspect of the present application provides a permission control device, which is applied to a permission control system, including:

[0022] A receiving unit, configured to receive a natural language text corresponding to a target user;

[0023] A generating unit, configured to generate a permission configuration requirement corresponding to the natural language text;

[0024] A monitoring unit, configured to monitor the target user's operation instructions;

[0025] a determining unit, configured to determine a control result according to the operation instruction and the permission configuration requirement;

[0026] An execution unit is used to execute corresponding operations according to the control result.

[0027] Optionally, the generating unit is specifically configured to:

[0028] Determining a permission language corresponding to the natural language text, wherein the natural language text conforms to preset grammatical rules;

[0029] The permissions of the target user are set according to the permission language to generate the permission configuration requirement.

[0030] Optionally, the generating unit determines the permission language corresponding to the natural language text includes:

[0031] Configure permission term base;

[0032] The natural language text is matched according to the permission term library to obtain the permission language.

[0033] Optionally, the permission configuration requirement includes a permission control instruction and target permission description information, and the execution unit is specifically configured to:

[0034] When the operation instruction matches the permission control instruction, a corresponding operation is performed based on the target permission description information.

[0035] Optionally, the execution unit is further specifically configured to:

[0036] When the operation instruction does not match the authority control instruction, a prompt message is issued.

[0037] A third aspect of the present application provides a permission control device, which includes at least one connected processor, memory and transceiver, wherein the memory is used to store program code, and the program code is loaded and executed by the processor to implement the steps of the permission control method described above.

[0038] A fourth aspect of the present application provides a computer-readable storage medium comprising instructions, which, when executed on a computer, enables the computer to execute the steps of the above-mentioned permission control method.

[0039] In summary, it can be seen that in the embodiments provided by this application, user permissions can be set through natural language, corresponding permission configuration requirements can be generated, user operation instructions can be monitored, corresponding control results can be generated, and corresponding operations can be performed based on the control results. In this way, permission control can be configured through natural language, reducing the difficulty of permission configuration for ordinary users. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flowchart of a method for controlling permissions provided in an embodiment of the present application;

[0041] Figure 2 A schematic diagram of a user language configuration interface provided in an embodiment of the present application;

[0042] Figure 3 A schematic diagram of a virtual structure of a control device for permissions provided in an embodiment of the present application;

[0043] Figure 4 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0044] Figure 5 A schematic diagram of the hardware structure of the server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0046] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable under appropriate circumstances so that the embodiments described herein can be implemented in a sequence other than the content illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The division of modules that appears in this application is only a logical division. In actual application, there can be other division methods when implemented. For example, multiple modules can be combined into or integrated into another system, or some feature vectors can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. Moreover, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed into multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.

[0047] The following describes the method for controlling the permissions of the present application from the perspective of a permission control device. The permission control device may be a terminal device, a server, or a service unit in a server, without specific limitation.

[0048] See also Figure 1 , Figure 1 A flowchart of a method for controlling permissions provided in an embodiment of the present application includes:

[0049] 101. Receive natural language text corresponding to the target user.

[0050] In this embodiment, when permission information needs to be configured for a target user, the permission control device may receive natural language text corresponding to the target user. Specifically, the permission control device may visually display a user language configuration interface and then receive the target user's natural language text input through the user language configuration interface. It is understood that the display method of the user language configuration interface is not specifically limited herein; for example, a text box for input may be displayed.

[0051] See also Figure 2 , Figure 2This is a schematic diagram of the user language configuration interface provided in an embodiment of the present application, wherein 201 is a text box, and the permission control device can receive the natural language text corresponding to the target user through the text box, for example, [Today at 12 o'clock, Aunt Li unlocked the door once], where [Aunt Li] is the target user. Correction 202 can also be set to correct the natural language text in the text box 201 and output the corrected text, or output an error message when correction is not possible.

[0052] 102. Generate permission configuration requirements corresponding to the natural language text.

[0053] In this embodiment, after receiving the natural language text corresponding to the target user, the permission control device can generate the permission configuration requirements corresponding to the natural language text. The following is a detailed description:

[0054] In one embodiment, the permission control device generates permission configuration requirements corresponding to the natural language text, including:

[0055] Determining the permission language corresponding to the natural language text, where the natural language text conforms to preset grammatical rules;

[0056] Set the permissions for the target user according to the permission language to generate permission configuration requirements.

[0057] In this embodiment, the permission control device may first configure a permission term library, wherein the permission term library includes relevant language for the permission industry. The relevant language for the industry (industry terminology) is a list of terms accumulated by industry experts or obtained through user feedback, forming a permission term library. The permission term library includes permission-related terms, and of course, may also include other related terms. The permission-related terms include, but are not limited to, template terms such as "transfer xx permission," "authorize xx permission," "reclaim xx permission," and "time + target user + device + operation + time limit," as well as permission terms such as time (e.g., "today at 12 o'clock"), target user (e.g., "Auntie Li"), operation (e.g., "unlock"), device (e.g., "gate"), and time limit (e.g., "once"). It should be noted that the permission term library can be configured only once and supplemented based on user input after each permission configuration operation is performed on the user. Alternatively, it can be configured each time the user performs a permission configuration operation, without further limitation.

[0058] Afterwards, the natural language text is matched with the template terms in the permission term library to obtain the permission language corresponding to the natural language text. Therefore, the input natural language text is also required to conform to the preset grammatical rules, that is, the rules of the template terms (such as the above-mentioned "time + target user + device + operation + time limit"). When configuring permissions for the target user, the user language configuration interface is used to input the natural language text. This means that when the user is performing permission setting control, he can use natural language to set the control requirements; for example: input the natural language text [Today at 12 o'clock, Aunt Li unlocks the door once], and then the permission control device calls the permission term library to match the natural language text input by the user to obtain the permission language, that is, the natural language text input by the user is matched with the template terms in the permission term library to obtain the permission language "Today at 12 o'clock", "Aunt Li", "Door", "Unlock", "Once". The permission control device can be connected to the natural language compiler input by the user (wherein, the compiler is used to compile the natural language text input by the user, and the process of matching the natural language text according to the permission terminology library to obtain the corresponding permission language belongs to the compilation process. After compilation, an executable file is generated. The executable file consists of bytecode and permission description file. The permission description file records who has permission, and the bytecode sets the scenarios in which permission judgment is triggered) and a virtual machine (the virtual machine is used to execute executable files).

[0059] After obtaining the permission language, the permissions of the target user can be set according to the permission language to generate permission configuration requirements, that is, to implement the setting of permission function parameters of the template term corresponding to the natural language. The permission function is an interface (entry for inputting parameters) provided by the permission control system to the user to implement basic permission control, that is, which permission function in the permission control system should be parameterized to configure the permissions of the target user. For example, the natural language text [At 12 o'clock today, Aunt Li unlocks the door once] grants [Aunt Li] the permission to [Unlock the door once at 12 o'clock today]. At this time, the parameters of the corresponding controlled interface can be set. [Aunt Li], [12 o'clock today], etc. can be used as parameters. That is, by setting the parameters of the controlled interface, the relevant function can be called to perform the corresponding operation when in use, such as calling the relevant function to implement [At 12 o'clock today, Aunt Li unlocks the door once].

[0060] 103. Monitor the target user’s operation instructions.

[0061] In this embodiment, the authority control device may monitor the target user's operation instructions, and the manner of monitoring the target user's operation instructions is not specifically limited herein.

[0062] In one embodiment, the operation for generating the target user's operation instruction includes at least one of a gesture operation, a sliding operation, a click operation, and a voice control operation. For example, when the user performs a click operation, the permission control device can receive the click operation. At this time, the click operation generates the target user's operation instruction. That is to say, the operation instruction can be defined in advance, for example, the sliding operation is defined in advance as the operation for generating the target user's operation instruction (such as a left slide operation, a right slide operation, an up slide operation, and a down slide operation, etc.), or the click operation is defined as the operation for generating the target user's operation instruction (such as a single-click operation or a double-click operation, etc.), or the gesture operation is defined as the operation for generating the target user's operation instruction (such as swinging the wrist or arm to the left, swinging the wrist or arm to the right, such as a four-finger pinching operation or a three-finger up slide operation, etc.), or the voice control operation is defined as the operation for generating the target user's operation instruction (such as receiving the sound corresponding to the target user and the permission). The above is only an example and does not represent a limitation on the operation for generating the target user's operation instruction.

[0063] 104. Determine the control results based on the operation instructions and authority configuration requirements.

[0064] In this embodiment, the permission configuration requirements include permission control instructions and target permission description information. The permission control instruction refers to the operation instruction that the target user should execute. The target permission description information refers to which permissions the target user has. When the target user executes the permission control instruction, the operation corresponding to the permission control instruction will be executed. When the user does not execute the permission control instruction, which operations will be executed. Among them, the target permission description information can exist in the form of a file, such as a permission description file. The permission description file is a control parameter table of permissions, which records who has what permissions to perform which operations on which functions. The permission description file is an input data of the virtual machine. The virtual machine has integrated the parsing specification of this input data. After obtaining the permission description file, it can be identified to obtain the corresponding description content. The permission control device parses the permission description information through the virtual machine, and judges the permissions of the corresponding controlled interface to obtain a control result. The control result indicates whether the target user has the permission to call the corresponding controlled interface.

[0065] 105. Perform corresponding operations based on the control results.

[0066] In this embodiment, the permission control device can match the target user's operation instruction with the permission control instruction. When the match is successful, the corresponding operation is performed based on the target permission description information. That is, when the match is successful, the target permission description information is parsed to obtain the content corresponding to the target permission description information, such as "Auntie Li, you have permission to open the door once at 12:00 today." The corresponding operation is then performed. In other words, when it is detected that the operation behavior of "Auntie Li" is "Open the door at 12:00 today," the corresponding controlled interface is called to open the door.

[0067] When the matching is unsuccessful, a prompt message is issued, for example, an alarm sound can be directly issued, or a prompt message can be sent to the administrator's mobile phone. Of course, there can also be other prompt methods, which are not specifically limited.

[0068] In summary, it can be seen that in the embodiments provided by this application, user permissions can be set through natural language, corresponding permission configuration requirements can be generated, user operation instructions can be monitored, corresponding control results can be generated, and corresponding operations can be performed based on the control results. In this way, permission control can be configured through natural language, reducing the difficulty of permission configuration for ordinary users.

[0069] The above describes the present application from the perspective of a method for controlling permissions, and the following describes the present application from the perspective of a device for controlling permissions.

[0070] See also Figure 3 , Figure 3 A virtual structural diagram of a permission control device provided in an embodiment of the present application, which is applied to a permission control system, includes:

[0071] A receiving unit 301 is configured to receive a natural language text corresponding to a target user;

[0072] A generating unit 302 is configured to generate a permission configuration requirement corresponding to the natural language text;

[0073] A monitoring unit 303 is used to monitor the operation instructions of the target user;

[0074] A determining unit 304 is configured to determine a control result according to the operation instruction and the permission configuration requirement;

[0075] The execution unit 305 is configured to execute corresponding operations according to the control result.

[0076] Optionally, the generating unit 302 is specifically configured to:

[0077] Determining a permission language corresponding to the natural language text, wherein the natural language text conforms to preset grammatical rules;

[0078] The permissions of the target user are set according to the permission language to generate the permission configuration requirement.

[0079] Optionally, the generating unit 302 determines that the permission language corresponding to the natural language text includes:

[0080] Configure permission term base;

[0081] The natural language text is matched according to the permission term library to obtain the permission language.

[0082] Optionally, the permission configuration requirement includes a permission control instruction and target permission description information, and the execution unit 305 is specifically configured to:

[0083] When the operation instruction matches the permission control instruction, a corresponding operation is performed based on the target permission description information.

[0084] Optionally, the execution unit 305 is further specifically configured to:

[0085] When the operation instruction does not match the authority control instruction, a prompt message is issued.

[0086] In summary, it can be seen that in the embodiments provided by this application, user permissions can be set through natural language, corresponding permission configuration requirements can be generated, user operation instructions can be monitored, corresponding control results can be generated, and corresponding operations can be performed based on the control results. In this way, permission control can be configured through natural language, reducing the difficulty of permission configuration for ordinary users.

[0087] The present application also provides another permission control device, such as Figure 4 For ease of explanation, only the parts related to the embodiments of this application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of this application. The control device of the permission can include any terminal device such as a mobile phone, tablet computer, PDA (Personal Digital Assistant), POS (Point of Sales), car computer, etc. Take the mobile phone as an example:

[0088] Figure 4 The block diagram shows a partial structure of a mobile phone related to the terminal provided in the embodiment of the present application. Figure 4The mobile phone includes components such as a radio frequency (RF) circuit 410, a memory 420, an input unit 430, a display unit 440, a sensor 450, an audio circuit 460, a wireless fidelity (WiFi) module 470, a processor 480, and a power supply 490. Those skilled in the art will understand that Figure 4 The mobile phone structure shown in the figure does not constitute a limitation to the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0089] The following combination Figure 4 A detailed introduction to the various components of a mobile phone:

[0090] The RF circuit 410 can be used to receive and send signals during information transmission or calls. In particular, after receiving the downlink information from the base station, it is sent to the processor 480 for processing; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 410 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc. In addition, the RF circuit 410 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.

[0091] Memory 420 can be used to store software programs and modules. Processor 480 executes the various functional applications and data processing of the mobile phone by running the software programs and modules stored in memory 420. Memory 420 may mainly include a program storage area and a data storage area. The program storage area may store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area may store data created based on the use of the mobile phone (such as audio data, a phone book, etc.). In addition, memory 420 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.

[0092] The input unit 430 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile phone. Specifically, the input unit 430 may include a touch panel 431 and other input devices 432. The touch panel 431, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by the user using any suitable object or accessory such as a finger, stylus, etc. on or near the touch panel 431) and drive the corresponding connection device according to a pre-set program. Optionally, the touch panel 431 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch direction, detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device and converts it into touch point coordinates, which are then sent to the processor 480, and can receive commands sent by the processor 480 and execute them. In addition, the touch panel 431 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 431, the input unit 430 may further include other input devices 432. Specifically, the other input devices 432 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, power keys, etc.), a trackball, a mouse, and a joystick.

[0093] The display unit 440 can be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 440 may include a display panel 441. Optionally, the display panel 441 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel 431 may cover the display panel 441. When the touch panel 431 detects a touch operation on or near it, it is transmitted to the processor 480 to determine the type of touch event. Subsequently, the processor 480 provides corresponding visual output on the display panel 441 according to the type of touch event. Although in Figure 4 In the embodiment, the touch panel 431 and the display panel 441 are used as two independent components to realize the input and output functions of the mobile phone, but in some embodiments, the touch panel 431 and the display panel 441 can be integrated to realize the input and output functions of the mobile phone.

[0094] The mobile phone may also include at least one sensor 450, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 441 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 441 and / or the backlight when the mobile phone is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that the mobile phone can also be configured with, such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0095] Audio circuit 460, speaker 461, and microphone 462 provide an audio interface between the user and the phone. Audio circuit 460 converts received audio data into electrical signals and transmits them to speaker 461, which then converts them into sound signals for output. Microphone 462, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 460 and converted into audio data. The audio data is then processed by processor 480 and transmitted to, for example, another phone via RF circuit 410, or stored in memory 420 for further processing.

[0096] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse the web and access streaming media through the WiFi module 470. It provides users with wireless broadband Internet access. Figure 4A WiFi module 470 is shown, but it is understandable that it is not an essential component of the mobile phone and can be omitted as needed without changing the essence of the invention.

[0097] Processor 480 is the control center of the mobile phone, connecting all parts of the phone using various interfaces and circuits. By running or executing software programs and / or modules stored in memory 420 and accessing data stored in memory 420, it performs various functions of the mobile phone and processes data, thereby providing overall monitoring of the mobile phone. Optionally, processor 480 may include one or more processing units; preferably, processor 480 may integrate an application processor and a modem processor, wherein the application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 480.

[0098] The mobile phone also includes a power supply 490 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 480 through a power management system, thereby managing charging, discharging, and power consumption management functions through the power management system.

[0099] Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0100] In the embodiment of the present application, the processor 480 may also execute the operations performed by the aforementioned authority control device.

[0101] Figure 5 : This is a schematic diagram of a server structure provided by an embodiment of the present application. The server 500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPUs) 522 (for example, one or more processors) and a memory 532, and one or more storage media 530 (for example, one or more mass storage devices) for storing application programs 542 or data 544. Among them, the memory 532 and the storage medium 530 can be temporary storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 522 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the server 500.

[0102] The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input and output interfaces 558, and / or one or more operating systems 541, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0103] The steps performed by the authority control device in the above embodiment can be based on the Figure 5 The server structure shown.

[0104] An embodiment of the present application also provides a computer-readable storage medium having a program stored thereon, which implements the steps of the above-mentioned permission control method when executed by a processor.

[0105] An embodiment of the present application further provides a processor, which is used to run a program, wherein the steps of the above-mentioned permission control method are executed when the program is running.

[0106] An embodiment of the present application also provides a terminal device, which includes a processor, a memory, and a program stored in the memory and runnable on the processor, wherein the program code is loaded and executed by the processor to implement the steps of the above-mentioned permission control method.

[0107] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the above-mentioned permission control method.

[0108] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0109] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0110] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0111] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0112] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0113] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0114] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0115] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0116] Computer-readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0117] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0119] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A method for controlling permissions, applied to a permission control system, characterized in that: include: Receive natural language text corresponding to the target user; Generating a permission configuration requirement corresponding to the natural language text; wherein generating the permission configuration requirement corresponding to the natural language text includes: matching the natural language text according to a permission term library to obtain corresponding permission language, wherein template terms in the permission term library include time, target user, device, operation, and timeliness, and the natural language text conforms to preset grammatical rules; and setting permissions for the target user according to the permission language to generate the permission configuration requirement; Monitoring the target user's operation instructions; wherein the operation of generating the target user's operation instructions includes at least one of a gesture operation, a sliding operation, a click operation, and a voice control operation; Determine a control result according to the operation instruction and the permission configuration requirement; Execute corresponding operations according to the control results; The permission configuration requirements include permission control instructions and target permission description information. The permission control instructions are operation instructions that the target user needs to execute. The target permission description information is the permissions possessed by the target user. The target permission description information exists in the form of a permission description file. The permission description file is a permission control parameter table. The permission description file is input data for the virtual machine. The virtual machine integrates the parsing specification of the permission description file. The determining of the control result according to the operation instruction and the permission configuration requirement includes: parsing the target permission description information through the virtual machine, performing permission judgment on the corresponding controlled interface, and obtaining the control result, wherein the control result indicates whether the target user has permission to call the corresponding controlled interface; The performing of corresponding operations according to the control result includes: When the operation instruction matches the permission control instruction, performing a corresponding operation based on the target permission description information; When the operation instruction does not match the authority control instruction, a prompt message is issued.

2. The method according to claim 1, characterized in that Determining the permission language corresponding to the natural language text includes: Configure permission term base; The natural language text is matched according to the permission term library to obtain the permission language.

3. A permission control device, applied to a permission control system, characterized in that: include: A receiving unit, configured to receive a natural language text corresponding to a target user; a generating unit configured to generate a permission configuration requirement corresponding to the natural language text; wherein the generating unit is specifically configured to: match the natural language text according to a permission term library to obtain a corresponding permission language, wherein template terms in the permission term library include time, target user, device, operation, and timeliness, and the natural language text conforms to preset grammatical rules; and set permissions for the target user according to the permission language to generate the permission configuration requirement; A monitoring unit, configured to monitor the target user's operation instructions; wherein the operation of generating the target user's operation instructions includes at least one of a gesture operation, a sliding operation, a click operation, and a voice control operation; a determining unit, configured to determine a control result according to the operation instruction and the permission configuration requirement; An execution unit, configured to execute corresponding operations according to the control result; The permission configuration requirements include permission control instructions and target permission description information. The permission control instructions are operation instructions that the target user needs to execute. The target permission description information is the permissions possessed by the target user. The target permission description information exists in the form of a permission description file. The permission description file is a permission control parameter table. The permission description file is input data for the virtual machine. The virtual machine integrates the parsing specification of the permission description file. The determining unit is specifically configured to: parse the target permission description information through the virtual machine, perform permission judgment on the corresponding controlled interface, and obtain the control result, wherein the control result indicates whether the target user has permission to call the corresponding controlled interface; The execution unit is specifically configured to: when the operation instruction matches the permission control instruction, execute a corresponding operation based on the target permission description information; when the operation instruction does not match the permission control instruction, issue a prompt message.

4. The device according to claim 3, characterized in that The generating unit determines that the permission language corresponding to the natural language text includes: Configure permission term base; The natural language text is matched according to the permission term library to obtain the permission language.

5. A permission control device, applied to a permission control system, characterized in that: include: at least one connected processor, memory, and transceiver; The memory is used to store program codes, and the program codes are loaded and executed by the processor to implement the steps of the permission control method according to any one of claims 1 to 2.

6. A computer-readable storage medium, characterized in that The invention comprises instructions, which, when executed on a computer, enable the computer to execute the steps of the permission control method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Voice control method and apparatus, computer device and storage medium

    CN108335695A

  • Application control method and device, storage medium and electronic device

    CN108877793A

  • Visitor appointment management system and method based on artificial intelligence algorithm

    CN111063080A