Interface configuration method and device, equipment and medium

The interface configuration item information is determined through the interface configuration interface, including interface management, transaction code and field mapping rules, which solves the problem that the interface needs to be written independently, improves configuration efficiency and flexibility, adapts to diverse business scenarios, and solves exceptions through monitoring.

CN120578435APending Publication Date: 2025-09-02AGRICULTURAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510716187.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-02

AI Technical Summary

Technical Problem

In the prior art, each independent interface needs to write code separately, resulting in redundant development, increasing maintenance and management complexity, and the service provider and caller need to map data fields according to their respective system data standards, increasing development complexity.

Method used

It provides an interface configuration method and device, through the user to determine the interface configuration item information, including interface management information, transaction code information, business data conversion rules and field mapping rules, supports flexible interface configuration and adapts to diversified business scenarios.

Benefits of technology

It improves the efficiency and flexibility of interface configuration, reduces redundant development, simplifies the development process, supports diversified business scenario requirements, and solves business exceptions through interface operation monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120578435A_ABST
    Figure CN120578435A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses an interface configuration method and device, equipment and a medium, and the method comprises the steps: determining the configuration item information of a first interface based on the interface configuration operation of a user on a preset interface configuration interface; wherein the first interface is a business processing interface of the transaction business, and the configuration item comprises interface management information, transaction code information corresponding to the transaction business, a business data conversion rule in the transaction business and a field mapping rule. According to the technical scheme, the problem that an existing interface needs independent code writing is solved, interface configuration can be carried out based on the configuration interface, the interface configuration comprises the field mapping rule, the interface configuration efficiency and flexibility are improved, and the interface configuration method and device are suitable for diversified service scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of computer technology, and in particular to an interface configuration method, apparatus, device, and medium. Background Art

[0002] Currently, each independent interface requires separate code, which leads to the duplication of a large amount of similar code. This redundancy not only wastes development resources but also increases the complexity of maintenance and management.

[0003] The service provider and the caller must develop in accordance with the interface design standards. The service provider and the caller of the interface need to map data fields according to their respective system data standards, which increases the complexity of development. Summary of the Invention

[0004] The embodiments of the present invention provide an interface configuration method, apparatus, device, and medium, which can improve the flexibility and efficiency of interface configuration and adapt to diverse business scenarios.

[0005] In a first aspect, an embodiment of the present invention provides an interface configuration method, the method comprising:

[0006] Determining configuration item information of the first interface based on an interface configuration operation performed by the user on a preset interface configuration interface;

[0007] Among them, the first interface is the business processing interface of the transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

[0008] In a second aspect, an embodiment of the present invention provides an interface configuration device, the device comprising:

[0009] An interface configuration module, configured to determine configuration item information of the first interface based on an interface configuration operation performed by a user on a preset interface configuration interface;

[0010] Among them, the first interface is the business processing interface of the transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

[0011] In a third aspect, an embodiment of the present invention further provides a computer device, comprising:

[0012] one or more processors;

[0013] a memory for storing one or more programs;

[0014] When the one or more programs are executed by one or more processors, the one or more processors implement the interface configuration method provided by any embodiment of the present invention.

[0015] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the interface configuration method provided by any embodiment of the present invention.

[0016] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the interface configuration method provided by any embodiment of the present invention.

[0017] The embodiments of the above invention have the following advantages or beneficial effects:

[0018] In an embodiment of the present invention, configuration item information for a first interface is determined based on a user's interface configuration operations in a preset interface configuration interface. The first interface is a business processing interface for a transaction service, and the configuration items include interface management information, transaction code information corresponding to the transaction service, business data conversion rules within the transaction service, and field mapping rules. The technical solution of this embodiment of the present invention solves the current problem of requiring independent code for interfaces. Interface configuration can be performed based on the configuration interface, including field mapping rules, improving the efficiency and flexibility of interface configuration and adapting to diverse business scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 This is a flow chart of an interface configuration method provided by an embodiment of the present invention;

[0020] Figure 2 This is a flow chart of an interface configuration method provided by an embodiment of the present invention;

[0021] Figure 3 This is a data model diagram of an interface configuration provided by an embodiment of the present invention;

[0022] Figure 4 This is a schematic diagram of a data flow direction provided by an embodiment of the present invention;

