Interface configuration method and computing device

By cloning interfaces and mapping rules, the problems of cumbersome and error-prone configuration of peripheral system interfaces during core system migration were solved, and efficient and accurate data transmission and business continuity between peripheral systems and the new core system were achieved.

CN121935189APending Publication Date: 2026-04-28HENAN QINWEI DIGITAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202512016221.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-29
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

During the migration of the core system, the interface connection between the peripheral system and the new core system relies on manual modification, which makes the interface configuration cumbersome, error-prone, costly, and difficult to guarantee accuracy and timeliness, and poses a risk of data transmission interruption.

Method used

By cloning the interfaces of the original core system, generating mapping rules, and constructing cloned interfaces, data transmission between the peripheral system and the new core system can be achieved, avoiding the need to modify the interface code and ensuring the accuracy and efficiency of data format conversion and transmission.

Benefits of technology

It achieved seamless integration between the peripheral system and the new core system, reduced the risk of business interruption, improved the efficiency and accuracy of interface configuration, reduced manual maintenance costs, and ensured transparent data transmission and business continuity between different systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121935189A_ABST
    Figure CN121935189A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of system interfaces, and provides an interface configuration method and computing equipment, the interface configuration method is applied to a management system comprising a first core system, a second core system and at least one peripheral system, and the method comprises the following steps: acquiring a first interface parameter of a first interface in the first core system; acquiring a second interface parameter according to a corresponding relationship between the first interface and a second interface in a second core system; generating a first mapping rule based on a mapping relationship between the first interface parameter and the second interface parameter; and constructing a clone interface based on the first interface parameter and the first mapping rule. Based on the scheme, in the computing equipment deployed with the management system, the clone interface between the peripheral system and the core system can be constructed by utilizing the first interface parameter, so that the service data adaptation of the peripheral system is realized through the first mapping rule, the normal operation of the peripheral system is prevented from being influenced by the change of the core system, and the service data adaptation efficiency is improved. And the business interruption risk in the core system change process is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of system interface technology, and in particular to an interface configuration method and a computing device. Background Technology

[0002] Enterprises and organizations generate a large amount of data in their daily operations, and the processing and storage of this data rely on a stable and efficient management system. This management system typically consists of a core system and multiple peripheral systems, with the core system interacting with the peripheral systems through interfaces.

[0003] As business scales up and technical architecture upgrades, core systems may need to be upgraded or replaced. In this case, it's necessary to integrate peripheral systems with the new core system to ensure business continuity and data consistency. Traditionally, during core system migration, the interface connection between peripheral systems and the new core system relies on manually modifying the interface code of the peripheral systems to conform to the interface specifications of the new core system.

[0004] However, modifying peripheral system interfaces is cumbersome and error-prone, especially when the number of interfaces is large. Manual maintenance is costly and inefficient, making it difficult to guarantee the accuracy and timeliness of interface configuration. Furthermore, some peripheral systems suffer from insufficient developer support or lack of documentation, making code-level modifications impossible. This leads to the risk of data transmission interruption between peripheral and core systems during the core system migration process, impacting business continuity. Summary of the Invention

[0005] This application provides an interface configuration method and system that can achieve interface communication and data transmission between peripheral systems and newly added core systems by cloning the interfaces of the original core system, thus avoiding the service delays and excessive costs caused by modifying the interface code of the peripheral system.

[0006] To achieve the above objectives, the embodiments of this application adopt the following technical solutions: In a first aspect, embodiments of this application provide an interface configuration method applied to a management system including a first core system, a second core system, and at least one peripheral system. The method includes: obtaining first interface parameters of a first interface in the first core system; obtaining second interface parameters of a second interface corresponding to the first interface based on the correspondence between the first interface and a second interface in the second core system; generating a first mapping rule based on the mapping relationship between the first interface parameters and the second interface parameters; and constructing a cloned interface based on the first interface parameters and the first mapping rule. The cloned interface is used to realize data transmission between the peripheral system and the second core system.

[0007] Based on this solution, in a management system with multiple core systems, a cloned interface between the peripheral system and the core system can be constructed by cloning the interface parameters of the first core system. Then, through the mapping rules between the first interface parameters and the second interface parameters, the business data of the peripheral system can be adapted, avoiding the impact of changes in the core system on the normal operation of the peripheral system and reducing the risk of business interruption during the core system change process.

[0008] In one possible implementation, a first mapping rule is generated based on the mapping relationship between the first interface parameters and the second interface parameters, including: extracting a first input parameter and a first output parameter from the first interface parameters, and extracting a second input parameter and a second output parameter from the second interface parameters; in response to receiving a first field mapping operation, performing field mapping between the first input parameter and the second input parameter to obtain an input mapping relationship; in response to receiving a second field mapping operation, performing field mapping between the first output parameter and the second output parameter to obtain an output mapping relationship; and generating the first mapping rule based on the input mapping relationship and the output mapping relationship.

[0009] Based on this solution, the input and output parameters of the first interface and the second interface can be mapped to generate corresponding mapping rules. This ensures that when the external system calls the cloned interface, the original business data can be accurately converted into a format that the target system can recognize, and the response result can be reverse-mapped back to the data structure corresponding to the external system interface, thus realizing transparent data interaction.

[0010] In another possible implementation, the first input parameter and the second input parameter are mapped to fields to obtain the input mapping relationship, including: obtaining the first field name corresponding to each field in the first input parameter and the second field name corresponding to each field in the second input parameter; establishing a correspondence between each second field name and at least one first field name according to the first field mapping operation; and determining the input mapping relationship based on the correspondence.

[0011] Based on this solution, the first and second input parameters can be mapped based on field names, enabling accurate matching of data structures between different systems and improving the efficiency and accuracy of interface conversion.

[0012] In another possible implementation, a first mapping rule is generated based on the mapping relationship between the first interface parameters and the second interface parameters, including: extracting the first input parameter and the first output parameter from the first interface parameters, and extracting the second input parameter and the second output parameter from the second interface parameters; in response to receiving a field creation operation, creating an intermediate field; assigning the field value of the first field corresponding to the field creation operation to the intermediate field, wherein the first field includes any field from the first input parameters; deleting the first field from the first input parameters; in response to receiving a third field mapping operation, performing field mapping between the first input parameter and the second input parameter to obtain an input mapping relationship; in response to receiving a fourth field mapping operation, performing field mapping between the first output parameter and the second output parameter to obtain an output mapping relationship; and generating the first mapping rule based on the input mapping relationship, the output mapping relationship, and the intermediate field.

[0013] Based on this solution, parameter reorganization and data transformation in complex scenarios can be achieved by introducing intermediate fields, effectively supporting flexible mapping of heterogeneous data structures between multiple systems, improving interface adaptability and business compatibility, and realizing efficient collaboration of cross-system service calls.

[0014] In another possible implementation, a first mapping rule is generated based on the mapping relationship between the first interface parameter and the second interface parameter, including: extracting the first input parameter and the first output parameter from the first interface parameter, and extracting the second input parameter and the second output parameter from the second interface parameter; in response to receiving a conversion configuration file, generating at least one second field based on each field in the first input parameter; in response to receiving a fifth field mapping operation, mapping the at least one second field to the second input parameter to obtain an input mapping relationship; in response to receiving a sixth field mapping operation, mapping the first output parameter to the second output parameter to obtain an output mapping relationship; and generating the first mapping rule based on the input mapping relationship and the output mapping relationship.

[0015] Based on this solution, fields can be dynamically generated through predefined conversion configuration files, and the dynamically generated fields can be matched with the parameters of the second interface. This effectively realizes data structure conversion and system integration in complex business scenarios, improving the flexibility and maintainability of interface integration.

[0016] In another possible implementation, a clone interface is constructed based on the first interface parameters and the first mapping rule, including: generating a clone interface address; determining the third input parameters and the third output parameters of the clone interface based on the first interface parameters and the first mapping rule; and constructing a clone interface with a request address as the clone interface address based on the third input parameters and the third output parameters.

[0017] Based on this solution, a cloned interface with parameters identical to the first interface can be established, ensuring interface consistency with external systems. Simultaneously, using different request addresses avoids interface conflicts and improves interface communication efficiency.

[0018] In another possible implementation, after constructing the clone interface based on the first interface parameters and the first mapping rule, the method further includes: updating the interface configuration information of the peripheral system based on the clone interface address; establishing a transmission link between the clone interface and the corresponding interface of the peripheral system according to the interface configuration information; and establishing a transmission link between the clone interface and the second interface according to the first mapping rule.

[0019] Based on this solution, efficient communication between the peripheral system and the second core system can be achieved through the cloning interface, while maintaining consistency with the interaction logic of the original system, avoiding modifications to the interfaces of the peripheral system, and minimizing the risk of business interruption caused by system switching.

[0020] In another possible implementation, after constructing the cloned interface based on the first interface parameters and the first mapping rule, the method further includes: generating a second mapping rule corresponding to the first interface according to the correspondence between the third interface parameters and the first interface parameters; and constructing a transmission link between the peripheral system and the first interface based on the second mapping rule and the cloned interface.

[0021] Based on this solution, peripheral systems can communicate in parallel with both the old and new core systems without modifying interface configurations, ensuring bidirectional synchronization of business data and accurate routing.

[0022] In another possible implementation, after constructing the clone interface based on the first interface parameters and the first mapping rule, the method further includes: receiving business data sent by the peripheral system; converting the business data into first target data according to the first mapping rule; and sending the first target data to the second core system through the clone interface.

[0023] Based on this solution, after the cloning interface receives business data, it automatically completes field conversion and data structure adaptation according to the preset mapping rules, ensuring efficient and accurate data flow between different systems.

[0024] In another possible implementation, after receiving business data sent by the peripheral system, the method further includes: obtaining the system switching status based on the business data; determining the forwarding mode of the business data according to the system switching status; when the forwarding mode is the first system mode, converting the business data into second target data according to the second mapping rule; and sending the second target data to the first core system through the cloning interface.

[0025] Based on this solution, the system switching status can be dynamically identified, and the data forwarding path can be selected according to the status. This ensures business continuity while achieving a smooth transition between the old and new core systems, effectively reducing the risk of data loss and duplication during the switching process.

[0026] In another possible implementation, the business data is converted into the first target data according to the first mapping rule, including: when the forwarding mode is the second system mode, the business data is converted into the first target data according to the first mapping rule; when the forwarding mode is the dual-write mode, the business data is converted into the first target data according to the first mapping rule; and, the business data is converted into the second target data according to the second mapping rule.

[0027] Based on this solution, the same business request can be processed in parallel in both the old and new core systems, thus optimizing the transmission capability of business data.

