Channel configuration docking method and device, equipment and storage medium
By obtaining and utilizing interface mapping information and strategies in the configuration model, the problem of long and high transformation costs of new channel docking is solved, and efficient and low-cost channel docking and certificate management is achieved.
Patent Information
- Application Number
- CN202411911478.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-11
AI Technical Summary
In the existing technology, new channels are connected for a long time, and the subsequent transformation costs are high. The channel mapping configuration is scattered and there is a lack of centralized management. There is a risk of duplicate configuration and omissions. Inconcentrated certificate management leads to high maintenance costs.
By obtaining the configuration model, including the interface mapping information library and the interface mapping policy library, finding the target interface mapping information and policies, and performing channel docking operations based on this information, reducing docking costs and improving efficiency.
It realizes channel docking with low code or even zero code, reduces docking costs and time, improves docking efficiency, and simplifies certificate management and maintenance.
Smart Images

Figure CN119807283A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet back-end technology research and development, and in particular to a channel configuration docking method, device, equipment and storage medium. Background Art
[0002] In order to explore and expand domestic payment business and bring more market benefits, the current domestic business has an increasing demand for docking with new channel businesses. With the iteration and improvement of the business middle platform, the corresponding payment tools of the middle platform have been basically available, and the payment transaction links within the system have become stable. When adding new channel businesses at present, the main work time is spent on the new channel interface docking task link.
[0003] In the existing technology, the current docking method for new channels is implemented through hard coding. However, the hard coding method has the following problems: (1) It takes a long time to dock new channel businesses; (2) For subsequent transformations (such as compliance transformation and business iteration transformation), the code needs to be frequently modified, resulting in high adjustment costs; (3) The channel mapping configuration is scattered and not centrally managed. There are repeated mapping configurations and mapping code development. If the mapping value changes, multiple modifications are required, which poses the risk of omission. For example, the bank code of the NetsUnion channel, different channel business transactions and submissions are scattered on multiple communication machines. Currently, the NetsUnion bank code is configured on the application communication machine. Whether it is added or modified, it involves multiple repeated work; (4) The channel certificates are not centrally managed and are distributed on different communication machines. The subsequent maintenance costs are very high, such as the cost of machine expansion, room migration, and certificate replacement after expiration. This affects the efficiency of channel docking. Summary of the Invention
[0004] In order to solve the above problems, the present application discloses a channel configuration docking method, device, equipment and storage medium, which obtains a configuration model; the configuration model is used to configure data information for channel docking; the data information includes an interface mapping information library and an interface mapping policy library; the docking request of the target requester is obtained; the docking request carries the target requester interface information and the target receiver interface information; in the interface mapping information library, the target interface mapping information containing the target requester interface information and the target receiver interface information is searched; the target interface mapping information includes a target interface mapping policy identifier; in the interface mapping policy library, the target interface mapping policy containing the target interface mapping policy identifier is searched; based on the target interface mapping policy, the channel docking operation between the target requester and the target receiver is performed. By obtaining the data information in the configuration model and the docking request of the target requester, and finding the target interface mapping policy in the data information based on the docking request, and finally performing channel docking between the target requester and the target receiver based on the target interface mapping policy, the channel docking cost can be reduced and the channel docking efficiency can be improved.
[0005] In order to achieve the above-mentioned object of the invention, the present application provides a channel configuration docking method, which includes:
[0006] Acquire a configuration model; the configuration model is used to configure data information for channel docking; the data information includes an interface mapping information library and an interface mapping policy library; the interface mapping information library includes multiple interface mapping information, each interface mapping information includes respective requester interface information and receiver interface information; the interface mapping policy library includes multiple interface mapping policies, each interface mapping policy includes an interface mapping policy identifier;
[0007] Obtaining a docking request from a target requester; the docking request carries target requester interface information and target receiver interface information;
[0008] Searching for target interface mapping information including the target requester interface information and the target receiver interface information among the plurality of interface mapping information included in the interface mapping information base; the target interface mapping information including the target interface mapping policy identifier;
[0009] Searching for a target interface mapping policy including the target interface mapping policy identifier among a plurality of interface mapping policies included in the interface mapping policy library;
[0010] A channel docking operation between the target requester and the target receiver is performed based on the target interface mapping strategy.
[0011] In some embodiments, the target requester interface information includes a target requester interface code, and the target receiver interface information includes a target receiver interface code;
[0012] The step of searching for target interface mapping information including the target requester interface information and the target receiver interface information from the plurality of interface mapping information included in the interface mapping information base comprises:
[0013] The target interface mapping information including the target requester interface code and the target receiver interface code is searched for among the multiple interface mapping information included in the interface mapping information base.
[0014] In some embodiments, the interface mapping information base includes a first interface mapping information base and a second interface mapping information base;
[0015] The step of searching for target interface mapping information including the target requester interface code and the target receiver interface code from the plurality of interface mapping information included in the interface mapping information base comprises:
[0016] When the first interface mapping information including the target requester interface code and the target receiver interface code is found among the multiple interface mapping information included in the first interface mapping information base, the first interface mapping information is determined as the target interface mapping information;
[0017] When the first interface mapping information including the target requester interface code and the target receiver interface code is not found in the multiple interface mapping information included in the first interface mapping information base, searching for the second interface mapping information including the target requester interface code and the target receiver interface code in the multiple interface mapping information included in the second interface mapping information base;
[0018] When second interface mapping information including the target requester interface code and the target receiver interface code is found among the multiple interface mapping information included in the second interface mapping information base, the second interface mapping information is determined as the target interface mapping information, and the second interface mapping information is configured into the first interface mapping information base to update the first interface mapping information base;
[0019] When the second interface mapping information including the target requester interface code and the target receiver interface code is not found in the multiple interface mapping information included in the second interface mapping information base, the target interface mapping information is configured in a hard-coded manner.
[0020] In some embodiments, the interface mapping policy base includes a first interface mapping policy base and a second interface mapping policy base;
[0021] The step of searching for a target interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library comprises:
[0022] When a first interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the first interface mapping policy library, the first interface mapping policy is determined as the target interface mapping policy;
[0023] When the first interface mapping policy including the target interface mapping policy identifier is not found in the multiple interface mapping policies included in the first interface mapping policy library, searching for the second interface mapping policy including the target interface mapping policy identifier in the multiple interface mapping policies included in the second interface mapping policy library;
[0024] When a second interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library, the second interface mapping policy is determined as the target interface mapping policy, and the first interface mapping policy library is updated based on the second interface mapping policy;
[0025] When no second interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library, the target interface mapping policy is configured in a hard-coded manner.
[0026] In some implementations, updating the first interface mapping policy library based on the second interface mapping policy includes:
[0027] The second interface mapping policy is configured into the first interface mapping policy library.
[0028] In some embodiments, the data information further includes a certificate information base; the certificate information base includes a first certificate information base and a second certificate information base; the first certificate information base includes multiple certificate information, and the second certificate information base includes multiple certificate information; the docking request includes target request certificate information; the target request certificate information includes a target certificate identifier;
[0029] The method further comprises:
[0030] When first certificate information including the target certificate identifier is found among the multiple certificate information included in the first certificate information database, the first certificate information is determined as the target request certificate information;
[0031] When the first certificate information including the target certificate identifier is not found in the multiple certificate information included in the first certificate information repository, searching for the second certificate information including the target certificate identifier in the multiple certificate information included in the second certificate information repository;
[0032] When the second certificate information including the target certificate identifier is found among the multiple certificate information included in the second certificate information library, the second certificate information is determined as the target request certificate information.
[0033] In some implementations, performing the channel docking operation between the target requester and the target receiver based on the target interface mapping policy includes:
[0034] Obtaining target request parameters of the target requester;
[0035] Sending the target request parameters, the target request certificate information, and the target interface mapping policy to the target recipient through a mapping engine, and obtaining a response result from the target recipient;
[0036] In a case where the response result is that the target recipient returns a target response parameter, it is determined that the target requester and the target recipient complete the channel docking operation.
[0037] The present application also provides a channel configuration docking device, which includes:
[0038] A configuration model acquisition module is configured to acquire a configuration model; the configuration model is used to configure data information for channel docking; the data information includes an interface mapping information library and an interface mapping policy library; the interface mapping information library includes multiple interface mapping information, each interface mapping information includes respective requester interface information and receiver interface information; the interface mapping policy library includes multiple interface mapping policies, each interface mapping policy includes an interface mapping policy identifier;
[0039] A docking request acquisition module is used to acquire a docking request from a target requester; the docking request carries target requester interface information and target receiver interface information;
[0040] a target interface mapping information determining module, configured to search for target interface mapping information including the target requester interface information and the target receiver interface information among a plurality of interface mapping information included in the interface mapping information base; the target interface mapping information including a target interface mapping policy identifier;
[0041] a target interface mapping policy determining module, configured to search for a target interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library;
[0042] A channel docking module is used to perform a channel docking operation between the target requester and the target receiver based on the target interface mapping strategy.
[0043] The present application also provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executes the above-mentioned channel configuration docking method.
[0044] The present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the above-mentioned channel configuration docking method is implemented.
[0045] The implementation of the embodiments of the present application can achieve the following beneficial effects:
[0046] The embodiment of the present application obtains a configuration model; the configuration model is used to configure data information for channel docking; the data information includes an interface mapping information library and an interface mapping policy library; obtains a docking request from a target requester; the docking request carries target requester interface information and target receiver interface information; in the interface mapping information library, searches for target interface mapping information containing the target requester interface information and the target receiver interface information; the target interface mapping information includes a target interface mapping policy identifier; in the interface mapping policy library, searches for a target interface mapping policy containing the target interface mapping policy identifier; and performs channel docking between the target requester and the target receiver based on the target interface mapping policy. By obtaining the data information in the configuration model and the docking request of the target requester, and searching for the target interface mapping policy in the data information based on the docking request, and finally performing channel docking between the target requester and the target receiver based on the target interface mapping policy, the cost of channel docking can be reduced and the efficiency of channel docking can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the channel configuration docking method, device, equipment and storage medium described in this application, the following is a brief introduction to the drawings required for use in the embodiments of this application. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0048] Figure 1 This is a flow chart of a channel configuration docking method provided in an embodiment of the present application;
[0049] Figure 2 This is a schematic diagram of data information in a configuration model provided in an embodiment of the present application;
[0050] Figure 3 This is a schematic diagram of information details of data information in a configuration model provided in an embodiment of the present application;
[0051] Figure 4 This is a flow chart of a method for determining target interface mapping information provided by an embodiment of the present application;
[0052] Figure 5 This is a flow chart of a method for determining a target interface mapping strategy provided by an embodiment of the present application;
[0053] Figure 6 This is a flow chart of a method for determining target request certificate information provided by an embodiment of the present application;
[0054] Figure 7 This is a flow chart of a channel connection determination method provided in an embodiment of the present application;
[0055] Figure 8 This is a schematic diagram of the execution logic of a mapping engine provided in an embodiment of the present application;
[0056] Figure 9 It is a structural diagram of a channel configuration docking device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0057] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the information used in this way can be interchanged where appropriate, so that the embodiments of the application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0060] In the existing technology, the current docking method for new channels is implemented through hard coding. However, the hard coding method has the following problems: (1) It takes a long time to dock new channel businesses; (2) For subsequent transformations (such as compliance transformation and business iteration transformation), the code needs to be frequently modified, resulting in high adjustment costs; (3) The channel mapping configuration is scattered and not centrally managed. There are repeated mapping configurations and mapping code development. If the mapping value changes, multiple modifications are required, which poses the risk of omission. For example, the bank code of the NetsUnion channel, different channel business transactions and submissions are scattered on multiple communication machines. Currently, the NetsUnion bank code is configured on the application communication machine. Whether it is added or modified, it involves multiple repeated work; (4) The channel certificates are not centrally managed and are distributed on different communication machines. The subsequent maintenance costs are very high, such as the cost of machine expansion, room migration, and certificate replacement after expiration, which affects the efficiency of channel docking.
[0061] See also Figure 1 , which shows a flow chart of a channel configuration docking method provided by an embodiment of the present application. This specification provides the method operation steps described in the embodiment or flow chart. The order of steps listed in the embodiment is only one way of executing the steps among many steps, and does not represent the only execution order. The channel configuration docking method can be executed in the order of the methods shown in the embodiment or the accompanying drawings. Specifically, Figure 1 As shown, the method may include the following steps:
[0062] S101: Obtain a configuration model; the configuration model is used to configure data information for channel docking; the data information includes an interface mapping information library and an interface mapping policy library; the interface mapping information library includes multiple interface mapping information, each interface mapping information includes respective requester interface information and receiver interface information; the interface mapping policy library includes multiple interface mapping policies, each interface mapping policy includes an interface mapping policy identifier;
[0063] In this embodiment, the configuration model can be established by page configuration, and the configuration model includes the data information required for channel docking. Specifically, the initial channel docking model includes channels, channel vendors, and institutions, and the data information included in the configuration model can be as follows: Figure 2 As shown, the configuration model also includes an interface mapping information library composed of multiple interface mapping information and an interface mapping policy library composed of multiple interface mapping policies. It can also include a channel interface information library composed of multiple channel interface information, a certificate information library composed of multiple certificate information, and a channel interface parameter library composed of multiple channel interface parameters.
[0064] Specifically, see Figure 3 , which shows a schematic diagram of the details of data information in a configuration model provided by an embodiment of the present application. Figure 3 As shown, the interface mapping information library includes multiple interface mapping information, and each interface mapping information can include a mapping ID (Identity document, identity identification), mapping name, channel number, requester interface code, receiver interface code, environment, owner type, owner, status (enabled / disabled), interface mapping policy ID, i.e., interface mapping policy identifier. Similarly, the interface mapping policy library includes multiple interface mapping policies, and each interface mapping policy can include an interface mapping policy ID, i.e., interface mapping policy identifier, interface mapping policy name, channel number, version number, status (enabled / disabled), requester interface code, receiver interface code, request field mapping content, and response field mapping content.
[0065] S103: Obtaining a docking request from a target requester; the docking request carries target requester interface information and target receiver interface information;
[0066] In this embodiment, when the target requester conducts channel docking with the target receiver, it will send a channel docking request to the target receiver. The docking request may include the target requester interface information and the target receiver interface information. Specifically, the target requester interface information is the channel interface information in the channel interface information library. The channel interface information includes the interface ID, interface identification code, interface Chinese name, interface description, channel, type, communication type, message format, request method, address, secondary address, signature field content, signature verification field content, request field details, response field details and other information. For more information, please refer to Figure 3 The content defined in the channel interface information in the configuration model; and each field content has a corresponding channel interface field information library in the configuration model. Each channel interface field information library includes multiple channel interface field information. Each channel interface field information may include field name, field type, field maximum length, whether to encrypt / decrypt, field Chinese name, field description, field format, lower-level channel interface field List, and field path.
[0067] S105: searching for target interface mapping information including the target requester interface information and the target receiver interface information among the plurality of interface mapping information included in the interface mapping information base; the target interface mapping information including a target interface mapping policy identifier;
[0068] In this embodiment, target interface mapping information corresponding to the target requester interface information is searched from an interface mapping information database. The target interface mapping information includes the target requester interface information and the target receiver interface information. Specifically, the corresponding target interface mapping information can be searched based on the channel number, the target requester interface information, the target receiver interface information, the environment, and the owner.
[0069] In some exemplary embodiments, the target requester interface information includes a target requester interface code, and the target receiver interface information includes a target receiver interface code;
[0070] The step of searching for target interface mapping information including the target requester interface information and the target receiver interface information from the plurality of interface mapping information included in the interface mapping information base comprises:
[0071] The target interface mapping information including the target requester interface code and the target receiver interface code is searched for among the multiple interface mapping information included in the interface mapping information base.
[0072] In the exemplary embodiment described above, the target requester interface code may be the interface identification code of the target requester, and similarly, the target requester interface code may be the interface identification code of the target recipient. Among the multiple interface mapping information included in the configured interface mapping information base, the interface mapping information that includes the target requester interface code and the target recipient interface code is searched, and the found interface mapping information is the target interface mapping information.
[0073] Based on the docking request of the target requester, by searching for the target interface mapping information corresponding to the docking request in the interface mapping information library included in the configured configuration model, there is no need to obtain the target interface mapping information through hard coding. Instead, the target interface mapping information can be obtained by searching in the configuration model configured on the page. This can achieve low-code or even zero-code channel docking work, thereby reducing channel docking costs and improving channel docking efficiency.
[0074] In the above exemplary embodiment, see Figure 4 , which is a flow chart of a method for determining target interface mapping information provided by an embodiment of the present application. Figure 4 As shown, searching for target interface mapping information including the target requester interface code and the target receiver interface code in the plurality of interface mapping information included in the interface mapping information base includes:
[0075] S401: When first interface mapping information including the target requester interface code and the target receiver interface code is found among the plurality of interface mapping information included in the first interface mapping information base, the first interface mapping information is determined as the target interface mapping information;
[0076] Specifically, the interface mapping information base includes a first interface mapping information base and a second interface mapping information base, wherein the first interface mapping information base may be in a cache, and the second interface mapping information base may be in a database. The first interface mapping information base, i.e., the cache, is first searched for target interface mapping information including a target requester interface code and a target receiver interface code. If the first interface mapping information is found among the multiple interface mapping information in the first interface mapping information base, the first interface mapping information is the target interface mapping information.
[0077] It should be noted that the multiple interface mapping information in the first interface mapping information base may be in a table format or in other formats, which is not specifically limited here.
[0078] S403: When the first interface mapping information including the target requester interface code and the target receiver interface code is not found in the plurality of interface mapping information included in the first interface mapping information base, searching for the second interface mapping information including the target requester interface code and the target receiver interface code in the plurality of interface mapping information included in the second interface mapping information base;
[0079] Specifically, if the target interface mapping information including the target requester interface code and the target receiver interface code is not found in the first interface mapping information base, i.e., the cache, the target interface mapping information including the target requester interface code and the target receiver interface code is searched in the second interface mapping information base, i.e., the database.
[0080] Similarly, it should be noted that the multiple interface mapping information in the second interface mapping information base may be in a table format or in other formats, which is not specifically limited here.
[0081] S405: When second interface mapping information including the target requester interface code and the target receiver interface code is found among the plurality of interface mapping information included in the second interface mapping information base, the second interface mapping information is determined as the target interface mapping information, and the second interface mapping information is configured into the first interface mapping information base to update the first interface mapping information base.
[0082] Specifically, if the second interface mapping information including the target requester interface code and the target receiver interface code is found in the plurality of interface mapping information included in the second interface mapping information base, ie, the database, the second interface mapping information is the target interface mapping information.
[0083] At the same time, since there is no target interface mapping information in the cache, but the target interface mapping information is included in the database, when the target interface mapping information is found in the database, the interface mapping information in the cache is updated, that is, by adding the second interface mapping information in the second interface mapping information base, i.e., the database, to the first interface mapping information base, i.e., the cache, to save search time for the next search for interface mapping information.
[0084] S407: When the second interface mapping information including the target requester interface code and the target receiver interface code is not found in the multiple interface mapping information included in the second interface mapping information base, the target interface mapping information is configured in a hard-coded manner.
[0085] Specifically, if the target interface mapping information is not found in the first interface mapping information library, i.e., the cache, and the target interface mapping information is not found in the second interface mapping information library, i.e., the database, it means that the target interface mapping information is not configured in the channel docking system. At this time, a hard-coded method is adopted to configure the target interface mapping information. The above-mentioned hard-coding method can be a code modification method.
[0086] The target interface mapping information is first searched in the first interface mapping information repository, or cache. If the target interface mapping information is not found in the first interface mapping information repository, the target interface mapping information is then searched in the second interface mapping information repository, or database. If the target interface mapping information is found, the first interface mapping information repository is updated. If the target interface mapping information is not found, a hard-coded configuration is used. This method of first searching in the cache and then in the database saves time in searching for interface mapping information. By updating the interface mapping information in the database to the cache, this further reduces time and costs for the next search, thereby improving channel connection efficiency.
[0087] S107: searching for a target interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library;
[0088] In this embodiment, a target interface mapping policy corresponding to the target interface mapping information is searched from the interface mapping policy library, wherein the target interface mapping information may include, in addition to the target requester interface information and the target receiver interface information, a target interface mapping policy identifier may be used to search for the target interface mapping policy including the above-mentioned target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library.
[0089] In some exemplary embodiments, see Figure 5 , which is a flow chart of a method for determining a target interface mapping strategy provided by an embodiment of the present application. Figure 5As shown, searching for a target interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library includes:
[0090] S501: When a first interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the first interface mapping policy library, the first interface mapping policy is determined as the target interface mapping policy.
[0091] Specifically, the interface mapping policy library includes a first interface mapping policy library and a second interface mapping policy library, wherein the first interface mapping policy library may be in a cache, and the second interface mapping policy library may be in a database. A target interface mapping policy containing a target interface mapping policy identifier is first searched in the first interface mapping policy library, i.e., the cache. If the first interface mapping policy is found among the multiple interface mapping policies in the first interface mapping policy library, the first interface mapping policy becomes the target interface mapping policy.
[0092] It should be noted that the multiple interface mapping policies in the first interface mapping policy library may be in a table format or in other formats, which is not specifically limited here.
[0093] S503: When no first interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the first interface mapping policy library, searching for a second interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the second interface mapping policy library;
[0094] Specifically, if the target interface mapping policy including the target interface mapping policy identifier is not found in the first interface mapping policy library, ie, the cache, the target interface mapping policy including the target interface mapping policy identifier is searched in the second interface mapping policy library, ie, the database.
[0095] Similarly, it should be noted that the multiple interface mapping policies in the second interface mapping policy library may be in a table format or other formats, which are not specifically limited here.
[0096] S505: When a second interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library, the second interface mapping policy is determined as the target interface mapping policy, and the first interface mapping policy library is updated based on the second interface mapping policy.
[0097] Specifically, if a second interface mapping policy including a target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library (ie, database), the second interface mapping policy is the target interface mapping policy.
[0098] In the above exemplary embodiment, updating the first interface mapping policy library based on the second interface mapping policy includes:
[0099] The second interface mapping policy is configured into the first interface mapping policy library.
[0100] Specifically, since there is no target interface mapping policy in the cache, but the target interface mapping policy is included in the database, when the target interface mapping policy is found in the database, the interface mapping policy in the cache is updated.
[0101] By adding the second interface mapping policy in the second interface mapping policy library, ie, the database, to the first interface mapping policy library, ie, the cache, the time cost of searching for the interface mapping policy next time is saved, and the docking efficiency of subsequent channel docking is further improved.
[0102] S507: When no second interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library, configure the target interface mapping policy in a hard-coded manner.
[0103] Specifically, if the target interface mapping policy is not found in the first interface mapping policy library, i.e., the cache, and the target interface mapping policy is not found in the second interface mapping policy library, i.e., the database, it means that the target interface mapping policy is not configured in the channel docking system. At this time, a hard-coded method is adopted to configure the target interface mapping policy. The above-mentioned hard-coding method can be a code modification method.
[0104] The target interface mapping policy is first searched in the first interface mapping policy library (cache). If the target interface mapping policy is not found in the first interface mapping policy library, the second interface mapping policy library (database) is searched for the target interface mapping policy. If the target interface mapping policy is found, the first interface mapping policy library is updated. If not, a hard-coded configuration is used. This method of first searching in the cache and then in the database saves time in searching for the interface mapping policy. By updating the interface mapping policy in the database to the cache, this further reduces time and cost for the next search, thereby improving channel connection efficiency.
[0105] S109: Performing a channel docking operation between the target requester and the target receiver based on the target interface mapping strategy.
[0106] In this embodiment, after the target interface mapping policy is determined, the channel docking operation is performed according to the specific information in the target interface mapping policy.
[0107] In some exemplary embodiments, see Figure 6 , which is a flow chart of a method for determining target request certificate information provided by an embodiment of the present application. Figure 6 As shown, the method further includes:
[0108] S601: When first certificate information including the target certificate identifier is found among the multiple certificate information included in the first certificate information database, the first certificate information is determined as the target request certificate information;
[0109] Specifically, the data information in the configuration model also includes a certificate information repository, which can be centrally managed through a certificate management tool. The certificate information repository includes a first certificate information repository and a second certificate information repository. The first certificate information repository can be a certificate information repository under a docking organization, which includes multiple certificate information. The second certificate information repository can be a certificate information repository under a docking channel, which also includes multiple certificate information. The docking request also includes target request certificate information, which includes the target certificate identifier. Each certificate information includes a certificate ID, certificate serial number, certificate name, certificate content, certificate algorithm, certificate type, and certificate password.
[0110] The target certificate identifier can be a certificate ID or a certificate serial number, as long as it can represent the uniqueness of the certificate information. The specific steps can be: first search for the target request certificate information containing the target request certificate identifier in the first certificate information library, i.e., the docking agency. If the first certificate information is found among the multiple certificate information in the first certificate information library, the first certificate information is the target request certificate information.
[0111] It should be noted that a docking channel can have multiple docking institution numbers, and the certificate information of different docking institutions can be the same or different. The multiple certificate information in the first certificate information library, i.e., the docking institution, can be in a table format or other format, which is not specifically limited here.
[0112] S603: When the first certificate information including the target certificate identifier is not found in the multiple certificate information included in the first certificate information repository, searching for the second certificate information including the target certificate identifier in the multiple certificate information included in the second certificate information repository;
[0113] Specifically, if the target certificate request information including the target certificate identifier is not found in the first certificate information repository, ie, the docking institution, the target certificate request information including the target certificate identifier is searched in the second certificate information repository, ie, the docking channel.
[0114] Similarly, it should be noted that the certificate information under different docking channels can be the same or different. The second certificate information library, i.e., the multiple certificate information in the docking channel, can be in a table form or other form, which is not specifically limited here.
[0115] S605: When the second certificate information including the target certificate identifier is found among the multiple certificate information included in the second certificate information base, the second certificate information is determined as the target request certificate information.
[0116] Specifically, if the second certificate information containing the target certificate identifier is found in the multiple certificate information included in the second certificate information library, namely the docking channel, the above-mentioned second certificate information is the target request certificate information.
[0117] By configuring the certificate information repository in the configuration model, after obtaining the target certificate identifier in the target certificate request information, the target certificate request information including the target certificate identifier is first searched in the first certificate information repository. If the target certificate request information is not found in the first certificate information repository, the target certificate request information is searched in the second certificate information repository. This unified management of certificate information in the docking channel and docking organization can efficiently implement daily operation and maintenance tasks such as certificate expiration and migration. At the same time, searching first in the docking organization and then in the docking channel can save the time cost of searching for certificate information and further improve channel docking efficiency.
[0118] See also Figure 7 , which is a flow chart of a channel docking determination method provided by an embodiment of the present application. Figure 7 As shown, the channel docking operation between the target requester and the target receiver based on the target interface mapping strategy includes:
[0119] S701: Obtain target request parameters of the target requester;
[0120] Specifically, the docking request of the target requester may further include a target request parameter, and the target request parameter may be a message request sent by the target requester to the target receiver.
[0121] S703: Send the target request parameters, the target request certificate information, and the target interface mapping policy to the target recipient through a mapping engine, and obtain a response result from the target recipient;
[0122] Specifically, after determining the target interface mapping strategy, the mapping processing of the message fields and the message request processing are performed according to the above target interface mapping strategy. The above mapping engine is used to implement the specific execution logic of the interface mapping between the requester and the receiver. For example, for the above target interface mapping strategy, the mapping engine performs operations such as field mapping, message encryption and decryption, and signature certificate signing and verification defined in the target interface mapping strategy. Specifically, SpringEL (Spring Expression Language) can be introduced to perform field value acquisition and assignment, and Groovy scripts can be introduced to perform complex field processing. The execution logic diagram of the above mapping engine is shown in the figure. Figure 8 As shown, the above response result may be the output result of the mapping engine.
[0123] S705: When the response result is that the target recipient returns a target response parameter, it is determined that the target requester and the target recipient complete the channel docking operation.
[0124] Specifically, if the target recipient returns the target response parameter, it indicates that the connection channel has a normal response, that is, the target requester's request is successful and the message request is sent successfully. If the message sending request is unsuccessful, the target response parameter will not be returned, and an exception alarm will be generated.
[0125] After the target requester completes the channel docking with the target docking party, the target response parameters of the target receiver can also be obtained, and parameter mapping can be performed based on the target response parameters to convert the parameter fields of the target receiver into the internal fields of the target requester.
[0126] By obtaining the target requester's target request parameters and, based on the target request parameters, target request certificate information, and target interface mapping strategy, performing operations such as field mapping, message encryption and decryption, and signature certificate signing and verification in the developed mapping engine, channel connection with the target recipient is completed. This replaces hard-coding for channel connection through the mapping engine, enabling low-code or even zero-code development, reducing channel connection development costs while improving channel connection efficiency.
[0127] The present application also provides a channel configuration docking device, see Figure 9 , which shows a schematic diagram of the structure of a channel configuration docking device provided by an embodiment of the present application, specifically as follows Figure 9 As shown, the channel configuration docking device includes:
[0128] Configuration model acquisition module 901 is used to acquire a configuration model; the configuration model is used to configure data information for channel docking; the data information includes an interface mapping information library and an interface mapping policy library; the interface mapping information library includes multiple interface mapping information, each interface mapping information includes respective requester interface information and receiver interface information; the interface mapping policy library includes multiple interface mapping policies, each interface mapping policy includes an interface mapping policy identifier;
[0129] The docking request acquisition module 903 is used to acquire the docking request of the target requester; the docking request carries the target requester interface information and the target receiver interface information;
[0130] The target interface mapping information determining module 905 is configured to search for target interface mapping information including the target requester interface information and the target receiver interface information from the plurality of interface mapping information included in the interface mapping information base; the target interface mapping information includes a target interface mapping policy identifier;
[0131] A target interface mapping policy determining module 907 is configured to search for a target interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library;
[0132] The channel docking module 909 is configured to perform a channel docking operation between the target requester and the target receiver based on the target interface mapping policy.
[0133] In an optional embodiment, the target requester interface information includes a target requester interface code, the target receiver interface information includes a target receiver interface code; and the channel configuration docking device further includes:
[0134] The target interface mapping information determining submodule is configured to search for target interface mapping information including the target requester interface code and the target receiver interface code among the multiple interface mapping information included in the interface mapping information base.
[0135] In an optional embodiment, the channel configuration docking device further includes:
[0136] a first target interface mapping information determination module, configured to, when first interface mapping information including the target requester interface code and the target receiver interface code is found among the plurality of interface mapping information included in the first interface mapping information base, determine the first interface mapping information as the target interface mapping information;
[0137] a target interface mapping information search module, configured to search for second interface mapping information including the target requester interface code and the target receiver interface code among the multiple interface mapping information included in the second interface mapping information base when the first interface mapping information including the target requester interface code and the target receiver interface code is not found among the multiple interface mapping information included in the first interface mapping information base;
[0138] a target interface mapping information second determination module, configured to, when second interface mapping information including the target requester interface code and the target receiver interface code is found among the plurality of interface mapping information included in the second interface mapping information base, determine the second interface mapping information as the target interface mapping information, and configure the second interface mapping information into the first interface mapping information base to update the first interface mapping information base;
[0139] The third determination module of the target interface mapping information is used to configure the target interface mapping information in a hard-coded manner when the second interface mapping information containing the target requester interface code and the target receiver interface code is not found in the multiple interface mapping information included in the second interface mapping information base.
[0140] In an optional embodiment, the interface mapping policy library includes a first interface mapping policy library and a second interface mapping policy library; the channel configuration docking device further includes:
[0141] a first target interface mapping policy determining module, configured to, when a first interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the first interface mapping policy library, determine the first interface mapping policy as the target interface mapping policy;
[0142] a target interface mapping policy search module, configured to search for a second interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the second interface mapping policy library when the first interface mapping policy including the target interface mapping policy identifier is not found among the multiple interface mapping policies included in the first interface mapping policy library;
[0143] a target interface mapping policy second determination module, configured to, when a second interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library, determine the second interface mapping policy as the target interface mapping policy, and update the first interface mapping policy library based on the second interface mapping policy;
[0144] The third target interface mapping policy determination module is configured to configure the target interface mapping policy in a hard-coded manner when no second interface mapping policy containing the target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library.
[0145] In an optional embodiment, the channel configuration docking device further includes:
[0146] The first interface mapping policy library updating module is configured to configure the second interface mapping policy into the first interface mapping policy library.
[0147] In an optional embodiment, the data information further includes a certificate information base; the certificate information base includes a first certificate information base and a second certificate information base; the first certificate information base includes multiple certificate information, and the second certificate information base includes multiple certificate information; the docking request includes target request certificate information; the target request certificate information includes a target certificate identifier;
[0148] The channel configuration docking device also includes:
[0149] a target request certificate information first determination module, configured to, when first certificate information including the target certificate identifier is found among the plurality of certificate information included in the first certificate information library, determine the first certificate information as the target request certificate information;
[0150] a target requested certificate information search module, configured to search for second certificate information containing the target certificate identifier among the multiple certificate information included in the second certificate information repository when the first certificate information containing the target certificate identifier is not found among the multiple certificate information included in the first certificate information repository;
[0151] The target request certificate information second determination module is configured to determine the second certificate information as the target request certificate information when the second certificate information containing the target certificate identifier is found among the multiple certificate information included in the second certificate information library.
[0152] In an optional embodiment, the channel configuration docking device further includes:
[0153] A target request parameter acquisition module, configured to acquire the target request parameters of the target requester;
[0154] A response result acquisition module, configured to send the target request parameters, the target request certificate information, and the target interface mapping policy to the target recipient through a mapping engine, and acquire a response result from the target recipient;
[0155] The channel docking determination module is used to determine whether the target requester and the target recipient have completed the channel docking operation when the response result is that the target recipient returns the target response parameter.
[0156] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0157] An embodiment of the present application also provides a channel-configured docking electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executes the channel-configured docking method described in the above method embodiment.
[0158] An embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the channel configuration docking method described in the embodiment of the present application is implemented.
[0159] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0160] The foregoing description of specific embodiments of the present disclosure is intended to illustrate a method for performing a multi-tasking process. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0161] The various embodiments in this application are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the electronic device and computer-readable storage medium embodiments are generally similar to the method embodiments, so their descriptions are relatively simple. For relevant parts, refer to the partial descriptions of the method embodiments.
[0162] The electronic device, computer-readable storage medium and method provided in the embodiments of the present application correspond to each other. Therefore, the electronic device and computer-readable storage medium also have similar beneficial technical effects as the corresponding method. Since the beneficial technical effects of the method have been described in detail above, the beneficial technical effects of the corresponding electronic device and computer-readable storage medium will not be repeated here.
[0163] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included within the scope of the claims of the present application.
Claims
1. A channel configuration docking method, characterized in that: include: Acquire a configuration model; the configuration model is used to configure data information of channel docking; the data information includes an interface mapping information library and an interface mapping policy library; The interface mapping information base includes a plurality of interface mapping information, each of which includes respective requester interface information and receiver interface information; the interface mapping policy base includes a plurality of interface mapping policies, each of which includes an interface mapping policy identifier; Obtaining a docking request from a target requester; the docking request carries target requester interface information and target receiver interface information; Searching for target interface mapping information including the target requester interface information and the target receiver interface information among the multiple interface mapping information included in the interface mapping information base; the target interface mapping information includes a target interface mapping policy identifier; Searching for a target interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library; A channel docking operation between the target requester and the target receiver is performed based on the target interface mapping strategy.
2. The method according to claim 1, characterized in that The target requester interface information includes a target requester interface code, and the target receiver interface information includes a target receiver interface code; The step of searching for target interface mapping information including the target requester interface information and the target receiver interface information from among the plurality of interface mapping information included in the interface mapping information base comprises: Among the multiple interface mapping information included in the interface mapping information base, the target interface mapping information including the target requester interface code and the target receiver interface code is searched.
3. The method according to claim 2, characterized in that The interface mapping information base includes a first interface mapping information base and a second interface mapping information base; The step of searching for target interface mapping information including the target requester interface code and the target receiver interface code in the plurality of interface mapping information included in the interface mapping information base comprises: When the first interface mapping information including the target requester interface code and the target receiver interface code is found in the plurality of interface mapping information included in the first interface mapping information base, the first interface mapping information is determined as the target interface mapping information; When the first interface mapping information including the target requester interface code and the target receiver interface code is not found in the multiple interface mapping information included in the first interface mapping information base, searching for the second interface mapping information including the target requester interface code and the target receiver interface code in the multiple interface mapping information included in the second interface mapping information base; When the second interface mapping information including the target requester interface code and the target receiver interface code is found in the plurality of interface mapping information included in the second interface mapping information base, the second interface mapping information is determined as the target interface mapping information, and the second interface mapping information is configured into the first interface mapping information base to update the first interface mapping information base; When the second interface mapping information including the target requester interface code and the target receiver interface code is not found in the multiple interface mapping information included in the second interface mapping information base, the target interface mapping information is configured in a hard-coded manner.
4. The method according to claim 1, characterized in that: The interface mapping policy library includes a first interface mapping policy library and a second interface mapping policy library; The step of searching for a target interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the interface mapping policy library comprises: When a first interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the first interface mapping policy library, the first interface mapping policy is determined as the target interface mapping policy; When the first interface mapping policy including the target interface mapping policy identifier is not found among the multiple interface mapping policies included in the first interface mapping policy library, searching for the second interface mapping policy including the target interface mapping policy identifier among the multiple interface mapping policies included in the second interface mapping policy library; When a second interface mapping policy including the target interface mapping policy identifier is found among the multiple interface mapping policies included in the second interface mapping policy library, the second interface mapping policy is determined as the target interface mapping policy, and the first interface mapping policy library is updated based on the second interface mapping policy; When the second interface mapping policy including the target interface mapping policy identifier is not found among the multiple interface mapping policies included in the second interface mapping policy library, the target interface mapping policy is configured in a hard-coded manner.
5. The method according to claim 4, characterized in that The updating of the first interface mapping policy library based on the second interface mapping policy comprises: The second interface mapping policy is configured into the first interface mapping policy library.
6. The method according to claim 1, characterized in that The data information also includes a certificate information base; the certificate information base includes a first certificate information base and a second certificate information base; the first certificate information base includes a plurality of certificate information, and the second certificate information base includes a plurality of certificate information; The docking request includes target request certificate information; The target certificate request information includes a target certificate identifier; The method further comprises: When first certificate information including the target certificate identifier is found among the multiple certificate information included in the first certificate information base, the first certificate information is determined as the target request certificate information; When the first certificate information including the target certificate identifier is not found in the multiple certificate information included in the first certificate information base, searching for the second certificate information including the target certificate identifier in the multiple certificate information included in the second certificate information base; When the second certificate information including the target certificate identifier is found among the multiple certificate information included in the second certificate information base, the second certificate information is determined as the target request certificate information.
7. The method according to claim 6, characterized in that The channel connection operation between the target requester and the target receiver based on the target interface mapping strategy includes: Obtaining target request parameters of the target requester; Sending the target request parameters, the target request certificate information and the target interface mapping strategy to the target recipient through a mapping engine, and obtaining a response result from the target recipient; In a case where the response result is that the target recipient returns a target response parameter, it is determined that the target requester and the target recipient complete a channel docking operation.
8. A channel configuration access device, characterized in that: The channel configuration access device includes: A configuration model acquisition module is used to acquire a configuration model; the configuration model is used to configure data information of channel docking; the data information includes an interface mapping information base and an interface mapping policy base; the interface mapping information base includes a plurality of interface mapping information, each of which includes respective requester interface information and receiver interface information; the interface mapping policy base includes a plurality of interface mapping policies, each of which includes an interface mapping policy identifier; A docking request acquisition module, used to acquire a docking request from a target requester; the docking request carries target requester interface information and target receiver interface information; A target interface mapping information determination module is used to search for target interface mapping information including the target requester interface information and the target receiver interface information among the multiple interface mapping information included in the interface mapping information base; the target interface mapping information includes a target interface mapping policy identifier; A target interface mapping policy determining module, used for searching a target interface mapping policy including the target interface mapping policy identifier among a plurality of interface mapping policies included in the interface mapping policy library; A channel docking module is used to perform a channel docking operation between the target requester and the target receiver based on the target interface mapping strategy.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or at least one program is loaded by the processor and executed by the channel configuration docking method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the channel configuration docking method according to any one of claims 1 to 7 is implemented.