Data transmission method, device, equipment, medium and product
Through the interface management system, the interface between multiple business systems and external systems is unifiedly managed, which solves the problem of confusing interface connections between systems, realizes unified management and control of interfaces, and reduces management costs.
Patent Information
- Application Number
- CN202411267832.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-11
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-09-11
AI Technical Summary
In the prior art, the interface connection between multiple business systems and external systems is relatively chaotic, resulting in high cost of interface management, complex operation, and difficult to achieve unified management of interfaces between systems.
The target pre-system is determined from the pre-systems of multiple business systems through the interface management system. All pre-systems are connected to the interface management system, and the interface management system is directly connected to the external system to realize unified management and control of interfaces between systems.
It effectively avoids confusion between interfaces between systems, reduces interface management costs, simplifies operational processes, and improves the controllability of interfaces between systems.
Smart Images

Figure CN119232724A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of interface call technology, and in particular, relates to a data transmission method, device, equipment, medium and product. Background Art
[0002] The interface is a bridge for data interaction between different systems, modules or components. Through the interface, data can be circulated and shared, which enables various systems to collaborate with each other and complete complex tasks together.
[0003] However, in real life, multiple business systems, such as resettlement housing systems, rental systems, and property systems, will interface with multiple external systems through their respective front-end systems to achieve data interaction. Since the front-end systems of different business systems may interface with the same external system, or a business system needs to connect to an external system through the front-end system of another system, the interface connection between systems will be relatively chaotic. Summary of the invention
[0004] The embodiments of the present application provide a data transmission method, apparatus, device, medium and product, which can solve the problem of chaotic interface connection between systems and realize unified management and control of interfaces between systems.
[0005] In a first aspect, an embodiment of the present application provides a data transmission method, which is applied to an interface management system, wherein the interface management system is a target front-end system determined from front-end systems corresponding to a plurality of business systems, wherein 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; the method comprises:
[0006] Receiving a call request sent by a caller for calling a target interface, the call request including an interface address of the target interface and message data to be transmitted;
[0007] Based on the interface address of the target interface, the target interface is called to transmit the message data to be transmitted to the service party corresponding to the target interface;
[0008] wherein the first interface and the second interface include a target interface;
[0009] The caller includes the business system, and the service provider includes the external system; or, the caller includes the external system, and the service provider includes the business system.
[0010] In an optional implementation manner 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 includes:
[0011] Determine the interface type of the target interface. The interface type of the target interface is the first interface type, the first signature verification type, or the second signature verification type. The first interface type indicates that no signature verification is required for the message data to be transmitted. The first signature verification type indicates that the service provider needs to perform signature verification on the message data to be transmitted. The second signature verification type indicates that the interface management system needs to perform signature verification on the message data to be transmitted.
[0012] Based on the preset mapping relationship between the interface type and the transmission mode, the interface type of the target interface is matched to obtain the transmission mode corresponding to the interface type of the target interface;
[0013] Based on the interface address of the target interface, the target interface is called to transmit the message data to be transmitted to the service party corresponding to the target interface, including:
[0014] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted is transmitted to the service party 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 a first interface type;
[0016] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted is transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface, including:
[0017] Converting the message data to be transmitted from a first standard format to a second standard format to obtain the message data to be transmitted after format conversion, wherein the first standard format is a message standard format adapted by the interface between the caller and the interface management system, and the second standard format is a message standard format adapted by the target interface;
[0018] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted after format conversion is transmitted to the service party corresponding to the target interface.
[0019] In an optional implementation of the first aspect, the interface type of the target interface is a first signature verification type, and the call request further includes a message signature corresponding to the message data to be transmitted;
[0020] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted is transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface, including:
[0021] Generate a notification message, which is used to notify the service provider corresponding to the target interface to perform signature verification 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 called, and the message data to be transmitted, 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 can verify the signature of 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 call 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 called, and the message data to be transmitted is transmitted to the service party corresponding to the target interface according to the 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 verified;
[0026] When the message data to be transmitted passes the signature verification, target message data satisfying the 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 called to transmit the target message data to the service party corresponding to the target interface.
[0028] In an optional implementation manner of the first aspect, before receiving a call request for calling a target interface sent by a caller, the method further includes:
[0029] receiving a first input for configuring a target interface;
[0030] In response to the first input, obtaining a plurality of interface configuration items for configuring a target interface;
[0031] Based on multiple interface configuration items for configuring the target interface, an interface configuration interface is displayed, the interface configuration interface including controls corresponding to the multiple interface configuration items, each interface configuration item is used to instruct the user to input configuration information corresponding to the interface configuration item using the control corresponding to the interface configuration item;
[0032] For each interface configuration item among the multiple interface configuration items, in response to a second input to a control corresponding to the interface configuration item, obtaining configuration information corresponding to the interface configuration item;
[0033] Configure the target interface according to the configuration information corresponding to each interface configuration item.
[0034] In an optional implementation of the first aspect, the multiple 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 a second input to a control corresponding to the interface configuration item, obtaining configuration information corresponding to the interface configuration item includes:
[0036] In response to a first sub-input of a first control corresponding to an interface type configuration item, a first sub-interface is displayed, wherein 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 by the target interface;
[0037] In response to the second sub-input to the file upload control, a file containing a message specification format adapted by the target interface is obtained.
[0038] In an optional implementation of the first aspect, the multiple 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 is a first signature verification type;
[0039] In response to a second input to a control corresponding to the interface configuration item, obtaining configuration information corresponding to the interface configuration item includes:
[0040] In response to a third sub-input of a second control corresponding to the interface type configuration item, displaying a second sub-interface, the second sub-interface including at least two selection controls corresponding to signature verification types, the at least two signature verification types including the first signature verification type;
[0041] In response to a fourth sub-input of the selection control corresponding to the first signature verification type, the interface type of the target interface is determined to be the first signature verification type.
[0042] In an optional implementation of the first aspect, the multiple 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 is a second signature verification type;
[0043] In response to a second input to a control corresponding to the interface configuration item, obtaining configuration information corresponding to the interface configuration item includes:
[0044] In response to a third sub-input of the control corresponding to the interface configuration item, displaying a second sub-interface, the second sub-interface including at least two selection controls corresponding to the signature verification types, the at least two signature verification types including the second signature verification type;
[0045] In response to a fifth sub-input of the selection control corresponding to the second signature verification type, the interface type of the target interface is determined to be the second signature verification type.
[0046] In a second aspect, a data transmission device is provided, which is applied to an interface management system, wherein the interface management system is a target front-end system determined from front-end systems corresponding to a plurality of business systems, and 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; the device comprises:
[0047] A receiving module, used for receiving a call request sent by a caller for calling a target interface, wherein the call request includes an interface address of the target interface and message data to be transmitted;
[0048] A calling module, used to call the target interface based on the interface address of the target interface, and transmit the message data to be transmitted to the service party corresponding to the target interface;
[0049] wherein the first interface and the second interface include a target interface;
[0050] The caller includes the business system, and the service provider includes the external system; or, the caller includes the external system, and the service provider includes the business system.
[0051] In a third aspect, an electronic device is provided, comprising: a memory for storing computer program instructions; and a processor for reading and running the computer program instructions stored in the memory to execute the data transmission method provided by any optional implementation in the first aspect.
[0052] In a fourth aspect, a computer storage medium is provided, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the data transmission method provided by any optional implementation in the first aspect is implemented.
[0053] In a fifth aspect, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, it implements the data transmission method provided by any optional implementation method in the first aspect.
[0054] In an embodiment of the present application, the interface management system can receive a call request for calling a target interface sent by a caller, the call request including 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 to transmit the message data to be transmitted to the service party corresponding to the target interface. Since the interface management system is a target front-end system determined from the front-end systems corresponding to multiple business systems, the front-end systems other than the target front-end system in the multiple front-end systems are all connected to the interface management system through the first interface, and the interface management system is connected to multiple external systems through the second interface. In this way, unified management and control of the interfaces between systems is achieved, the problem of chaotic interface connections between systems is avoided, and the cost of interface management is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0056] Figure 1 It is one of the system structure diagrams in the related technology provided by the embodiment of the present application;
[0057] Figure 2 This is a second system structure diagram of the related technology provided by the embodiment of the present application;
[0058] Figure 3 This is a third system structure diagram of the related technology provided by the embodiment of the present application;
[0059] Figure 4 is a system structure diagram of a management system provided by an embodiment of the present application;
[0060] Figure 5 This is one of the flowcharts of a data transmission method provided in an embodiment of the present application;
[0061] Figure 6 This is a second flow chart of a data transmission method provided in an embodiment of the present application;
[0062] Figure 7 This is a third flow chart of a data transmission method provided in an embodiment of the present application;
[0063] Figure 8 It is a schematic diagram of an interface configuration interface provided in an embodiment of the present application;
[0064] Fig. 9 is a schematic diagram of a first sub-interface provided in an embodiment of the present application;
[0065] Fig.10 is a schematic diagram of a second sub-interface provided in an embodiment of the present application;
[0066] Fig.11 It is a structural schematic diagram of a data transmission device provided in an embodiment of the present application;
[0067] Fig.12 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0068] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are intended only to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only 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, and processing of data in the technical solution of the present application are in compliance with the relevant provisions of national laws and regulations. It should also be noted that in the embodiments of the present application, some existing solutions in the industry such as software, components, and models may be mentioned, and they should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or must have used the solution.
[0069] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0070] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0071] As mentioned in the background technology, in real life, when different business systems are interfaced with other external systems, there may be situations where the front-end systems of different business systems may interface with the same external system, such as Figure 1As shown, business system 1 will interface with external system 1, external system 2, external system 3, external system 4, external system 5 and external system 6 respectively through front-end system 1, business system 2 will interface with external system 2, external system 3, external system 5 and external system 6 respectively through front-end system 2, and business system 3, business system 4, business system 5 and business system 6 will also interface with external system 1, external system 2...external system 6 and other external systems according to their own needs. In addition, when a business system interfaces with other external systems, there may be a situation where a business system needs to connect to an external system through the front-end system of another system. For example, business system 2, business system 3 and business system 4 will also have some interfaces that need to be connected to external systems such as external system 1 and external system 3 through front-end system 1 (this part of the connection is not shown in the figure). Figure 1 This will cause confusion in the interface connections between systems.
[0072] In order to solve the problem of chaotic system interface connection, in the prior art, a comprehensive front-end system is developed, specifically as follows Figure 2 As shown, the interface between the business system and the external system is migrated or developed to the integrated front-end system, that is, business system 1, business system 2...business system 6 are all interfaced with external systems such as external system 1, external system 2...external system 6 through the integrated front-end system, so as to achieve unified control and management of the interfaces between systems. However, this method requires the reconstruction of the integrated front-end system, and each business system needs to migrate and develop the original front-end functions, which is a large workload, time-consuming and labor-intensive, and may affect the existing interfaces, reducing the continuous availability of the system. It involves coordination between multiple systems, even collaborative development between multiple software developers, and coordination of external systems for testing. The coordination is difficult and increases the uncontrollability of the solution.
[0073] In addition, in order to solve the problem of confusing system interface connections, such as Figure 3 As shown, in the prior art, a seven-layer proxy forwarding server can also be deployed, and business system 1, business system 2...business system 6 can interface with the newly deployed seven-layer proxy service department and external system 1, external system 2...external system 6 through their respective front-end systems. However, this method is not visualized, inconvenient to operate, and requires personnel with corresponding technical reserves to operate. In addition, when multiple systems of the user are newly connected to the same external system, each system still connects to the external system alone, resulting in repeated connection problems, which also wastes manpower.
[0074] In summary, in order to solve the problems existing in the prior art, the example of this application provides a data transmission method, device, equipment, medium and product, which can receive a call request sent by the caller for calling the target interface through the interface management system, and the call request includes the interface address of the target interface and the message data to be transmitted, and then can call the target interface based on the interface address of the target interface, and transmit the message data to be transmitted to the service party corresponding to the target interface. Since the interface management system is a target front-end system determined from the front-end systems corresponding to multiple business systems, the front-end systems other than the target front-end system in the multiple front-end systems are all connected to the interface management system through the first interface, and the interface management system is connected to multiple external systems through the second interface. In this way, unified management and control of the interfaces between systems are achieved, avoiding the problem of chaotic interface connections between systems, and reducing the cost of interface management.
[0075] In order to accurately describe the data transmission method provided in the embodiment of the present application, before introducing the data transmission method provided in the embodiment of the present application, the management system provided in the embodiment of the present application is first introduced.
[0076] Figure 4 This is an architecture diagram of a management system provided in an embodiment of the present application.
[0077] like Figure 4 As shown, the management system may include: multiple business systems, front-end systems corresponding to the multiple business systems, and multiple external systems.
[0078] The above-mentioned multiple business systems may include business system 1, business system 2, ... business system 6. Correspondingly, the front-end systems corresponding to the multiple business systems may include front-end system 1 corresponding to business system 1, front-end system 2 corresponding to business system 2, ... front-end system 6 corresponding to business system 6. In addition, the multiple external systems include external system 1, external system 2, ... external system 6.
[0079] Based on this, the data transmission method provided in the embodiment of the present application can determine the target front-end system as the interface management system from the front-end systems of multiple business systems according to preset rules, wherein the preset rules can be pre-set based on actual experience or circumstances. For example, the external system that this front-end system has been connected to may also need to be connected to other business systems in the future, so as to minimize the additional development work. Figure 4 The front-end system 1 is set as an interface management system, so that the other front-end systems except the front-end system 1, that is, the front-end system 2, the front-end system 3...the front-end system 6 are connected to the front-end system 1 (interface management system) through the first interface, and the interface management system is connected to multiple external systems such as the external system 1, the external system 2...the 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 for the above-mentioned business system, the front-end system of the business system, and the external system to interact is that the three environments are connected, so first ensure that the network environment of the communication link is connected.
[0081] Based on the architecture diagram of the above management system, the interface calling method provided in the embodiment of the present application is described in detail through specific embodiments in combination with the accompanying drawings.
[0082] Figure 5 It is a flowchart of an interface calling method provided in an embodiment of the present application.
[0083] like Figure 5 As shown, the execution subject of this method can be Figure 4 The interface management system shown may be a target front-end system determined from the front-end systems corresponding to multiple business systems respectively, and all the front-end systems except the target front-end system among the multiple front-end systems are connected to the interface management system through a first interface, and the interface management system is connected to multiple external systems through a second interface.
[0084] It should be noted that the first interface may include at least one first sub-interface, which is not specifically limited here. Correspondingly, the second interface may include at least one second sub-interface, which is not specifically limited here.
[0085] Based on this, the method may include the following steps:
[0086] S510, receiving a call request for calling a target interface sent by a caller.
[0087] The calling party is an electronic device that calls the target interface, which is not specifically limited here. In addition, in some embodiments, the calling request may include the interface address of the target interface and the message data to be transmitted.
[0088] Specifically, in the case where the caller sends a call request for calling the target interface to the interface management system, the interface management system may receive the call request for calling the target interface sent by the caller.
[0089] S520, based on the interface address of the target interface, calling the target interface, and transmitting the message data to be transmitted to the service party corresponding to the target interface.
[0090] The service provider may be an electronic device that provides services corresponding to the interface, which is not specifically limited here.
[0091] In addition, in some embodiments, if the caller may be a business system, the service provider may be an external system. Conversely, if the caller may be an external system, the service provider may be a business system.
[0092] Specifically, after the interface management system receives a call request sent by the caller for calling the target interface, the interface management system can call the target interface based on the interface address of the target interface included in the call request, and transmit the message data to be transmitted included in the above call request to the service party corresponding to the target interface.
[0093] In an embodiment of the present application, the interface management system can receive a call request for calling a target interface sent by a caller, the call request including 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 to transmit the message data to be transmitted to the service party corresponding to the target interface. Since the interface management system is a target front-end system determined from the front-end systems corresponding to multiple business systems, the front-end systems other than the target front-end system in the multiple front-end systems are all connected to the interface management system through the first interface, and the interface management system is connected to multiple external systems through the second interface. In this way, unified management and control of the interfaces between systems is achieved, the problem of chaotic interface connections between systems is avoided, and the cost of interface management is reduced.
[0094] Based on this, in order to fully and in detail describe the data transmission method provided in the embodiment of the present application, in one embodiment, before S520, as Figure 6 As shown, the data transmission method of the embodiment of the present application may also 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 a preset mapping relationship between the interface type and the transmission mode, and obtaining the transmission mode corresponding to the interface type of the target interface.
[0097] The mapping relationship between the preset interface type and the transmission mode may be preset based on actual experience or circumstances, and is not specifically limited here.
[0098] In addition, in some embodiments, the interface type of the target interface may be a first interface type, a first signature verification type, or a second signature verification type. Among them, the first interface type may indicate that no signature verification is required for the message data to be transmitted, the first signature verification type may indicate that the service provider needs to perform signature verification on the message data to be transmitted, and the second signature verification type may indicate that the interface management system needs to perform signature verification on the message data to be transmitted.
[0099] Specifically, the interface management system can call the target interface based on the interface address of the target interface and transmit the message data to be transmitted to the service party corresponding to the target interface. It can first determine the interface type of the target interface and match 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.
[0100] Based on this, the above S520 may specifically include the following steps:
[0101] S5201, based on the interface address of the target interface, call the target interface, and transmit the message data to be transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
[0102] Specifically, after determining the interface type of the target interface and the transmission mode corresponding to the interface type of the target interface, the interface management system can call the target interface based on the interface address of the target interface, and transmit the message data to be transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
[0103] In this embodiment, it can take into account that different types of interfaces correspond to different transmission methods. The interface type of the target interface is first determined through the interface management system, and then the transmission method corresponding to the interface type of the target interface is determined. In this way, the message data to be transmitted can be transmitted to the service party according to the transmission method 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 verification type and the second signature verification type, the data transmission process of each interface type is described in detail below in conjunction 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 there is no need to perform signature verification on the message data to be transmitted, then the above S5201 may specifically include the following steps:
[0106] Converting the message data to be transmitted from the first standard format to the second standard format to obtain the message data to be transmitted after the format conversion;
[0107] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted after format conversion is transmitted to the service party corresponding to the target interface.
[0108] Among them, the first standard format is the standard format of the message for interface adaptation between the caller and the interface management system, and the first standard format is the standard format of the message for target interface adaptation, which is not specifically limited here.
[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 provider needs to perform signature verification on the message data to be transmitted. In this way, the interface management system can convert the message data to be transmitted from the first standard format to the second standard format, that is, convert the message data to be transmitted from the message standard format adapted by the interface between the caller and the interface management system to the message standard format adapted to the target interface, and then, based on the interface address of the target interface, the target interface can be called to transmit the message data to be transmitted after format conversion to the service provider corresponding to the target interface.
[0110] In this embodiment, if the interface type of the target interface is the first interface type, which means that the interface management system and the service party do not need to perform signature verification on the message data to be transmitted, the message data to be transmitted can be first converted into the message standard format so that the converted message data to be transmitted can adapt to the target interface. In this way, the message data to be transmitted is transmitted 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 verification type, in one embodiment, if the interface type of the target interface is the first signature verification type, the above call request may also include a message signature corresponding to the message data to be transmitted.
[0112] Based on this, the above S5201 may specifically include the following steps:
[0113] Generate a notification message;
[0114] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted, 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 can verify the signature of the message data to be transmitted based on the message data to be transmitted and the message signature.
[0115] The notification message is used to notify the service provider corresponding to the target interface to perform signature verification on the message data to be transmitted based on the message data to be transmitted and the message signature.
[0116] Specifically, if the interface type of the target interface is the first signature verification type, indicating that the service party needs to perform signature verification on the message data to be transmitted, the interface management system can generate a notification message, and then call the target interface based on the interface address of the target interface, and send the message data to be transmitted, 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 can perform signature verification on the message data to be transmitted based on the message data to be transmitted and the message signature after receiving the message data to be transmitted, the message signature and the notification message.
[0117] In this embodiment, if the interface type of the target interface is the first signature verification type, which indicates that the service party needs to perform signature verification on the message data to be transmitted, a notification message needs to be generated, and the message data to be transmitted, the message signature, and the notification message are sent to the service party by calling the target interface, so that the service party can perform signature verification on the message data to be transmitted. In this way, when the interface type is the first signature verification type, the message data to be transmitted is transmitted to the service party.
[0118] Furthermore, in order to accurately describe the data transmission process when the interface type of the target interface is the second signature verification type, in one embodiment, if the interface type of the target interface is the second signature verification type, that is, the interface management system needs to perform signature verification on the message data to be transmitted, the call request may also include the message signature corresponding to the message data to be transmitted.
[0119] Based on this, the above 5201 may specifically include the following steps:
[0120] Based on the message data to be transmitted and the message signature, the message data to be transmitted is verified;
[0121] When the message data to be transmitted passes the signature verification, extracting target message data satisfying the first standard format corresponding to the target interface from the message data to be transmitted;
[0122] Based on the interface address of the target interface, the target interface is called to transmit the target message data to the service party corresponding to the target interface.
[0123] Specifically, if the interface type of the target interface is the second verification type, indicating that the interface management system needs to perform signature verification on the message data to be transmitted, the interface management system can perform signature verification on the message data to be transmitted based on the message data to be transmitted and the message signature, and then, if the signature verification of the message data to be transmitted passes, the target message data that meets the message specification format corresponding to the target interface can be extracted from the message data to be transmitted, and then, based on the interface address of the target interface, the target message data can be transmitted to the service party corresponding to the target interface.
[0124] In one example, in the process of extracting target message data that meets the message specification format corresponding to the target interface from the message data to be transmitted, it is assumed that message {A} is the message standard of the service provider for all requests, and the interface management system assumes that the message requirement for requesting its service is {B}. Then the caller must first compose the message {A} according to the message requirement of the service provider, and then encapsulate a layer on the basis of {A}, and then compose {B} according to the unified pre-requisites. After receiving the request from the caller, the interface management system first verifies the signature, then disassembles the message, and routes and forwards the disassembled {A} message to the service provider.
[0125] Similarly, assuming that message {C} is the standard response message of the service provider, the interface management system will encapsulate a layer after receiving the response message from the service provider, and then send the encapsulated message to the caller.
[0126] In this embodiment, if the interface type of the target interface is the second verification type, indicating 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 if the signature verification passes, extract the target message data that meets 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 provider corresponding to the target interface, the target interface needs to be configured before calling the target interface to complete the data transmission process. Based on this, the interface configuration process provided by the embodiment of the present application is described in detail in combination with specific embodiments.
[0128] Figure 7 It is a flow chart of a data transmission method provided in an embodiment of the present application.
[0129] S710: Receive a first input for configuring a target interface.
[0130] The first input may be an input to the previous interface of the interface configuration interface, and the first input may be used to configure the target interface. For example, the first input may be a click input, a sliding input, etc. of the previous interface of the interface configuration interface by the user.
[0131] Specifically, when the user clicks on the previous interface of the interface configuration interface, it indicates that the user wants to configure the target interface, so the interface management system can receive the first input for configuring the target interface.
[0132] S720: In response to the first input, obtain a plurality of interface configuration items for configuring the target interface.
[0133] Among them, the above-mentioned interface configuration items may be interface properties or interface parameters of the target interface that needs to be configured. For example, the interface configuration items may include interface name, service provider, interface type, service provider's access method, service provider's access address, interface address and other related parameters, which are not specifically limited here.
[0134] Specifically, after receiving a first input for configuring a target interface, the interface management system can, in response to the first input, obtain a plurality of interface configuration items for configuring the target interface, so that the target interface can be subsequently configured based on the plurality of interface configuration items.
[0135] S730: Display an interface configuration interface based on multiple interface configuration items for configuring the target interface.
[0136] In some embodiments, the interface configuration interface may include controls corresponding to a plurality of interface configuration items, and each interface configuration item may be used to instruct the user to input configuration information corresponding to the interface configuration item using the control corresponding to the interface configuration item.
[0137] Specifically, after obtaining multiple interface configuration items for configuring the target interface, the interface configuration interface can be displayed based on the obtained multiple interface configuration items for configuring the target interface. Figure 8 As shown, the interface configuration interface 80 may include interface configuration item 81, interface configuration item 82, ..., interface configuration item 88, which are not specifically limited here.
[0138] S740: For each interface configuration item among the multiple interface configuration items, in response to a second input to a control corresponding to the interface configuration item, obtain configuration information corresponding to the interface configuration item.
[0139] The second input may be an input to a control corresponding to the interface configuration item, and the second input may be used to obtain configuration information corresponding to the corresponding interface configuration item. Exemplarily, the second input may be a click input, a sliding input, etc. of a control corresponding to the interface configuration item by a user.
[0140] Specifically, for each interface configuration item among multiple interface configuration items, the interface management system can receive a second input to the control corresponding to the interface configuration item, and obtain 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 among multiple interface configuration items can be obtained.
[0141] S750: Configure the target interface according to the configuration information corresponding to each interface configuration item.
[0142] Specifically, after acquiring the configuration information of each interface configuration item, the interface management system can configure the target interface accordingly according to the configuration information corresponding to each interface configuration item, so as to implement the subsequent call to the target interface.
[0143] In this embodiment, before receiving a call request sent by the caller for calling the target interface, it is possible to receive a first input for configuring the target interface, and in response to the first input, obtain multiple interface configuration items for configuring the target interface, and then display the interface configuration interface for configuring the target interface. In this way, it is possible to obtain relevant information of the interface configuration in response to the user's configuration input for related configuration of the target interface, thereby realizing a front-end interface configuration method for the interface, which can lower the operating threshold, save manpower and resources, and be more flexible while meeting customer needs.
[0144] Based on this, in some embodiments, the above-mentioned multiple interface configuration items may include an interface type configuration item, and the configuration information of the interface type configuration item is the interface type. In this way, if the interface type of the target interface includes a first interface type, the first interface type indicates that there is no need to perform signature verification on the message data to be transmitted.
[0145] Based on this, the above-mentioned obtaining the configuration information corresponding to the interface configuration item in response to the second input of the control corresponding to the interface configuration item may specifically include the following steps:
[0146] In response to a first sub-input of a first control corresponding to the interface type configuration item, displaying a first sub-interface;
[0147] In response to the second sub-input to the file upload control, a file containing a message specification format adapted by the target interface is obtained.
[0148] The first sub-input may be an input of the first control corresponding to the interface type configuration item, and the first sub-input may be used to display the first sub-interface. Exemplarily, the first sub-input may be: a click input, a sliding input, etc. of the first control corresponding to the interface type configuration item by the user.
[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 by the target interface.
[0150] In addition, the second sub-input may be an input to a file upload control, and the second sub-input may be used to upload a file containing a message specification format adapted by the target interface. Exemplarily, the first sub-input may be: a user click input, a sliding input, etc. to the file upload control.
[0151] Specifically, since multiple interface configuration items can include an interface type configuration item, the configuration information of the interface type configuration item can be a configuration type. On this basis, if the interface type of the target interface is a first interface type, the interface management system can respond to the first sub-input of the first control corresponding to the interface type configuration item, and display a first sub-interface. The first sub-interface may include 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 by the target interface. In this way, the interface management system can receive and respond to the user's second sub-input to the file upload control, and obtain a file containing a message specification format adapted by the target interface.
[0152] In one example, if Fig. 9 As shown, 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 "first interface type control", then Fig. 9 The file upload control can be displayed in the interface shown.
[0153] In this embodiment, if the target interface type is the first interface type, a file upload control for uploading a file containing a message specification format adapted by the target interface can be displayed to facilitate the corresponding configuration of the interface type, thereby realizing the relevant configuration of the interface type on the front-end interface, which can not only meet user needs but also improve the flexibility of configuration.
[0154] Secondly, in one embodiment, if the multiple interface configuration items may include an interface type configuration item, the configuration information of the interface type configuration item is the interface type. On this basis, if the interface type of the target interface is the first signature verification type, then the above-mentioned response to the second input of the control corresponding to the interface configuration item, obtaining 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, displaying a second sub-interface, the second sub-interface including at least two selection controls corresponding to signature verification types, the at least two signature verification types including the first signature verification type;
[0156] In response to a fourth sub-input of the selection control corresponding to the first signature verification type, the interface type of the target interface is determined to be the first signature verification type.
[0157] The third sub-input may be an input performed by the second control corresponding to the interface type configuration item, and the third sub-input may be used to display the second sub-interface. Exemplarily, the third sub-input may 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 may include selection controls corresponding to at least two signature verification types, where the at least two signature verification types include the first signature verification type.
[0159] In addition, the fourth sub-input may be an input to the selection control corresponding to the first signature verification type, and the fourth sub-input is used to determine the interface type of the target interface. Exemplarily, the fourth sub-input may be a click input, a sliding input, etc. of the user to the selection control corresponding to the first signature verification type.
[0160] Specifically, since multiple interface configuration items include an interface type configuration item, the configuration information of the interface type configuration item may be an interface type. On this basis, if the interface type of the target interface is the first signature verification type, the interface management system may receive and respond to the third sub-input of the second control corresponding to the interface type configuration item, and display a second sub-interface. The second sub-interface may include at least two selection controls corresponding to the signature verification types, and the at least two signature verification types may include the first signature verification type. In this way, the interface management system can receive and respond to the fourth sub-input of the selection control corresponding to the first signature verification type, and determine that the interface type of the target interface is the first signature verification type.
[0161] In one example, if Fig.10 As shown, 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 "Second Interface Type Control", then Fig. 9 The interface shown may display controls corresponding to the "first verification type" and controls corresponding to the "second verification type". Thus, the user may click the control corresponding to the "first verification type" to determine that the interface type of the target interface is the first signature verification type.
[0162] In this embodiment, if the interface type of the target interface is the first verification type, the interface type of the target interface can be configured as the first verification type by displaying an interface including at least two controls corresponding to the signature verification types and selecting the control corresponding to the first signature verification type. In this way, the relevant configuration of the interface type on the front-end interface can be implemented, which can not only meet user needs but also improve the flexibility of configuration.
[0163] Furthermore, in one embodiment, the above-mentioned multiple interface configuration items may include an interface type configuration item, and the configuration information of the interface type configuration item is the interface type. On this basis, if the interface type of the target interface is the second signature verification type, then the above-mentioned response to the second input of the control corresponding to the interface configuration item, obtaining the configuration information corresponding to the interface configuration item, includes:
[0164] In response to a third sub-input of the control corresponding to the interface configuration item, displaying a second sub-interface, the second sub-interface including at least two selection controls corresponding to the signature verification types, the at least two signature verification types including the second signature verification type;
[0165] In response to a fifth sub-input of the selection control corresponding to the second signature verification type, the interface type of the target interface is determined to be the second signature verification type.
[0166] The third sub-input may be an input performed by the second control corresponding to the interface type configuration item, and the third sub-input may be used to display the second sub-interface. Exemplarily, the third sub-input may be: a click input, a sliding input, etc. of the second control corresponding to the interface type configuration item by the user.
[0167] In some embodiments, the second sub-interface may include selection controls corresponding to at least two signature verification types, where the at least two signature verification types include the second signature verification type.
[0168] In addition, the fifth sub-input may be an input to the selection control corresponding to the second signature verification type, and the fifth sub-input may be used to determine the interface type of the target interface. Exemplarily, the fifth sub-input may be: a user click input, a sliding input, etc. to the selection control corresponding to the second signature verification type.
[0169] Specifically, since the multiple interface configuration items include an interface type configuration item, the configuration information of the interface type configuration item may be an interface type. On this basis, if the interface type of the target interface is the second signature verification type, the interface management system may receive and respond to the third sub-input of the control corresponding to the interface configuration item, and display a second sub-interface. The second sub-interface includes at least two selection controls corresponding to the signature verification types, and the at least two signature verification types include the second signature verification type. Furthermore, the interface management system may receive and respond to the fifth sub-input of the selection control corresponding to the second signature verification type, and determine that the interface type of the target interface is the second signature verification type.
[0170] In one example, continuing Fig.10 As shown, if the user can click the control corresponding to the "second verification type", it can be determined that the interface type of the target interface is the second signature verification type.
[0171] In this embodiment, if the interface type of the target interface is the second verification type, the interface type of the target interface can be configured as the second verification type by displaying an interface containing at least two controls corresponding to the signature verification types and selecting the controls corresponding to the second signature verification type. In this way, the relevant configuration of the interface type on the front-end interface can be implemented, which can not only meet user needs but also improve the flexibility of configuration.
[0172] Based on the same inventive concept, the embodiment of the present application also provides a data transmission device. The data transmission device can be applied to an interface management system, where the interface management system is a target front-end system determined from the front-end systems corresponding to multiple business systems, where all front-end systems except the target front-end system are connected to the interface management system via a first interface, and the interface management system is connected to multiple external systems via a second interface. Fig.11 The data transmission device provided in the embodiment of the present application is described in detail.
[0173] Fig.11 It is a structural diagram of a data transmission device provided in an embodiment of the present application.
[0174] like Fig.11 As shown, the resource management system 1100 may include:
[0175] The receiving module 1110 is used to receive a call request sent by a caller for calling a target interface, wherein the call request includes an interface address of the target interface and message data to be transmitted;
[0176] The calling module 1120 is used to call the target interface based on the interface address of the target interface, and transmit the message data to be transmitted to the service party corresponding to the target interface;
[0177] wherein the first interface and the second interface include a target interface;
[0178] The caller includes the business system, and the service provider includes the external system; or, the caller includes the external system, and the service provider includes the business system.
[0179] In one embodiment, the data transmission device mentioned above may further include a determination module and a matching module.
[0180] A determination module is used to determine the interface type of the target interface, where the interface type of the target interface is a first interface type, a first signature verification type, or a second signature verification type. The first interface type indicates that no signature verification is required for the message data to be transmitted; the first signature verification type indicates that the service party needs to perform signature verification processing on the message data to be transmitted; and the second signature verification type indicates that the interface management system needs to perform signature verification processing on the message data to be transmitted;
[0181] A matching module, used to match the interface type of the target interface based on a preset mapping relationship between the interface type and the transmission mode, and obtain the transmission mode corresponding to the interface type of the target interface;
[0182] Based on this, the above calling module is specifically used for:
[0183] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted is transmitted to the service party corresponding to the target interface according to the 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 calling module is specifically used for:
[0186] Converting the message data to be transmitted from a first standard format to a second standard format to obtain the message data to be transmitted after format conversion, wherein the first standard format is a message standard format adapted by the interface between the caller and the interface management system, and the second standard format is a message standard format adapted by the target interface;
[0187] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted after format conversion is transmitted to the service party corresponding to the target interface.
[0188] In some embodiments, the interface type of the target interface is a first signature verification type, and the call request further includes a message signature corresponding to the message data to be transmitted;
[0189] Based on this, the above-mentioned calling modules are specifically used for:
[0190] Generate a notification message, which is used to notify the service provider corresponding to the target interface to perform signature verification on the message data to be transmitted based on the message data to be transmitted and the message signature;
[0191] Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted, 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 can verify the signature of the message data to be transmitted based on the message data to be transmitted and the message signature.
[0192] In some embodiments, the interface type of the target interface is a second signature verification type, and the call request further includes a message signature corresponding to the message data to be transmitted;
[0193] Based on this, the above-mentioned calling modules are specifically used for:
[0194] Based on the message data to be transmitted and the message signature, the message data to be transmitted is verified;
[0195] When the message data to be transmitted passes the signature verification, target message data satisfying the message specification format corresponding to the target interface is extracted from the message data to be transmitted;
[0196] Based on the interface address of the target interface, the target interface is called to transmit the target message data to the service party corresponding to the target interface.
[0197] In one embodiment, the data transmission device mentioned above may further include an acquisition module, a display module and a configuration module.
[0198] The receiving module is further used to receive a first input for configuring the target interface;
[0199] An acquisition module, configured to acquire, in response to a first input, a plurality of interface configuration items for configuring a target interface;
[0200] A display module, used to display an interface configuration interface based on multiple interface configuration items for configuring a target interface, wherein the interface configuration interface includes controls corresponding to the multiple interface configuration items, each interface configuration item is used to instruct a user to input configuration information corresponding to the interface configuration item using the control corresponding to the interface configuration item;
[0201] The acquisition module is further used to acquire, for each interface configuration item of the plurality of interface configuration items, 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 used 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 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;
[0204] Based on this, the above acquisition module is specifically used for:
[0205] In response to a first sub-input of a first control corresponding to an interface type configuration item, a first sub-interface is displayed, wherein 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 by the target interface;
[0206] In response to the second sub-input to the file upload control, a file containing a message specification format adapted by the target interface is obtained.
[0207] In some embodiments, the above-mentioned multiple interface configuration items include an interface type configuration item, the configuration information of the interface type configuration item is the interface type, and the interface type of the target interface is the first signature verification type;
[0208] Based on this, the above acquisition module is specifically used for:
[0209] In response to a third sub-input of a second control corresponding to the interface type configuration item, displaying a second sub-interface, the second sub-interface including at least two selection controls corresponding to signature verification types, the at least two signature verification types including the first signature verification type;
[0210] In response to a fourth sub-input of the selection control corresponding to the first signature verification type, the interface type of the target interface is determined to be the first signature verification type.
[0211] In some embodiments, 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 is a second signature verification type;
[0212] Based on this, the above acquisition module is specifically used for:
[0213] In response to a third sub-input of the control corresponding to the interface configuration item, displaying a second sub-interface, the second sub-interface including at least two selection controls corresponding to the signature verification types, the at least two signature verification types including the second signature verification type;
[0214] In response to a fifth sub-input of the selection control corresponding to the second signature verification type, the interface type of the target interface is determined to be the second signature verification type.
[0215] In an embodiment of the present application, the interface management system can receive a call request for calling a target interface sent by a caller, the call request including 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 to transmit the message data to be transmitted to the service party corresponding to the target interface. Since the interface management system is a target front-end system determined from the front-end systems corresponding to multiple business systems, the front-end systems other than the target front-end system in the multiple front-end systems are all connected to the interface management system through the first interface, and the interface management system is connected to multiple external systems through the second interface. In this way, unified management and control of the interfaces between systems is achieved, the problem of chaotic interface connections between systems is avoided, and the cost of interface management is reduced.
[0216] Each module in the resource management system provided in the embodiment of the present application can be implemented Figures 5 to 7 The method steps of any of the embodiments shown in the figure can achieve the corresponding technical effects, which will not be repeated here for the sake of brevity.
[0217] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0218] The electronic device may include a processor 1201 and a memory 1202 storing computer program instructions.
[0219] Specifically, the processor 1201 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0220] The memory 1202 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1202 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1202 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1202 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1202 is a non-volatile solid-state memory.
[0221] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method 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 may further include a communication interface 1203 and a bus 1210. Fig.12 As shown, the processor 1201, the memory 1202, and the communication interface 1203 are connected via a bus 1210 and communicate with each other.
[0224] The communication interface 1203 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0225] Bus 1210 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1210 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.
[0226] In addition, in combination with the data transmission method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, the data transmission method provided in the embodiment of the present application is implemented.
[0227] An embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, an electronic device executes the data transmission method provided in the embodiment of the present application.
[0228] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is 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 the steps after understanding the spirit of the present application.
[0229] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0230] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0231] Aspects of the present disclosure are described above with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable resource management system to produce a machine so that these instructions executed by the processor of the computer or other programmable resource management system enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. 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 can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0232] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A data transmission method, characterized in that: Applied to an interface management system, the interface management system is a target front-end system determined from front-end systems 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 all 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 method comprises: Receiving a call request for calling a target interface sent by a caller, wherein the call request includes 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, transmitting the message data to be transmitted to the service party corresponding to the target interface; wherein the first interface and the second interface include the target interface; The caller includes the business system, and the service provider includes the external system; or, the caller includes the external system, and the service provider includes the business system.
2. The method according to claim 1, characterized in that 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 provider, the method further includes: Determine the interface type of the target interface, where the interface type of the target interface is a first interface type, a first signature verification type, or a second signature verification type, wherein the first interface type indicates that no signature verification is required for the message data to be transmitted; the first signature verification type indicates that the service provider is required to perform signature verification processing on the message data to be transmitted; and the second signature verification type indicates that the interface management system is required to perform signature verification processing on the message data to be transmitted; Based on a preset mapping relationship between the interface type and the transmission mode, the interface type of the target interface is matched to obtain the transmission mode corresponding to the interface type of the target interface; The 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 corresponding to the target interface, includes: Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted is transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface.
3. The method according to claim 2, characterized in that The interface type of the target interface is the first interface type; The calling of the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface, includes: Converting the message data to be transmitted from a first standard format to a second standard format to obtain the message data to be transmitted after format conversion, wherein the first standard format is a message standard format adapted by the interface between the caller and the interface management system, and the second standard format is a message standard format adapted by the target interface; Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted after format conversion is transmitted to the service party corresponding to the target interface.
4. The method according to claim 2, characterized in that: The interface type of the target interface is the first signature verification type, and the call request further includes a message signature corresponding to the message data to be transmitted; The calling of the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface, includes: Generate a notification message, where the notification message is used to notify the service provider 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; Based on the interface address of the target interface, the target interface is called, and the message data to be transmitted, 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 can verify the signature of the message data to be transmitted based on the message data to be transmitted and the message signature.
5. The method according to claim 2, characterized in that: The interface type of the target interface is the second signature verification type, and the call request further includes a message signature corresponding to the message data to be transmitted; The calling of the target interface based on the interface address of the target interface, and transmitting the message data to be transmitted to the service party corresponding to the target interface according to the transmission mode corresponding to the interface type of the target interface, includes: Based on the message data to be transmitted and the message signature, performing signature verification processing on the message data to be transmitted; When the message data to be transmitted passes the signature verification, extracting target message data that meets the message specification format corresponding to the target interface from the message data to be transmitted; Based on the interface address of the target interface, the target interface is called, and the target message data is transmitted to the service party corresponding to the target interface.
6. The method according to claim 1, characterized in that Before receiving the call request sent by the caller for calling the target interface, the method further includes: receiving a first input for configuring the target interface; In response to the first input, obtaining a plurality of interface configuration items for configuring the target interface; Based on the multiple interface configuration items for configuring the target interface, an interface configuration interface is displayed, wherein the interface configuration interface includes controls corresponding to the multiple interface configuration items, each of which is used to instruct a user to input configuration information corresponding to the interface configuration item using a control corresponding to the interface configuration item; For each interface configuration item among the multiple interface configuration items, in response to a second input to a control corresponding to the interface configuration item, acquiring configuration information corresponding to the interface configuration item; The target interface is configured according to the configuration information corresponding to each interface configuration item.
7. The method according to claim 6, characterized in that The multiple 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 acquiring, in response to a second input to a control corresponding to the interface configuration item, configuration information corresponding to the interface configuration item includes: In response to a first sub-input of a first control corresponding to the interface type configuration item, a first sub-interface is displayed, wherein 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 by the target interface; In response to a second sub-input to the file upload control, a file containing a message specification format adapted by the target interface is obtained.
8. The method according to claim 6, characterized in that The multiple 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 is a first signature verification type; The acquiring, in response to a second input to a control corresponding to the interface configuration item, configuration information corresponding to the interface configuration item includes: In response to a third sub-input of a second control corresponding to the interface type configuration item, displaying a second sub-interface, wherein the second sub-interface includes at least two selection controls corresponding to signature verification types, wherein the at least two signature verification types include the first signature verification type; In response to a fourth sub-input of the selection control corresponding to the first signature verification type, determining that the interface type of the target interface is the first signature verification type.
9. The method according to claim 6, characterized in that The multiple 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 is a second signature verification type; The acquiring, in response to a second input to a control corresponding to the interface configuration item, configuration information corresponding to the interface configuration item includes: In response to a third sub-input of the control corresponding to the interface configuration item, displaying a second sub-interface, wherein the second sub-interface includes selection controls corresponding to at least two signature verification types, and the at least two signature verification types include a second signature verification type; In response to a fifth sub-input of the selection control corresponding to the second signature verification type, determining that the interface type of the target interface is the second signature verification type.
10. A data transmission device, characterized in that: Applied to an interface management system, the interface management system is a target front-end system determined from the front-end systems corresponding to a plurality of business systems, the front-end systems other than the target front-end system among 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; the device comprises: A receiving module, used to receive a call request sent by a caller for calling a target interface, wherein the call request includes an interface address of the target interface and message data to be transmitted; A calling module, used for 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 corresponding to the target interface; wherein the first interface and the second interface include the target interface; The caller includes the business system, and the service provider includes the external system; or, the caller includes the external system, and the service provider includes the business system.
11. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; The processor reads and executes the computer program instructions to implement the data transmission method according to any one of claims 1 to 9.
12. A computer storage medium, characterized in that: The computer storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the data transmission method according to any one of claims 1 to 9 is implemented.
13. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Data transmission method and device, computer equipment and storage medium
CN112055078A
Service calling method and device and electronic equipment
CN112532564A
Service processing method and device
CN116723040A
Method, device and equipment for data docking with third-party system and medium
CN118445342A
Media data processing method and apparatus, and terminal device
WO2022156484A1
