An XML Interface Entry Control Method, System, Medium and Terminal Device

By generating function declarations and calling corresponding functional modules, the problem of non-repeated call to interface entry functions is solved, and the system function stability and maintenance simplification are improved.

CN114518880BActive Publication Date: 2025-06-24YEALINK (XIAMEN) NETWORK TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210071378.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-21
Publication Date
2025-06-24
Estimated Expiration
2042-01-21

AI Technical Summary

Technical Problem

In the prior art, the interface entry function cannot be called repeatedly, resulting in poor system function stability and high maintenance complexity.

Method used

By responding to user operations, generating function declarations and calling corresponding functional modules, the separation of the functional entrance and the functional module is realized, allowing the functional entrance to repeatedly call the functions.

Benefits of technology

It improves system function stability, reduces the impact of entry interface changes on function module calls, and the impact of function module updates on entry interface display, simplifying subsequent maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114518880B_ABST
    Figure CN114518880B_ABST
Patent Text Reader

Abstract

The present invention discloses an XML interface entry control method, system, medium and terminal device. The method includes: in response to a user's display operation on each area, respectively displaying the function entry to be shown in each area; in response to a user's click operation on the first function entry, generating a first function statement corresponding to the first function entry according to a preset function requirement rule, and calling a corresponding function module of the first function statement according to a preset association relationship. The present invention responds to the user's display operation on each area and click operation on the first function entry to display the function entry to be shown in each area, can display or block the function entry in the displayed area, and separates the function entry from the function module at the same time, achieving the effect of business separation, solving the problem that the entry function in the prior art cannot be repeatedly called, and improving the system function stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of information technology, and particularly relates to an XML interface entry control method, system, medium and terminal device. Background Art

[0002] With the development of modern information society, software and systems will have more and more functions in the evolution process, and the corresponding function entrances will also increase. As a result, the actual functions corresponding to the function entrances change due to the changing requirements, and there is also a situation where the function entrances need to be docked with third-party services. If the implementation of these changes is scattered in each specific business, it may be necessary to modify the implementation in each specific business when the requirements change. With the changes in the evolution process, it will have an increasing impact on the overall implementation complexity and maintainability.

[0003] The existing solution isolates the task of splicing the interface into XML separately, and calls the function corresponding to the function at the response of the assembled interface supported by the corresponding interface platform. When there is a change in the corresponding entrance, the relevant implementation process is directly modified.

[0004] However, the existing technology depends on the UI implementation of the current platform. If another platform does not support this UI implementation, it needs to be completely re-implemented; if the same function is used for multiple entrances, it needs to be implemented multiple times in XML. At the same time, the modification of specific services will affect other services, causing a greater impact on the overall system and function stability. Summary of the Invention

[0005] The technical problem to be solved by the present invention is to provide an XML interface entry control method and system, which solves the problem that the entrance function in the existing technology cannot be repeatedly called and improves the function stability of the system.

[0006] To solve the above technical problem, the present invention provides an XML interface entry control method, including:

[0007] Responding to the user's display operation on each area, and respectively displaying the function entrances to be displayed in each area;

[0008] Responding to the user's click operation on the first function entrance, generating a first function statement corresponding to the first function entrance according to a preset function requirement rule, and calling the function module corresponding to the first function statement according to a preset association relationship.

[0009] Further, it further includes:

[0010] Defining a global function module set and a function statement set, and determining the association relationship in which each function module in the function module set corresponds to each function statement in the function statement set one by one.

[0011] Further, according to the preset association relationship, calling the corresponding function module of the first function declaration specifically includes:

[0012] Querying whether the first function declaration exists in the function declaration set according to the first function declaration;

[0013] If it exists, calling the function module corresponding to the first function declaration in the function module set according to the preset association relationship;

[0014] If it does not exist, determining whether it is necessary to execute third-party software operations; if necessary, calling the third-party software according to the preset association relationship; if not, calling the function module in the function module set according to the preset association relationship.

[0015] Further, after calling the third-party software, it further includes: registering the first function declaration and the called third-party software, and updating the function module set and the function declaration set;