[0023] Figure 5 This is a page function diagram of an interface configuration provided by an embodiment of the present invention;

[0024] Figure 6 This is a flow chart of an interface configuration method provided by an embodiment of the present invention;

[0025] Figure 7 This is a schematic diagram of an interface configuration and operation monitoring process provided by an embodiment of the present invention;

[0026] Figure 8 This is a schematic diagram of a transaction data processing flow provided by an embodiment of the present invention;

[0027] Figure 9 This is a structural diagram of an interface configuration device provided by an embodiment of the present invention;

[0028] Figure 10 It is a structural diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0029] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.

[0030] Figure 1 This is a flowchart of an interface configuration method provided in an embodiment of the present invention. This embodiment is applicable to interface configuration scenarios. The method can be performed by an interface configuration device, which can be implemented in software and / or hardware and integrated into a computer device with application development capabilities.

[0031] like Figure 1 As shown, the interface configuration method of this embodiment includes the following steps:

[0032] S110: Determine configuration item information of the first interface based on an interface configuration operation performed by a user in a preset interface configuration interface.

[0033] The interface platform provides a login interface. On the login interface, users pass identity authentication and enter the preset interface configuration interface if they have interface configuration permissions.

[0034] The preset interface configuration interface can be the configuration interface provided by the interface platform. This configuration interface is graphical and offers a wide range of flexible configuration options. The first interface is the business processing interface for transaction services. This can be a newly registered interface or an existing interface requiring configuration changes. Configuration items include interface management information, transaction code information corresponding to the transaction service, business data conversion rules within the transaction service, and field mapping rules. Interface management information includes the interface name, identifier, and other information, and provides functionality for adding, modifying, deleting, and querying detailed information. Transaction code information corresponding to the transaction service includes the transaction code and its version. The transaction code and version clearly identify the interface to which the interface information corresponds. Interface information refers to the transaction service call request data received by the interface platform, including the input parameters for external calls, specifically the transaction code, transaction code version, output data format, and input data. Specifically, the transaction code and transaction code version uniquely correspond to the interface. During the call request processing process, the corresponding interface is accurately identified and called based on the provided transaction code and version information.

[0035] Input data is the business data passed by external systems when calling interfaces. Its format must follow predefined building information standards. The interface platform receives this data, processes and serializes it according to preconfigured processing rules, and ultimately generates a data stream that is sent to the target system-as-a-service system.

[0036] The output data format is the specified target data format. The interface platform will deserialize the information stream returned by the actual interface call method and convert it into an object entity that conforms to the output data format so that the interface call system can correctly parse and use it.

[0037] Business data conversion rules in transaction business may include input data and output data conversion rules and validation rules, that is, data serialization and deserialization rules, which can convert data between different formats, such as JSON and MAP.

[0038] The business data field mapping rules in the transaction business may be the conversion rules from the source field to the target field in the business data processing.

[0039] This embodiment implements interface functions through interface configuration. Without being restricted by source code modification, flexible assembly of interface information is achieved through interface configuration, which can adapt to a variety of different business scenarios and needs, and provides third-party developers with a function entry with consistent parameters, ensuring the convenience and accuracy of third-party calls.

[0040] The technical solution of this embodiment determines configuration item information for a first interface based on user interface configuration operations in a preset interface configuration interface. The first interface is a business processing interface for a transaction service, and the configuration items include interface management information, transaction code information corresponding to the transaction service, business data conversion rules within the transaction service, and field mapping rules. This technical solution solves the current problem of requiring independent code for interfaces. Interface configuration can be performed based on the configuration interface, including field mapping rules, improving the efficiency and flexibility of interface configuration and adapting to diverse business scenarios.

[0041] Figure 2 This is a flowchart of an interface configuration method provided in an embodiment of the present invention. This embodiment, which shares the same inventive concept as the interface configuration method described in the previous embodiment, further describes the interface configuration process. This method can be performed by an interface configuration device, which can be implemented in software and / or hardware and integrated into a computer device with application development capabilities.

[0042] like Figure 2 As shown, the interface configuration method of this embodiment includes the following steps:

[0043] S210. Determine at least one of the interface name, interface identifier, interface production status, and interface management personnel of the first interface based on the interface configuration operation performed by the user on the interface management information configuration page of the preset interface configuration interface.

[0044] like Figure 3 As shown, different configuration items correspond to different data models, and the interface management information configuration page corresponds to the interface management model.

[0045] The interface management model is responsible for maintaining the management information of the interface. The configuration items of the interface configuration operation include at least one of the interface name, interface identification (ie, interface ID), interface description, interface management personnel, and interface production status (ie, production status).

[0046] In an optional embodiment, step S210 may also be implemented by determining at least one of the transaction code, transaction code version, and data flow direction corresponding to the transaction code of the first interface based on the interface configuration operation performed by the user on the transaction code information configuration page of the preset interface configuration interface; wherein the transaction code and transaction code version are used to determine the interface for processing transaction data according to the transaction code and transaction code version corresponding to the transaction data after obtaining the transaction data, and the data flow direction corresponding to the transaction code is determined based on the service cluster where the interface platform of the first interface is located as the boundary.

[0047] The transaction code information configuration page corresponds to the transaction code management model. The transaction code management model is responsible for managing the outbound and inbound transaction code information of the interface, including at least one of the transaction code, transaction code version, and data flow direction corresponding to the transaction code.

[0048] The data flow direction corresponding to the transaction code is the same as the transmission direction between the cluster where the interface platform is located and the external system, such as Figure 4 As shown, the transaction code direction for a transaction within the microservice cluster where the interface platform resides, where the interface platform sends information or makes a call outside its boundaries, or where the interface platform responds to an external system call and sends information outside its boundaries, is "send." The transaction direction for an external system calling the interface platform, or an external system responding to the interface platform and sending a response back to the interface platform, is "receive." The correspondence between interface information and transaction codes for transaction services is that one piece of interface information corresponds to one or more transaction codes for the send direction and one or more transaction codes for the receive direction.

[0049] In an optional embodiment, step S210 can also be implemented by determining the data input conversion rules, data output conversion rules and data conversion verification rules of the first interface corresponding to the data input conversion rules or data output conversion rules based on the user's interface configuration operation on the business data conversion rule configuration page of the preset interface configuration interface.

[0050] The Business Data Conversion Rule Configuration page corresponds to the interface's advanced configuration model, which provides differentiated processing channels for data conversion. The model maintains at least one of the following: data input conversion rules (i.e., input converters), data output conversion rules (i.e., output converters), and data conversion validation rules corresponding to either the input or output conversion rules during the interface's transaction data processing. When processing transaction data, the interface platform retrieves the required data conversion rules from the product factory based on the information in the advanced configuration model, thereby implementing differentiated interface processing.

[0051] The converter method plays the role of initial conversion of interface information, converting the received information into a unified, standard key-value pair.<key,value> A differentiated converter for specific requirements corresponding to the first interface, that is, a data conversion rule specific to the first interface, may be configured. If not configured, a default universal converter is determined as the data conversion rule for the first interface.

[0052] The general converter focuses on processing information in the system's agreed-upon format, especially key-value pairs in JSON format (such as {"A":"a","B":null}). It first parses (reverse-transcribes) the JSON information and then converts the parsed information into a Map format for subsequent processing.

[0053] Unlike general-purpose converters, differentiated converters support a wider range of information formats, such as Maps and DTOs. Their implementation follows the information conversion methods specified in the converter template. During execution, the corresponding converter class methods are dynamically requested and obtained through the bean factory responsible for creating and managing the object, based on the converter method names specified in the interface's advanced configuration. This mechanism ensures that differentiated converters can flexibly handle information type conversions from various data sources to meet diverse business needs.

[0054] During the converter process execution, the input converter method in the interface configuration model is retrieved. If the method is for receipt information, the output converter method is used. If the method configuration is empty, the general converter is used by default for information conversion. If a converter method is configured, the system calls the corresponding differentiated converter to perform the specific conversion logic.

[0055] The differentiated and default converter methods ensure the universality and consistency of information conversion while providing sufficient flexibility to adapt to data conversion needs in different formats and sources.

[0056] In an optional embodiment, step S210 can also be implemented by determining at least one of the first field name before mapping, the second field name after mapping, the data dictionary, and the mapping direction of the data dictionary in the field mapping rule of the first interface based on the user's interface configuration operation on the field mapping rule configuration page of the preset interface configuration interface.

