A business processing system, interface calling method and device
By configuring the platform to obtain interface configuration information and generate business interface carriers, the problem of low development efficiency when the business platform is connected to other business system interfaces in the existing technology is solved, and a simplified interface call process and improved development efficiency are achieved.
Patent Information
- Application Number
- CN202011124629.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-20
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2040-10-20
AI Technical Summary
In the prior art, when a business platform needs to access the interfaces of other business systems, developers need to implement access codes on both ends, resulting in inefficient development.
By configuring the platform, obtaining the interface configuration information of the second platform, generating a business interface carrier, and calling the business interface of the second platform, thereby realizing the acquisition of the business data of the second platform.
It improves the work efficiency of developers, reduces the need for repetitive code implementation, and simplifies the access process of business interfaces.
Smart Images

Figure CN112306710B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a business processing system, an interface calling method and a device. Background Art
[0002] In actual applications, a business platform may include a variety of other businesses in addition to its own business. For example, in addition to its own group buying business, the business platform may also include taxi-hailing business, food delivery business, etc. The business platform needs to access the business interfaces corresponding to these businesses so that users can execute these businesses in the business platform.
[0003] In the prior art, the business platform and the systems corresponding to each other business are usually separated. Here, the business platform is referred to as the first platform, and the systems corresponding to other businesses are referred to as the second platform. When the first platform needs to access the business interface of a second platform, not only the developers of the second platform are required to implement the functions of the business interface, but also the developers of the first platform are required to implement the code for accessing the business interface, so as to complete the business processing related to the second platform through the business interface. Summary of the invention
[0004] The present specification provides a business processing system, an interface calling method and a device, which are used to access a business interface through interface configuration information and then call the business interface.
[0005] This manual adopts the following technical solutions:
[0006] This specification provides a service processing system, including: a configuration platform, a first platform, and at least one second platform, where different second platforms provide services of different service types;
[0007] The configuration platform receives a configuration request sent by the second platform, performs interface data configuration on a service interface corresponding to the second platform according to the configuration request, obtains interface configuration information corresponding to the second platform, and saves the information;
[0008] The first platform, for each second platform, obtains from the configuration platform interface configuration information corresponding to the service type supported by the second platform as target configuration information, generates a service interface carrier corresponding to the second platform according to the target configuration information, and calls the service interface corresponding to the second platform through the service interface carrier to send a data request from the second platform, so as to obtain service data required by the user from the second platform;
[0009] The second platform obtains the interface configuration template from the first platform, sends a configuration request to the configuration platform according to the interface configuration template, receives the data request sent by the first platform, and returns the business data to the first platform according to the data request.
[0010] Optionally, the first platform is provided with a preset listener;
[0011] The first platform, if receiving a configuration change message sent by the configuration platform according to the listener, determines the second platform whose interface configuration information has changed according to the configuration change message, as the target platform, obtains the changed interface configuration information of the target platform from the configuration platform, and changes the business interface carrier corresponding to the target platform according to the changed interface configuration information.
[0012] Optionally, the interface configuration information includes: a service warning identifier;
[0013] The first platform, if determining that the target configuration information obtained from the configuration platform includes a service warning identifier, does not call the service interface corresponding to the second platform through the service interface carrier.
[0014] Optionally, if the configuration platform receives a configuration deletion request sent by the second platform, the configuration platform deletes the interface configuration information corresponding to the second platform according to the configuration deletion request.
[0015] Optionally, the first platform generates a business interface carrier corresponding to the second platform based on a preset SpringBean framework and according to the acquired target configuration information.
[0016] Optionally, the interface configuration template includes: basic fields, business fields and extended fields, the basic fields include: identification information of the first platform, identification information of the second platform, and at least one of the interface communication protocols on which the first platform is based, the business fields are used for the second platform to provide basic data, and the extended fields are used for the second platform to provide personalized data.
[0017] This specification provides an interface calling method, including:
[0018] For each second platform, the first platform obtains, from a preset configuration platform, interface configuration information corresponding to a service type supported by the second platform as target configuration information, wherein the interface configuration information is determined by the configuration platform according to a configuration request sent by the second platform, and the configuration request is sent by the second platform to the configuration platform according to an interface configuration template obtained from the first platform;
[0019] Generate a service interface carrier corresponding to the second platform according to the target configuration information;
[0020] Through the service interface carrier, the service interface corresponding to the second platform is called to send a data request from the second platform, so as to obtain the service data required by the user from the second platform.
[0021] Optionally, the method further comprises:
[0022] If a configuration change message sent by the configuration platform is received according to a preset listener, a second platform whose interface configuration information is changed is determined as a target platform according to the configuration change message;
[0023] The changed interface configuration information of the target platform is obtained from the configuration platform, and the service interface carrier corresponding to the target platform is changed according to the changed interface configuration information.
[0024] Optionally, the interface configuration information includes: a service warning identifier;
[0025] The method further comprises:
[0026] If it is determined that the target configuration information obtained from the configuration platform includes a service warning identifier, the service interface corresponding to the second platform is not called through the service interface carrier.
[0027] This specification provides an interface calling device, including:
[0028] an acquisition module, configured to, for each second platform, obtain, by the device, from a preset configuration platform, interface configuration information corresponding to a service type supported by the second platform as target configuration information, wherein the interface configuration information is determined by the configuration platform according to a configuration request sent by the second platform, and the configuration request is sent by the second platform to the configuration platform according to an interface configuration template obtained from the device;
[0029] A generating module, used for generating a service interface carrier corresponding to the second platform according to the target configuration information;
[0030] The calling module is used to call the business interface corresponding to the second platform through the business interface carrier to send a data request from the second platform, so as to obtain the business data required by the user from the second platform.
[0031] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned interface calling method is implemented.
[0032] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned interface calling method when executing the program.
[0033] At least one of the above technical solutions adopted in this specification can achieve the following beneficial effects:
[0034] In the business processing system and interface calling method provided in this specification, the first platform can obtain the interface configuration information corresponding to the business type supported by the second platform from the configuration platform for each second platform as the target configuration information, and generate the business interface carrier corresponding to the second platform according to the target configuration information. Then, through the generated business interface carrier, the business interface corresponding to the second platform is called to send a data request from the second platform to obtain the business data required by the user from the second platform, wherein the configuration platform is used to configure the interface configuration information corresponding to the second platform.
[0035] It can be seen from the above system and method that if the first platform needs to access the interface of a second platform, it only needs to obtain the interface configuration information of the second platform through the configuration platform, and can directly generate the business interface carrier corresponding to the second platform, so that when it is necessary to process the business request related to the second platform, the business interface corresponding to the second platform can be called for processing. Compared with the existing method that requires the developer of the first platform to implement the code for accessing the business interface, the work efficiency of the developer is improved to a certain extent. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0037] Figure 1 This is a flowchart of an interface calling method in this manual;
[0038] Figure 2 A flow chart of a service interface for a first platform to access a second platform provided in this specification;
[0039] Figure 3 A schematic diagram of an interface calling device provided in this specification;
[0040] Figure 4 The corresponding Figure 1 Schematic diagram of electronic equipment. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0042] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0043] In the prior art, when the first platform needs to access the service interface of the second platform, not only the developers of the second platform need to implement the functions of the service interface, but also the developers of the first platform need to implement the code for accessing the service interface, so that the functions required to be implemented by the service interface can be put online on the first platform. In this way, no matter which service interface of the second platform the first platform accesses, the developers need to repeatedly implement the code for accessing the service interface, thereby reducing the work efficiency of the developers.
[0044] In order to solve the above problems, a business processing system and an interface calling method are provided in this specification. For each second platform, the first platform can obtain the interface configuration information corresponding to the business type supported by the second platform from the configuration platform as the target configuration information, and generate the business interface carrier corresponding to the second platform according to the target configuration information. Then, through the business interface carrier, the business interface corresponding to the second platform is called to send a data request from the second platform to obtain the business data required by the user from the second platform, thereby improving the work efficiency of developers.
[0045] In this specification, the business processing system includes a configuration platform, a first platform and at least one second platform, and different second platforms provide different types of services. Among them, the configuration platform is used to configure the interface configuration information of the business interface corresponding to each second platform, and the first platform can access the business interface of the second platform so that the user can execute the business provided by the second platform through the first platform. The business processing system provided in this specification is introduced below with the first platform as the execution subject.
[0046] Figure 1 The following is a flowchart of an interface calling method in this specification, which specifically includes the following steps:
[0047] S101: For each second platform, interface configuration information corresponding to a service type supported by the second platform is obtained from a preset configuration platform as target configuration information.
[0048] In actual applications, the second platform can provide the first platform with the services supported by the second platform, but the first platform needs to access the service interface provided by the second platform before it can enable users to use the services of the second platform in the first platform by calling the accessed service interface.
[0049] Based on this, the first platform can obtain the interface configuration information corresponding to the service type supported by the second platform from the preset configuration platform for each second platform as the target configuration information. The target configuration information is used to access the service interface corresponding to the second platform, and the service interface corresponding to the second platform is used to execute the service under the service type supported by the second platform. For example, if the second platform is a food delivery platform, the service interface corresponding to the second platform can enable the first platform to provide users with the food delivery service of the second platform.
[0050] The configuration platform can be understood as a platform for configuring the interface configuration information of the second platform and managing the interface configuration information of each second platform. The interface configuration information managed in the configuration platform needs to be generated based on the configuration request sent by the second platform. Specifically, the second platform can obtain the interface configuration module from the first platform, and send a configuration request to the configuration platform according to the interface configuration template. The configuration platform can receive the configuration request sent by the second platform, and according to the configuration request, perform interface data configuration on the business interface corresponding to the second platform, obtain the interface configuration information corresponding to the second platform and save it. Of course, in actual applications, the interface configuration information of the business interface can also be provided to the first platform by the second platform, and the first platform requests the configuration platform to configure the business interface of the second platform, so that the configuration platform saves the interface configuration information of the second platform.
[0051] The interface configuration template mentioned above refers to the interface standard formulated by the first platform, and the second platform can implement the function of its own business interface according to the interface configuration template. The interface configuration information mentioned above may include the identification information of the first platform, the identification information of the second platform, the interface communication protocol based on the first platform, the timeout period, the port number of the second platform, and the identification information of the Bean (such as beanName), etc. Among them, after the first platform calls the business interface, the second platform needs to respond within the timeout period. If there is no response, the first platform does not call the business interface. The interface communication protocol may include HyperText Transfer Protocol (HTTP), Thrift protocol, Remote Method Invocation (RMI) and HESSION, etc.
[0052] S102: Generate a service interface carrier corresponding to the second platform according to the target configuration information.
[0053] S103: calling the service interface corresponding to the second platform through the service interface carrier to send a data request from the second platform, so as to obtain the service data required by the user from the second platform.
[0054] After the first platform obtains the target configuration information, it can generate the business interface carrier corresponding to the second platform according to the target configuration information. Among them, the first platform can generate the business interface carrier corresponding to the second platform based on the preset SpringBean framework. In other words, the business interface carrier can be in the form of Spring Bean. The first platform can call the business interface corresponding to the second platform through the generated business interface carrier. That is, if the user views the business of the second platform or executes the business of the second platform in the first platform through the terminal, the first platform can call the business interface corresponding to the second platform through the business interface carrier to send a data request to the second platform. After receiving the data request, the second platform can return business data to the first platform, so that the first platform can obtain the business data required by the user.
[0055] For example, if a user uses the takeaway service provided by the second platform on the first platform and places an order for takeaway on the first platform through a terminal, the first platform can call the service interface of the second platform and send a data request to the second platform. The data request carries the user's order data that needs to be sent to the second platform (such as the store information and product information of the order). The second platform processes the user's takeaway order through the data request and returns the processing result to the first platform (i.e., the service data required by the user mentioned above). Accordingly, the first platform can display all the information of the takeaway ordered by the user to the user through the terminal.
[0056] It should be noted that, in addition to adding interface configuration information, the interface configuration information corresponding to each second platform can also be modified and deleted in the configuration platform. If there is changed interface configuration information in the configuration platform, that is, a second platform modifies the interface configuration information corresponding to the second platform through the configuration platform, the first platform can receive the configuration change message sent by the configuration platform according to the preset listener, and determine the second platform whose interface configuration information has been changed as the target platform according to the configuration change message.
[0057] Then, the first platform can obtain the changed interface configuration information of the target platform from the configuration platform, and change the service interface carrier corresponding to the target platform according to the changed interface configuration information. That is, no matter which parameter in the interface configuration information (such as the timeout period, port number, etc. mentioned above) has changed, the first platform can determine the changed interface configuration information through the listener, and obtain the changed interface configuration information from the configuration platform, and then change the service interface carrier corresponding to the interface configuration information.
[0058] In actual applications, when the configuration platform determines that there is a change in the interface configuration information (such as addition, deletion, and modification), the changed interface configuration information can be sent to each staff member of the second platform corresponding to the interface configuration information.
[0059] In addition to modifying the interface configuration information mentioned above, the second platform can also delete the interface configuration information in the configuration platform. Specifically, the second platform can send a configuration deletion request to the configuration platform. After the configuration platform receives the configuration deletion request sent by the second platform, it will delete the interface configuration information corresponding to the second platform according to the configuration deletion request. After the interface configuration information is deleted, the first platform will no longer be able to call the business interface corresponding to the interface configuration information.
[0060] In actual applications, if the second platform fails, the first platform can temporarily stop providing the second platform's services to users. Based on this, the interface configuration information can include a service warning indicator. When the first platform needs to call the service interface corresponding to the target configuration information, if it is determined that the target configuration information obtained from the configuration platform contains a service warning indicator, it should not call the service interface of the second platform corresponding to the target configuration information through the service interface carrier. The service warning indicator is used to indicate that the second platform has failed.
[0061] In this specification, the first platform can formulate an interface configuration template, that is, formulate the format of the business interface. Among them, the interface configuration template may include basic fields, business fields, and extended fields, etc. The basic fields may include: identification information of the first platform, identification information of the second platform, the interface communication protocol based on the first platform, etc. The business field is used for the second platform to provide basic data to the first platform, and the extended field is used for the second platform to provide personalized data to the first platform. Basic data refers to data that each second platform needs to provide, for example, the business name of the business provided by the second platform, the business icon of the business provided by the second platform, etc.
[0062] The personalized data mentioned here is based on the different business needs of each second platform. Therefore, in addition to obtaining the basic data of the second platform through the business interface of the second platform, the first platform can also obtain the personalized data of the second platform based on its actual needs. For example, the business provided by a second platform has a business requirement: to add an additional label of "buy and get a coupon" to the business icon corresponding to the business, while other second platforms do not have this business requirement. The business interface of the second platform needs to reflect the extended field of the additional label. Therefore, the second platform can fill in the additional label in the extended field of the interface configuration template and send a configuration request to the configuration platform so that the configuration platform generates interface configuration information with this extended field. Correspondingly, when the first platform subsequently calls the business interface through the generated business interface carrier, the additional label of "buy and get a coupon" can be displayed on the business icon of the corresponding business of the second platform in the user's terminal.
[0063] The first platform can obtain each interface configuration information at one time when it is started, so as to access the service interface corresponding to each interface configuration information, or can obtain each interface configuration information managed in the configuration platform in real time (including the interface configuration information that has changed), and generate each service interface carrier in real time, such as Figure 2 shown.
[0064] Figure 2 This is a flow chart of a service interface of a first platform accessing a second platform provided in this specification.
[0065] from Figure 2 It can be seen that after the second platform implements the business interface of the second platform according to the interface communication protocol of the first platform, the business interface of the second platform can be configured through the configuration platform. Then, the interface configuration information corresponding to the second platform is saved in the configuration platform. If the first platform is already in operation at this time, the first platform can obtain the newly added interface configuration information in the configuration platform through the listener, and generate the business interface carrier corresponding to the second platform according to the interface configuration information, so that the first platform can call the business interface corresponding to the second platform through the business interface carrier.
[0066] Of course, if the second platform has configured the interface configuration information through the configuration platform before the first platform is started, the first platform can obtain the interface configuration information in the configuration platform at one time and generate the business interface carrier corresponding to each interface configuration information (the interface configuration information corresponding to the second platform can be obtained together). Since the business interfaces of each second platform have roughly the same format, the first platform can call the business interfaces corresponding to each second platform through a unified interface calling logic.
[0067] It can be seen from the above system and method that the configuration platform can be used to configure the interface configuration information corresponding to each second platform. The first platform can generate a business interface carrier corresponding to the second platform by obtaining the interface configuration information in the configuration platform, thereby calling the business interface corresponding to the second platform through the business interface carrier, so that the user can process the business of the second platform in the first platform. In the prior art, the first platform requires developers to implement the code for accessing the business interface and go online so that the first platform can call the business interface of the second platform. Therefore, this method improves the work efficiency of developers.
[0068] The above is an interface calling method provided in one or more embodiments of this specification. Based on the same idea, this specification also provides a corresponding interface calling device, such as Figure 3 shown.
[0069] Figure 3 A schematic diagram of an interface calling device provided in this specification specifically includes:
[0070] An acquisition module 301 is used for obtaining, by the device, interface configuration information corresponding to the service type supported by the second platform from a preset configuration platform for each second platform as target configuration information, wherein the interface configuration information is determined by the configuration platform according to a configuration request sent by the second platform, and the configuration request is sent by the second platform to the configuration platform according to an interface configuration template obtained from the device;
[0071] A generating module 302, configured to generate a service interface carrier corresponding to the second platform according to the target configuration information;
[0072] The calling module 303 is used to call the business interface corresponding to the second platform through the business interface carrier to send a data request from the second platform, so as to obtain the business data required by the user from the second platform.
[0073] Optionally, the device is provided with a preset listener;
[0074] The device also includes:
[0075] The monitoring module 304 is used to, if a configuration change message sent by the configuration platform is received according to the listener, determine, according to the configuration change message, a second platform whose interface configuration information has changed, as the target platform, obtain the changed interface configuration information of the target platform from the configuration platform, and change the business interface carrier corresponding to the target platform according to the changed interface configuration information.
[0076] Optionally, the interface configuration information includes: a service warning identifier;
[0077] The device also includes:
[0078] The judgment module 305 is configured to not call the service interface corresponding to the second platform through the service interface carrier if it is determined that the target configuration information obtained from the configuration platform includes a service warning indicator.
[0079] Optionally, the generating module 302 is specifically configured to generate a business interface carrier corresponding to the second platform based on a preset SpringBean framework and according to the acquired target configuration information.
[0080] Optionally, the interface configuration template includes: a basic field, a business field and an extended field, the basic field includes: identification information of the device, identification information of the second platform, and at least one of the interface communication protocols on which the device is based, the business field is used for the second platform to provide basic data, and the extended field is used for the second platform to provide personalized data.
[0081] This manual also provides Figure 4 The schematic structure diagram of the electronic device shown in FIG. Figure 4 As mentioned above, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, this specification does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0082] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0083] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0084] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0085] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0086] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0087] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0088] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0089] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0090] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0091] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0092] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0093] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0094] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0095] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0096] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0097] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A business processing system, characterized in that: include: A configuration platform, a first platform and at least one second platform, where different second platforms provide services of different service types; The configuration platform receives a configuration request sent by the second platform, performs interface data configuration on a service interface corresponding to the second platform according to the configuration request, obtains interface configuration information corresponding to the second platform, and saves the information; The first platform, for each second platform, obtains from the configuration platform interface configuration information corresponding to the service type supported by the second platform as target configuration information, generates a service interface carrier corresponding to the second platform according to the target configuration information, and calls the service interface corresponding to the second platform through the service interface carrier to send a data request to the second platform, so as to obtain service data required by the user from the second platform; The second platform obtains the interface configuration template from the first platform, sends a configuration request to the configuration platform according to the interface configuration template, receives the data request sent by the first platform, and returns the service data to the first platform according to the data request; The first platform is provided with a preset listener; The first platform, if receiving a configuration change message sent by the configuration platform according to the listener, determines the second platform whose interface configuration information has changed according to the configuration change message, as the target platform, obtains the changed interface configuration information of the target platform from the configuration platform, and changes the business interface carrier corresponding to the target platform according to the changed interface configuration information.
2. The system according to claim 1, characterized in that The interface configuration information includes: a service warning identifier; The first platform, if determining that the target configuration information obtained from the configuration platform includes a service warning identifier, does not call the service interface corresponding to the second platform through the service interface carrier.
3. The system according to claim 1, characterized in that The configuration platform, if receiving the configuration deletion request sent by the second platform, deletes the interface configuration information corresponding to the second platform according to the configuration deletion request.
4. The system according to claim 1, characterized in that The first platform generates a business interface carrier corresponding to the second platform based on a preset SpringBean framework and according to the acquired target configuration information.
5. The system according to claim 1, wherein: The interface configuration template includes: basic fields, business fields and extended fields. The basic fields include: identification information of the first platform, identification information of the second platform, and at least one of the interface communication protocols on which the first platform is based. The business field is used for the second platform to provide basic data, and the extended field is used for the second platform to provide personalized data.
6. An interface calling method, characterized in that: include: For each second platform, the first platform obtains, from a preset configuration platform, interface configuration information corresponding to a service type supported by the second platform as target configuration information, wherein the interface configuration information is determined by the configuration platform according to a configuration request sent by the second platform, and the configuration request is sent by the second platform to the configuration platform according to an interface configuration template obtained from the first platform; Generate a service interface carrier corresponding to the second platform according to the target configuration information; Through the service interface carrier, calling the service interface corresponding to the second platform to send a data request to the second platform, so as to obtain the service data required by the user from the second platform; If a configuration change message sent by the configuration platform is received according to a preset listener, a second platform whose interface configuration information is changed is determined as a target platform according to the configuration change message; The changed interface configuration information of the target platform is obtained from the configuration platform, and the service interface carrier corresponding to the target platform is changed according to the changed interface configuration information.
7. The method according to claim 6, characterized in that The interface configuration information includes: a service warning identifier; The method further comprises: If it is determined that the target configuration information obtained from the configuration platform includes a service warning identifier, the service interface corresponding to the second platform is not called through the service interface carrier.
8. An interface calling device, characterized in that: include: an acquisition module, configured to, for each second platform, obtain, by the device, from a preset configuration platform, interface configuration information corresponding to a service type supported by the second platform as target configuration information, wherein the interface configuration information is determined by the configuration platform according to a configuration request sent by the second platform, and the configuration request is sent by the second platform to the configuration platform according to an interface configuration template obtained from the device; A generating module, used for generating a service interface carrier corresponding to the second platform according to the target configuration information; A calling module, used to call the business interface corresponding to the second platform through the business interface carrier to send a data request from the second platform, so as to obtain the business data required by the user from the second platform; The device further comprises a preset listener, which is used to determine, when receiving a configuration change message sent by the configuration platform, a second platform whose interface configuration information has been changed according to the configuration change message as a target platform; The acquisition module is used to acquire the changed interface configuration information of the target platform from the configuration platform; The generating module is used to change the service interface carrier corresponding to the target platform according to the changed interface configuration information.
9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method of claim 6 or 7 is implemented.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to claim 6 or 7 is implemented.