[0028] Secondly, embodiments of this application also provide an interface configuration system applied to a management system including a first core system, a second core system, and at least one peripheral system. The system includes: an acquisition module configured to acquire first interface parameters of a first interface in the first core system; and to acquire second interface parameters of a second interface corresponding to the first interface based on the correspondence between the first interface and a second interface in the second core system; a conversion configuration module configured to generate a first mapping rule based on the mapping relationship between the first interface parameters and the second interface parameters; and an interface construction module configured to construct a cloned interface based on the first interface parameters and the first mapping rule.

[0029] Thirdly, embodiments of this application also provide a computing device, including: a processor and a memory; the processor and the memory are coupled; the memory is used to store program instructions; the processor is used to execute the program instructions to perform the method as described in any of the first aspects above.

[0030] Fourthly, embodiments of this application provide a chip for performing the methods described in any of the first aspects above.

[0031] Fifthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a computer, implement the method as described in any of the first aspects.

[0032] In a sixth aspect, embodiments of this application provide a program product including a computer program that, when executed by a processor, implements the method as described in any of the first aspects. Attached Figure Description

[0033] Figure 1 A schematic diagram of a computing device cluster provided in an embodiment of this application; Figure 2 A flowchart illustrating an interface configuration method provided in an embodiment of this application; Figure 3 This is a schematic diagram of an interface selection interface provided in an embodiment of this application; Figure 4 A schematic diagram of a process for generating a first mapping rule is provided for an embodiment of this application; Figure 5 A schematic diagram illustrating an input mapping relationship acquisition process provided in an embodiment of this application; Figure 6 A schematic diagram of an interface for generating a first mapping rule provided in an embodiment of this application; Figure 7 This is a schematic diagram of a method node configuration interface provided in an embodiment of this application; Figure 8 A schematic diagram of another process for generating the first mapping rule provided in an embodiment of this application; Figure 9 A schematic diagram of another interface for generating a first mapping rule provided in an embodiment of this application; Figure 10 A schematic diagram of another process for generating a first mapping rule provided in an embodiment of this application; Figure 11 A schematic diagram of an interface for generating a first mapping rule provided in an embodiment of this application; Figure 12 A schematic diagram illustrating a process for constructing a clone interface, provided as an embodiment of this application; Figure 13 A schematic diagram illustrating a process for constructing an inter-system transmission link, provided as an embodiment of this application; Figure 14 A schematic diagram of a completed cloning interface provided in an embodiment of this application; Figure 15 A schematic diagram of a traffic splitting interface provided in an embodiment of this application; Figure 16 A schematic diagram of a data splitting process provided in an embodiment of this application; Figure 17 This application provides an example of an interface for determining node configuration. Figure 18 This is a schematic diagram of an interface configuration system provided in an embodiment of this application; Figure 19 This application provides a schematic diagram of the architecture of a cloning interface. Figure 20 This is a schematic diagram of a computing device provided in an embodiment of this application. Detailed Implementation

[0034] The technical solutions of the embodiments of this application will now be described with reference to the accompanying drawings. To facilitate a clear description of the technical solutions of the embodiments of this application, the use of terms such as "first," "second," etc., in the embodiments of this application is for illustrative purposes and to distinguish the objects being described. There is no particular order between them, nor does it indicate a specific limitation on the number of devices in the embodiments of this application, and they do not constitute any limitation on the embodiments of this application.

[0035] The following explanations of the technical terms mentioned in the embodiments of this application are provided to facilitate understanding by those skilled in the art.

[0036] ERP system, short for Enterprise Resource Planning, is an information management system that integrates a company's core business processes. It is used to uniformly manage key resources and business processes such as finance, human resources, procurement, production, and sales, and optimize resource allocation to maximize efficiency.

[0037] Peripheral systems refer to other business or management information systems within an enterprise besides the core ERP system. These systems form a collaborative relationship with the ERP system through data interaction, jointly supporting the overall operation of the enterprise.

[0038] The application scenarios of this application will be explained below.

[0039] ERP systems play a crucial role in enterprise daily operations, handling core data processing and process control. By integrating with external systems, they enable the interaction and sharing of multi-source data, thereby improving business automation and decision-making efficiency. With the development of digital and intelligent technologies, and the expansion of enterprise business scale, ERP systems, as the core of the system architecture, need to be upgraded or replaced to achieve more efficient data processing capabilities, stronger system compatibility, and support for emerging business models.

[0040] The ERP system can establish communication connections with peripheral systems that perform different functions based on data interfaces and conduct bidirectional communication based on these connections. It supports data synchronization and command interaction, ensuring the real-time flow and consistency maintenance of business data between various systems.

[0041] In scenarios involving the migration of an ERP system or the parallel operation of at least two ERP systems, the interfaces of the external systems may differ in terms of data structure, interface protocols, or business logic. This requires code-level modifications to adapt them to the interface protocols and data structures of each interface in the ERP system. This process is not only time-consuming and labor-intensive but also prone to introducing compatibility risks, leading to data transmission errors or business interruptions.

[0042] This application provides an interface configuration method that enables seamless integration between peripheral systems and new core systems without altering the original interfaces of the peripheral systems. The method provided can be applied to computing devices with a management system, which includes at least two core systems and peripheral systems. It provides a unified data conversion and protocol mapping mechanism to address interface compatibility issues arising from core system changes or parallel operation of multiple core systems in computing devices. This reduces the need for interface modifications to peripheral systems, lowers the technical complexity and implementation costs of adding new core systems, and improves overall migration efficiency.

[0043] The interface configuration method provided in the embodiments of this application will be described below with reference to the accompanying drawings.

[0044] Figure 1 This is a schematic diagram of a computing device cluster provided in an embodiment of this application. Figure 2 This is a flowchart illustrating an interface configuration method provided in an embodiment of this application.

[0045] like Figure 1 As shown, the computing device with the management system deployed can be a computing device cluster 100. The computing device cluster 100 includes at least a first computing device 110a with a core system 111a deployed, a first computing device 110b with a core system 111b deployed, and a second computing device 120 with a peripheral system 121 deployed. The first computing devices 110a and 110b are respectively connected to multiple second computing devices 120 in the computing device cluster 100 through their own interface units to realize data interaction between the core system and the peripheral system.

[0046] In another embodiment of this application, the computing device with the management system may also be a single computing device with multiple processors. The core system and the peripheral system are deployed in different processors, and the different processors are connected to each other via a communication bus to realize data interaction between the core system and the peripheral system. The computing device with the management system in this embodiment may be a cluster of multiple computing devices or a single computing device with multiple processors; this application does not impose any limitations on this.

[0047] like Figure 2 As shown, the interface configuration method provided in this application embodiment may include the following steps S1 to S4.

[0048] S1: The computing device obtains the first interface parameters of the first interface in the first core system.

[0049] In this embodiment of the application, the first core system may be: Figure 1The core system 111a in the management system shown in the figure can be the second core system 111b. The state of the core system can be the parallel operation of the first core system and the second core system, or it can be the transitional state from the first core system to the second core system. This application will not elaborate on this.

[0050] In this embodiment, the first interface in the first core system can be an interface for data interaction between a computing device with the first core system and any computing device with a peripheral system 121. The first interface parameters are the interface parameters of the first interface. For example, the first interface parameters refer to the data format, request type, and request method required by the first interface when receiving service data sent by the interface of its corresponding peripheral system 121. For example, the first interface parameters may include the request method, request type, input parameter format, and output parameter format of the data that the interface corresponding to the peripheral system 121 connected to the first interface can send.

[0051] In the first interface parameters, the request method refers to the operation corresponding to the peripheral system 121 sending business data to the first core system, such as query request (GET), submit request (POST), or update request (PUT); the request type refers to the data format type when the peripheral system 121 sends business data, such as JSON, XML, or Form; the input parameter format is used to define the name, type, and nesting structure of each field in the business data sent by the peripheral system 121, and the output parameter format is used to specify the data organization form of the result returned by the first core system.

[0052] Taking the example of peripheral system 121 sending a user information creation request to the first core system through the first interface, the parameters of the first interface corresponding to this request can be POST, the request type can be application / json, the input parameter format includes fields such as last name, first name, date of birth, and phone number in string format, and the output parameter format includes the operation result status code, prompt message, and the unique identifier of the newly created user. It should be understood that application / json in the request type refers to a JSON file type, which has a clear encoding method, facilitating data parsing and transmission.

[0053] Figure 3 This is a schematic diagram of an interface selection interface provided in an embodiment of this application. The process of a computing device obtaining the first interface parameters of a first interface will be described below with reference to the accompanying drawings.

[0054] like Figure 3As shown in (a), the computing device can respond to user operations by providing an interface selection interface 30 for the user's terminal device, allowing the user to select an interface to be configured. The interface selection interface 30 may include a pre-conversion interface list 31 and a post-conversion interface list 32, wherein the pre-conversion interface list 31 is used to display interfaces that have not been configured, and correspondingly, the post-conversion interface list 32 can be used to display interfaces that have been configured.

[0055] It should be noted that the terminal device operated by the user can be a device that communicates with a computing device that has a management system deployed on it, or it can be the computing device itself. The computing device can receive instructions from the user through the terminal device and provide the user with a visual interface to assist in issuing the corresponding instructions.

[0056] In some embodiments of this application, the computing device may, in response to a user's selection of any interface in the pre-conversion interface list 31, determine that interface as the first interface to be configured, and further obtain its corresponding first interface parameters. For example... Figure 3 As shown in (b), after receiving the selection operation for the interface, the computing device will display the parameter management panel 33 of the interface. The parameter management panel 33 can display the interface parameters such as the request method, request type, input parameter format and output parameter format of the first interface through a visual pane.

[0057] Because the interface parameters displayed on the parameter management panel 33 are those corresponding to the first interface, the computing device will not directly modify these interface parameters, thus preventing accidental damage to the original communication logic of the first core system deployed on the computing device. At this time, the parameter management panel 33 only serves as a bridge for viewing and mapping; the displayed first interface parameters can be grayed out. Even if the parameter management panel 33 receives a click operation on the first interface parameters, it will not trigger an edit event for the interface parameters, ensuring the integrity of the original interface definition remains unaffected. Here, "grayed out" means that the relevant parameters in the display interface can only be viewed and cannot be directly modified, thereby ensuring the stability and security of the interface.

[0058] It should be understood that visualizing the first interface parameters is merely to provide users with an intuitive way of operation, so that users can accurately identify and map the required parameters in the subsequent configuration process. In actual execution, the computing device can respond to the user's operation by querying the parameter information of the first interface corresponding to the user's operation in its built-in database or the interface document corresponding to the first core system, thereby obtaining the first interface parameters.

[0059] It should be noted that since the interfaces that the computing device needs to configure are all interfaces for communication between the first core system and the peripheral system 121, the computing device can also automatically identify and extract relevant interfaces based on the communication characteristics of the peripheral system 121, so that the first interface parameter obtained by the computing device is the parameter corresponding to an interface for data interaction between the peripheral system 121 and the first core system, thereby making the interfaces configured by the computing device all cross-subsystem communication interfaces.