[0016] After not needing to execute third-party software operations and calling the function module in the function module set according to the preset association relationship, it further includes: registering the first function declaration and the called function module, and updating the function module set and the function declaration set.

[0017] Further, responding to the user's display operation on each area, and respectively displaying the function entrances to be shown in each area specifically includes:

[0018] Generating function entrance association information according to the user's display operation on each area, and thus respectively displaying the function entrances to be shown in each area according to the function entrance association information.

[0019] Meanwhile, the present invention further provides an XML interface entrance control system, including:

[0020] A control center, configured to respond to the user's click operation on the first function entrance, generate a first function declaration corresponding to the function entrance according to the preset function requirement rules, and thus call the corresponding function module of the first function declaration;

[0021] A display area, configured to respond to the user's display operation on each area, and respectively display the function entrances to be shown in each area;

[0022] A function module area, configured to store the function modules in the function module set.

[0023] Further, the control center is further configured to:

[0024] Define a global set of functional modules and a set of function declarations, and determine the one-to-one association relationship between each functional module in the set of functional modules and each function declaration in the set of function declarations.

[0025] Further, the display area is configured to respond to the user's display operation on each area and display the function entry to be shown in each area respectively. Specifically:

[0026] Generate function entry association information according to the user's display operation on each area, and then display the function entry to be shown in each area respectively according to the function entry association information.

[0027] Further, the present invention also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the XML interface entry control method described in any one of the above.

[0028] Further, the present invention also provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the XML interface entry control method described in any one of the above.

[0029] Implementing the embodiments of the present application has the following beneficial effects:

[0030] Compared with the prior art, the XML interface entry control method provided by the present invention can display the function entry to be shown in each area by responding to the user's display operation on each area and the click operation on the first function entry, can display or block the function entry in the displayed area, and at the same time separates the function entry from the functional module, achieving the effect of business separation, and uses the generated function declaration to realize that the entry can repeatedly call the function. The change of the entry interface does not affect the call of the functional module, and the update of the functional module does not affect the display of the entry interface, improving the subsequent maintenance and the stability of the overall system operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 is a flowchart of the steps of an XML interface entry control method provided by an embodiment of the present invention;

[0032] Figure 2 is a schematic diagram of the display of function entries and the call of functional modules of an XML interface entry control method provided by an embodiment of the present invention;

[0033] Figure 3 is a flowchart of an XML interface entry control method provided by an embodiment of the present invention;

[0034] Figure 4 It is a structural diagram of an XML interface entry control system provided by an embodiment of the present invention. Specific implementation manners

[0035] In order to make the objectives, technical solutions and advantages of the present invention clearer and more understandable, the technical solutions in the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments, and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0036] Embodiment 1

[0037] Please refer to Figure 1 , which is an XML interface entry control method provided by an embodiment of the present invention, and includes the following steps:

[0038] S101: In response to the user's display operation on each area, display the function entries to be shown in each area respectively.

[0039] In this embodiment, according to the user's display operation on each area, function entry association information is generated, and thus, according to the function entry association information, the function entries to be shown in each area are displayed respectively.

[0040] In this embodiment, the user can customize the display of function entries in each area according to their own needs. Please refer to Figure 2 , the user defines that function entry A and function entry B are to be shown in area 1 according to their own needs, and defines that function entry A, function entry B and function entry C are to be shown in area 2. The control center generates corresponding function entry association information and feeds it back to area 1 and area 2 for the display of corresponding function entries.

[0041] S102: In response to the user's click operation on the first function entry, generate a first function statement corresponding to the first function entry according to a preset function requirement rule, and call the function module corresponding to the first function statement according to a preset association relationship.

[0042] In this embodiment, the preset function requirement rule is that the user customizes the correspondence between function entries and function statements according to their own needs. By default, one type of function entry corresponds to one type of function statement. The preset association relationship is that the user customizes the correspondence between function statements and function modules according to their own needs. By default, one type of function statement corresponds to one type of function module.