[0057] The field mapping rule configuration page corresponds to the field configuration model, which is used to maintain field processing information for transaction data. The model includes the original field name before mapping, the target field name after mapping, a converter, a dictionary, the dictionary mapping direction, validation rules, and at least one of the loop counts. Data is mapped and translated based on the field configuration model to ensure accuracy and consistency.

[0058] The interface platform will convert json format information into information with the hierarchical relationship required by the target system according to the field configuration model. For example, it can convert the "{"testId":"test","testMessage1":"message1","testMessage2":"message2"}" information into the "{"body":{"id":"test","data.message1":"message1","data.message2":"message2"}}" information required by the target system as a service system. The conversion process can use the converter in conjunction with the field mapping relationship (source field, target field) to achieve format conversion of the above information. In the default conversion process, the dictionary internal code in the sending direction can be converted to external dictionary information, and the dictionary information in the receiving direction can be converted to the dictionary internal code. The verification rules are used to verify the compliance of the information.

[0059] The mapping method is a key step in deep processing of the information processed by the transformer. This process focuses on the key-value pair information output by the transformer.<key,value> Further processing is performed, primarily on the key information in the key-value pair. By default, the mapping method replaces the key information with the key name agreed upon by the target system or method to ensure accuracy and consistency.

[0060] Similar to the converter method, the mapping method also supports differentiated processing logic. You can configure the mapping method corresponding to the first interface for specific needs, that is, the field mapping rules specific to the first interface. If not configured, the default general mapping method is determined to be the field mapping rules of the first interface. When executing the mapping method, the system will first obtain the input / output mapping configuration method of the interface according to the advanced configuration model of the interface, and dynamically request the corresponding mapping method instance through the BeanFactory. The general mapping method mainly performs necessary conversion or formatting on the key field in the key-value pair, while the differentiated mapping method provides richer functions, including numerical operations, field type conversion and other specific processing flows to meet the needs of different business scenarios.

[0061] For general mapping, the system automatically retrieves field mapping information based on the interface field configuration model. For example, if the configuration specifies that field A be mapped to analysis and field B be mapped to bond, the system will convert the original message {"A":"a","B":null} to {"analysis":"a","bond":null} after executing the mapping. Furthermore, for messages in list format, the system supports cyclic translation by configuring the number of loops. In particular, when the number of loops is configured as -1, the system automatically processes the message based on the actual number of loops in the message.

[0062] The differentiated mapping process is more flexible and complex, requiring developers to pre-write corresponding functional methods. These methods override the mapping functionality in the mapping method template to implement more specific and complex processing logic. Currently, implemented differentiated mapping methods include dictionary value translation, which pre-defines a dictionary array in the code and conditionally performs dictionary translation during execution. This differentiated mapping process allows for continuous expansion and optimization of the mapping functionality, enabling the system to continuously adapt to new business needs and changing scenarios.

[0063] This embodiment improves the efficiency and flexibility of interface configuration through interface information function processing technology based on interface field mapping configuration, data conversion based on stream processing, and interface information preprocessing based on configuration.

[0064] like Figure 5 As shown, each model of the interface platform provides interface addition, deletion, query, and modification functions, an interface registration process, and interface information import / export functionality, providing a fast and simple process for registering new interfaces and modifying interface information. The interface registration process requires users to maintain interface management model information, transaction code management model information, and field configuration model information during each registration process. The interface information import / export function allows for the import and export of interface management information, interface advanced configuration information, interface transaction code information, and interface-related field configuration information, allowing developers to easily publish information across different environments with a single click.

[0065] There is an association between the interface management model, the interface advanced configuration model, and the transaction code management model. The three models are associated through the interface ID.

[0066] The technical solution of this embodiment determines at least one of the interface name, interface identifier, interface production status, and interface management personnel of a first interface based on an interface configuration operation performed by a user on an interface management information configuration page of a preset interface configuration interface. The technical solution of this embodiment of the present invention solves the current problem of requiring independent code writing for interfaces. Interface configuration can be performed based on a configuration interface including an interface management configuration page. The interface configuration includes field mapping rules, thereby improving the efficiency and flexibility of interface configuration and adapting to diverse business scenarios.