[0060] S2: Based on the correspondence between the first interface and the second interface in the second core system, the computing device obtains the second interface parameters of the second interface corresponding to the first interface.

[0061] After obtaining the first interface parameters, the computing device can determine a second interface corresponding to the first interface based on the mapping relationship between the first interface and the second interface in the second core system, and then obtain the second interface parameters of that second interface. Here, the second interface refers to the interface used by the computing device with the second core system when interacting with the peripheral system 121 corresponding to the first interface.

[0062] It should be understood that in scenarios where the first core system and the second core system operate in parallel or where the first core system migrates to the second core system, there is a functionally equivalent interface mapping relationship between the first core system and the second core system, enabling the first core system and the second core system to communicate with the corresponding peripheral system 121 to achieve the corresponding functions. Accordingly, the interface between the two core systems can be mapped through the functions they each implement.

[0063] In some implementations, the computing device can obtain the correspondence between the first interface and the second interface by acquiring a mapping table between the first interface and the second interface, and find out the second interface that is functionally equivalent to the first interface, and then obtain its second interface parameters.

[0064] The mapping table can be generated by the administrator or automatically constructed based on semantic analysis and function tags by reading the interface definition documents of the first and second core systems from the computing device. Once the mapping table exists and is loaded, the computing device will match the identifier of the first interface in the mapping table to locate the corresponding second interface.

[0065] In another embodiment, the computing device can also read and store the second interface parameters corresponding to each second interface in the second core system, so that after receiving the user operation to determine the first interface parameters, it can use the first interface parameters to determine the second interface corresponding to the first interface in the second interface parameters corresponding to each second interface, and determine its corresponding second interface parameters accordingly.

[0066] The purpose of configuring interface parameters on computing devices is to determine the parameter specifications and data formats that interfaces handling the same business in different core systems should possess, ensuring the consistency and coherence of business during cross-system migration or parallel operation. Therefore, the form of the second interface parameters obtained by the computing device is similar to that of the first interface parameters. For example, the second interface parameters may also include the request method, request type, input parameter format, and output parameter format required by the second core system. The specific content may differ from the content corresponding to the first core system due to differences in the architecture between the second and first core systems. For instance, in a new request, the second core system might require the request method to be POST, the request type to be application / xml, the input parameter format to include fields such as user identifier, name, gender, and date of birth in string format, and the output parameter format to include response code, description information, and an encrypted return value of the user ID.

[0067] S3: The computing device generates a first mapping rule based on the mapping relationship between the first interface parameters and the second interface parameters.

[0068] After obtaining the first interface parameter and the second interface parameter, the computing device can generate a first mapping rule for converting the service data sent by the peripheral system 121 based on the mapping relationship between the first interface parameter and the second interface parameter.

[0069] In some embodiments of this application, after obtaining the first interface parameter and the second interface parameter, the differences between the first interface parameter and the second interface parameter can be compared to determine the processing method of the service data sent by the interface of the corresponding peripheral system 121. If all parameters in the first interface parameter and the second interface parameter are the same, only a relay interface for corresponding mapping and conversion of the service data can be generated without additional data format adjustment structure. The computing device can then forward the service data sent by the peripheral system 121 to the second interface for processing.

[0070] If there is a difference between the first interface parameter and the second interface parameter, the computing device can perform mapping processing on each data item in the first interface parameter and the second interface parameter to obtain a conversion rule that can adapt the service data sent by the peripheral system 121 to the second core system, so as to avoid the risk of incompatibility between the service data sent by the peripheral system 121 and the interface parameters of the second core system.

[0071] Furthermore, since the mapping relationship generation methods differ for different parameter differences, the computing device can determine the first mapping rule based on the type of difference between the first interface parameter and the second interface parameter.

[0072] For example, when the data format in the first interface parameter is inconsistent with the data format in the second interface parameter, such as the first interface parameter having 7 root parameters and each root parameter having an English name corresponding to the meaning of its parameter value (e.g., the root parameter with the name value being "name"), and the second interface parameter also having 7 root parameters, but each root parameter having a pinyin name corresponding to the meaning of its parameter value (e.g., the root parameter with the name value being "xingming").

[0073] At this point, the computing device can establish a mapping relationship between the first interface parameter and the parameter name of the second interface parameter based on the correspondence between the root parameters in the first interface parameter and the second interface parameter, so that "name" corresponds to "xingming", and so on to complete the matching of the remaining parameter names.

[0074] In some implementations, inconsistencies in data formats between the first and second interface parameters can occur in other ways. For example, the first interface parameter may use JSON format while the second interface parameter uses XML format, or the number of root parameters in the second interface parameter may differ from the number of root parameters in the first interface parameter. In such cases, the computing device needs to perform type conversion, splitting, merging, and replacement operations on the root parameters corresponding to the first interface parameter based on the differences in the interface parameters, ultimately obtaining the root parameters corresponding to the second interface parameter to achieve data format compatibility.

[0075] Figure 4 This is a schematic diagram illustrating a process for generating a first mapping rule, provided as an embodiment of this application. Figure 4 As shown, the process of generating the first mapping rule provided in this application embodiment may include the following steps S311 to S314.

[0076] S311: The computing device extracts the first input parameter and the first output parameter from the first interface parameters, and extracts the second input parameter and the second output parameter from the second interface parameters.

[0077] The computing device can determine the first input parameter and first output parameter corresponding to the first interface parameter, as well as the second output parameter and second output parameter in the second interface parameter, by parsing the first interface parameter and the second interface parameter obtained in the aforementioned process. Based on a format comparison between the input and output parameters, the computing device can determine the parameter conversion method and then generate the corresponding mapping rule.

[0078] For example, the first input parameter, the second input parameter, the first output parameter, and the second output parameter can all include information such as parameter name, parameter type, parameter example value, and parameter description. Among them, the parameter name is used to indicate the specific identifier of the parameter, the parameter type is used to indicate the data type of the parameter, the parameter example value is used to show the typical value of the parameter in actual call, and the parameter description is used to describe the specific business meaning or usage constraints of the parameter.

[0079] For example, if the first input parameter includes a user name parameter, the parameter name can be "user_name", the parameter type is string, the example parameter value is "Zhang San", and the parameter description is "used to identify the user name information passed when calling the interface, and cannot be empty".

[0080] It should be noted that the contents of each input parameter and output parameter are a set of fields determined based on the actual interface definition specification. The input parameters and output parameters corresponding to different functions may contain different combinations of fields. The field combination corresponding to "parameter name, parameter type, parameter example value and parameter description" in the aforementioned embodiment is only an example provided in the embodiment of this application.

[0081] In practical applications, the input and output parameters parsed by the computing device may not be limited to the parameter name, parameter type, parameter example value, and parameter description in the aforementioned examples. They may also include constraint fields such as whether the parameter is required, parameter length limit, parameter default value, and parameter value range, as well as extended attributes such as parameter encryption method and transmission format. This application embodiment does not impose any restrictions on these.

[0082] S312: In response to receiving the first field mapping operation, the computing device performs field mapping between the first input parameter and the second input parameter to obtain the input mapping relationship.

[0083] After parsing and obtaining the input and output parameters corresponding to the first and second interface parameters, the computing device can respond to the received first field mapping operation at any time, perform field mapping between the first and second input parameters, and establish a data correspondence between the two.

[0084] In some embodiments of this application, the computing device can determine and recommend the optimal mapping scheme based on factors such as the difference in the number of parameters in the first input parameter and the second input parameter, the difference in parameter names, the matching degree of parameter types, and the semantic similarity of example values, provide the user with corresponding mapping nodes, and receive the user's field mapping operation instructions through the mapping nodes to obtain the input mapping relationship.

[0085] After obtaining the input and output parameters corresponding to the first and second interface parameters, the computing device can map each parameter in the first and second input parameters through a first field mapping operation in response to user input, generating a corresponding input mapping relationship to ensure accurate conversion of data when it is transmitted between different interfaces.

[0086] The computing device can display the first input parameter and the second input parameter by providing a visual interface to the user-operated terminal device, and receive the user's mapping operations on the first input parameter and the second input parameter to obtain the corresponding input mapping relationship. In some embodiments, the computing device can also receive a configuration file input by the user, and then implement field mapping operations on the first input parameter and the second input parameter based on the configuration file.

[0087] It should be understood that, because the first interface corresponding to the first interface parameter and the second interface corresponding to the second core parameter are interfaces with the same function but located in different core systems, and both the first interface and the second interface are used to receive interface call requests from the corresponding peripheral system 121 and return corresponding responses, based on the interface configuration of the peripheral system 121 and the first interface, the computing device can generate a mapping rule from the first interface parameter to the second interface parameter by parsing the parameter structure of the first interface parameter and the second interface parameter. At this time, the mapping rule from the first interface parameter to the second interface parameter is also the first mapping rule between the second interface and the corresponding interface of the peripheral system 121.

[0088] Figure 5 This is a schematic diagram illustrating an input mapping relationship acquisition process provided in an embodiment of this application. The following is in conjunction with... Figure 4 and Figure 5 The process by which a computing device determines the input mapping relationship is explained.

[0089] like Figure 5 As shown, the process of mapping the first input parameter and the second input parameter to obtain the input mapping relationship in step S312 may include the following steps S3121 to S3123.

[0090] S3121: The computing device obtains the first field name corresponding to each field in the first input parameter and the second field name corresponding to each field in the second input parameter.

[0091] In this embodiment of the application, based on the structure of the first input parameter and the second input parameter provided in the foregoing embodiment, it can be seen that both the first input parameter and the second input parameter contain multiple fields, each field has a unique name identifier, so that each field can be identified and mapped by the field name.

[0092] After obtaining the first input parameter and the second input parameter, the computing device can read the field names corresponding to each field in the first input parameter and the second input parameter, thereby obtaining the first field name and the second field name. Here, the fields in the input parameters are the root parameters in their respective input parameters, and the field names are the parameter names corresponding to the root parameters. Accordingly, the first field name corresponds to each parameter name in the first input parameter, and the second field name corresponds to each parameter name in the second input parameter.

[0093] S3122: The computing device establishes a correspondence between each second field name and at least one first field name according to the first field mapping operation.

[0094] After obtaining the first field name and the second field name, the computing device can establish a mapping relationship between each second field name and at least one first field name by responding to the corresponding operation flow in the first field mapping operation. It should be understood that, in this embodiment, the mapping relationship refers to the fact that when the interface of the peripheral system 121 transmits data to the core system through a unit with the first mapping rule, the parameter value corresponding to the first field name is assigned to the parameter field corresponding to its corresponding second field name, thereby achieving accurate data transfer between different systems.

[0095] S3123: The computing device determines the input mapping relationship based on the correspondence.

