Functional module management method, device, equipment and medium
By obtaining and parsing the API interface and connection pointer in the architecture called by the microcontroller module, and creating a functional module linked list, the problem of difficulty in modifying system functions is solved, and the development and maintenance efficiency and module independence are improved.
Patent Information
- Application Number
- CN202111438339.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-11-29
AI Technical Summary
The architectural strategy of existing microcontroller module calls results in a high degree of integration of system functions and module functions, making it difficult to modify or add functions independently, affecting development and maintenance efficiency.
By obtaining and parsing the API interface and connection pointer in the functional module, a new functional module linked list is created, allowing independent packaging and updating of functional modules to avoid re-adaptation of the entire system.
It improves the efficiency of system development and maintenance, enhances the independence and maintenance convenience of functional modules, and reduces the mutual influence between functional modules.
Smart Images

Figure CN116185441B
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to the field of computers, specifically to the field of module calling technology, and in particular to a method, device, equipment and medium for managing a functional module. Background Art
[0002] In the existing architecture strategy of microcontroller module calling, the integration between the system and the module is relatively high, that is, the system functions and the module functions have been mixed together, making the entire framework less modifiable. When some functions need to be deleted, added or modified, the entire system needs to be modified, which seriously affects the efficiency of system development and modification. Summary of the invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desirable to provide a method, apparatus, device and medium for managing functional modules, encapsulate the functional modules into independent nodes, and effectively improve the development and maintenance efficiency.
[0004] In a first aspect, an embodiment of the present application provides a method for managing a functional module, including:
[0005] Acquire a first function module corresponding to the new function to be added and at least one second function module stored in the current data linked list, wherein the first function module encapsulates an API interface for executing the new function;
[0006] parsing the connection pointers in the first functional module and each of the second functional modules;
[0007] Using the connection pointer, a new function module linked list including the first function module and the at least one second function module is created.
[0008] In a second aspect, an embodiment of the present application provides a management device for a functional module, including:
[0009] An acquisition module, used to acquire a first function module corresponding to the new function to be added and at least one second function module stored in the current data linked list, wherein the first function module encapsulates an API interface for executing the new function;
[0010] A parsing module, used for parsing the connection pointers in the first functional module and each of the second functional modules;
[0011] A creation module is used to create a new function module linked list including the first function module and the at least one second function module by using the connection pointer.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the program.
[0013] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the embodiment of the present application.
[0014] This application can update the system functions by updating the module linked list without re-adapting the original system functions when the system needs to add new functions. It only needs to encapsulate the API interface with the new functions into a functional module.
[0015] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0017] Figure 1 A flowchart of a method for managing a functional module proposed in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of the management principle of a functional module proposed in an embodiment of the present application;
[0019] Figure 3 A flowchart of another method for managing functional modules proposed in an embodiment of the present application;
[0020] Figure 4 A flowchart of another method for managing a functional module proposed in an embodiment of the present application;
[0021] Figure 5 A flowchart of another method for managing a functional module proposed in an embodiment of the present application;
[0022] Figure 6 A flowchart of another method for managing a functional module proposed in an embodiment of the present application;
[0023] Figure 7 A block diagram of a management device for a functional module proposed in an embodiment of the present application;
[0024] Figure 8 A block diagram of another functional module management device proposed in an embodiment of the present application;
[0025] Fig. 9 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] Figure 1 A flowchart of a method for managing a functional module proposed in an embodiment of the present application.
[0029] like Figure 1 As shown, the management method of the functional module of the embodiment of the present application includes the following steps:
[0030] Step 101, obtaining a first functional module corresponding to a new function to be added and at least one second functional module stored in a current data linked list, wherein the first functional module encapsulates an API interface for executing the new function.
[0031] It should be noted that the system functions are implemented through the API interface in the functional module. Multiple functional modules used to implement the functions are stored in the system in the form of a data linked list. When it is necessary to add functions to the system, the system functions are added by adding functional modules to the current data linked list.
[0032] Optionally, the number of functional modules in the current system may be detected in real time, or each functional module in the system may be continuously polled, and when a functional module outside the current data linked list is identified, the functional module is determined to be the first functional module corresponding to the new function to be added.
[0033] Alternatively, an operation instruction for adding a new function module is received, and a first function module corresponding to the new function to be added is queried according to the operation instruction for adding the new module.
[0034] Step 102: parsing the connection pointers in the first functional module and each second functional module.
[0035] It should be noted that the connection pointer is encapsulated in the functional module. By parsing the functional module, the connection pointer in the first functional module and the connection pointer in the second functional module are obtained, so that the connection pointer can be used to determine the relative position between the first functional module and each second functional module, that is, to determine the insertion position of the first functional module.
[0036] Step 103: Using the connection pointer, create a new function module linked list including the first function module and at least one second function module.
[0037] Among them, Figure 2 As shown, the function list ends with a null pointer Null, and the connection pointer connecting the function modules is the Next function.
[0038] Specifically, the functional module management method proposed in the embodiment of the present application, when obtaining the first functional module containing the new functional API interface, obtains at least one second functional module stored in the current data linked list, and then parses the connection pointers in the first functional module and each second functional module, and uses the connection pointers to create a new functional module linked list containing the first functional module and at least one second functional module.
[0039] Therefore, when the system needs to add new functions, the present application does not need to re-adapt the original system functions. It only needs to encapsulate the API interface with the new function into a functional module, and the system functions can be updated by updating the module linked list.
[0040] Moreover, by independently encapsulating the functional modules containing API interfaces, multiple functional modules can be developed independently and in parallel, thereby improving the overall development efficiency of the system. At the same time, the functional modules are stored in a module linked list, which effectively improves the independence between the functional modules, reduces the mutual influence between the functional modules, and improves the convenience of independent maintenance of the functional modules.
[0041] In one or more embodiments, Figure 3 As shown, step 101, obtaining the first functional module corresponding to the new function to be added, includes:
[0042] Step 1011, obtaining at least one API interface corresponding to the new function and a first logical sequence of the at least one API interface.
[0043] Furthermore, obtaining at least one API interface corresponding to the new function includes: splitting the function requirement into at least one basic function; and creating an API interface corresponding to each basic function.
[0044] It should be noted that before creating the first functional module, it is necessary to first develop the interface of the required functions according to the functional requirements of the development, that is, the API development of the basic functions. This process is the most important process in the development of system functions. It is necessary to consider the implementation of some basic functions that the functional module should pay attention to when calling, so that the module's functions are more dependent on such basic functions.
[0045] Step 1012: encapsulate at least one API interface into a functional function according to the first logical sequence.
[0046] Among them, the first logical sequence is the priority sequence of each API interface in the first functional module, such as the step order priority in the step-by-step calling logic sequence, or the calling frequency priority in the calling frequency logic sequence.
[0047] Specifically, each API interface that implements the basic function is encapsulated into a function according to the functional requirements and the logical sequence of step-by-step calls. Among them, the function function can realize a more complex function by running the basic function step by step.
[0048] Step 1013, obtaining a first pointer corresponding to the functional function and a connection pointer corresponding to the first functional module.
[0049] Among them, the first pointer corresponding to the functional function is a pointer to the storage address of the API interface encapsulated therein.
[0050] Step 1014, encapsulate the function, the first pointer and the connection pointer into a first function module.
[0051] It should be understood that for the functional module, the connection pointer is used to determine the position of the functional module in the data linked list, the functional function is encapsulated with an API interface to execute the called API interface function when called, and the first pointer function is used to indicate the storage location of the functional function.
[0052] Optionally, when encapsulating a function module, the first pointer corresponding to the core function of the function module can be encapsulated in the front to facilitate the call efficiency of other function modules to this function module. Alternatively, when a function function cannot be used in a function module, it is necessary to assign the first pointer corresponding to the function function to Null to avoid the occurrence of an unexecutable pointer causing a system error. Among them, when a function function is encapsulated in a function module and is only used for backup or non-called function functions, it can be regarded as a function function that cannot be used.
[0053] Optionally, the functional module may also include an initialization pointer, characteristic parameter variables, etc. for initializing the functional module to meet all functional requirements of the functional module.
[0054] It should also be understood that in the embodiment of the present application, during the creation process of the first functional module corresponding to the new function, there is no need to pay attention to the working status of the second functional module in the previous system, and it is only necessary to create it according to the new function to be added.
[0055] In one or more embodiments, Figure 4As shown, step 103, using the connection pointer, creates a new function module linked list including the first function module and at least one second function module, including:
[0056] Step 1031, obtaining a second logic timing corresponding to the first functional module.
[0057] Among them, the second logical timing corresponding to the first functional module is the logical relationship between the first functional module and the second functional module. For example, when the first functional module is a linkage module or a lower-layer module of a second functional module, the logical timing of the first functional module is the next one of the second functional module.
[0058] Step 1032: according to the second logic sequence, insert the first connection pointer corresponding to the first functional module into the connection pointer chain to form a new connection pointer chain.
[0059] Step 1033: Connect the first functional module and at least the second functional module into a new functional module linked list according to the new connection pointer.
[0060] That is to say, Figure 2 As shown, the logic sequence corresponding to the first functional module is next to the Nth functional module, so the first functional module is inserted to the right side of the Nth functional module to become the N+1th functional module.
[0061] It should be understood that the logic sequence corresponding to the first functional module can be in front or behind, depending on the corresponding function implemented by the first functional module.
[0062] In one or more embodiments, each functional module in the new functional module list has a first identifier, and each API interface in the functional module has a second identifier. The method also includes: when receiving a call instruction to the target API interface, querying the target identifier corresponding to the target API interface, the target identifier includes a first target identifier corresponding to the target functional module containing the target API interface and a second target identifier corresponding to the target API interface; calling the target API interface in the target functional module according to the target identifier.
[0063] The first identifier may be a handle or ID number preset by the system for the functional module, and the second identifier may be a handle or ID number preset by the system for the API interface in the functional module.
[0064] That is to say, when the system calls the API interface in the functional module, it queries the first target identifier corresponding to the functional module to which the target API interface to be called belongs and the second target identifier corresponding to the target API interface to be called according to the calling instruction, and then the system determines the functional module and the target API interface to which the target API interface belongs in turn according to the first target identifier and the second target identifier, thereby realizing the call of the target API interface.
[0065] Therefore, calling the API interface through the identification information of the API interface can effectively reduce the error rate of the API interface calling and improve the efficiency of the API interface calling.
[0066] Furthermore, the calling instruction is a linkage calling instruction, and the method also includes: receiving a first calling instruction for calling a first target API interface; identifying a second target API interface that is linked to the first target API interface based on a pre-stored association relationship; respectively querying the second target identifier corresponding to the first target API interface and the second target identifier corresponding to the second target API interface; after calling the first target API interface based on the first target identifier corresponding to the first target API interface, calling the second target API interface based on the second target identifier corresponding to the second target API interface.
[0067] It should be noted that the linkage call instruction means that when a certain API interface is called, a call to another API interface is also executed. For example, in a smart home system, opening the door can be linked with turning on the lights, that is, when the smart home system executes the door opening function, it also executes the light turning function at the same time.
[0068] Specifically, after receiving a first call instruction to call the first target API interface, the second target API interface that is linked to the first target API interface is identified according to a pre-stored association relationship. That is, although only the first call instruction to call the first target API interface is received, in fact, the first call instruction to call the first target API interface and the second call instruction to call the second target API interface are simultaneously received. Then, the second target identifier corresponding to the first target API interface and the second target identifier corresponding to the second target API interface are queried according to the first call instruction and the second call instruction, respectively. After calling the first target API interface according to the second target identifier corresponding to the first target API interface, the second target API interface is called according to the second target identifier corresponding to the second target API interface, thereby effectively realizing the association call between the linked API interfaces.
[0069] In one or more embodiments, it is identified that there are abnormal function modules in the new function module linked list; and independent maintenance is performed on the abnormal function modules.
[0070] Specifically, in the actual maintenance process, a special team can be set up for each functional module to be responsible for R&D and maintenance, with low R&D costs and relatively small amounts of code. Moreover, as long as independent teams are responsible for maintaining each functional module, the maintenance difficulty is low. If a problem is found, the abnormal functional module can be quickly located, and the efficiency of troubleshooting will be higher.
[0071] As a specific example, Figure 5As shown, the management method of the functional module includes the following steps:
[0072] Step 201, split the functional requirements into multiple basic functions.
[0073] Step 202: Create an API interface corresponding to each basic function.
[0074] Step 203: encapsulate the API interface into a functional function according to the first logical sequence.
[0075] Step 204, creating a function module according to the function function, the first pointer corresponding to the function function and the connection pointer.
[0076] Step 205, determine whether a new function needs to be added.
[0077] If yes, execute step 206 ; if no, execute step 207 .
[0078] Step 206, determining whether the new function depends on the existing basic function.
[0079] If yes, execute step 203; if no, execute step 202.
[0080] Step 207: Perform independent maintenance on the functional modules.
[0081] As a possible embodiment, Figure 6 As shown, when the system is started for the first time, the management method of the functional module includes the following steps:
[0082] Step 301, boot into the system through the Boot program and start working.
[0083] Step 302, traverse all functional modules in the data segment.
[0084] The data segment is traversed from its initial position, and the next traversed function module is determined according to the connection pointer in each function module, until the connection pointer of the current function module is Null.
[0085] Step 303, create a current module linked list according to the order of connection pointers of the traversed functional modules.
[0086] Thus, the module linked list in the system is initialized, that is, the first current module linked list is generated.
[0087] Step 304, initializing each functional module in the current module linked list.
[0088] Step 305: when receiving a call instruction to a target API interface, query the target identifier corresponding to the target API interface.
[0089] Step 306: Call the target API interface in the target function module according to the target identifier.
[0090] To sum up, when the system needs to add new functions, there is no need to re-adapt the original system functions. It only needs to encapsulate the API interface with the new functions into a functional module, and the system functions can be updated by updating the module linked list.
[0091] It should be noted that although the operations of the method of the present invention are described in a particular order in the drawings, this does not require or imply that the operations must be performed in this particular order or that all illustrated operations must be performed to achieve desired results.
[0092] Figure 7 A block diagram of a management device for a functional module proposed in an embodiment of the present application. Figure 7 As shown, the management device 10 of the functional modules proposed in the embodiment of the present application includes:
[0093] An acquisition module 11 is used to acquire a first function module corresponding to the new function to be added and at least one second function module stored in the current data linked list, wherein the first function module encapsulates an API interface for executing the new function;
[0094] A parsing module 12, configured to parse the connection pointers in the first functional module and each of the second functional modules;
[0095] The creation module 13 is used to create a new function module linked list including the first function module and the at least one second function module by using the connection pointer.
[0096] In some embodiments, the acquisition module 11 is further used to:
[0097] Acquire at least one of the API interfaces corresponding to the new function, and a first logical timing of at least one of the API interfaces;
[0098] Encapsulating at least one of the API interfaces into a functional function according to the first logical timing;
[0099] Acquire the first pointer corresponding to the function function and the connection pointer corresponding to the first function module;
[0100] The function function, the first pointer and the connection pointer are encapsulated into the first function module.
[0101] In some embodiments, the acquisition module 11 is further used to:
[0102] Split the functional requirements into at least one basic function;
[0103] Create the API interface corresponding to each basic function according to the basic function.
[0104] In some embodiments, the creation module 13 is further configured to:
[0105] Acquire a second logic timing corresponding to the first functional module;
[0106] According to the second logic sequence, inserting the first connection pointer corresponding to the first functional module into the connection pointer chain to form a new connection pointer chain;
[0107] The first functional module and at least one of the second functional modules are connected to form a new functional module chain list according to the new connection pointer chain.
[0108] In some embodiments, Figure 8 As shown, the function module management device 10 further includes a calling module 14, each of the function modules in the new function module list has a first identifier, each API interface in the function module has a second identifier, and the calling module 14 is further used to:
[0109] When receiving a call instruction to a target API interface, querying a target identifier corresponding to the target API interface, the target identifier including a first target identifier corresponding to a target function module including the target API interface and a second target identifier corresponding to the target API interface;
[0110] The target API interface in the target function module is called according to the target identifier.
[0111] In some embodiments, the calling module 14 is further configured to:
[0112] Receive a first call instruction for calling a first target API interface;
[0113] Identifying a second target API interface that is linked to the first target API interface according to a pre-stored association relationship;
[0114] Respectively query the second target identifier corresponding to the first target API interface and the second target identifier corresponding to the second target API interface;
[0115] After calling the first target API interface according to the second target identifier corresponding to the first target API interface, calling the second target API interface according to the second target identifier corresponding to the second target API interface.
[0116] In some embodiments, the functional module management device 10 further includes a maintenance module 15, and the maintenance module 15 is used to:
[0117] Identify that there are abnormal function modules in the new function module chain list;
[0118] Independent maintenance is performed on the abnormal function module.
[0119] It should be understood that the units or modules described in the device 10 are similar to those described in the reference Figure 1 The various steps in the described method correspond to each other. Therefore, the operations and features described above for the method are also applicable to the device 10 and the units contained therein, and will not be repeated here. The device 10 can be pre-implemented in a browser or other security application of an electronic device, or loaded into a browser or its security application of an electronic device by downloading or the like. The corresponding units in the device 10 can cooperate with the units in the electronic device to implement the solution of the embodiment of the present application.
[0120] For the several modules or units mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0121] To sum up, when the system needs to add new functions, there is no need to re-adapt the original system functions. It only needs to encapsulate the API interface with the new functions into a functional module, and the system functions can be updated by updating the module linked list.
[0122] It should be noted that for details not disclosed in the management device of the functional modules in the embodiments of the present application, please refer to the details disclosed in the above embodiments of the present application, which will not be repeated here.
[0123] Reference below Fig. 9 , Fig. 9 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown.
[0124] like Fig. 9 As shown, the computer system includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage part 908 into the random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation instructions of the system are also stored. The CPU 901, the ROM 902 and the RAM 903 are connected to each other through a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0125] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed so that a computer program read therefrom is installed into the storage section 908 as needed.
[0126] In particular, according to an embodiment of the present application, the above reference flow chart Figure 2 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present application are executed.
[0127] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium such as a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0128] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operating instructions of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operating instruction, or can be implemented with a combination of dedicated hardware and computer instructions.
[0129] The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The units or modules described may also be provided in a processor. For example, they may be described as follows: a processor includes an acquisition module, a parsing module, and a creation module. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances. For example, the acquisition module may also be described as "acquiring a first functional module corresponding to a new function to be added and at least one second functional module stored in a current data linked list, wherein the first functional module encapsulates an API interface for executing the new function".
[0130] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the management method of the functional modules described in the present application.
[0131] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A method for managing a functional module, characterized in that: include: Acquire a first function module corresponding to the new function to be added and at least one second function module stored in the current data linked list, wherein the first function module encapsulates an API interface for executing the new function; parsing the connection pointers in the first functional module and each of the second functional modules; Using the connection pointer, creating a new function module linked list including the first function module and the at least one second function module; The step of obtaining the first functional module corresponding to the new function to be added further includes: Acquire at least one of the API interfaces corresponding to the new function, and a first logical timing of at least one of the API interfaces; Encapsulating at least one of the API interfaces into a functional function according to the first logical timing; Acquire the first pointer corresponding to the function function and the connection pointer corresponding to the first function module; Encapsulating the function function, the first pointer and the connection pointer into the first function module; The step of creating a new function module linked list including the first function module and the at least one second function module by using the connection pointer comprises: Obtaining a second logic timing corresponding to the first functional module; According to the second logic sequence, inserting the first connection pointer corresponding to the first functional module into the connection pointer chain to form a new connection pointer chain; The first functional module and at least one of the second functional modules are connected to form the new functional module linked list according to the new connection pointer chain.
2. The method according to claim 1, characterized in that The obtaining of at least one API interface corresponding to the new function includes: Split functional requirements into at least one basic function; Create the API interface corresponding to each basic function according to the basic function.
3. The method according to claim 1, characterized in that Each function module in the new function module chain list has a first identifier, each API interface in the function module has a second identifier, and the method further includes: When receiving a call instruction to a target API interface, querying a target identifier corresponding to the target API interface, the target identifier including a first target identifier corresponding to a target function module including the target API interface and a second target identifier corresponding to the target API interface; The target API interface in the target function module is called according to the target identifier.
4. The method according to claim 3, characterized in that The calling instruction is a linkage calling instruction, and the method further includes: Receive a first call instruction for calling a first target API interface; Identifying a second target API interface that is linked to the first target API interface according to a pre-stored association relationship; Respectively query the second target identifier corresponding to the first target API interface and the second target identifier corresponding to the second target API interface; After calling the first target API interface according to the second target identifier corresponding to the first target API interface, calling the second target API interface according to the second target identifier corresponding to the second target API interface.
5. The method according to claim 1, characterized in that: The method further comprises: Identify that there are abnormal function modules in the new function module chain list; Independent maintenance is performed on the abnormal function module.
6. A management device for a functional module, characterized in that: include: An acquisition module, used to acquire a first function module corresponding to the new function to be added and at least one second function module stored in the current data linked list, wherein the first function module encapsulates an API interface for executing the new function; A parsing module, used for parsing the connection pointers in the first functional module and each of the second functional modules; A creation module, used to create a new function module linked list including the first function module and the at least one second function module by using the connection pointer; The acquisition module is further used for: Acquire at least one of the API interfaces corresponding to the new function, and a first logical timing of at least one of the API interfaces; Encapsulating at least one of the API interfaces into a functional function according to the first logical timing; Acquire the first pointer corresponding to the function function and the connection pointer corresponding to the first function module; Encapsulating the function function, the first pointer and the connection pointer into the first function module; The creation module is also used to: Obtaining a second logic timing corresponding to the first functional module; According to the second logic sequence, inserting the first connection pointer corresponding to the first functional module into the connection pointer chain to form a new connection pointer chain; The first functional module and at least one of the second functional modules are connected to form a new functional module chain list according to the new connection pointer chain.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the management method of the functional modules as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for managing the functional modules as described in any one of claims 1 to 5 is implemented.