[0067] Figure 6 This is a flowchart of an interface configuration method provided in an embodiment of the present invention. This embodiment, which shares the same inventive concept as the interface configuration method described in the previous embodiment, further describes the interface operation monitoring process. This method can be executed by an interface configuration device, which can be implemented in software and / or hardware and integrated into a computer device with application development capabilities.

[0068] like Figure 6 As shown, the interface configuration method of this embodiment includes the following steps:

[0069] S310: Determine configuration item information of a first interface based on an interface configuration operation performed by a user in a preset interface configuration interface.

[0070] Among them, the first interface is the business processing interface of the transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

[0071] like Figure 7 As shown, the platform provides developers with an interface registration function page, which supports the completion of a series of interface configuration processes such as interface management, transaction code management, field configuration, and advanced configuration, namely business data conversion rule configuration, according to a fixed process. Developers can also complete the development of interface functions through configuration according to actual development needs or development habits; the import and export functions support the export of configuration information including interface management, transaction code management, field configuration and advanced configuration information into interface configuration files, and the import function reversely supports the import of interface configuration files, which provides developers with a channel to complete interface functions by writing configurations; the interface monitoring function page provides details query function, message resending function, and test information sending function, which support developers to quickly start interface function testing or respond to abnormal scenarios in the production environment.

[0072] The present invention provides multiple interface function configuration completion methods, as shown in Table 1:

[0073] Table 1

[0074]

[0075]

[0076] S320: Based on the user's management operation on the first interface in the preset interface monitoring page, execute a business process corresponding to the management operation.

[0077] The management operation includes a query operation of the transaction data processing process corresponding to the first interface, a data retransmission operation during the transaction data processing process, and an interface test information sending operation.

[0078] The preset interface monitoring page corresponds to the interface monitoring model. The interface monitoring model will record the information sending status of the interface platform. Users can view the transaction sending status, number of retransmissions, sending time and other information through the interface monitoring model. The interface monitoring model also supports the viewing of the entire life cycle of information, including the transaction data processing process, that is, the information received by the interface platform, the information sent by the platform calling the external system, the return information of the platform calling the external system, and the information returned by the platform to the calling system.

[0079] The interface monitoring model also supports message resending and manual assembly. Message resending allows for repeated message sending, a quick way to handle system call exceptions. Manual assembly, which sends interface test information and includes manual transaction codes, transaction versions, and sent and received messages, is an important means of quickly testing system configuration correctness during the testing phase.

[0080] This embodiment provides different role functions for developers and operation and maintenance personnel, provides developers with channels for rapid function development, rapid testing, and rapid production, and provides operation and maintenance personnel with rapid query, rapid recovery from abnormal scenarios, and scenario response methods for rapid reproduction of production problems in the test environment. Specifically, the interface platform provides comprehensive interface configuration and query functions, among which the configuration function covers interface settings, transaction code settings, field settings, and advanced settings, while the monitoring function includes interface information query, information retransmission, and sending test messages, i.e., interface test information.

[0081] This embodiment uses integrated monitoring technology to provide a real-time visual interface operation monitoring function on the interface platform, helping developers and operation and maintenance teams to grasp the operating status of the interface in real time and improve the reliability and stability of the system.

[0082] In an optional embodiment, the transaction data processing process includes:

[0083] Receive first information sent by the interface calling system for requesting transaction business processing; obtain second information after data processing of the first information through the first interface, and send the second information to the service system for processing the transaction business; receive third information sent by the service system in response to the second information; obtain fourth information after data processing of the third information through the first interface, and send the fourth information to the interface calling system.

[0084] After the specific interface platform is called by the external system by sending the first information for requesting transaction business processing, the interface platform will match the interface according to the transaction code and version number information, and then process the first information according to the interface configuration information to obtain the second information. After completing the second information and sending it to the service system for processing the transaction business, it will process the return information according to the configuration information, that is, the third information sent by the service system in response to the second information. After returning the fourth information obtained by processing the third information to the external system that originally called, the transaction is recorded, such as Figure 8 The transaction data processing process may include:

[0085] Step 1: Obtain the message monitoring table ID. The interface platform is deployed on a cloud cluster. To reduce request overhead, 10 IDs are requested from the interface monitoring table at a time and stored in a cache. Each transaction consumes one ID. When all IDs in the cache are consumed, another request is initiated.

[0086] Step 2: Query the transaction management table based on the transaction code and version number of the business processing request information to obtain the transaction ID, and use the ID to query the interface advanced configuration table to obtain related transaction and interface configuration information.

[0087] Step 3: The data converter performs the first information conversion. The system checks whether the transaction code contains any converter configuration information. If so, it retrieves the specific converter from the BeanFactory. If not, it uses the generic converter to process the information received by the interface. The converter's task is to convert the JSON information (which serves as the data exchange subject when the interface is called) into a Map.

[0088] Step 4: Field mapping processing. The system checks whether the field mapping configuration method name is configured in the advanced configuration. If it is, the system obtains the unique field mapping method from the BeanFactory and executes it to process the map data. If it is not, the fixed field mapping method is used to process the map data.

[0089] Step 5: Serialize interface data. The system serializes the Map data into a general interface information format to obtain the second information.

[0090] Step 6: Send the second message. Send the serialized data to the target system.

[0091] Step 7: Receive data. Receive the response data from the target system, which is the third information.

[0092] Step 8: Deserialization. The system deserializes the received JSON response information and converts it into Map data information.

[0093] Step 9: Process the transaction response information in the third message. According to the field mapping configuration, the system converts the transaction information into a mapped information pair to obtain the fourth message.

[0094] Step 10: Send the fourth message. The processed transaction information is sent back to the system that initially called the transaction, completing the entire transaction process.

[0095] Step 11: Transaction monitoring. Transaction information is recorded in the transaction monitoring table. The recorded status includes: the call information received by the interface platform, the information called by the target system after the interface platform processes it, the information returned by the target system, and the processing result of the interface platform processing the information returned by the target system.

[0096] Table 2 compares the interface configuration of this embodiment with that of the prior art.

[0097] Table 2

[0098]

[0099]

[0100] This embodiment uses an intuitive configuration page to allow general interface development functions to be added directly through interface configuration. It also facilitates maximum reuse of existing logic for specialized development scenarios. Through visual configuration, the previously complex and abstract interface logic is intuitively displayed, simplifying the development process and reducing development difficulty. Support for multiple interface completion methods allows developers to flexibly choose according to their personal preferences to meet different development needs. The interface processing process is standardized. This invention utilizes a stream processing model to process interface information. General development requirements can be met through configuration, while specific functional requirements can be implemented through a combination of configuration and development. All code logic follows the stream processing model, providing developers with a clear logical architecture for functional implementation. The testing function allows developers to quickly initiate interface call testing after configuration is complete, without waiting for previous functions to complete, effectively avoiding delays caused by previous tasks. It provides operations and maintenance personnel with a convenient function release channel, enabling rapid data migration from the test environment to the production environment through import, export, or data modification. Message status is intuitive and visual. This device provides operations and maintenance personnel with real-time display of interface message status, significantly optimizing the operations and maintenance workflow and reducing their workload. Business recovery is rapid and effective. For common low-probability problems such as network anomalies and downstream server anomalies, the present invention provides operation and maintenance means such as message retransmission to support operation and maintenance personnel to quickly restore business and reduce the impact of abnormal scenarios on business.

[0101] The technical solution of this embodiment determines the configuration item information of the first interface based on the interface configuration operation of the user in the preset interface configuration interface; wherein the first interface is the business processing interface of the transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules. Based on the user's management operation on the first interface in the preset interface monitoring page, the business process corresponding to the management operation is executed; wherein the management operation includes the query operation of the transaction data processing process corresponding to the first interface, the data retransmission operation in the transaction data processing process, and the interface test information sending operation. The technical solution of the embodiment of the present invention solves the problem that the current interface needs to be written in independent code. The interface configuration can be performed based on the configuration interface. The interface configuration includes field mapping rules to improve the efficiency and flexibility of the interface configuration, adapt to diverse business scenarios, and through interface operation monitoring, immediately resolve business anomalies and immediately obtain processing information of the data processing process.