[0096] After obtaining the correspondence between the second field name and the first field name, the computing device can determine the input mapping relationship between the first input parameter and the second input parameter based on the input mapping relationship, so that when the peripheral system 121 calls the core system interface, it can accurately convert and transmit the data of each field according to the preset mapping rules.

[0097] In this embodiment of the application, the mapping rule between the first interface parameter and the second interface parameter can be displayed through a visual interface, and the first mapping rule can be dynamically adjusted and previewed in real time by receiving and responding to user commands.

[0098] Figure 6 This is a schematic diagram of an interface for generating a first mapping rule, provided as an embodiment of this application. The following is in conjunction with... Figure 4 and Figure 6 The process of generating the first mapping rule in the embodiments of this application will be described.

[0099] like Figure 6As shown in (a), after obtaining the first input parameter and the second input parameter, the computing device can display a mapping node window 61 to recommend node types to the user during the process of determining the input mapping relationship. The mapping node window 61 may include a preset mapping relationship interface 62 and a mapping node list 63, wherein the preset mapping relationship interface 62 is used to display the recommended mapping node construction scheme obtained by the computing device based on the differences between various parameters between the first input parameter and the second input parameter, and the mapping node list 63 is used to display the optional mapping node types.

[0100] For example, the mapping node list 63 may include method nodes 63a, code nodes 63b, assignment nodes 63c, and judgment nodes 63d. Different nodes are used to implement different functions. For example, method node 63a is used to map parameters by parameter name, code node 63b is used to perform operations such as conversion, splitting, merging, and replacing parameters to implement complex data processing logic, assignment node 63c is used to assign the value of one parameter directly or after simple processing to another parameter, and judgment node 63d determines the business parameters sent by the external system 121 through the corresponding interface according to the set conditions and sends them to the corresponding first interface and / or second interface for processing, thereby realizing business diversion.

[0101] The computing device can automatically match suitable node types and recommend them in the preset mapping relationship interface 62 in response to the parameter characteristics obtained from parsing the first and second input parameters, so as to help users quickly construct input mapping relationships. For example... Figure 6 As shown in (a), if the number of parameters between the first input parameter and the second input parameter is the same and the semantic similarity of the example values ​​is high, and the parameter types match, the computing device can generate a mapping relationship consisting of method nodes and judgment nodes, and display it in the range corresponding to the preset mapping relationship interface 62, in order to realize the field mapping between the first input parameter and the second input parameter.

[0102] In this embodiment, the preset mapping relationship generated by the computing device may include the specific content of each node. For example, in a scenario where the number of parameters between the first input parameter and the second input parameter is the same, the semantic similarity of the example values ​​is high, and the parameter names match the parameter types, the computing device can generate the mapping relationship between the first input parameter and the second input parameter based on the semantic similarity of the parameter types and example values ​​when generating the preset mapping relationship. The preset mapping relationship may also only include nodes without specific content, and be dynamically filled by the computing device in response to the node configuration instructions input by the user.

[0103] like Figure 6As shown in (b), in response to the user's selection of method node 63a in the preset mapping relationship interface 62, the computing device can display the method node configuration interface 64 on the basis of the mapping node window 61. The method node configuration interface 64 includes a basic information configuration area 65 and an input parameter setting area 66. The basic information configuration area 65 is used to set the name, description and corresponding interface of the method node, while the input parameter setting area 66 is used to set the mapping relationship of the input parameters.

[0104] Because the configuration process of the interface parameters is located between the interface of the peripheral system 121 and the interface corresponding to that interface, and the interface of the peripheral system 121 is adapted to the first interface of the first core system, the business data sent and received through the interface of the peripheral system 121 should conform to the first interface parameters.

[0105] Accordingly, during the interface configuration process, the business data sent by the peripheral system 121 needs to be converted into the interface parameter format that conforms to its target interface. When the peripheral system 121 sends business data to the second core system, the business data needs to be converted from the first interface parameter format to the second interface parameter format to ensure the compatibility and correctness of the data during cross-system transmission.

[0106] The input parameter setting area 66 allows users to manually bind the mapping relationship between the first input parameter and the second input parameter. For example, see [link to example]. Figure 6 In section (b), the input parameter setting area 66 contains a parameter mapping list. The first column displays the converted parameter name, the second column displays the converted parameter type, the third column displays the assignment method corresponding to the parameter in response to the first field mapping operation input by the user, and the fourth column displays the assignment content corresponding to the parameter name in response to the first field mapping operation input by the user.

[0107] In the input parameter setting area 66, the two columns corresponding to parameter name and parameter type are the parameter definition part of the converted interface corresponding to the method node. The computing device automatically extracts and fills them from the first interface parameter or the second interface parameter according to the core system corresponding to the interface, and grays them out in the interface so that they cannot be edited.

[0108] The content corresponding to the assignment method is the content determined in response to the user's instruction. It can include two types: "variable" and "constant". After receiving the user's instruction, the area corresponding to the assignment method can display the drop-down selection box shown in the figure, displaying "variable" and "constant" for the user to select.

[0109] The assigned value is dynamically determined based on the selected assignment method. If the user selects "Variable", the assigned value is a parameter selected from the input parameters corresponding to the interface before conversion. It can also be displayed and selected through a drop-down menu. If the user selects "Constant", the assigned value is a fixed value manually entered by the user or other constant values ​​pre-stored in the calculation device.

[0110] Taking the target interface corresponding to the business data sent by peripheral system 121 as the second interface as an example, the business data sent by peripheral system 121 needs to be converted according to the parameter format of the second interface. The content displayed in the parameter name and parameter type in the input parameter setting area 66 are all the content corresponding to the second input parameters, and the display order of the second input parameters can be sorted in ascending order based on the first letter of the parameter name to improve parameter search efficiency. The assignment method column is initialized to "variable" by default, and the drop-down selection box corresponding to the assignment content column can include all parameter names in the first input parameters.

[0111] When the user selects "Constant", the corresponding drop-down box in the assignment content column will be converted into an editable text box. The computing device can respond to the user's input instruction and automatically fill the corresponding field with the constant value entered by the user.

[0112] It should be noted that, in this embodiment, the actual meaning of the "assignment content" column is the process of assigning the parameter values ​​from the service data sent by the peripheral system 121 to the parameters corresponding to the target interface. The "parameter name" column and "assignment content" column in the method node contain the parameter names of the input parameters corresponding to the target interface and the corresponding parameter names from the service data sent by the peripheral system 121, respectively, thus establishing an input mapping relationship through the parameter names. When the computing device actually assigns values ​​to the parameters in the input parameters of the target interface, it will assign the parameter values ​​from the service data sent by the peripheral system 121 to the corresponding input parameters of the target interface according to the established input mapping relationship, completing the data format conversion and transmission.

[0113] S313: In response to receiving the second field mapping operation, the computing device performs field mapping between the first output parameter and the second output parameter to obtain the output mapping relationship.

[0114] In this embodiment of the application, the process of generating the output mapping relationship is similar to the process of generating the input mapping relationship. The difference is that the process of generating the output mapping relationship is based on the service data sent by the core system to the peripheral system 121 for parameter mapping.

[0115] Figure 7 This is a schematic diagram of a node configuration interface provided in an embodiment of this application. The following is in conjunction with... Figure 6 and Figure 7 The process of generating output mapping relationships by computing devices is explained.

[0116] In some embodiments of this application, when generating a preset mapping relationship, the computing device can simultaneously generate a mapping relationship corresponding to the output parameters of the core system, that is, configure the output mapping relationship required when the core system returns data to the peripheral system 121 in the method node. For example... Figure 7 As shown, the method node configuration interface 64 also includes an output parameter setting area 67, which is used to configure the output mapping relationship when the core system returns data.

[0117] It should be understood that when the management system is running, the output parameters of the core system's interface are the input parameters of the interface of the peripheral system 121 connected to that interface. When the core system sends business data to the peripheral system 121, taking the second interface of the second core system as an example of configuration, the content displayed in the output parameter setting area 67 may include the grayed-out second output parameter and the editable first output parameter.

[0118] Accordingly, the display and configuration of the first output parameter or the second output parameter in the method node configuration interface 64 can refer to the display and configuration of the input parameter setting area 66 provided in the foregoing embodiment, and will not be repeated here.

[0119] The computing device can respond to the second field mapping operation input by the user and establish an output mapping relationship in the output parameter setting area 67. This enables the core system to transmit business data to the corresponding interface of the peripheral system 121 according to the output mapping relationship when returning data to the peripheral system 121, thus avoiding data parsing failure or business interruption caused by data structure incompatibility in the peripheral system 121.

[0120] S314: The computing device generates a first mapping rule based on the input mapping relationship and the output mapping relationship.

[0121] After the computing device obtains the corresponding input mapping relationship and output mapping relationship through the mapping node window 61 and the first field mapping operation and the second field mapping operation input by the user, the computing device can generate the first mapping rule based on the input mapping relationship and the output mapping relationship, so as to automatically convert the data interaction between the core system and the peripheral system 121 through the first mapping rule.

[0122] In this way, the computing device performs format conversion on the service data sent by the peripheral system 121, so that when the peripheral system 121 calls the second interface to transmit service data to the second core system, it can send service data adapted to the second interface based on the generated first mapping rule, thus avoiding the technical burden and potential risks brought about by the modification of the interface code.

[0123] Figure 8 This is a schematic diagram illustrating another process for generating the first mapping rule provided in an embodiment of this application. Figure 9 This is a schematic diagram of another interface for generating a first mapping rule provided in an embodiment of this application.

[0124] In some embodiments of this application, since the differences between the first interface parameters and the second interface parameters are not limited to the difference in parameter names, but may also involve differences in data structure, data type, transmission protocol and encoding format, when the computing device performs interface mapping between the peripheral system 121 and the second core system, it is also necessary to perform other processing besides direct mapping.

[0125] like Figure 8 As shown, the computing device can also execute the generation process of the first mapping rule through the following steps S321 to S327.

[0126] S321: The computing device extracts the first input parameter and the first output parameter from the first interface parameters, and extracts the second input parameter and the second output parameter from the second interface parameters.

[0127] The process of extracting the first input parameter and the first output parameter, as well as the process of extracting the second input parameter and the second output parameter, is the same as step S311 in the aforementioned embodiment, and will not be repeated here.

[0128] S322: In response to receiving a field creation operation, the computing device creates an intermediate field.

[0129] like Figure 9 As shown in (a), the computing device can add corresponding nodes to the preset mapping relationship interface 62 in response to instructions on operating nodes in the mapping node list 63 within the mapping node window 61, thereby realizing the association configuration between fields. For example, in response to the user's new operation on the assignment node 63c, the computing device can add a first assignment node 91 to the preset mapping relationship interface 62 and construct a data conversion path from the peripheral system 121 to the second core system with the existing method node.