[0043] In this embodiment, please refer to Figure 2 , in the default state, that is, when the user has not made any custom settings, if the user clicks on function entry A, the control center will generate function declaration A corresponding to function entry A, and then call the corresponding function module A according to function declaration A; if the user clicks on function entry B, the control center will generate function declaration B corresponding to function entry B, and then call the corresponding function module B according to function declaration B; if the user clicks on function entry C, the control center will generate function declaration C corresponding to function entry C, and then call the corresponding function module C according to function declaration C.

[0044] In this embodiment, the XML interface entry control method further includes: defining a global function module set and a function declaration set, and determining the one-to-one association relationship between each function module in the function module set and each function declaration in the function declaration set.

[0045] In this embodiment, in the default state, there is a one-to-one association relationship between each function module in the function module set and each function declaration in the function declaration set.

[0046] Specifically, as Figure 3 shown, in this embodiment, according to the first function declaration, query whether the first function declaration exists in the function declaration set; if it exists, then according to the preset association relationship, call the function module corresponding to the first function declaration in the function module set; if it does not exist, then determine whether it is necessary to execute third-party software operations; if it is necessary, then according to the preset association relationship, call the third-party software; if it is not necessary, then according to the preset association relationship, call the function module in the function module set.

[0047] In this embodiment, if it is not necessary to execute third-party software operations, then according to the user's needs, call the function module in the function module set. For example: if the user clicks on a certain function entry and executes multiple function modules according to their own needs, then the function modules corresponding to the user's own needs are executed accordingly.

[0048] In this embodiment, after calling the third-party software, it further includes: registering the first function declaration and the called third-party software, and updating the function module set and the function declaration set; after not needing to execute third-party software operations and calling the function module in the function module set according to the preset association relationship, it further includes: registering the first function declaration and the called function module, and updating the function module set and the function declaration set.

[0049] In this embodiment, the third-party software or functional module after being called respectively performs registration with its corresponding function declaration and is updated in the function declaration set and the functional module set, so as to facilitate directly calling the function declaration set and the functional module set to execute corresponding functions later.

[0050] The present invention responds to the user's display operation on each area and click operation on the first function entry to display the function entries to be shown in each area, can display or block the function entries in the displayed area, and separates the function entries from the functional modules at the same time, achieving the effect of business separation, solving the problem that the entry functions in the prior art cannot be repeatedly called, and improving the stability of the system functions.

[0051] Embodiment Two

[0052] Please refer to Figure 4 , the present invention also provides an XML interface entry control system, including:

[0053] A control center 401, configured to respond to the user's click operation on the first function entry, generate a first function declaration corresponding to the function entry according to a preset function requirement rule, and thus call the functional module corresponding to the first function declaration.

[0054] A display area 402, configured to respond to the user's display operation on each area and respectively display the function entries to be shown in each area.

[0055] Specifically, according to the user's display operation on each area, function entry association information is generated, and thus according to the function entry association information, the function entries to be shown in each area are respectively displayed.

[0056] A functional module area 403, configured to store the functional modules in the functional module set.

[0057] In this embodiment, the control center 401 is further configured to: define a global functional module set and a function declaration set, and determine the one-to-one corresponding association relationship between each functional module in the functional module set and each function declaration in the function declaration set.

[0058] Implementing the embodiments of the present invention can display or block the function entries in the displayed area, separate the function entries from the functional modules at the same time, achieve the effect of business separation, and use the generated function declarations to achieve that the entry can repeatedly call the function. The change of the entry interface does not affect the call of the functional module, and the update of the functional module does not affect the display of the entry interface.

[0059] Embodiment Three

[0060] An embodiment of the present invention further provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the XML interface entry control method described in any one of the above.

[0061] Embodiment 4

[0062] An embodiment of the present invention further provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the XML interface entry control method described in any one of the above.

[0063] Preferably, the computer program can be divided into one or more modules / units (such as computer programs, computer instructions). The one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the terminal device.

[0064] The processor may be a Central Processing Unit (CPU), or may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor. The processor is the control center of the terminal device and connects various parts of the terminal device through various interfaces and lines.

[0065] The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc., and the data storage area can store relevant data, etc. In addition, the memory may be a high-speed random access memory, or may also be a non-volatile memory, such as a plug-in hard disk, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc., or the memory may also be other volatile solid-state storage devices.