[0102] Figure 9 This is a schematic diagram of the structure of an interface configuration device provided by an embodiment of the present invention. This embodiment is applicable to interface configuration scenarios. The interface configuration device can be implemented by software and / or hardware and integrated into a computer terminal device with application development capabilities.

[0103] like Figure 9 As shown, the interface configuration device includes: an interface configuration module 410.

[0104] Among them, the interface configuration module 410 is used to determine the configuration item information of the first interface based on the user's interface configuration operation in the preset interface configuration interface; wherein, the first interface is the business processing interface of the transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

[0105] The technical solution of this embodiment determines configuration item information for a first interface based on user interface configuration operations in a preset interface configuration interface. The first interface is a business processing interface for a transaction service, and the configuration items include interface management information, transaction code information corresponding to the transaction service, business data conversion rules within the transaction service, and field mapping rules. This technical solution solves the current problem of requiring independent code for interfaces. Interface configuration can be performed based on the configuration interface, including field mapping rules, improving the efficiency and flexibility of interface configuration and adapting to diverse business scenarios.

[0106] In an optional implementation, the interface configuration module 410 is specifically configured to:

[0107] Based on the interface configuration operation of the user on the interface management information configuration page of the preset interface configuration interface, at least one of the interface name, interface identifier, interface production status and interface management personnel of the first interface is determined.

[0108] In an optional implementation, the interface configuration module 410 is specifically configured to:

[0109] Based on the interface configuration operation performed by the user on the transaction code information configuration page of the preset interface configuration interface, at least one of the transaction code, transaction code version and data flow direction corresponding to the transaction code of the first interface is determined; wherein, the transaction code and transaction code version are used to determine the interface for processing transaction data according to the transaction code and transaction code version corresponding to the transaction data after obtaining the transaction data, and the data flow direction corresponding to the transaction code is determined based on the service cluster where the interface platform of the first interface is located.

[0110] In an optional implementation, the interface configuration module 410 is specifically configured to:

[0111] Based on the user's interface configuration operation on the business data conversion rule configuration page of the preset interface configuration interface, the data input conversion rule, data output conversion rule and data conversion verification rule corresponding to the data input conversion rule or data output conversion rule of the first interface are determined.

[0112] In an optional implementation, the interface configuration module 410 is specifically configured to:

[0113] Based on the user's interface configuration operation on the field mapping rule configuration page of the preset interface configuration interface, determine at least one of the first field name before mapping, the second field name after mapping, the data dictionary, and the mapping direction of the data dictionary in the field mapping rule of the first interface.

[0114] In an optional embodiment, the device further comprises:

[0115] The interface monitoring module is used to execute the business process corresponding to the management operation of the first interface based on the user's management operation on the preset interface monitoring page; wherein the management operation includes the query operation of the transaction data processing process corresponding to the first interface, the data retransmission operation in the transaction data processing process and the interface test information sending operation.

[0116] In an optional implementation, the interface monitoring module is further configured to:

[0117] Receive first information sent by the interface calling system for requesting transaction business processing; obtain second information after data processing of the first information through the first interface, and send the second information to the service system for processing the transaction business; receive third information sent by the service system in response to the second information; obtain fourth information after data processing of the third information through the first interface, and send the fourth information to the interface calling system.

[0118] The interface configuration device provided in the embodiment of the present invention can execute the interface configuration method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0119] Figure 10 A schematic structural diagram of a computer device provided in an embodiment of the present invention. Figure 10 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 10 The computer device 12 shown is only an example and should not limit the functionality and scope of use of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capabilities, such as an intelligent controller, a server, a mobile phone, or other terminal devices.

[0120] like Figure 10 As shown, computer device 12 is implemented as a general-purpose computing device. Components of computer device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and a bus 18 that connects various system components (including system memory 28 and processing unit 16).

[0121] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. Examples of these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0122] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0123] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be configured to read and write non-removable, non-volatile magnetic media ( Figure 10 Not shown, often called a "hard drive"). Although Figure 10 Not shown, a magnetic disk drive for reading and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.