[0130] In this embodiment of the application, the first assignment node 91 is used to play the role of data assignment and relay during business data transmission, such as... Figure 9 As shown in (b), in response to receiving a click operation on the first assignment node 91, the computing device can display the assignment node configuration interface 92 on the basis of the mapping node window 61, so that the user can configure the intermediate fields.

[0131] The assignment node configuration interface 92 may include a basic information configuration area 93 and an assignment rule configuration area 94. Users can set the name, data type and description of the intermediate field in the basic information configuration area 93, and define the value source and conversion logic of the field in the assignment rule configuration area 94.

[0132] S323: The computing device assigns the field value of the first field corresponding to the field creation operation to the intermediate field.

[0133] The first field includes any field from the first input parameters, such as... Figure 9 As shown in (b), the computing device can respond to user input assignment operations by assigning the field value of the first field to the intermediate field, thereby achieving data compatibility conversion between different systems.

[0134] The process of assigning the first field to the intermediate field is similar to the mapping process of the first field name and the second field name in the previous embodiment. It also establishes the correspondence between fields by matching field names, and then assigns the parameter value corresponding to the first field to the intermediate field in practical applications.

[0135] In some embodiments, the first field may further include a system preset constant and user input data, wherein the system preset constant is a preset value built into the computing device for the computing device to perform assignment operations. The computing device can respond to the user's operation by assigning the corresponding value to the intermediate field, allowing the intermediate field to participate in the mapping calculation as a temporary storage unit during the data conversion process.

[0136] It should be understood that intermediate fields are logical fields that exist as temporary storage units during the data conversion process. They are used to temporarily store the original data from the first interface parameters or the intermediate results after preliminary processing. Intermediate fields can provide necessary data support for adapting the output results and ensure that the data structure and business semantics between different systems are accurately aligned.

[0137] S324: The computing device deletes the first field from the first input parameter.

[0138] After the first field is assigned to the intermediate field, the computing device can delete the first field from the first input parameter, thereby reducing the transmission of redundant data in the mapping process and improving data conversion efficiency. Subsequently, if the content corresponding to the first field is called, it will be called through the intermediate field to ensure data consistency.

[0139] In some embodiments, if the value of the first field comes from a data source other than the first input parameter, such as a system preset constant or user input data, it will not affect the content of the first input parameter. In this case, the computing device only assigns the value of the external data source to the intermediate field without making any modification or deletion operation to the first input parameter, so as to ensure the integrity of the original data and the consistency of subsequent calls.

[0140] S325: In response to receiving a third field mapping operation, the computing device performs field mapping between the first input parameter and the second input parameter to obtain an input mapping relationship.

[0141] S326: In response to receiving the fourth field mapping operation, the computing device performs field mapping between the first output parameter and the second output parameter to obtain the output mapping relationship.

[0142] The execution process of steps S325 and S326 is the same as that of steps S312 and S313 in the aforementioned embodiments, and will not be described in detail here.

[0143] S327: The computing device generates a first mapping rule based on the input mapping relationship, the output mapping relationship, and the intermediate fields.

[0144] After obtaining the input mapping relationship, output mapping relationship, and intermediate fields, the computing device can generate the first mapping rule based on the obtained content. The computing device can adjust the first mapping rule through the intermediate fields, which can improve the flexibility and adaptation accuracy of the mapping rule, improve the mapping efficiency in scenarios with large differences in input parameters, and optimize the overall performance of data transformation.

[0145] In some embodiments of this application, the intermediate field may also participate in the aforementioned step S325. The computing device can use the intermediate field and the first input parameter together as the data source for field mapping, providing a mapping target for the second input parameter. By introducing the intermediate field, the computing device can improve data traceability and processing flexibility, achieving more efficient data collaboration in complex mapping scenarios. As a temporary storage unit, the intermediate field can ensure that the mapping rules have stronger adaptability and consistency in cross-system interactions.

[0146] Figure 10 This is a schematic diagram illustrating another process for generating a first mapping rule, provided in an embodiment of this application. Figure 11 This is a schematic diagram of another interface for generating a first mapping rule provided in an embodiment of this application.

[0147] In another embodiment of this application, when there is a large difference between the first interface parameter and the second interface parameter, the computing device can also dynamically convert and verify the field content based on the parameter mapping and by combining data processing methods such as modifying parameter values ​​through code.

[0148] like Figure 10 As shown, the computing device can also execute the generation process of the first mapping rule through the following steps S331 to S335.

[0149] S331: The computing device extracts the first input parameter and the first output parameter from the first interface parameters, and extracts the second input parameter and the second output parameter from the second interface parameters.

[0150] The process of extracting the first input parameter and the first output parameter, as well as the process of extracting the second input parameter and the second output parameter, is the same as step S311 in the aforementioned embodiment, and will not be repeated here.

[0151] S332: In response to receiving the conversion configuration file, the computing device generates at least one second field based on the fields in the first input parameters.

[0152] The conversion configuration file can be a code file input by the user. Based on the conversion configuration file, the computing device can perform type conversion, merging, splitting or replacing operations on each field in the first input parameter to adapt to the data format requirements of the target interface.

[0153] For example, the first input parameter may include a birth date parameter. In the first core system, the data format of the birth date parameter is a string type, and an example value of the parameter value can be "2000-01-01". In the second core system, the birth date parameter can be three different parameters, namely the year parameter, the month parameter and the day parameter, and the data type of each parameter is an integer type.

[0154] At this point, there are significant differences in the number of fields and data types between the first and second input parameters. The mapping relationship obtained by the computing device based on the field names corresponding to the parameters cannot directly complete the format adaptation. In response to the received conversion configuration file, the computing device can perform splitting and type conversion operations on the birth date field in the first input parameter, parsing it into three independent integer values: year, month, and day. It then generates three corresponding second fields for year, month, and day, ensuring an accurate mapping with the year, month, and day fields in the second input parameter when establishing input mapping rules.

[0155] In some embodiments of this application, the conversion configuration file can be a JavaScript code file. The computing device dynamically processes the fields by executing the conversion functions defined therein, achieving data format adaptation in complex scenarios. It should be noted that the conversion configuration file can also support Python or other scripting languages ​​to adapt to different script execution environments. This application does not limit the specific language type of the conversion configuration file.

[0156] like Figure 11 As shown in (a), the computing device can add corresponding nodes in the preset relationship interface in the mapping node window 61 by responding to the instructions of the nodes in the operation mapping node list 63. For example, in response to the user's operation of adding code node 63b, the computing device can add a first code node 111 in the preset mapping relationship interface 62. This node is used to carry the script code written by the user to implement the custom conversion logic of the input parameter field.

[0157] like Figure 11 As shown in (b), in response to a click operation on the first code node 111, the computing device can display a code node configuration interface 112 on top of the mapping node window 61, allowing the user to input or edit the conversion script. The code node configuration interface 112 may include a basic information configuration area 113 and a code editing area 114. The basic information configuration area 113 corresponding to the code node configuration interface 112 is used to set the node name, node description, and script language type applied to the first code node 111. The code editing area 114 is used to receive user instructions and generate specific field conversion logic.

[0158] Taking JavaScript as an example, the user can enter JavaScript script code in the code editing area 114 of the first code node 111, define a function to receive input parameters, and parse the fields in the first input parameters based on the function to obtain at least one corresponding second field.

[0159] In some embodiments, a second assignment node may be set between the first code node 111 and the output result. The second assignment node can map at least one second field generated by the computing device after processing by the first code node 111 to an intermediate field, so as to temporarily store it in the computing device in the form of an intermediate field for subsequent parameter mapping process.

[0160] In some embodiments of this application, the first code node 111 can also respond to user instructions to generate corresponding Structured Query Language (SQL) statements, which are used to dynamically query the database and obtain the required field data during the interface call process. This avoids the data loss problem caused by the business data sent by the peripheral system 121 not containing the required fields of the second interface parameters of the second core system during the business data processing process, thereby improving the flexibility of interface configuration and data acquisition capabilities.

[0161] For example, when the first input parameter does not contain a field corresponding to the employee code, and the second input parameter includes a field corresponding to the employee code function, the first code node 111 can respond to the SQL statement generated by the conversion configuration file, query the data in the local database, dynamically obtain the employee code data, and use it as the second field in the subsequent field mapping process.

[0162] It should be understood that the statements used to implement database data query and call functions can also be implemented by adding database query-related SQL nodes to the preset mapping relationship interface 62. The generation method of assignment nodes and code nodes provided in the previous embodiment is the same. The computing device can respond to the new operation and configuration operation for the SQL node, generate the corresponding SQL execution logic in the data conversion process, call the database and initiate a query request, so as to map the returned result to the intermediate field through the new assignment node or code node.

[0163] S333: In response to receiving a fifth field mapping operation, the computing device performs field mapping between at least one second field and a second input parameter to obtain an input mapping relationship.

[0164] After obtaining the second field, the computing device can, in response to receiving the fifth field mapping operation, perform field mapping between at least one of the second fields and the second input parameters to obtain the corresponding input mapping relationship. Similar to the method of mapping the first input parameter to the second input parameter in the previous embodiment, the computing device can, in response to receiving the fifth field mapping operation, identify the parameter name, data format, and other content corresponding to the second field, and map the parameter value corresponding to the second field to the corresponding field in the second input parameter through the correspondence between parameter names, thus completing the data transfer.

[0165] In some embodiments, since the fields in the first input parameters participating in the second field generation process in the aforementioned step S332 may be a part of the total number of fields in the first input parameters, the computing device may still retain the remaining fields in the first input parameters that did not participate in the second field generation, and participate in the field mapping process together with the generated second field to generate the corresponding input mapping relationship.

[0166] S334: In response to receiving the sixth field mapping operation, the computing device performs field mapping between the first output parameter and the second output parameter to obtain the output mapping relationship.

[0167] In this embodiment, the process by which the computing device obtains the output mapping relationship is the same as that provided in step S313 above, and will not be repeated here. It should be noted that the field mapping process between the first output parameter and the second output parameter can also be processed by the assignment, code conversion and other methods given in the previous embodiment, so that the data output by the second core system meets the input parameter requirements of the interface of its corresponding peripheral system 121.

[0168] S335: The computing device generates the first mapping rule based on the input mapping relationship and the output mapping relationship.

[0169] After obtaining the input mapping relationship and the output mapping relationship, the computing device can generate the corresponding first mapping rule based on the input mapping relationship and the output mapping relationship, thereby realizing the conversion between systems with mismatched interface parameters through the first mapping rule.

[0170] It should be noted that the process of generating the first mapping rule by the computing device disclosed in the above embodiments is only one of the implementation methods provided in this application embodiment. In practical applications, the parameter conversion methods such as method nodes, assignment nodes, and code nodes disclosed in the above embodiments can be flexibly combined. The number of nodes and the execution order are not limited in this application embodiment. This enables the computing device to adapt to the complex mapping requirements between different system interfaces and improves configuration efficiency and accuracy. Moreover, through the configuration process of the visual interface, the computing device can respond to user instructions to add nodes to the preset mapping relationship interface 62 to build conversion logic and debug in real time to verify the data interaction effect.

