Data transmission method, apparatus, device, medium, and product
By receiving call requests and transmitting message data through the interface management system, the problem of chaotic interface connections between business systems and external systems was solved, and unified management and control of interfaces between systems was achieved, reducing management costs.
Patent Information
- Application Number
- CN202411267832.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2025-12-26
- Estimated Expiration
- 2044-09-11
AI Technical Summary
The interfaces between the front-end systems of different business systems and external systems are chaotic. Existing technical solutions require rebuilding a comprehensive front-end system or deploying a layer 7 proxy server, resulting in a large workload, time and effort consumption, and complex operation, making it difficult to achieve unified management and control of interfaces between systems.
By receiving call requests through the interface management system, determining the target interface, and transmitting message data based on its address, unified management and control of interfaces between systems is achieved, reducing the cost of interface management.
It enables unified management and control of interfaces between systems, avoids interface connection chaos, and reduces operational complexity and management costs.
Smart Images

Figure CN119232724B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the technical field of interface calling, and particularly relates to a data transmission method and device, equipment, medium and product. BACKGROUND
[0002] An interface is a bridge for data interaction between different systems, modules or components, and through the interface, data circulation and sharing can be achieved, which enables various systems to cooperate with each other and complete complex tasks together.
[0003] However, in real life, multiple business systems such as resettlement housing systems, leasing systems and property systems will be respectively connected with multiple external systems through their respective front-end systems to realize data interaction. Since the front-end systems of different business systems may be connected with the same external system or a business system needs to be connected with an external system through the front-end system of another system, the interface connection between systems is relatively chaotic. SUMMARY
[0004] The embodiments of the application provide a data transmission method, device, equipment, medium and product, which can solve the problem of chaotic interface connection between systems and realize unified management and control of the interface between systems.
[0005] In a first aspect, the embodiments of the application provide a data transmission method applied to an interface management system, the interface management system being a target front-end system determined from multiple business systems respectively corresponding front-end systems, the front-end systems other than the target front-end system being connected with the interface management system through a first interface, and the interface management system being connected with multiple external systems through a second interface; the method comprises the following steps:
[0006] receiving a calling request for calling a target interface sent by a calling party, the calling request comprising an interface address of the target interface and message data to be transmitted;
[0007] calling the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to a service party corresponding to the target interface;
[0008] The first interface and the second interface comprise the target interface.
[0009] The calling party comprises a business system, and the service party comprises an external system; or the calling party comprises an external system, and the service party comprises a business system.
[0010] In an optional implementation of the first aspect, before calling the target interface based on the interface address of the target interface and transmitting the message data to be transmitted to the service party, the method further comprises the following steps:
[0011] determining an interface type of the target interface, the interface type of the target interface being a first interface type, a first signature type, or a second signature type, the first interface type indicating that the message data to be transmitted does not need to be signed, the first signature type indicating that the message data to be transmitted needs to be signed by a service side, and the second signature type indicating that the message data to be transmitted needs to be signed by the interface management system;
[0012] matching the interface type of the target interface based on a preset mapping relationship between the interface type and a transmission mode, to obtain a transmission mode corresponding to the interface type of the target interface;
[0013] calling the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to a service side corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
[0014] calling the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to a service side corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
[0015] In an optional implementation of the first aspect, the interface type of the target interface is the first interface type.
[0016] calling the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to a service side corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
[0017] converting the message data to be transmitted from a first standard format into a second standard format to obtain the message data to be transmitted after format conversion, the first standard format being a message standard format adapted to an interface between the calling side and the interface management system, and the second standard format being a message standard format adapted to the target interface.
[0018] calling the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted after format conversion to a service side corresponding to the target interface.
[0019] In an optional implementation of the first aspect, the interface type of the target interface is the first signature type, and the calling request further includes a message signature corresponding to the message data to be transmitted.
[0020] calling the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to a service side corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
[0021] generating a notification message, the notification message being used to notify the service side corresponding to the target interface to perform signature processing on the message data to be transmitted based on the message data to be transmitted and the message signature.
[0022] Based on the interface address of the target interface, the target interface is invoked, and the message data to be transmitted, the message signature, and a notification message are sent to the service side corresponding to the target interface, so that the service side corresponding to the target interface performs signature verification processing on the message data to be transmitted based on the message data to be transmitted and the message signature.
[0023] In an optional implementation of the first aspect, the interface type of the target interface is a second signature verification type, and the invocation request further includes a message signature corresponding to the message data to be transmitted.
[0024] Based on the interface address of the target interface, the target interface is invoked, and the message data to be transmitted is transmitted to the service side corresponding to the target interface in a transmission mode corresponding to the interface type of the target interface, including:
[0025] Based on the message data to be transmitted and the message signature, the message data to be transmitted is subjected to signature verification processing.
[0026] In a case where the signature verification of the message data to be transmitted passes, target message data satisfying a message specification format corresponding to the target interface is extracted from the message data to be transmitted.
[0027] Based on the interface address of the target interface, the target interface is invoked, and the target message data is transmitted to the service side corresponding to the target interface.
[0028] In an optional implementation of the first aspect, before receiving the invocation request for invoking the target interface sent by the invoker, the method further includes:
[0029] Receiving a first input for configuring the target interface;
[0030] In response to the first input, a plurality of interface configuration items for configuring the target interface are obtained;
[0031] Based on the plurality of interface configuration items for configuring the target interface, an interface configuration interface is displayed, the interface configuration interface includes controls corresponding to the plurality of interface configuration items respectively, and each interface configuration item is used to instruct a user to input configuration information corresponding to the interface configuration item by using a control corresponding to the interface configuration item;
[0032] For each interface configuration item in the plurality of interface configuration items, in response to a second input to the control corresponding to the interface configuration item, configuration information corresponding to the interface configuration item is obtained;
[0033] According to the configuration information corresponding to each interface configuration item, the target interface is configured.
[0034] In an optional implementation of the first aspect, the plurality of interface configuration items include an interface type configuration item, the configuration information of the interface type configuration item is an interface type, and the interface type of the target interface includes a first interface type.
[0035] In response to the second input on the control corresponding to the interface configuration item, the configuration information corresponding to the interface configuration item is acquired, including:
[0036] In response to the first sub-input on the first control corresponding to the interface type configuration item, a first sub-interface is displayed, and the first sub-interface includes a file upload control configured to instruct a user to upload a file in a message specification format adapted to the target interface;
[0037] In response to the second sub-input on the file upload control, the file in the message specification format adapted to the target interface is acquired.
[0038] In an optional implementation of the first aspect, the plurality of interface configuration items includes an interface type configuration item, and the configuration information of the interface type configuration item is an interface type, and the interface type of the target interface is a first signature type;
[0039] In response to the second input on the control corresponding to the interface configuration item, the configuration information corresponding to the interface configuration item is acquired, including:
[0040] In response to the third sub-input on the second control corresponding to the interface type configuration item, a second sub-interface is displayed, and the second sub-interface includes selection controls corresponding to at least two signature types, and the at least two signature types include the first signature type;
[0041] In response to the fourth sub-input on the selection control corresponding to the first signature type, the interface type of the target interface is determined to be the first signature type.
[0042] In an optional implementation of the first aspect, the plurality of interface configuration items includes an interface type configuration item, and the configuration information of the interface type configuration item is an interface type, and the interface type of the target interface is a second signature type;
[0043] In response to the second input on the control corresponding to the interface configuration item, the configuration information corresponding to the interface configuration item is acquired, including:
[0044] In response to the third sub-input on the control corresponding to the interface configuration item, a second sub-interface is displayed, and the second sub-interface includes selection controls corresponding to at least two signature types, and the at least two signature types include the second signature type;
[0045] In response to the fifth sub-input on the selection control corresponding to the second signature type, the interface type of the target interface is determined to be the second signature type.
[0046] In a second aspect, a data transmission apparatus is provided, which is applied to an interface management system. The interface management system is a target pre-system determined from a plurality of pre-systems corresponding to a plurality of business systems respectively. The pre-systems other than the target pre-system in the plurality of pre-systems are connected to the interface management system through a first interface. The interface management system is connected to a plurality of external systems through a second interface. The apparatus comprises:
[0047] a receiving module configured to receive a calling request for calling a target interface sent by a calling party, the calling request comprising an interface address of the target interface and message data to be transmitted;
[0048] a calling module configured to call the target interface based on the interface address of the target interface, and transmit the message data to be transmitted to a service party corresponding to the target interface;
[0049] The first interface and the second interface comprise the target interface.
[0050] The calling party comprises a business system, and the service party comprises an external system; or the calling party comprises an external system, and the service party comprises a business system.
[0051] In a third aspect, an electronic device is provided, which comprises a memory configured to store computer program instructions, and a processor configured to read and run the computer program instructions stored in the memory, so as to execute the data transmission method provided in any of the optional embodiments of the first aspect.
[0052] In a fourth aspect, a computer storage medium is provided, which stores computer program instructions. The computer program instructions are executed by a processor to implement the data transmission method provided in any of the optional embodiments of the first aspect.
[0053] In a fifth aspect, a computer program product is provided, which comprises a computer program. The computer program is executed by a processor to implement the data transmission method provided in any of the optional embodiments of the first aspect.
[0054] In the embodiments of the present application, the interface management system can receive a calling request for calling a target interface sent by a calling party. The calling request comprises an interface address of the target interface and message data to be transmitted. Then, the target interface can be called based on the interface address of the target interface, and the message data to be transmitted can be transmitted to a service party corresponding to the target interface. Since the interface management system is a target pre-system determined from a plurality of pre-systems corresponding to a plurality of business systems respectively, the pre-systems other than the target pre-system in the plurality of pre-systems are connected to the interface management system through a first interface, and the interface management system is connected to a plurality of external systems through a second interface, the unified management and control of the interfaces between systems are achieved, the problem of disordered connection of the interfaces between systems is avoided, and the cost of interface management is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments of the present application will be briefly introduced. Those skilled in the art can obtain other drawings according to these drawings without paying creative labor.
[0056] Figure 1 is one of system structure diagrams of related technologies provided by the embodiments of the present application;
[0057] Figure 2 is another one of system structure diagrams of related technologies provided by the embodiments of the present application;
[0058] Figure 3 is a third one of system structure diagrams of related technologies provided by the embodiments of the present application;
[0059] Figure 4 is a system structure diagram of a management system provided by the embodiments of the present application;
[0060] Figure 5 is one of flow schematic diagrams of a data transmission method provided by the embodiments of the present application;
[0061] Figure 6 is another one of flow schematic diagrams of a data transmission method provided by the embodiments of the present application;
[0062] Figure 7 is a third one of flow schematic diagrams of a data transmission method provided by the embodiments of the present application;
[0063] Figure 8 is a schematic diagram of an interface configuration interface provided by the embodiments of the present application;
[0064] Figure 9 is a schematic diagram of a first sub-interface provided by the embodiments of the present application;
[0065] Figure 10 is a schematic diagram of a second sub-interface provided by the embodiments of the present application;
[0066] Figure 11 is a structural schematic diagram of a data transmission device provided by the embodiments of the present application;
[0067] Figure 12 is a structural schematic diagram of an electronic device provided by the embodiments of the present application. DETAILED DESCRIPTION
[0068] The features and exemplary embodiments of the various aspects of the present application will be described in detail below with reference to the drawings. In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, but not to limit the present application. The present application can be implemented without some of the specific details by those skilled in the art. The following description of the embodiments is only intended to provide a better understanding of the present application by showing examples of the present application. In addition, it should be noted that the acquisition, storage, use, processing, etc. of data in the technical solutions of the present application comply with relevant provisions of national laws and regulations. It should also be noted that in the embodiments of the present application, some industry existing solutions, components, models, etc. may be mentioned, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0069] It should be noted that in this paper, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or equipment. Without more limitations, the elements defined by the statement "include" do not exclude the presence of other identical elements in the process, method, article or equipment including the elements.
[0070] The term "and / or" in this paper is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone.
[0071] As in the background, in real life, when different business systems interface with other external systems, there may be a situation that the pre-system of different business systems may interface with the same external system, such as Figure 1As shown, business system 1 interfaces with external systems 1, 2, 3, 4, 5, and 6 through front-end system 1. Business system 2 interfaces with external systems 2, 3, 5, and 6 through front-end system 2. Business systems 3, 4, 5, and 6 also interface with external systems 1, 2, ..., 6 according to their own needs. Furthermore, when business systems interface with other external systems, there may be situations where a business system needs to connect to an external system through another system's front-end system. For example, business systems 2, 3, and 4 may have some interfaces that need to connect to external systems 1 and 3 through front-end system 1 (this connection is not shown in the diagram). Figure 1 (As shown). This can lead to a chaotic inter-system interface connection.
[0072] To address the aforementioned issue of disorganized system interface connections, existing technologies involve developing a comprehensive front-end system, specifically as follows: Figure 2 As shown, the interfaces between business systems and external systems are migrated or developed to a comprehensive front-end system. That is, business systems 1, 2...6 all interface with external systems 1, 2...6 through this comprehensive front-end system, thereby achieving unified control and management of the interfaces between systems. However, this method requires rebuilding the comprehensive front-end system and migrating and developing the original front-end functions of each business system. This is labor-intensive, time-consuming, and may affect existing interfaces, reducing the continuous availability of the system. It involves coordination between multiple systems, even collaborative development between multiple software vendors, and coordination with external systems for testing, making coordination difficult and increasing the uncontrollability of the solution.
[0073] In addition, to address the aforementioned issue of disorganized system interface connections, such as... Figure 3 As shown, existing technologies can also deploy a Layer 7 proxy forwarding server. Business System 1, Business System 2...Business System 6 interface with the newly deployed Layer 7 proxy server and external systems 1, 2...6 through their respective front-end systems. However, this method lacks visualization, is inconvenient to operate, and requires personnel with relevant technical expertise. Furthermore, when multiple user systems add connections to the same external system, each system still connects to the external system independently, resulting in duplicate connections and wasting manpower.
[0074] In summary, in order to solve the problems in the prior art, the application example provides a data transmission method, device, equipment, medium and product, which can receive a calling request for calling a target interface sent by a calling party through an interface management system, the calling request comprising an interface address of the target interface and message data to be transmitted, and then the target interface can be called based on the interface address of the target interface, and the message data to be transmitted is transmitted to a service party corresponding to the target interface. Since the interface management system is a target pre-system determined from a plurality of pre-systems corresponding to a plurality of business systems, the pre-systems other than the target pre-system in the plurality of pre-systems are connected to the interface management system through a first interface, and the interface management system is connected to a plurality of external systems through a second interface. In this way, the unified management and control of the interfaces between systems are realized, the problem of disordered connection of the interfaces between systems is avoided, and the cost of interface management is reduced.
[0075] In order to accurately describe the data transmission method provided by the embodiments of the application, before introducing the data transmission method provided by the embodiments of the application, a management system provided by the embodiments of the application is introduced.
[0076] Figure 4 is a schematic diagram of a management system provided by the embodiments of the application.
[0077] As shown in Figure 4 , the management system can comprise a plurality of business systems, a plurality of pre-systems corresponding to the plurality of business systems respectively, and a plurality of external systems.
[0078] Among them, the plurality of business systems can comprise business system 1, business system 2, …, and business system 6. Correspondingly, the plurality of pre-systems corresponding to the plurality of business systems can comprise pre-system 1 corresponding to business system 1, pre-system 2 corresponding to business system 2, …, and pre-system 6 corresponding to business system 6. In addition, the plurality of external systems comprises external system 1, external system 2, …, and external system 6.
[0079] Based on this, the data transmission method provided by the embodiments of the application can determine a target pre-system as an interface management system from the pre-systems of the plurality of business systems according to a preset rule, wherein the preset rule can be set in advance based on actual experience or situation, for example, the external system connected by this pre-system, and the subsequent other business systems also need to be connected, so as to minimize the additional development work. That is Figure 4 Pre-system 1 in the above is set as the interface management system, so that the pre-systems other than pre-system 1, i.e. pre-system 2, pre-system 3, …, and pre-system 6, are connected to pre-system 1 (the interface management system) through the first interface, and the interface management system is connected to a plurality of external systems such as external system 1, external system 2, …, and external system 6 through the second interface.
[0080] It should be noted that, whether it is a development environment, a test environment, or a production environment, the premise of the above business system, the front-end system of the business system, and the external system interacting is that the environments of the three are connected, so the network environment of the communication link is ensured to be connected first.
[0081] Based on the above management system architecture diagram, the interface calling method provided by the embodiments of the application will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0082] Figure 5 is a flowchart of an interface calling method provided by the embodiments of the application.
[0083] As Figure 5 shown, the execution subject of the method can be Figure 4 the interface management system shown, which can be a target front-end system determined from a plurality of front-end systems respectively corresponding to a plurality of business systems. The front-end systems other than the target front-end system in the plurality of front-end systems are connected to the interface management system through a first interface, and the interface management system is connected to a plurality of external systems through a second interface.
[0084] It should be noted that the above first interface can include at least one first sub-interface, which is not specifically limited here. Correspondingly, the above second interface can include at least one second sub-interface, which is not specifically limited here.
[0085] Based on this, the method can include the following steps:
[0086] S510, receiving a calling request for calling a target interface sent by a calling party.
[0087] Wherein, the calling party refers to an electronic device that calls the target interface, which is not specifically limited here. In addition, in some embodiments, the calling request can include an interface address of the target interface and message data to be transmitted.
[0088] Specifically, in the case where the calling party sends a calling request for calling the target interface to the interface management system, the interface management system can receive the calling request for calling the target interface sent by the calling party.
[0089] S520, calling the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to a service party corresponding to the target interface.
[0090] Wherein, the service party can be an electronic device for providing services corresponding to the interface, which is not specifically limited here.
[0091] In addition, in some embodiments, if the invoker can be a business system, the service can be an external system. Conversely, if the invoker can be an external system, the service can be a business system.
[0092] Specifically, after the interface management system receives the invocation request sent by the invoker for invoking the target interface, the interface management system can invoke the target interface based on the interface address of the target interface included in the invocation request, and transmit the message data to be transmitted included in the invocation request to the service corresponding to the target interface.
[0093] In the embodiments of the present application, the interface management system can receive the invocation request sent by the invoker for invoking the target interface, the invocation request including the interface address of the target interface and the message data to be transmitted, and then the interface management system can invoke the target interface based on the interface address of the target interface and transmit the message data to be transmitted to the service corresponding to the target interface. Since the interface management system is determined from the target pre-system among the plurality of pre-systems corresponding to the plurality of business systems, the pre-systems other than the target pre-system among the plurality of pre-systems are connected to the interface management system through the first interface, and the interface management system is connected to the plurality of external systems through the second interface. In this way, the unified management and control of the interfaces between systems are achieved, the problem of disordered connection of interfaces between systems is avoided, and the cost of interface management is reduced.
[0094] Therefore, in order to comprehensively and in detail describe the data transmission method provided by the embodiments of the present application, in one embodiment, before S520, as shown in Figure 6 the data transmission method provided by the embodiments of the present application can further include the following steps:
[0095] S610, determining the interface type of the target interface;
[0096] S620, matching the interface type of the target interface based on the preset mapping relationship between the interface type and the transmission mode, to obtain the transmission mode corresponding to the interface type of the target interface.
[0097] The preset mapping relationship between the interface type and the transmission mode can be set in advance based on actual experience or situation, which is not limited here.
[0098] In addition, in some embodiments, the interface type of the target interface can be a first interface type, a first signature type or a second signature type. The first interface type can represent that the message data to be transmitted does not need to be subjected to signature processing, the first signature type can represent that the service needs to be subjected to signature processing on the message data to be transmitted, and the second signature type can represent that the interface management system needs to be subjected to signature processing on the message data to be transmitted.
[0099] Specifically, the interface management system can determine the interface type of the target interface before calling the target interface based on the interface address of the target interface and transmitting the to-be-transmitted message data to the service party corresponding to the target interface, and match the interface type of the target interface based on a preset mapping relationship between interface types and transmission manners, to obtain the transmission manner corresponding to the interface type of the target interface.
[0100] Based on this, S520 can specifically include the following steps:
[0101] S5201, calling the target interface based on the interface address of the target interface, and transmitting the to-be-transmitted message data to the service party corresponding to the target interface according to the transmission manner corresponding to the interface type of the target interface.
[0102] Specifically, the interface management system can determine the interface type of the target interface and the transmission manner corresponding to the interface type of the target interface, and then call the target interface based on the interface address of the target interface and transmit the to-be-transmitted message data to the service party corresponding to the target interface according to the transmission manner corresponding to the interface type of the target interface.
[0103] In this embodiment, the transmission manner corresponding to different types of interfaces is different, and the interface management system first determines the interface type of the target interface and then determines the transmission manner corresponding to the interface type of the target interface. In this way, the to-be-transmitted message data can be transmitted to the service party according to the transmission manner corresponding to the interface type of the target interface.
[0104] Based on this, since the interface type of the target interface can be any one of the first interface type, the first signature type, and the second signature type, the data transmission process of each interface type will be described in detail in combination with specific embodiments.
[0105] First, in order to accurately and in detail describe the data transmission process when the interface type of the target interface is the first interface type. In one embodiment, if the interface type of the target interface is the first interface type, it means that the to-be-transmitted message data does not need to be signed, and S5201 can specifically include the following steps:
[0106] convert the to-be-transmitted message data from the first standard format to the second standard format to obtain the to-be-transmitted message data after format conversion;
[0107] calling the target interface based on the interface address of the target interface, and transmitting the to-be-transmitted message data after format conversion to the service party corresponding to the target interface.
[0108] The first standard format is a message standard format for interface adaptation between the calling party and the interface management system, and the first standard format is a message standard format for target interface adaptation, which is not specifically limited herein.
[0109] Specifically, if the interface type of the target interface is the first interface type, it means that neither the interface management system nor the service party needs to perform signature verification processing on the to-be-transmitted message data. Thus, the interface management system can convert the to-be-transmitted message data from the first standard format to the second standard format, that is, convert the to-be-transmitted message data from the message standard format for interface adaptation between the calling party and the interface management system to the message standard format for target interface adaptation, and then can call the target interface based on the interface address of the target interface, and transmit the to-be-transmitted message data after format conversion to the service party corresponding to the target interface.
[0110] In this embodiment, if the interface type of the target interface is the first interface type, that is, the interface management system and the service party do not need to perform signature verification processing on the to-be-transmitted message data, the to-be-transmitted message data can be first converted in a message standard format, so that the converted to-be-transmitted message data can adapt to the target interface, thereby realizing transmission of the to-be-transmitted message data to the service party.
[0111] Secondly, in order to accurately describe the data transmission process when the interface type of the target interface is the first signature type, in an embodiment, if the interface type of the target interface is the first signature type, the above-mentioned calling request can further include a message signature corresponding to the to-be-transmitted message data.
[0112] Based on this, the above S5201 can specifically include the following steps:
[0113] generating a notification message;
[0114] calling the target interface based on the interface address of the target interface, and sending the to-be-transmitted message data, the message signature, and the notification message to the service party corresponding to the target interface, so that the service party corresponding to the target interface performs signature verification processing on the to-be-transmitted message data based on the to-be-transmitted message data and the message signature.
[0115] The notification message is used to notify the service party corresponding to the target interface to perform signature verification processing on the to-be-transmitted message data based on the to-be-transmitted message data and the message signature.
[0116] Specifically, if the interface type of the target interface is the first signature type, i.e., indicating that the service side needs to perform signature processing on the to-be-transmitted message data, the interface management system can generate a notification message, and then can call the target interface based on the interface address of the target interface, and send the to-be-transmitted message data, the message signature, and the notification message to the service side corresponding to the target interface, so that the service side corresponding to the target interface can perform signature processing on the to-be-transmitted message data based on the to-be-transmitted message data and the message signature after receiving the to-be-transmitted message data, the message signature, and the notification message.
[0117] In this embodiment, if the interface type of the target interface is the first signature type, i.e., indicating that the service side needs to perform signature processing on the to-be-transmitted message data, a notification message needs to be generated, and the to-be-transmitted message data, the message signature, and the notification message are sent to the service side by calling the target interface, so that the service side can perform signature processing on the to-be-transmitted message data. In this way, in the case where the interface type is the first signature type, the to-be-transmitted message data is transmitted to the service side.
[0118] Further, in order to accurately describe the data transmission process when the interface type of the target interface is the second signature type, in one embodiment, if the interface type of the target interface is the second signature type, i.e., the interface management system needs to perform signature processing on the to-be-transmitted message data, the calling request can further include a message signature corresponding to the to-be-transmitted message data.
[0119] Based on this, the above-mentioned 5201 can specifically include the following steps:
[0120] performing signature processing on the to-be-transmitted message data based on the to-be-transmitted message data and the message signature;
[0121] extracting target message data satisfying a first specification format corresponding to the target interface from the to-be-transmitted message data in a case where the to-be-transmitted message data passes the signature processing;
[0122] transmitting the target message data to the service side corresponding to the target interface based on the interface address of the target interface.
[0123] Specifically, if the interface type of the target interface is the second verification type, i.e., indicating that the interface management system needs to perform signature processing on the to-be-transmitted message data, the interface management system can perform signature processing on the to-be-transmitted message data based on the to-be-transmitted message data and the message signature, and then can extract target message data satisfying a message specification format corresponding to the target interface from the to-be-transmitted message data in a case where the to-be-transmitted message data passes the signature processing, and then can transmit the target message data to the service side corresponding to the target interface based on the interface address of the target interface.
[0124] In one example, in the process of extracting target message data satisfying the message specification format corresponding to the target interface from the message data to be transmitted, assuming that the message {A} is the message standard of the service party to all requests, the interface management system assumes that the message requirement of the service party requesting its service is {B}. Then the calling party first composes the message {A} according to the message requirement of the service party, and then encapsulates a layer based on {A}, and composes {B} according to the unified front-end requirement. After receiving the request of the calling party, the interface management system first signs and then disassembles the message, routes and forwards the disassembled {A} message to the service party.
[0125] Similarly, assuming that the message {C} is the standard response message of the service party; after receiving the response message of the service party, the interface management system encapsulates a layer, and then sends the encapsulated message to the calling party.
[0126] In this embodiment, if the interface type of the target interface is the second verification type, that is, it is indicated that the interface management system needs to perform signature verification on the message data to be transmitted, the interface management system can first perform signature verification on the message data to be transmitted, and in the case that the signature verification is passed, extract the target message data satisfying the message specification format corresponding to the target interface, and then call the target interface to realize the transmission of the target message data.
[0127] It should be noted that before calling the target interface to transmit relevant data to the service party corresponding to the target interface, the target interface needs to be configured first, so as to call the target interface and complete the data transmission process. Based on this, the interface configuration process provided by the embodiments of the present application will be described in detail in combination with specific embodiments.
[0128] Figure 7 is a flow diagram of a data transmission method provided by the embodiments of the present application.
[0129] S710, receiving a first input for configuring the target interface.
[0130] The first input can be an input to the previous interface of the interface configuration interface, and the first input can be used to configure the target interface. For example, the first input can be a click input, a sliding input, etc. of the user to the previous interface of the interface configuration interface.
[0131] Specifically, when the user clicks the previous interface of the interface configuration interface, it indicates that the user wants to configure the target interface, so that the interface management system can receive the first input for configuring the target interface.
[0132] S720, in response to the first input, obtaining a plurality of interface configuration items for configuring the target interface.
[0133] The interface configuration item can be an interface attribute or an interface parameter of the target interface that needs to be configured. For example, the interface configuration item can include an interface name, a service party, an interface type, an access method of the service party, an access address of the service party, an interface address, and other related parameters, which are not limited herein.
[0134] Specifically, after receiving the first input for configuring the target interface, the interface management system can obtain a plurality of interface configuration items for configuring the target interface in response to the first input, so that the target interface can be configured based on the plurality of interface configuration items subsequently.
[0135] S730, displaying an interface configuration interface based on the plurality of interface configuration items for configuring the target interface.
[0136] In some embodiments, the interface configuration interface can include a plurality of controls corresponding to the plurality of interface configuration items respectively, and each interface configuration item can be used to instruct a user to input configuration information corresponding to the interface configuration item by using the control corresponding to the interface configuration item.
[0137] Specifically, after obtaining the plurality of interface configuration items for configuring the target interface, the interface configuration interface can be displayed based on the plurality of interface configuration items for configuring the target interface. For example, as shown in Figure 8 The interface configuration interface 80 can include an interface configuration item 81, an interface configuration item 82, and an interface configuration item 88, which are not limited herein.
[0138] S740, for each interface configuration item in the plurality of interface configuration items, obtaining configuration information corresponding to the interface configuration item in response to a second input to the control corresponding to the interface configuration item.
[0139] The second input can be an input to the control corresponding to the interface configuration item, and the second input can be used to obtain the configuration information corresponding to the interface configuration item. For example, the second input can be a click input, a sliding input, or the like of the user to the control corresponding to the interface configuration item.
[0140] Specifically, for each interface configuration item in the plurality of interface configuration items, the interface management system can receive a second input to the control corresponding to the interface configuration item, and obtain the configuration information corresponding to the interface configuration item in response to the second input. In this way, the configuration information corresponding to each interface configuration item in the plurality of interface configuration items can be obtained.
[0141] S750, configuring the target interface according to the configuration information corresponding to each interface configuration item.
[0142] Specifically, after obtaining the configuration information of each interface configuration item, the interface management system can configure the target interface according to the configuration information corresponding to each interface configuration item, so as to realize the subsequent calling of the target interface.
[0143] In this embodiment, before receiving the calling request sent by the calling party for calling the target interface, the first input for configuring the target interface can be received, and in response to the first input, the plurality of interface configuration items for configuring the target interface are obtained, and then the interface configuration interface for configuring the target interface is displayed. In this way, the relevant information of the interface configuration can be obtained in response to the configuration input of the user, so as to configure the target interface, which realizes the way of the front-end interface to configure the interface, reduces the operation threshold, saves manpower and resources, and is more flexible under the premise of meeting the customer demand.
[0144] Based on this, in some embodiments, the plurality of interface configuration items can include an interface type configuration item, and the configuration information of the interface type configuration item is an interface type. In this way, if the interface type of the target interface includes a first interface type, the first interface type represents that the message data to be transmitted does not need to be subjected to signature verification processing.
[0145] Based on this, the above-mentioned response to the second input of the control corresponding to the interface configuration item to obtain the configuration information corresponding to the interface configuration item can specifically include the following steps:
[0146] In response to the first sub-input of the first control corresponding to the interface type configuration item, a first sub-interface is displayed.
[0147] In response to the second sub-input of the file upload control, a file containing a message specification format adapted to the target interface is obtained.
[0148] The first sub-input can be an input of the first control corresponding to the interface type configuration item, and the first sub-input can be used to display the first sub-interface. For example, the first sub-input can be a click input, a sliding input, etc. of the user on the first control corresponding to the interface type configuration item.
[0149] The first sub-interface includes a file upload control, and the file upload control is used to instruct the user to upload a file containing a message specification format adapted to the target interface.
[0150] In addition, the second sub-input can be an input of the file upload control, and the second sub-input can be used to upload a file containing a message specification format adapted to the target interface. For example, the first sub-input can be a click input, a sliding input, etc. of the user on the file upload control.
[0151] Specifically, since the plurality of interface configuration items can include an interface type configuration item, configuration information of the interface type configuration item can be a configuration type, and on this basis, if the interface type of the target interface is a first interface type, the interface management system can display a first sub-interface in response to a first sub-input of a first control corresponding to the interface type configuration item. The first sub-interface can include a file upload control for instructing the user to upload a file containing a message specification format adapted to the target interface. In this way, the interface management system can receive and respond to a second sub-input of the file upload control by the user to obtain a file containing a message specification format adapted to the target interface.
[0152] In one example, as shown in FIG. 8B, if the interface configuration item 83 is an interface type configuration item, when the user clicks the drop-down list corresponding to the interface type configuration item and clicks the “first interface type control”, the interface management system can display a file upload control in the interface as shown in FIG. 8C. Figure 9 Figure 9
[0153] In this embodiment, if the target interface type is a first interface type, a file upload control for uploading a file containing a message specification format adapted to the target interface can be displayed to facilitate the configuration of the interface type, thereby realizing the related configuration of the interface type in the front-end interface. This not only meets the user's needs, but also improves the flexibility of the configuration.
[0154] Secondly, in one embodiment, if the plurality of interface configuration items can include an interface type configuration item, the configuration information of the interface type configuration item is an interface type, and on this basis, if the interface type of the target interface is a first signature type, the above-mentioned response to the second input of the control corresponding to the interface configuration item to obtain the configuration information corresponding to the interface configuration item includes:
[0155] in response to a third sub-input of a second control corresponding to the interface type configuration item, a second sub-interface is displayed, and the second sub-interface includes selection controls corresponding to at least two signature types, and the at least two signature types include the first signature type;
[0156] in response to a fourth sub-input of the selection control corresponding to the first signature type, the interface type of the target interface is determined to be the first signature type.
[0157] The third sub-input mentioned above can be an input of the second control corresponding to the interface type configuration item, and the third sub-input can be used to display the second sub-interface. For example, the third sub-input can be a click input, a sliding input, etc. of the second control corresponding to the interface type configuration item by the user.
[0158] In some embodiments, the second sub-interface can include selection controls corresponding to at least two verification types, and the at least two verification types can include the first verification type.
[0159] In addition, the fourth sub-input can be an input to the selection control corresponding to the first verification type, and the fourth sub-input can be used to determine the interface type of the target interface. For example, the fourth sub-input can be a click input, a sliding input, or the like of the user to the selection control corresponding to the first verification type.
[0160] Specifically, since the plurality of interface configuration items includes the interface type configuration item, the configuration information of the interface type configuration item can be the interface type. On this basis, if the interface type of the target interface is the first verification type, the interface management system can receive and respond to the third sub-input to the second control corresponding to the interface type configuration item, and display the second sub-interface. The second sub-interface can include selection controls corresponding to at least two verification types, and the at least two verification types can include the first verification type. In this way, the interface management system can receive and respond to the fourth sub-input to the selection control corresponding to the first verification type, and determine that the interface type of the target interface is the first verification type.
[0161] In one example, as shown in Figure 10 If the interface configuration item 83 is the interface type configuration item, when the user clicks the drop-down list corresponding to the interface type configuration item and clicks the "second interface type control", the interface shown in Figure 9 may display controls corresponding to the "first verification type" and controls corresponding to the "second verification type". In this way, the user can click the control corresponding to the "first verification type", and the interface type of the target interface can be determined as the first verification type.
[0162] In this embodiment, if the interface type of the target interface is the first verification type, the configuration of the interface type of the target interface as the first verification type can be achieved by displaying an interface including controls corresponding to at least two verification types and selecting the control corresponding to the first verification type. In this way, the related configuration of the interface type in the front-end interface can be achieved, which not only meets the user's demand, but also improves the flexibility of the configuration.
[0163] Furthermore, in one embodiment, the plurality of interface configuration items can include an interface type configuration item, and the configuration information of the interface type configuration item can be the interface type. On this basis, if the interface type of the target interface is the second verification type, the response to the second input to the control corresponding to the interface configuration item to obtain the configuration information corresponding to the interface configuration item can include:
[0164] In response to a third sub-input to the control corresponding to the interface configuration item, a second sub-interface is displayed. The second sub-interface includes selection controls corresponding to at least two signature verification types, and the at least two signature verification types include the second signature verification type.
[0165] In response to the fifth sub-input of the selection control corresponding to the second signature type, the interface type of the target interface is determined to be the second signature type.
[0166] The aforementioned third sub-input can be input from the second control corresponding to the interface type configuration item, and this third sub-input can be used to display the second sub-interface. For example, the third sub-input can be: user click input, swipe input, etc., on the second control corresponding to the interface type configuration item.
[0167] In some embodiments, the second sub-interface may include selection controls corresponding to at least two signature verification types, including the second signature verification type.
[0168] Additionally, the aforementioned fifth sub-input can be input to the selection control corresponding to the second verification type, and this fifth sub-input can be used to determine the interface type of the target interface. For example, this fifth sub-input can be: user click input, swipe input, etc., on the selection control corresponding to the second verification type.
[0169] Specifically, since the multiple interface configuration items include interface type configuration items, and the configuration information of the interface type configuration items can be interface types, if the interface type of the target interface is the second verification type, the interface management system can receive and respond to the third sub-input to the control corresponding to the interface configuration item, and display the second sub-interface. The second sub-interface includes selection controls corresponding to at least two verification types, and the at least two verification types include the second verification type. Then, it can receive and respond to the fifth sub-input to the selection control corresponding to the second verification type, and determine that the interface type of the target interface is the second verification type.
[0170] In one example, continue as follows Figure 10 As shown, if a user clicks the control corresponding to "Second Verification Type", then the interface type of the target interface can be determined to be the second signature verification type.
[0171] In this embodiment, if the target interface's interface type is the second verification type, an interface containing controls corresponding to at least two verification types can be displayed. By selecting the control corresponding to the second verification type, the target interface's interface type can be configured as the second verification type. In this way, the front-end interface can be configured to configure the interface type, which not only meets user needs but also improves the flexibility of configuration.
[0172] Based on the same inventive concept, the embodiment of the present application further provides a data transmission device. The data transmission device can be applied to an interface management system. The interface management system is a target pre-system determined from a plurality of pre-systems corresponding to a plurality of business systems. The pre-systems other than the target pre-system are connected to the interface management system through a first interface. The interface management system is connected to a plurality of external systems through a second interface. The specific connection is described in detail in the following Figure 11 The data transmission device provided by the embodiment of the present application is described in detail.
[0173] Figure 11 FIG. 1 is a structural schematic diagram of a data transmission device provided by the embodiment of the present application.
[0174] As shown in FIG. 1, the resource management system 1100 can include: Figure 11 The receiving module 1110 is configured to receive a calling request for calling a target interface sent by a calling party, the calling request including an interface address of the target interface and message data to be transmitted.
[0175] The calling module 1120 is configured to call the target interface based on the interface address of the target interface, and transmit the message data to be transmitted to a service party corresponding to the target interface.
[0176] The first interface and the second interface include the target interface.
[0177] The calling party includes a business system, and the service party includes an external system; or the calling party includes an external system, and the service party includes a business system.
[0178] In one embodiment, the data transmission device described above can further include a determining module and a matching module.
[0179] The determining module is configured to determine an interface type of the target interface. The interface type of the target interface is a first interface type, a first signature type or a second signature type. The first interface type represents that the message data to be transmitted does not need to be signed. The first signature type represents that the service party needs to perform signature processing on the message data to be transmitted. The second signature type represents that the interface management system needs to perform signature processing on the message data to be transmitted.
[0180] The matching module is configured to match the interface type of the target interface based on a preset mapping relationship between the interface type and a transmission mode, to obtain a transmission mode corresponding to the interface type of the target interface.
[0181] Based on this, the calling module is specifically configured to:
[0182]
[0183] Based on the interface address of the target interface, the target interface is invoked, and the to-be-transmitted message data is transmitted to a service party corresponding to the target interface in a transmission mode corresponding to the interface type of the target interface.
[0184] In some embodiments, the interface type of the target interface is a first interface type.
[0185] Based on this, the above-mentioned calling module is specifically configured to:
[0186] The to-be-transmitted message data is converted from a first standard format into a second standard format to obtain to-be-transmitted message data after format conversion, the first standard format being a message standard format adapted to the interface between the calling party and the interface management system, and the second standard format being a message standard format adapted to the target interface.
[0187] Based on the interface address of the target interface, the target interface is invoked, and the to-be-transmitted message data after format conversion is transmitted to a service party corresponding to the target interface.
[0188] In some embodiments, the interface type of the target interface is a first signature type, and the calling request further includes a message signature corresponding to the to-be-transmitted message data.
[0189] Based on this, the above-mentioned calling module is specifically configured to:
[0190] A notification message is generated, and the notification message is used to notify the service party corresponding to the target interface to perform signature verification processing on the to-be-transmitted message data based on the to-be-transmitted message data and the message signature.
[0191] Based on the interface address of the target interface, the target interface is invoked, and the to-be-transmitted message data, the message signature, and the notification message are sent to the service party corresponding to the target interface, so that the service party corresponding to the target interface performs signature verification processing on the to-be-transmitted message data based on the to-be-transmitted message data and the message signature.
[0192] In some embodiments, the interface type of the target interface is a second signature type, and the calling request further includes a message signature corresponding to the to-be-transmitted message data.
[0193] Based on this, the above-mentioned calling module is specifically configured to:
[0194] The to-be-transmitted message data is subjected to signature verification processing based on the to-be-transmitted message data and the message signature.
[0195] In a case where the to-be-transmitted message data passes the signature verification, target message data satisfying a message standard format corresponding to the target interface is extracted from the to-be-transmitted message data.
[0196] The target interface is invoked based on the interface address of the target interface, and target message data is transmitted to a service side corresponding to the target interface.
[0197] In one embodiment, the data transmission device described above can further include an obtaining module, a display module, and a configuration module.
[0198] The receiving module is further configured to receive a first input for configuring the target interface.
[0199] The obtaining module is configured to obtain, in response to the first input, a plurality of interface configuration items for configuring the target interface.
[0200] The display module is configured to display, based on the plurality of interface configuration items for configuring the target interface, an interface configuration interface, the interface configuration interface including a plurality of controls corresponding to the plurality of interface configuration items, each interface configuration item being used to instruct a user to input configuration information corresponding to the interface configuration item by using a control corresponding to the interface configuration item.
[0201] The obtaining module is further configured to, for each interface configuration item in the plurality of interface configuration items, obtain configuration information corresponding to the interface configuration item in response to a second input to a control corresponding to the interface configuration item.
[0202] The configuration module is configured to configure the target interface according to the configuration information corresponding to each interface configuration item.
[0203] In some embodiments, the plurality of interface configuration items includes an interface type configuration item, the configuration information of the interface type configuration item is an interface type, and the interface type of the target interface includes a first interface type.
[0204] Based on this, the obtaining module is specifically configured to:
[0205] In response to a first sub-input to a first control corresponding to the interface type configuration item, display a first sub-interface, the first sub-interface including a file upload control, the file upload control being used to instruct a user to upload a file in a message specification format adapted to the target interface.
[0206] In response to a second sub-input to the file upload control, obtain the file in the message specification format adapted to the target interface.
[0207] In some embodiments, the plurality of interface configuration items includes an interface type configuration item, the configuration information of the interface type configuration item is an interface type, and the interface type of the target interface is a first signature type.
[0208] Based on this, the obtaining module is specifically configured to:
[0209] In response to a third sub-input of the second control corresponding to the interface type configuration item, a second sub-interface is displayed, and the second sub-interface includes selection controls corresponding to at least two signature types, and the at least two signature types include the first signature type;
[0210] In response to a fourth sub-input of the selection control corresponding to the first signature type, the interface type of the target interface is determined as the first signature type.
[0211] In some embodiments, the plurality of interface configuration items includes an interface type configuration item, and the configuration information of the interface type configuration item is an interface type, and the interface type of the target interface is the second signature type;
[0212] Based on this, the above acquisition module is specifically configured to:
[0213] In response to a third sub-input of the control corresponding to the interface configuration item, a second sub-interface is displayed, and the second sub-interface includes selection controls corresponding to at least two signature types, and the at least two signature types include the second signature type;
[0214] In response to a fifth sub-input of the selection control corresponding to the second signature type, the interface type of the target interface is determined as the second signature type.
[0215] In the embodiments of the present application, the interface management system can receive the calling request for calling the target interface sent by the calling party, and the calling request includes the interface address of the target interface and the message data to be transmitted, and then the target interface can be called based on the interface address of the target interface, and the message data to be transmitted is transmitted to the service party corresponding to the target interface. Since the interface management system is determined from the target front-end system corresponding to the plurality of business systems, the front-end systems other than the target front-end system in the plurality of front-end systems are connected with the interface management system through the first interface, and the interface management system is connected with the plurality of external systems through the second interface, so that the unified management and control of the interfaces between systems are realized, the problem of disordered connection of interfaces between systems is avoided, and the cost of interface management is reduced.
[0216] The various modules in the resource management system provided in the embodiments of the present application can implement the method steps of any one of the embodiments shown in the above Figures 5 to 7 The method steps of any one of the embodiments shown in the above are not described again here for brevity.
[0217] Figure 12 A hardware structure schematic diagram of an electronic device provided in the embodiments of the present application is shown.
[0218] The electronic device can include a processor 1201 and a memory 1202 having computer program instructions stored therein.
[0219] In particular, the processor 1201 can include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or can be configured to implement one or more integrated circuits that embody the embodiments of the present application.
[0220] The memory 1202 can include mass storage for data or instructions. As an example and not by way of limitation, the memory 1202 can include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc (e.g., a compact disc (CD) or a digital versatile disc (DVD)), a solid-state drive (SSD), a USB drive, or a combination of two or more of these. Where appropriate, the memory 1202 can include removable or non-removable (or fixed) media, where appropriate. The memory 1202 can be internal or external to the integrated gateway disaster recovery device. In particular embodiments, the memory 1202 is non-volatile, solid-state memory.
[0221] The memory can include read-only memory (ROM), random-access memory (RAM), magnetic disk storage mediums, optical storage mediums, flash memory devices, electrical, optical, or other physical / tangible memory storage devices. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software that, when executed (by one or more processors), is operable to perform operations described with reference to the methods according to an aspect of the present disclosure.
[0222] The processor 1201 implements any one of the data transmission methods in the above embodiments by reading and executing computer program instructions stored in the memory 1202.
[0223] In one example, the electronic device can further include a communication interface 1203 and a bus 1210. As shown, the processor 1201, the memory 1202, and the communication interface 1203 are connected by the bus 1210 and complete communication with each other. Figure 12
[0224] The communication interface 1203 is mainly used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application.
[0225] Bus 1210 includes a hardware, software, or both that couples components of the online data traffic metering device to each other. As an example but not a limitation, bus can include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand (IB) interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or another suitable bus or a combination of two or more of these. Where appropriate, bus 1210 can include one or more buses. Although this application describes and shows a particular bus, this application contemplates any suitable bus or interconnect.
[0226] In addition, in combination with the data transmission method in the above embodiments, the embodiments of the present application can provide a computer storage medium for implementation. The computer storage medium has computer program instructions stored thereon; the computer program instructions are executed by a processor to implement the data transmission method provided by the embodiments of the present application.
[0227] The embodiments of the present application also provide a computer program product, which includes a computer program, and the computer program is executed by a processor to enable an electronic device to perform the data transmission method provided by the embodiments of the present application.
[0228] It needs to be clear that the present application is not limited to the specific configurations and processes described above and shown in the drawings. For the sake of brevity, detailed descriptions of well-known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after understanding the spirit of the present application.
[0229] The functional blocks shown in the structural block diagrams above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application specific integrated circuits (ASICs), appropriate firmware, plug-ins, functional cards, and the like. When implemented in software, the elements of the present application are program or code segments that are used to perform the required tasks. The program or code segments can be stored in a machine-readable medium, or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. A "machine-readable medium" includes any medium that can store or transport information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memory, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, and the like. The code segments can be downloaded via computer networks such as the Internet, intranets, and the like.
[0230] It is also important to note that the examples in the present application are described based on a series of steps or units for performing some methods or systems. However, the present application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the examples, or in an order different from the examples, or several steps can be performed simultaneously.
[0231] The above describes the aspects of the present application with reference to the flowcharts and / or block diagrams of the methods, apparatuses (systems) and computer program products according to the embodiments of the present application. It should be understood that each block in the flowcharts and / or block diagrams, and the combination of blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, or other programmable resource management system, to produce a machine, so that the instructions executed by the processor of the computer or other programmable resource management system enable the implementation of the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It should also be understood that each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can also be implemented by special hardware that performs the specified functions or actions, or can be implemented by a combination of special hardware and computer instructions.
[0232] The above is only a specific embodiment of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, modules and units can refer to the corresponding processes in the foregoing method embodiments, which will not be described here. It should be understood that the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be covered within the protection scope of the present application.
Claims
1. A data transmission method, characterized by, The application is applied to an interface management system, the interface management system is a target pre-system determined from a plurality of business systems respectively corresponding to a plurality of pre-systems, a pre-system other than the target pre-system in the plurality of pre-systems is connected with the interface management system through a first interface, and the interface management system is connected with a plurality of external systems through a second interface; the method comprises the following steps: receiving a calling request for calling a target interface sent by a calling party, the calling request comprising an interface address of the target interface and message data to be transmitted; based on the interface address of the target interface, calling the target interface and transmitting the message data to be transmitted to a service party corresponding to the target interface; wherein the first interface and the second interface comprise the target interface; the calling party comprises the business system, and the service party comprises the external system; or the calling party comprises the external system, and the service party comprises the business system.
2. The method of claim 1, wherein, Before the step of based on the interface address of the target interface, calling the target interface and transmitting the message data to be transmitted to a service party, the method further comprises the following steps: determining an interface type of the target interface, the interface type of the target interface being a first interface type, a first signature type or a second signature type, the first interface type representing that the message data to be transmitted does not need to be signed, the first signature type representing that the message data to be transmitted needs to be signed by the service party, and the second signature type representing that the message data to be transmitted needs to be signed by the interface management system; based on a preset mapping relationship between the interface type and a transmission mode, matching the interface type of the target interface to obtain a transmission mode corresponding to the interface type of the target interface; the step of based on the interface address of the target interface, calling the target interface and transmitting the message data to be transmitted to a service party corresponding to the target interface comprises the following steps: based on the interface address of the target interface, calling the target interface and transmitting the message data to be transmitted to a service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
3. The method of claim 2, wherein, the interface type of the target interface is the first interface type; the step of based on the interface address of the target interface, calling the target interface and transmitting the message data to be transmitted to a service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface comprises the following steps: converting the message data to be transmitted from a first standard format into a second standard format to obtain message data to be transmitted after format conversion, the first standard format being a message standard format adapted to an interface between the calling party and the interface management system, and the second standard format being a message standard format adapted to the target interface; based on the interface address of the target interface, calling the target interface and transmitting the message data to be transmitted after format conversion to a service party corresponding to the target interface.
4. The method of claim 2, wherein, the interface type of the target interface is the first signature type, and the calling request further comprises a message signature corresponding to the message data to be transmitted; The interface address of the target interface is called based on the target interface, and the target interface is called, and the target interface corresponding to the service party is transmitted to the target interface corresponding to the service party according to the transmission mode corresponding to the interface type of the target interface. The message data to be transmitted includes: A notification message is generated, and the notification message is used to notify the service party corresponding to the target interface to perform signature verification processing on the message data to be transmitted based on the message data to be transmitted and the message signature; The interface address of the target interface is called based on the target interface, and the target interface corresponding to the service party is transmitted to the target interface corresponding to the service party according to the transmission mode corresponding to the interface type of the target interface. The message data to be transmitted includes:
5. The method of claim 2, wherein, The target interface is called based on the target interface, and the target interface corresponding to the service party is transmitted to the target interface corresponding to the service party according to the transmission mode corresponding to the interface type of the target interface. The message data to be transmitted includes: The target interface is called based on the target interface, and the target interface corresponding to the service party is transmitted to the target interface corresponding to the service party according to the transmission mode corresponding to the interface type of the target interface. The message data to be transmitted includes: The target interface is called based on the target interface, and the target interface corresponding to the service party is transmitted to the target interface corresponding to the service party according to the transmission mode corresponding to the interface type of the target interface. The message data to be transmitted includes: The target interface is called based on the target interface, and the target interface corresponding to the service party is transmitted to the target interface corresponding to the service party according to the transmission mode corresponding to the interface type of the target interface. The message data to be transmitted includes: The target interface is called based on the target interface, and the target interface corresponding to the service party is transmitted to the target interface corresponding to the service party according to the transmission mode corresponding to the interface type of the target interface. The message data to be transmitted includes:
6. The method of claim 1, wherein, Before receiving the calling request sent by the calling party for calling the target interface, the method further includes: A first input for configuring the target interface is received; In response to the first input, a plurality of interface configuration items for configuring the target interface are obtained; Based on the plurality of interface configuration items for configuring the target interface, an interface configuration interface is displayed, the interface configuration interface includes a plurality of interface configuration items respectively corresponding to a plurality of controls, and each interface configuration item is used to instruct a user to input configuration information corresponding to the interface configuration item by using a control corresponding to the interface configuration item; For each interface configuration item in the plurality of interface configuration items, in response to a second input to the control corresponding to the interface configuration item, configuration information corresponding to the interface configuration item is obtained; According to the configuration information corresponding to each interface configuration item, the target interface is configured.
7. The method of claim 6, wherein, The plurality of interface configuration items include an interface type configuration item, the configuration information of the interface type configuration item is an interface type, and the interface type of the target interface includes a first interface type; The configuration information corresponding to the interface configuration item is obtained in response to the second input to the control corresponding to the interface configuration item, including: In response to a first sub-input to a first control corresponding to the interface type configuration item, a first sub-interface is displayed, and the first sub-interface includes a file upload control, and the file upload control is used to instruct a user to upload a file containing a message specification format adapted to the target interface. In response to a second sub-input to the file upload control, a file in a message specification format adapted to the target interface is obtained.
8. The method of claim 6, wherein, The plurality of interface configuration items include an interface type configuration item, configuration information of the interface type configuration item is an interface type, and the interface type of the target interface is a first signature type; The response to the second input to the control corresponding to the interface configuration item includes: In response to a third sub-input to the second control corresponding to the interface type configuration item, a second sub-interface is displayed, the second sub-interface includes selection controls corresponding to at least two signature types, and the at least two signature types include the first signature type; In response to a fourth sub-input to the selection control corresponding to the first signature type, the interface type of the target interface is determined to be the first signature type.
9. The method of claim 6, wherein, The plurality of interface configuration items include an interface type configuration item, configuration information of the interface type configuration item is an interface type, and the interface type of the target interface is a second signature type; The response to the second input to the control corresponding to the interface configuration item includes: The response to the third sub-input to the control corresponding to the interface configuration item includes: In response to a fifth sub-input to the selection control corresponding to the second signature type, the interface type of the target interface is determined to be the second signature type.
10. A data transmission apparatus, characterized by comprising: The device is applied to an interface management system, the interface management system is a target pre-system determined from a plurality of pre-systems corresponding to a plurality of business systems, pre-systems other than the target pre-system in the plurality of pre-systems are connected to the interface management system through a first interface, and the interface management system is connected to a plurality of external systems through a second interface; the device includes: A receiving module is configured to receive a calling request for calling a target interface sent by a calling party, the calling request including an interface address of the target interface and message data to be transmitted; A calling module is configured to call the target interface based on the interface address of the target interface, and transmit the message data to be transmitted to a service party corresponding to the target interface; The first interface and the second interface include the target interface. The calling party includes the business system, and the service party includes the external system; or the calling party includes the external system, and the service party includes the business system.
11. An electronic device, comprising: The device includes a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the data transmission method of any one of claims 1-9.
12. A computer storage medium, characterized in that The computer storage medium stores computer program instructions executed by the processor to implement the data transmission method of any one of claims 1-9.
13. A computer program product, characterised in that, The computer program product comprises a computer program which, when executed by a processor, performs the data transmission method according to any one of claims 1-9.
Citation Information
Patent Citations
Data transmission method and device, computer equipment and storage medium
CN112055078A
Service calling method and device and electronic equipment
CN112532564A