[0124] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0125] The computer device 12 may also communicate with one or more external devices 14 (e.g., a keyboard, a pointing device, a display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 10 Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RFID systems, tape drives, and data backup storage systems.

[0126] The processing unit 16 executes various functional applications and interface configurations by running programs stored in the system memory 28, such as implementing the interface configuration method provided in the embodiment of the present invention, which includes:

[0127] Determining configuration item information of the first interface based on an interface configuration operation performed by the user on a preset interface configuration interface;

[0128] Among them, the first interface is the business processing interface of the transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

[0129] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the interface configuration method provided in any embodiment of the present invention is implemented. The method includes:

[0130] Determining configuration item information of the first interface based on an interface configuration operation performed by the user on a preset interface configuration interface;

[0131] Among them, the first interface is the business processing interface of the transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

[0132] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0133] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0134] Program code embodied on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0135] The computer program code for performing the operations of the present invention can be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, Python, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0136] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the interface configuration method provided in any embodiment of the present application.

[0137] The computer program product, during implementation, may be written in one or more programming languages, or a combination thereof, for performing the operations of the present invention. The programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, Python, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0138] Those skilled in the art will appreciate that the modules or steps of the present invention described above can be implemented using a general-purpose computing device. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computer device, which can then be stored in a storage device and executed by the computing device. Alternatively, they can be fabricated into separate integrated circuit modules, or multiple modules or steps can be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.

[0139] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.

Claims

1. An interface configuration method, characterized in that: include: Determining configuration item information of the first interface based on an interface configuration operation performed by the user on a preset interface configuration interface; Among them, the first interface is a business processing interface for transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

2. The method according to claim 1, characterized in that The determining of the configuration item information of the first interface based on the interface configuration operation performed by the user on the preset interface configuration interface includes: Based on the interface configuration operation of the user on the interface management information configuration page of the preset interface configuration interface, at least one of the interface name, interface identifier, interface production status and interface management personnel of the first interface is determined.

3. The method according to claim 1, characterized in that The determining of the configuration item information of the first interface based on the interface configuration operation performed by the user on the preset interface configuration interface includes: determining, based on an interface configuration operation performed by a user on a transaction code information configuration page of the preset interface configuration interface, at least one of a transaction code for the first interface, a transaction code version, and a data flow direction corresponding to the transaction code; The transaction code and the transaction code version are used to determine, after obtaining the transaction data, an interface for processing the transaction data based on the transaction code and the transaction code version corresponding to the transaction data. The data flow direction corresponding to the transaction code is determined based on the service cluster where the interface platform of the first interface is located.

4. The method according to claim 1, wherein The determining of the configuration item information of the first interface based on the interface configuration operation performed by the user on the preset interface configuration interface includes: Based on the user's interface configuration operation on the business data conversion rule configuration page of the preset interface configuration interface, the data input conversion rule, data output conversion rule and data conversion verification rule corresponding to the data input conversion rule or the data output conversion rule of the first interface are determined.

5. The method according to claim 1, characterized in that The determining of the configuration item information of the first interface based on the interface configuration operation performed by the user on the preset interface configuration interface includes: Based on the interface configuration operation of the user on the field mapping rule configuration page of the preset interface configuration interface, determine at least one of the first field name before mapping, the second field name after mapping, the data dictionary and the mapping direction of the data dictionary in the field mapping rule of the first interface.

6. The method according to claim 1, characterized in that The method also includes: Based on the management operation of the first interface by the user in the preset interface monitoring page, executing the business process corresponding to the management operation; The management operation includes a query operation of the transaction data processing process corresponding to the first interface, a data retransmission operation during the transaction data processing process, and an interface test information sending operation.

7. The method according to claim 6, characterized in that The transaction data processing process includes: Receiving first information sent by the interface calling system for requesting transaction business processing; Processing the first information through the first interface to obtain second information, and sending the second information to a service system that processes the transaction; receiving a third message sent by the service system in response to the second message; The third information is processed through the first interface to obtain fourth information, and the fourth information is sent to the interface calling system.

8. An interface configuration device, characterized in that: include: An interface configuration module, configured to determine configuration item information of the first interface based on an interface configuration operation performed by a user on a preset interface configuration interface; Among them, the first interface is a business processing interface for transaction business, and the configuration items include interface management information, transaction code information corresponding to the transaction business, business data conversion rules in the transaction business, and field mapping rules.

9. A computer device, characterized in that: The computer device comprises: one or more processors; a memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the interface configuration method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the interface configuration method according to any one of claims 1 to 7 is implemented.