[0171] S4: The computing device constructs a clone interface based on the first interface parameters and the first mapping rule.

[0172] In this embodiment, the cloning interface is used to realize data transmission between the peripheral system 121 and the second core system. The cloning interface has the function of data processing and conversion, which can convert the business data originally adapted to be sent to the first core system into a data format that meets the requirements of the second interface parameters according to the first mapping rule, and send it to the second core system for processing.

[0173] Once constructed, the clone interface can serve as an intermediate layer between the peripheral system 121 and the core system, allowing the peripheral system 121 to communicate with the core system via the clone interface. It should be noted that the clone interface constructed through steps S1 to S4 is a specific interface designed for the peripheral system 121 corresponding to the first interface. This clone interface is only suitable for data transmission between the interface corresponding to this peripheral system 121 and the first and second interfaces, and is not applicable to data interaction scenarios between other peripheral systems or interfaces.

[0174] If other peripheral systems 121 or interfaces need to exchange data, the computing device can traverse its existing clone interfaces to determine whether there is a clone interface corresponding to the interface of the peripheral system 121. If there is, the interface is directly called to transmit data; if there is, the aforementioned steps S1 to S4 are executed based on the first interface corresponding to the peripheral system 121 to construct the corresponding clone interface, so as to achieve efficient data conversion and transmission.

[0175] It should be noted that the construction process of the clone interface corresponding to each interface of each peripheral system 121 can be executed only once, provided that the configuration of each system does not change. After the computing device constructs the clone interface, it can store it in the configuration library for subsequent calls. In management systems where the core system is parallel or migrated, this avoids compatibility issues of data interaction interfaces of peripheral systems, thereby improving the flexibility and maintainability of data interaction between management systems.

[0176] For example, in the process of constructing the clone interface, the computing device can first construct a relay interface corresponding to the peripheral system 121 corresponding to the first interface by simulating the first interface parameters of the first core system. The relay interface can have the same data receiving capability as the first interface to ensure that the peripheral system 121 can complete the docking without modifying its existing logic. Then, the computing device can construct the corresponding adapter converter according to the first mapping rule determined in step S3 and introduce it into the relay interface to obtain the clone interface.

[0177] The relay interface constructed based on the first interface parameters has the same request method, request type and input / output parameter format as the first core system. The peripheral system 121 can maintain the original input / output parameters and communicate normally with the clone interface without modification. This allows the peripheral system 121 to communicate with the core system without code modification, and ensures that the data transmission and reception format between the peripheral system 121 and the core system remains unchanged when processing the same business.

[0178] It should be noted that when constructing the clone interface, the computing device can respond to the received configuration information and generate a clone interface corresponding to each first interface based on the first interface parameters corresponding to each first interface in the first core system, thereby forming an interface combination corresponding to each peripheral system 121, so that each peripheral system 121 can communicate with the core system through the corresponding clone interface.

[0179] Figure 12 This is a schematic diagram illustrating a process for constructing a clone interface, provided in an embodiment of this application. The following is in conjunction with... Figure 12 The content shown illustrates the process of constructing a cloning interface on the computing device and the communication process between the peripheral system 121 and the cloning interface.

[0180] In the embodiments of this application, such as Figure 12 As shown, the process of building a clone interface may include the following steps.

[0181] S41: The computing device generates the clone interface address.

[0182] During the process of sending and receiving business data, the peripheral system 121 uses an interface request address to enable the processor of the computing device to select a specific interface for data transmission. The interface request address can serve as a virtual port number, assisting the peripheral system 121 in determining whether the interface for sending business data is correct. Simultaneously, the address prefix in the interface request address can also instruct the peripheral system 121 to select the communication protocol and processing logic corresponding to the address prefix for data transmission. For example, when the address prefix is ​​https: / / , the peripheral system 121 uses the HTTPS protocol for encrypted data transmission and matches the corresponding request processing module according to the prefix rules.

[0183] During the cloning process, because the cloning interface builds an intermediate layer between the peripheral system 121 and the core system, changing the interface communication method from direct call to indirect routing using the cloning interface, the computing device needs to assign a unique cloning interface address to the cloning interface based on the number of cloning interfaces to be built before building the cloning interface. This ensures that the cloning interface address is independent of the original interface address, avoids address conflicts between the cloning interface and the first interface, and enables the service data sent by the peripheral system 121 interface to be accurately routed to the corresponding cloning interface.

[0184] For example, the cloned interface address can be generated by the computing device according to the preset rules in the configuration file. It usually includes the protocol identifier, service path and unique path parameters, so that the cloned interface address has identifiability and uniqueness, and avoids conflict with other interfaces.

[0185] In some embodiments of this application, the clone interface address can also be generated by combining the server IP address or domain name corresponding to the computing device with the identification information of the interface corresponding to the clone interface, so that the clone interface addresses of each clone interface are isolated from each other, thereby improving the security and management efficiency of inter-system communication.

[0186] The clone interface refers to the interface in the first core system that has the same interface parameters as the clone interface, and the interface of the peripheral system 121 corresponding to the interface in the first core system. The identification information may include the system number, name, and / or service type corresponding to the interface in the first core system and the interface in the peripheral system 121. When generating the corresponding clone interface address based on the identification information, the computing device can generate a unique clone interface address corresponding to each group of interfaces and the interface in the peripheral system 121. In this way, the computing device can accurately map the clone interface address corresponding to the clone interface to the communication path between the corresponding interface and the interface in the peripheral system 121, optimizing the path management and scheduling efficiency of inter-system service data transmission.

[0187] S42: The computing device determines the third input parameters and the third output parameters of the cloning interface based on the first interface parameters and the first mapping rules.

[0188] After generating the clone interface address, the computing device can determine the third input parameter and the third output parameter corresponding to the clone interface based on the first interface parameter it has collected, and the first mapping rule determined based on the first interface parameter, the second interface parameter and the corresponding configuration instruction.

[0189] In this embodiment, the third input parameter can be consistent with the first input parameter, enabling the clone interface to directly receive raw business data from the peripheral system 121, avoiding compatibility issues caused by differences in interface parameters between the peripheral system 121 and the newly added second core system. Correspondingly, the third output parameter can also be consistent with the first output parameter, allowing the response data processed by the second core system to be directly returned to the peripheral system 121, optimizing the data interaction efficiency between the peripheral system 121 and the core system.

[0190] S43: The computing device constructs a clone interface with the requested address being the clone interface address based on the third input parameter and the third output parameter.

[0191] After obtaining the third input parameter and the third output parameter, the computing device can construct a clone interface with the request address as the clone interface address, so that the peripheral system 121 does not need to modify the original request logic when communicating with the clone interface, but still encapsulates the business data according to the original interface call method and sends it to the clone interface.

[0192] It should be noted that the clone interface constructed in this embodiment includes a relay interface that connects to the interface of the peripheral system 121 and an adaptation and conversion unit corresponding to the first mapping rule. The peripheral system 121 can connect to the interface of the core system through the clone interface. When the peripheral system 121 sends service data, it can process the service data through the adaptation and conversion unit to convert it into a format that is compatible with the sending target interface of the peripheral system 121, so as to ensure that the data flows efficiently and accurately between different systems.

[0193] Figure 13 This is a schematic diagram illustrating a process for constructing an inter-system transmission link, provided as an embodiment of this application. The following is in conjunction with... Figure 13 The processing flow after the clone interface is obtained by constructing a computing device is explained.

[0194] In some embodiments of this application, after the cloning interface is constructed, the computing device can generate transmission links between the peripheral system 121 and the first core system and the second core system based on the cloning interface, thereby realizing data interaction between the peripheral system 121 and different core systems. Figure 13 As shown, the process of constructing the transmission link between the peripheral system 121 and the core system includes the following steps S51 to S55.

[0195] S51: The computing device updates the interface configuration information of the peripheral system based on the cloned interface address.

[0196] After constructing the clone interface, the computing device can send an update command to the peripheral system 121, switching the request address in its original interface configuration information that pointed to the core system interface to the clone interface address. This process only requires adjusting the interface routing information in the configuration file, without modifying the business logic code of the peripheral system 121, significantly reducing the complexity of system integration and the risk of modification.

[0197] In this embodiment, through the update of interface configuration information, the data sent by the peripheral system 121 will first reach the clone interface. The adaptation and conversion unit in the clone interface will perform format parsing and protocol conversion on the data, map the original request parameters into an input format that the second core system can recognize, and forward it to the second core system for processing.

[0198] Figure 14 This is a schematic diagram of a clone interface after its construction, provided in an embodiment of this application. The following is in conjunction with… Figure 14 The interface shown is Figure 13 The content describes the processing flow of the computing device after the cloning interface is built.

[0199] In some embodiments of this application, after the computing device completes the cloning interface construction, it can display as shown below. Figure 14 The interface management interface 141 shown in (a) can display the name, request address, associated system and current configuration version of the cloned interface, making it easy for users to intuitively view the configuration status and association of the cloned interface.

[0200] The interface management interface 141 may also provide an editing control 142 and an operation control 143. The computing device can respond to the triggering of the editing control 142 and display, as shown below. Figure 6 The mapping node window 61 shown in (a) can edit and modify the mapping rules of the interface by receiving and responding to configuration information.

[0201] The computing device can also respond to the triggering of the operation control 143 by displaying an operation option box 144, allowing users to select functions such as trial run, deployment, deployment and activation, version management, association strategy, and deletion, thereby realizing full-process management of the interface lifecycle.

[0202] In response to receiving a notification that the "Deploy and Enable" function has been triggered, the computing device can officially publish the currently configured version of the clone interface to the runtime environment. For example... Figure 14As shown in (b), the computing device can switch to the seamless distribution management interface 145 corresponding to the peripheral system 121 at this time. The seamless distribution management interface 145 can display the system name and usage status of the peripheral system 121 corresponding to the clone interface.

[0203] The seamless routing management interface 145 may include an address switching control 146. In response to the address switching control 146 being triggered, the computing device can perform an address switching operation to seamlessly migrate the request routing of the peripheral system 121 from the original core system interface to the deployed clone interface.

[0204] S52: The computing device establishes a transmission link between the clone interface and the corresponding interface of the peripheral system based on the interface configuration information.

[0205] After the interface configuration information is updated, the computing device can respond to the connection request initiated by the peripheral system 121 and establish a transmission link between the cloned interface and the corresponding interface of the peripheral system 121 based on the updated interface configuration information. This allows the peripheral system 121 to send business data to the target core system through the cloned interface. The target core system refers to the core system that processes the business data sent by the peripheral system 121, and it can be either the first core system or the second core system.