[0066] It should be noted that the above terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art can understand that the above terminal device is only an example and does not constitute a limitation on the terminal device. It may include more or fewer components, or combine certain components, or different components.

[0067] Implementing the embodiments of the present invention has the following effects:

[0068] The embodiments of the present invention provide an XML interface entry control method, system, medium and terminal device. By responding to the user's display operation on each area and click operation on the first function entry, the function entries to be displayed in each area are displayed, and the function entries in the displayed area can be displayed or blocked. At the same time, the function entries are separated from the function modules, achieving the effect of business separation, and using the generated function declarations to realize that the entry can repeatedly call the function. The change of the entry interface does not affect the call of the function module, and the update of the function module does not affect the display of the entry interface, improving the subsequent maintenance and the stability of the overall system operation.

[0069] Furthermore, the present invention can also record the user's custom settings, and can execute the function modules according to the user's custom requirements in subsequent operations. The implementation of the display area only needs to focus on the actual display effect without caring about the specific business, simplifying the implementation of the display area. At the same time, the control center has the ability to intercept the operations of any specific function. When a specific scenario with user requirements appears, the function module can be converted or called in the control center, improving the reliability of the overall system function execution.

[0070] The above are the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements are also regarded as the protection scope of the present invention.

Claims

1. An XML interface entry control method, characterized in that, including: In response to the user's display operation on each area, respectively display the function entrances to be shown in each area; In response to the user's click operation on the first function entrance, generate a first function statement corresponding to the first function entrance according to the preset function requirement rules; According to the first function statement, query whether the first function statement exists in the function statement set; wherein, each function module in the function module set has a one-to-one corresponding association relationship with each function statement in the function statement set; If it exists, call the function module corresponding to the first function statement in the function module set according to the preset association relationship; If it does not exist, determine whether it is necessary to execute third-party software operations; if so, call the third-party software according to the preset association relationship, and register the first function statement and the called third-party software, and update the function module set and the function statement set; If not, call the function module in the function module set according to the preset association relationship, and register the first function statement and the called function module, and update the function module set and the function statement set.

2. The XML interface entry control method according to claim 1, characterized in that The step of "In response to the user's display operation on each area, respectively display the function entrances to be shown in each area" specifically is: Generate function entrance association information according to the user's display operation on each area, so as to respectively display the function entrances to be shown in each area according to the function entrance association information.

3. An XML interface entry control system, characterized in that, including: a control center, a display area, and a function module area; The control center is used for, in response to the user's click operation on the first function entrance, generating a first function statement corresponding to the first function entrance according to the preset function requirement rules, and querying whether the first function statement exists in the function statement set according to the first function statement; wherein, each function module in the function module set has a one-to-one corresponding association relationship with each function statement in the function statement set; If it exists, call the function module corresponding to the first function statement in the function module set according to the preset association relationship; If it does not exist, determine whether it is necessary to execute third-party software operations; if so, call the third-party software according to the preset association relationship, and register the first function statement and the called third-party software, and update the function module set and the function statement set; if not, call the function module in the function module set according to the preset association relationship, and register the first function statement and the called function module, and update the function module set and the function statement set; The control center is further used for defining a global function module set and a function statement set, and determining a one-to-one corresponding association relationship between each function module in the function module set and each function statement in the function statement set; The display area is used for, in response to the user's display operation on each area, respectively displaying the function entrances to be shown in each area; The function module area is used for storing the function modules in the function module set.

4. The XML interface entry control system according to claim 3, characterized in that, The display area is used to respond to the user's display operations on each area and display the function entrances to be shown in each area respectively, specifically: According to the user's display operations on each area, generate function entrance association information, and thus, according to the function entrance association information, display the function entrances to be shown in each area respectively.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored computer program; wherein, when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the XML interface entrance control method described in any one of claims 1-2.

6. A terminal device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the XML interface entrance control method described in any one of claims 1-2.

Citation Information

Patent Citations

  • Method and device for running application program

    CN104699501A

  • Function entry enable method and mobile terminal

    CN106371659A