[0206] After the transmission link between the clone interface and the corresponding interface of the peripheral system 121 is established, the clone interface can receive the service data sent by the peripheral system 121 in real time and complete the data processing through the adaptation and conversion unit so that the service data of the peripheral system 121 can be adapted to the interface specifications of the target core system, thereby improving the data compatibility and interaction efficiency of the management system.

[0207] S53: The computing device establishes a transmission link between the clone interface and the second interface according to the first mapping rule.

[0208] In this embodiment of the application, after the computing device establishes a transmission link between the clone interface and the corresponding interface of the peripheral system 121, it can establish a transmission link between the clone interface and the second interface through the first mapping rule. When the clone interface receives service data that needs to be transmitted to the second interface, it can convert the service data through the adaptation and conversion unit built based on the first mapping rule to convert the request data into the data format corresponding to the parameters of the second interface, so that the service data can be transmitted to the second core system through the second interface.

[0209] It should be noted that the transmission link established in this embodiment can be a logical link, which does not require physical network reconstruction. Dynamic switching of data forwarding paths can be achieved simply by configuring routing rules and protocol mapping.

[0210] S54: The computing device generates a second mapping rule corresponding to the first interface based on the correspondence between the third interface parameters and the first interface parameters.

[0211] In some embodiments of this application, since the first core system and the second core system are running in parallel, the cloning interface needs to support forwarding the same business data to both core systems at the same time, so as to realize the function of dual writing of business data. That is, after receiving the business data sent by the peripheral system 121, the cloning interface can forward the business data adapted to its interface parameters to the first core system and / or the second core system through the adaptation and conversion unit.

[0212] When the target interface of the peripheral system 121 includes the first interface, the computing device can determine the data mapping relationship between the clone interface and the first interface before constructing the transmission link between the clone interface and the first interface, and generate a conversion second mapping rule adapted to the parameters of the first interface based on the mapping relationship, so that the constructed clone interface can forward the received service data to the corresponding core system.

[0213] Because the first core system manages the system's original core system, the interface parameters of the peripheral system 121 are compatible with those of the first core system. Furthermore, during the construction of the clone interface, the computing device determines the corresponding input and output parameters of the clone interface based on the first interface parameters. Therefore, the third interface parameters corresponding to the clone interface are consistent with the first interface parameters, allowing the original data mapping logic to be directly reused.

[0214] The computing device can leverage the consistency between the third interface parameters and the first interface parameters to directly reuse existing mapping logic to generate the second mapping rule without redefining the data transformation structure, thereby reducing configuration complexity and improving link construction efficiency.

[0215] S55: The computing device constructs a transmission link between the peripheral system and the first interface based on the second mapping rule and the clone interface.

[0216] After obtaining the second mapping rule, the computing device can configure it into the clone interface, update the conversion logic of its adaptation and conversion unit, and thus establish a transmission link between the peripheral system 121 and the first interface. In this way, when the clone interface receives service data, it can also forward it to the first core system according to the second mapping rule, ensuring that the original business process is not affected.

[0217] Figure 15 This is a schematic diagram of a traffic splitting interface provided in an embodiment of this application. Figure 16 This is a schematic diagram illustrating a data splitting process provided in an embodiment of this application. The following is based on... Figure 15 and Figure 16The service data diversion function of the peripheral system 121 provided in the embodiments of this application will be described.

[0218] In some embodiments of this application, after the cloning interface is deployed and started, as follows: Figure 15 As shown, the address switching control 146 can be grayed out by the computing device, thereby indicating that the corresponding interface of the system has updated the interface configuration information. At this time, the peripheral system does not need to switch the calling address immediately and can still send requests using the original interface path.

[0219] At this point, the clone interface has dual-write capability, allowing it to forward service data sent from peripheral systems to the first and second core systems respectively according to preset mapping rules. The computing device can dynamically configure the forwarding logic of the clone interface based on a preset traffic splitting strategy, achieving smooth traffic splitting between the two systems.

[0220] In some embodiments, the computing device can also control the target system for traffic splitting via the traffic splitting management control 147 in the seamless traffic splitting management interface 145. For example... Figure 15 As shown, in response to the triggering of the traffic management control 147, the computing device can display a list 148 of selectable traffic targets in the traffic management interface 145. For example, the list 148 of traffic targets may include a first core system, a second core system, and a dual-write mode.

[0221] The computing device can respond to the triggering of the traffic splitting target, determine the target traffic splitting mode corresponding to the peripheral system 121 interface, and dynamically update the forwarding rules of the cloned interface according to the selected mode.

[0222] like Figure 16 As shown, the peripheral system 121 sends service data, and the service data can be diverted through the following steps.

[0223] S61: The computing device receives service data sent by the peripheral system.

[0224] After the computing device establishes the transmission links between the peripheral system 121 and the first core system, and between the peripheral system 121 and the second core system through the cloning interface, it can dynamically adjust the data flow based on preset strategies or real-time commands to achieve flexible scheduling of business traffic.

[0225] S62: The computing device obtains the system switching status based on business data.

[0226] After receiving service data sent by the external system, the cloning interface allows the computing device to obtain the system switching status corresponding to the service data and determine the data forwarding path based on the current traffic splitting mode.

[0227] Figure 17 This is a schematic diagram of an interface for determining node configuration provided in an embodiment of this application.

[0228] In this embodiment of the application, the system switching state can be achieved by adding a judgment node 63d to the adaptation and conversion unit of the computing device. For example... Figure 6 As shown in (a), the preset mapping relationship interface 62 may include a first judgment node 68. The first judgment node 68 is used to determine the current traffic splitting mode based on the key fields in the business data. Its configuration conditions support dynamic updates or manual updates by the user.

[0229] like Figure 17 As shown, the computing device can respond to the configuration command of the first judgment node 68 and display the judgment node configuration interface 171. The judgment node configuration interface 171 includes a basic information configuration area 172 and a judgment condition configuration area 173. The basic information configuration area 172 is used to set the name and description of the judgment node, and the judgment condition configuration area 173 supports adding multiple judgment rules to determine the flow of business data.

[0230] For example, the judgment condition configuration area 173 may include at least three judgment rules to determine the specific traffic diversion strategy, namely, diverting traffic to the first core system, diverting traffic to the second core system, and dual-write mode. Each judgment rule can be obtained by matching conditions based on key fields in the business data, or by obtaining the corresponding judgment rule based on data such as the configuration information of the peripheral system 121 obtained by the computing device.

[0231] For example, a time parameter can be introduced into the judgment rules. By limiting the effective time period for each traffic splitting mode, timed switching can be achieved. For instance, if the judgment condition for splitting to the first core system is 0-8 a.m. every day, the judgment condition for splitting to the second core system is 16-24 a.m. every day, and the judgment condition for dual-write mode is 8-16 a.m., then the system switching status of business data input to the clone interface during the time period from 0 a.m. to 8 a.m. every day will be judged as the first core system status, the time period from 8 a.m. to 16 a.m. will be judged as the dual-write status, and the time period from 16 a.m. to 24 a.m. will switch to the second core system status, thus achieving automated traffic splitting control based on the time dimension.

[0232] In some embodiments, the judgment rules can also be set with an effective time period. For example, the judgment condition for diverting traffic to the first core system is from the current time to 00:00 on January 1, 2026; the judgment condition for dual-write mode is from 00:00 on January 1, 2026 to 00:00 on February 1, 2026; and the judgment condition for diverting traffic to the second core system is effective from 00:00 on February 1, 2026. This achieves a phased system switch based on a time axis. In this way, computing devices can achieve precise control of periodic or one-time switching strategies by determining the effective time range. It supports repeated execution on daily, weekly, or monthly cycles, or specifies specific dates and time periods to take effect, ensuring that computing devices complete a smooth transition of data flow at predetermined time points and avoiding business interruption.

[0233] It should be noted that the time-based judgment conditions and specific time values ​​given in the above embodiments are only examples. In actual applications, judgment conditions can also be written and executed based on other data carried in the business data. This application embodiment does not impose any restrictions on this.

[0234] In another embodiment of this application, the computing device may also use the target diversion mode obtained by responding to the diversion target being triggered to determine the system switching state, dynamically match the target diversion mode with the preset judgment rules, and calculate and confirm the system state that should be executed in real time.

[0235] S63: The computing device determines the forwarding mode of service data based on the system switching state.

[0236] After obtaining the system switching status, the computing device can determine the forwarding mode of business data based on the system switching status. For example, when the system switching status is the first core system, the forwarding mode of business data is switched to the first system mode; when the system switching status is the second core system, the forwarding mode of business data is switched to the second system mode; and when the system switching status is the dual-write mode, the forwarding mode of business data is switched to the dual-write mode.

[0237] In some embodiments, if the system switching state is not determined by the target traffic splitting mode generated by the computing device, then when determining the forwarding mode of service data, it is necessary to simultaneously determine the consistency between the system switching state and the target traffic splitting mode. If the two are consistent, then the service data forwarding mode is determined according to the corresponding system switching state. For example, if the system switching state is the first core system and the traffic splitting target corresponding to the target traffic splitting mode is the first core system, then the service data forwarding mode is switched to the first system mode.

[0238] If the two are inconsistent, such as when the system switchover status is the second core system or dual-write mode, but the target traffic distribution mode still points to the first core system, the computing device can switch the service data forwarding mode to the first system mode. Alternatively, when the system switchover status is the first core system, but the target traffic distribution mode has changed to the second core system, the computing device can switch the service data forwarding mode to the first system mode. In this case, the target traffic distribution mode will take precedence to ensure that service data flows according to the latest user instructions and avoid data flow errors caused by system status lag.

[0239] If the system switching state is the first core system or the second core system, but the target of the target traffic splitting mode is already in dual-write mode, the computing device can switch the business data forwarding mode to the forwarding mode corresponding to the system switching state, so as to better meet the actual needs of the current management system operation, and improve processing efficiency while ensuring data consistency.

[0240] It should be understood that the above-described implementation method for determining the service data forwarding mode based on system switching status and / or target traffic distribution mode is only one feasible implementation method in the embodiments of this application. In practical applications, computing devices can also combine more parameters or strategies for dynamic decision-making, and this application does not impose any restrictions on this.

[0241] S64: When the forwarding mode is the first system mode, the computing device converts the service data into the second target data according to the second mapping rule.

[0242] When the forwarding mode is the first system mode, the cloning interface can convert the received service data into second target data based on the second mapping rule. In this way, the cloning interface can forward the service data sent by the peripheral system 121 to the first core system.

[0243] S65: The computing device sends the second target data to the first core system via the cloning interface.

[0244] After obtaining the second target data, the computing device can send the second target data to the first core system for business processing through the cloning interface, thus completing the process of the peripheral system 121 sending business data to the first core system.

[0245] S66: When the forwarding mode is the second system mode, the computing device converts the service data into the first target data according to the first mapping rule.

[0246] When the forwarding mode is the second system mode, the cloned interface can convert the received business data into the first target data based on the first mapping rule, so that the format of the business data is adapted to the second interface and the system compatibility is optimized.

[0247] S67: The computing device sends the first target data to the second core system through the cloning interface.

[0248] After obtaining the first target data, the computing device can send the first target data to the second core system for business processing through the cloning interface, thus completing the process of the peripheral system 121 sending business data to the second core system.

[0249] S68: When the forwarding mode is dual-write mode, the computing device converts the service data into first target data according to the first mapping rule, and converts the service data into second target data according to the second mapping rule.

[0250] When the forwarding mode is dual-write, the business data can be converted into first target data and second target data respectively, and then forwarded to the corresponding core system through the aforementioned steps S65 and S67. This process ensures that business data can be converted and forwarded as needed under different system modes, enabling the clone interface to forward business data to the corresponding core system.

[0251] Based on the solution provided in this application embodiment, a cloning interface and adaptation conversion unit are constructed in a computing device that deploys a core system and a peripheral system to achieve dynamic adaptation and bidirectional mapping of data formats. This allows the management system deployed in the computing device to achieve interface integration between the peripheral system and the new and old core systems without requiring the peripheral systems to modify their interfaces or adjust their data formats for the new core system when a new core system is added. This significantly reduces system switching costs. Furthermore, the method provided in this application embodiment can be built during the operation of the management system, and the deployment and access of the new system can be completed without downtime, avoiding business interruption caused by changes in the core system.

[0252] Figure 18 This is a schematic diagram of an interface configuration system provided in an embodiment of this application.

[0253] Corresponding to the aforementioned embodiments of the interface configuration method, this application also provides an embodiment of an interface configuration system. For example... Figure 18 As shown, the interface configuration system 1800 includes an acquisition module 1801, a conversion configuration module 1802, and an interface construction module 1803.

[0254] The acquisition module 1801 is configured to: acquire the first interface parameter of the first interface in the first core system; and acquire the second interface parameter of the second interface corresponding to the first interface according to the correspondence between the first interface and the second interface in the second core system.

[0255] The conversion configuration module 1802 is configured to generate a first mapping rule based on the mapping relationship between the first interface parameters and the second interface parameters.

[0256] Interface building module 1803 is configured to build a clone interface based on the first interface parameters and the first mapping rule.

[0257] Figure 19 This is a schematic diagram of the architecture of a cloning interface provided in an embodiment of this application.

[0258] like Figure 19As shown, the clone interface 1900 includes an intermediate interface 1901 and an adaptation and conversion unit 1902. The intermediate interface 1901 receives service data from the peripheral system 1920 and transmits it to the adaptation and conversion unit 1902. The adaptation and conversion unit 1902 parses, converts, and adapts the received service data according to the mapping rules generated by the interface configuration method in the aforementioned embodiments, and sends it to the corresponding first core system 1910a or second core system 1910b. This enables the flow of service data between the multi-core management systems, avoiding data blockage and service interruption caused by core system switching or replacement, and ensuring business continuity.

[0259] Figure 20 This is a schematic diagram of a computing device provided in an embodiment of this application.

[0260] like Figure 20 As shown, the computing device 2000 includes a processor 2001 and a memory 2002. Exemplarily, the computing device 2000 may also include a communications interface 2003 and a communications bus 2004.

[0261] The processor 2001, memory 2002, and communication interface 2003 communicate with each other via communication bus 2004. The communication interface 2003 may include a transmitter and receiver for communicating with other devices or communication networks, and may be a wired interface (port), such as a fiber distributed data interface (FDDI) or a gigabit Ethernet interface (GE).

[0262] In this embodiment, the communication interface 2003 can be used to enable communication between the computing device 2000 and the terminal device operated by the user, so that the computing device 2000 can receive user input operations, provide a visual interface for the terminal device and execute operations to generate corresponding operation results, thereby configuring the interface of the management system deployed in the computing device 2000.

[0263] In some embodiments, the processor 2001 is used to execute the program 2005, specifically performing the relevant steps in the interface configuration method embodiments described above. Specifically, the program 2005 may include program code, which includes computer-executable instructions.

[0264] For example, processor 2001 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement some embodiments of this application. Computing device 2010 may include one or more processors, which may be processors of the same type, such as one or more CPUs; or they may be processors of different types, such as one or more CPUs and one or more ASICs. The CPU may be a single-core CPU or a multi-core CPU.

[0265] In some embodiments, memory 2002 is used to store program 2005. Memory 2002 may include high-speed random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device.

[0266] Specifically, program 2005 can be called by processor 2001 to cause computing device 2000 to execute interface configuration method operations.

[0267] Some embodiments of this application provide a computer-readable storage medium storing at least one executable instruction that, when executed on a computing device 2000, causes the computing device 2000 to perform the interface configuration method described in the above embodiments.

[0268] For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device.

[0269] This application provides a chip system in several embodiments, which is applied to a server. The chip system includes one or more interface circuits and one or more processors. The interface circuits and processors are interconnected via lines. The interface circuits are used to receive signals from the server's memory and send signals to the processors, the signals including computer instructions stored in the memory. When the processor executes the computer instructions, the server performs the various steps of the interface configuration method shown in the above-described method embodiments.

[0270] The beneficial effects that the readable storage medium provided in some embodiments of this application can achieve can be referred to the beneficial effects in the corresponding interface configuration methods provided above, and will not be repeated here.

[0271] The embodiments described above are merely specific embodiments of this application and are not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made based on the technical solution of this application should be included within the scope of protection of this application.

Claims

1. An interface configuration method, characterized in that, The method is applied to a computing device with a management system deployed thereon, the management system including a first core system, a second core system, and at least one peripheral system, and includes: Obtain the first interface parameter of the first interface in the first core system; Based on the correspondence between the first interface and the second interface in the second core system, obtain the second interface parameters of the second interface corresponding to the first interface; Based on the mapping relationship between the first interface parameters and the second interface parameters, a first mapping rule is generated; Based on the first interface parameters and the first mapping rule, a clone interface is constructed, which is used to realize data transmission between the peripheral system and the second core system.

2. The method according to claim 1, characterized in that, The generation of the first mapping rule based on the mapping relationship between the first interface parameters and the second interface parameters includes: Extract the first input parameter and the first output parameter from the first interface parameters, and extract the second input parameter and the second output parameter from the second interface parameters; In response to receiving a first field mapping operation, the first input parameter and the second input parameter are mapped to obtain an input mapping relationship; In response to receiving a second field mapping operation, the first output parameter and the second output parameter are mapped to obtain an output mapping relationship; The first mapping rule is generated based on the input mapping relationship and the output mapping relationship.

3. The method according to claim 2, characterized in that, The step of mapping the first input parameter to the second input parameter to obtain the input mapping relationship includes: Obtain the first field name corresponding to each field in the first input parameter and the second field name corresponding to each field in the second input parameter; Based on the first field mapping operation, establish a correspondence between each second field name and at least one first field name; Based on the correspondence, the input mapping relationship is determined.

4. The method according to claim 1, characterized in that, The generation of the first mapping rule based on the mapping relationship between the first interface parameters and the second interface parameters includes: Extract the first input parameter and the first output parameter from the first interface parameters, and extract the second input parameter and the second output parameter from the second interface parameters; In response to a received field creation operation, an intermediate field is created. Assign the field value of the first field corresponding to the field creation operation to the intermediate field, wherein the first field includes any field in the first input parameters; Delete the first field from the first input parameter; In response to receiving a third field mapping operation, the first input parameter and the second input parameter are mapped to obtain an input mapping relationship; In response to receiving the fourth field mapping operation, the first output parameter and the second output parameter are mapped to obtain the output mapping relationship; The first mapping rule is generated based on the input mapping relationship, the output mapping relationship, and the intermediate field.

5. The method according to claim 1, characterized in that, The generation of the first mapping rule based on the mapping relationship between the first interface parameters and the second interface parameters includes: Extract the first input parameter and the first output parameter from the first interface parameters, and extract the second input parameter and the second output parameter from the second interface parameters; In response to receiving the conversion configuration file, at least one second field is generated based on each field in the first input parameter; In response to receiving a fifth field mapping operation, the at least one second field is mapped to the second input parameter to obtain an input mapping relationship; In response to receiving the sixth field mapping operation, the first output parameter and the second output parameter are mapped to obtain the output mapping relationship; The first mapping rule is generated based on the input mapping relationship and the output mapping relationship.

6. The method according to any one of claims 1 to 5, characterized in that, The step of constructing a clone interface based on the first interface parameters and the first mapping rule includes: Generate clone interface address; Based on the first interface parameters and the first mapping rule, the third input parameters and the third output parameters of the cloning interface are determined; Based on the third input parameter and the third output parameter, construct the clone interface with the request address being the clone interface address.

7. The method according to claim 6, characterized in that, After constructing the clone interface based on the first interface parameters and the first mapping rule, the method further includes: Update the interface configuration information of the peripheral system based on the cloned interface address; Based on the interface configuration information, a transmission link is established between the cloned interface and the corresponding interface of the peripheral system; According to the first mapping rule, a transmission link is established between the clone interface and the second interface.

8. The method according to claim 6, characterized in that, After constructing the clone interface based on the first interface parameters and the first mapping rule, the method further includes: Based on the correspondence between the third interface parameters and the first interface parameters, a second mapping rule corresponding to the first interface is generated; Based on the second mapping rule and the clone interface, a transmission link is constructed between the peripheral system and the first interface.

9. The method according to any one of claims 1 to 8, characterized in that, After constructing the clone interface based on the first interface parameters and the first mapping rule, the method further includes: Receive service data sent by the peripheral system; According to the first mapping rule, the business data is converted into the first target data; The first target data is sent to the second core system via the cloning interface.

10. The method according to claim 9, characterized in that, After receiving the service data sent by the peripheral system, the method further includes: Based on the aforementioned business data, the system switching status is obtained; The forwarding mode of the service data is determined based on the system switching status; When the forwarding mode is the first system mode, the service data is converted into the second target data according to the second mapping rule; The second target data is sent to the first core system through the cloning interface.

11. The method according to claim 10, characterized in that, The step of converting the business data into first target data according to the first mapping rule includes: When the forwarding mode is the second system mode, the service data is converted into the first target data according to the first mapping rule; When the forwarding mode is dual-write mode, the service data is converted into the first target data according to the first mapping rule, and the service data is converted into the second target data according to the second mapping rule.

12. A computing device, characterized in that, include: Processor and memory; The processor and the memory are coupled together; The memory is used to store program instructions; The processor is used to execute the program instructions to perform the interface configuration method as described in any one of claims 1 to 11.