CN112527420A - Interface data flow processing method and device, computer equipment and medium - Google Patents

Interface data flow processing method and device, computer equipment and medium Download PDF

Info

Publication number
CN112527420A
CN112527420A CN202011541086.0A CN202011541086A CN112527420A CN 112527420 A CN112527420 A CN 112527420A CN 202011541086 A CN202011541086 A CN 202011541086A CN 112527420 A CN112527420 A CN 112527420A
Authority
CN
China
Prior art keywords
target
calling
interface
request
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011541086.0A
Other languages
Chinese (zh)
Inventor
周锋恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011541086.0A priority Critical patent/CN112527420A/en
Publication of CN112527420A publication Critical patent/CN112527420A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/449Object-oriented method invocation or resolution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a data processing technology, and provides an interface data flow processing method, an interface data flow processing device, a computer device and a storage medium, wherein the interface data flow processing method comprises the following steps: acquiring an identifier corresponding to the interface calling instruction, and determining target configuration information according to the identifier; configuring an initial distribution processor according to the target configuration information to obtain a target distribution processor; calling a target distribution processor analysis interface calling instruction to obtain a request calling parameter and a target forwarding processor; detecting whether a data structure of the call request parameter meets a preset complex condition or not; when the detection result is that the data structure of the request calling parameter meets the preset complex condition, calling the target forwarding processor to adjust the request calling parameter to obtain a target request calling parameter; and calling the parameters based on the target request to call a downstream service system to obtain interface calling data. This application can improve under the complicated scene interface treatment effeciency, reduces the maintenance cost, promotes the construction of wisdom medical treatment and wisdom city.

Description

Interface data flow processing method and device, computer equipment and medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for processing interface data flow, a computer device, and a medium.
Background
With the development of science and technology, particularly with the emergence of cloud computing, terminal applications represented by media such as mobile phones, tablet computers and notebook computers are more and more common and gradually integrated into various fields such as enterprise management, government affair disclosure and management, personal entertainment experience and the like, more and more users need to process service requests called by terminal operation related services through a lower-layer application system, so that the service requests called by specific services and interfaces of a target service system specifically processing corresponding service requests in the lower-layer application system correspond to each other, and the response speed, the processing efficiency and the like of the service requests are directly influenced.
For the case of service interface call processing, in the process of implementing the present application, the inventors find that the prior art has at least the following problems: the interface forwarding function is single, and forwarding of a complex scene cannot be well supported, so that the interface processing efficiency under the complex scene is low, and the maintenance cost is too high.
Therefore, it is necessary to provide an interface data flow processing method, which can improve the interface processing efficiency in a complex scene and reduce the maintenance cost.
Disclosure of Invention
In view of the above, it is necessary to provide an interface data flow processing method, an interface data flow processing apparatus, a computer device and a medium, which can improve the interface processing efficiency in a complex scene and reduce the maintenance cost.
A first aspect of an embodiment of the present application provides an interface data flow processing method, where the interface data flow processing method includes:
when an interface calling instruction sent by an upstream service system is received, acquiring an identifier corresponding to the interface calling instruction, and determining target configuration information according to the identifier;
configuring an initial distribution processor according to the target configuration information to obtain a target distribution processor;
the target distribution processor is called to analyze the interface calling instruction to obtain a request calling parameter and a target forwarding processor;
detecting whether the data structure of the request calling parameter meets a preset complex condition or not;
when the detection result is that the data structure of the request calling parameter meets a preset complex condition, calling the target forwarding processor to adjust the request calling parameter to obtain a target request calling parameter;
and calling a downstream service system based on the target request calling parameter to obtain interface calling data.
Further, in the interface data flow processing method provided in the embodiment of the present application, the obtaining an identifier corresponding to the interface call instruction, and determining target configuration information according to the identifier includes:
acquiring the carried information of the interface calling instruction;
analyzing the carried information to obtain identification information at a preset position;
and traversing a preset mapping relation table of the identification and the configuration information according to the identification information to obtain target configuration information corresponding to the identification information.
Further, in the interface data flow processing method provided in the embodiment of the present application, the configuring the initial distribution processor according to the target configuration information to obtain the target distribution processor includes:
analyzing the target configuration information to obtain a configuration item;
analyzing the initial distribution processor to obtain an item to be configured;
and determining a target configuration item corresponding to each item to be configured, and configuring the content of the item to be configured based on the target configuration item to obtain a target distribution processor.
Further, in the interface data flow processing method provided in the embodiment of the present application, the method further includes:
when the number of the interface calling instructions is multiple, acquiring downstream service system information corresponding to each interface calling instruction;
constructing an interface flow relation tree according to the downstream service system information;
determining the interface calling instruction with the same downstream service system information as a target group in the interface circulation relation tree;
and constructing a target distribution processor corresponding to the target group.
Further, in the interface data flow processing method provided in the embodiment of the present application, the detecting whether the data structure of the request invocation parameter meets a preset complex condition includes:
acquiring a list identifier of the request calling parameter;
determining the number of the list identifications, and detecting whether the number exceeds a preset number threshold;
when the number exceeds a preset number threshold value as a detection result, determining that the data structure of the request calling parameter meets a preset complex condition;
and when the number does not exceed a preset number threshold value as a detection result, determining that the data structure of the request calling parameter does not meet a preset complex condition.
Further, in the interface data flow processing method provided in the embodiment of the present application, when the detection result indicates that the data structure of the request invocation parameter does not satisfy the preset complex condition, the method further includes:
acquiring a target list of the request calling parameters and the request calling parameters corresponding to the target list;
acquiring a target data requirement of the downstream service system for the request call parameter;
and adjusting the request calling parameter based on the target data requirement to obtain a target request calling parameter.
Further, in the interface data flow processing method provided in the embodiment of the present application, the invoking the target forwarding processor to adjust the request invocation parameter, and obtaining the target request invocation parameter includes:
acquiring a list identification set of the request calling parameter;
determining a target list identifier according to the list identifier set;
determining a request calling parameter corresponding to the target list identifier;
acquiring a target data requirement of the downstream service system for the request call parameter;
and adjusting the request calling parameter based on the target data requirement to obtain a target request calling parameter.
A second aspect of the embodiments of the present application further provides an interface data flow processing apparatus, where the interface data flow processing apparatus includes:
the system comprises an instruction receiving module, an interface calling module and a target configuration module, wherein the instruction receiving module is used for acquiring an identifier corresponding to an interface calling instruction when the interface calling instruction sent by an upstream service system is received, and determining target configuration information according to the identifier;
the information configuration module is used for configuring the initial distribution processor according to the target configuration information to obtain a target distribution processor;
the instruction calling module is used for calling the target distribution processor to analyze the interface calling instruction to obtain a request calling parameter and a target forwarding processor;
the condition detection module is used for detecting whether the data structure of the request calling parameter meets a preset complex condition or not;
the parameter adjusting module is used for calling the target forwarding processor to adjust the request calling parameter to obtain a target request calling parameter when the detection result indicates that the data structure of the request calling parameter meets a preset complex condition;
and the service calling module is used for calling the downstream service system based on the target request calling parameter to obtain interface calling data.
A third aspect of the embodiments of the present application further provides a computer device, where the computer device includes a processor, and the processor is configured to implement the interface data flow processing method according to any one of the above when executing a computer program stored in a memory.
The fourth aspect of the embodiments of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the interface data flow processing methods described above.
According to the interface data flow processing method, the interface data flow processing device, the computer equipment and the computer readable storage medium provided by the embodiment of the application, the interface calling instructions of the downstream service systems needing to be requested are grouped, the interface calling instructions of the same downstream service system are divided into a group, the corresponding target distribution processor is configured, the target forwarding processor is called to respectively process different interface calling parameters of the same downstream service system, and the unified target distribution processor and the corresponding target forwarding processor are used for coordination processing, so that the efficiency of interface data flow processing can be improved; in addition, list parameter identification is carried out on the parameters of the complex structure, recursive processing is carried out on the complex parameter structure with a deeper level, the request parameters of the complex structure can be adjusted rapidly, and then the efficiency of interface data circulation is improved. This application can be applied to in each functional module in wisdom cities such as wisdom government affairs, wisdom traffic, for example the interface data circulation processing module of wisdom government affairs etc. can promote the rapid development in wisdom city.
Drawings
Fig. 1 is a flowchart of an interface data flow processing method according to a first embodiment of the present application.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application.
FIG. 3 is an exemplary functional block diagram of the computer device shown in FIG. 2.
The following detailed description will further illustrate the present application in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present application can be more clearly understood, a detailed description of the present application will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present application, and the described embodiments are a part, but not all, of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Fig. 1 is a flowchart of an interface data flow processing method according to a first embodiment of the present application, where the interface data flow processing method may be applied to an interface data flow processing apparatus, where the interface data flow processing apparatus is used to connect an upstream service system and a downstream service system, and is used to assist in processing interface data interaction between the upstream service system and the downstream service system. As shown in fig. 1, the interface data stream forwarding processing method may include the following steps:
s11, when an interface calling instruction sent by an upstream service system is received, acquiring an identifier corresponding to the interface calling instruction, and determining target configuration information according to the identifier.
In at least one embodiment of the present application, the interface call instruction is an instruction issued by an upstream service system, and is used for calling downstream service data. The number of the interface call instructions may be one or more. The interface call instruction may be multiple interface call instructions issued by one upstream service system for calling different downstream service data of the same downstream service system, or multiple interface call instructions issued by one upstream service system for calling downstream service data of different downstream service systems. The interface call instruction includes call information of the target interface, for example, address information of a downstream service to be called, request parameter information, request call parameter information, and the like. The interface call instruction carries a preset identifier for identifying the instruction, and the preset identifier may be a letter identifier, a number identifier, or a letter and number combined identifier, and the like, which is not limited herein. The target configuration information refers to the relevant configuration information of the interface data flow processing device, and the target configuration information may include, but is not limited to, downstream service system annotation information, interface function annotation information, interface parameter information, interface call parameter information, and interface call type information.
Optionally, the obtaining an identifier corresponding to the interface call instruction, and determining target configuration information according to the identifier includes: acquiring the carried information of the interface calling instruction; analyzing the carried information to obtain identification information at a preset position; and traversing a preset mapping relation table of the identification and the configuration information according to the identification information to obtain target configuration information corresponding to the identification information.
The preset position is a preset position for storing identification information corresponding to the interface calling instruction, and the identification information corresponding to the interface calling information can be obtained by checking the content of the preset position. And establishing a mapping relation between the identification and the configuration information, and inquiring the mapping relation to obtain the target configuration information corresponding to the identification information.
S12, configuring the initial distribution processor according to the target configuration information to obtain the target distribution processor.
In at least one embodiment of the present application, the initial distribution processor refers to a module in the interface data flow processing apparatus, configured to perform distribution processing on an interface call instruction based on the same downstream service system. And configuring the initial distribution processor based on the target configuration information to obtain the target distribution processor corresponding to the interface calling instruction. It is understood that, when the types of the downstream service systems to be called by the interface call instruction are multiple, the number of the corresponding target distribution processors is also multiple. According to the method and the device, the corresponding distribution processors are determined according to the number of the called downstream service systems, each distribution processor can be used for processing different interface calling parameters of the same downstream service system, and therefore the efficiency of interface data flow processing can be improved.
Optionally, the configuring the initial distribution processor according to the target configuration information to obtain the target distribution processor includes: analyzing the target configuration information to obtain a configuration item; analyzing the initial distribution processor to obtain an item to be configured; and determining a target configuration item corresponding to each item to be configured, and configuring the content of the item to be configured based on the target configuration item to obtain a target distribution processor.
The target configuration information comprises a plurality of configuration items, the target configuration information can store the configuration items according to a preset data format, and the configuration items can be determined by looking up the data format. For example, each configuration item in the target configuration information is a group, configuration content is stored, and the target configuration information is analyzed to obtain corresponding grouping information, so that information of each group of corresponding configuration items can be obtained. The configuration items and the items to be configured have a mapping relationship, for example, one configuration item corresponds to one item to be configured, and a target distribution processor can be obtained by configuring the corresponding item to be configured by the configuration item.
In at least one embodiment of the present application, the method further comprises: when the number of the interface calling instructions is multiple, acquiring downstream service system information corresponding to each interface calling instruction; constructing an interface flow relation tree according to the downstream service system information; determining the interface calling instruction with the same downstream service system information as a target group in the interface circulation relation tree; and constructing a target distribution processor corresponding to the target group.
And optionally, the downstream service system information is used as a father node of the interface flow relation tree, and different interface call parameters calling the same downstream service system are used as child nodes of the interface flow relation tree. The method and the device determine that the interface calling instructions of the same downstream service system information are in one group, and obtain the target distribution processor corresponding to the group, wherein the target distribution processor is only used for processing different interface calling parameters of the same downstream service system, and therefore the efficiency of interface data circulation processing can be improved.
And S13, calling the target distribution processor to analyze the interface calling instruction to obtain a request calling parameter and a target forwarding processor.
In at least one embodiment of the present application, the interface call instruction includes call information of a target interface, for example, address information, request parameter information, request call parameter information, and the like of a downstream service to be called, the address information, the request parameter information, and the request call parameter information of the downstream service to be called are all stored in code information carried by the interface call instruction, and the target distribution processor is called to analyze the code information carried by the interface call instruction, so that a request call parameter corresponding to the interface call instruction can be obtained. The target forwarding processor refers to a module for calling parameters aiming at a forwarding request made by the downstream service system to obtain interface calling data. For each interface call instruction, the number of the target forwarding processors may be 1, or may be multiple, and is not limited herein.
S14, detecting whether the data structure of the request calling parameter meets the preset complex condition, and executing the step S15 when the detection result is that the data structure of the request calling parameter meets the preset complex condition.
In at least one embodiment of the present application, before forwarding the request invocation parameter, the target forwarding processor performs a conversion process on a parameter field, and converts each parameter in the request invocation parameter into a parameter form required by a downstream service system. The data structure of the request call parameter comprises a simple data structure and a complex data structure, and the method is used for configuring corresponding processing methods for the simple data structure and the complex data structure, can convert the request call parameter of all the data structures, improves the compatibility of interface data circulation, and then improves the efficiency of the interface data circulation.
Optionally, the detecting whether the data structure of the request invocation parameter meets a preset complex condition includes: acquiring a list identifier of the request calling parameter; determining the number of the list identifications, and detecting whether the number exceeds a preset number threshold; when the number exceeds a preset number threshold value as a detection result, determining that the data structure of the request calling parameter meets a preset complex condition; and when the number does not exceed a preset number threshold value as a detection result, determining that the data structure of the request calling parameter does not meet a preset complex condition.
The preset number threshold is preset and is used for evaluating the number of parameter structure complexities, for example, the preset number threshold may be 1. For a request call parameter, the number of the corresponding parameter lists may be 1, or may be multiple, each parameter list corresponds to a list identifier for identifying the list, and the list identifier may be a numeric identifier or an alphabetic identifier. The number of parameter lists contained in the request call parameter can be obtained by obtaining the number of the list identifications. Generally, the larger the number of parameter lists included in the request invocation parameter, the more complex the corresponding parameter structure.
Optionally, the preset number threshold is 1, and when the detection result indicates that the data structure of the request invocation parameter does not meet the preset complex condition, the method further includes: acquiring a target list of the request calling parameters and the request calling parameters corresponding to the target list; acquiring a target data requirement of the downstream service system for the request call parameter; and adjusting the request calling parameter based on the target data requirement to obtain a target request calling parameter.
When the preset number threshold is 1 and the detection result indicates that the data structure of the request call parameter does not meet the preset complex condition, it indicates that the number of the data lists of the request call parameter is only 1 at this time, and the target list corresponding to the request call parameter and the request call parameter corresponding to the target list are directly obtained through the list identifier. The target data requirement refers to a requirement which is stored in a target node of a block chain and used for standardizing the data form of a request calling parameter output by an upstream service system, and the request calling parameter is adjusted according to the target data requirement, so that the target request calling parameter which accords with the downstream service system can be obtained.
And S15, calling the target forwarding processor to adjust the request calling parameter to obtain a target request calling parameter.
In at least one embodiment of the present application, when the detection result indicates that the data structure of the request invocation parameter satisfies a preset complex condition, optionally, the invoking the target forwarding processor to adjust the request invocation parameter to obtain the target request invocation parameter includes: acquiring a list identification set of the request calling parameter; determining a target list identifier according to the list identifier set; determining a request calling parameter corresponding to the target list identifier; acquiring a target data requirement of the downstream service system for the request call parameter; and adjusting the request calling parameter based on the target data requirement to obtain a target request calling parameter.
When the data structure of the request call parameter is complex, the request call parameter includes more than 2 data lists, that is, more than 2 list identifiers, and a list identifier set is determined according to the list identifiers. The target list identification refers to the identification which is closest to the interface calling parameter at the innermost layer. By determining the target list identification, the request call parameter closest to the target list identification can be obtained.
According to the method and the device, list parameter identification is carried out on the parameters of the complex structure, recursive processing is carried out on the complex parameter structure with a deeper level, the request parameters of the complex structure can be adjusted rapidly, and then the efficiency of interface data circulation is improved.
And S16, calling the downstream service system based on the target request calling parameter to obtain interface calling data.
In at least one embodiment of the present application, the target forwarding processor outputs the target request invocation parameter to a downstream service system, invokes interface invocation data corresponding to the target request invocation parameter from the downstream service system, and outputs the interface invocation data to the upstream service system through an interface data flow platform, so as to complete data exchange between the upstream service system and the downstream service system.
According to the interface data flow processing method provided by the embodiment of the application, the interface call instructions of the downstream service systems needing to be requested are grouped, the interface call instructions of the same downstream service system are divided into a group, the corresponding target distribution processors are configured, the target forwarding processors are called to respectively process different interface call parameters of the same downstream service system, and the unified target distribution processors and the corresponding target forwarding processors are used for coordination processing, so that the efficiency of interface data flow processing can be improved; in addition, list parameter identification is carried out on the parameters of the complex structure, recursive processing is carried out on the complex parameter structure with a deeper level, the request parameters of the complex structure can be adjusted rapidly, and then the efficiency of interface data circulation is improved. This application can be applied to in each functional module in wisdom cities such as wisdom government affairs, wisdom traffic, for example the interface data circulation processing module of wisdom government affairs etc. can promote the rapid development in wisdom city.
The above is a detailed description of the method provided in the examples of the present application. The order of execution of the blocks in the flowcharts shown may be changed, and some blocks may be omitted, according to various needs. The following describes a computer device 1 provided in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application, and as shown in fig. 2, the computer device 1 includes a memory 10, and the interface data stream processing apparatus 300 is stored in the memory 10. The computer device 1 may be an electronic device having functions of data processing, analysis, program execution, display, and the like, such as a computer, a tablet computer, and a personal digital assistant. The interface data flow processing apparatus 300 may obtain an identifier corresponding to an interface call instruction when receiving the interface call instruction sent by an upstream service system, and determine target configuration information according to the identifier; configuring an initial distribution processor according to the target configuration information to obtain a target distribution processor; the target distribution processor is called to analyze the interface calling instruction to obtain a request calling parameter and a target forwarding processor; detecting whether the data structure of the request calling parameter meets a preset complex condition or not; when the detection result is that the data structure of the request calling parameter meets a preset complex condition, calling the target forwarding processor to adjust the request calling parameter to obtain a target request calling parameter; and calling a downstream service system based on the target request calling parameter to obtain interface calling data. Through this application, can improve interface treatment efficiency under the complicated scene, reduce the maintenance cost, be favorable to promoting the development of wisdom medical treatment and the construction in wisdom city.
In this embodiment, the computer device 1 may further include a display screen 20 and a processor 30. The memory 10 and the display screen 20 can be electrically connected with the processor 30 respectively.
The memory 10 may be of different types of memory devices for storing various types of data. For example, the memory and the internal memory of the computer device 1 may be used, and the memory Card may be a memory Card that is externally connected to the computer device 1, such as a flash memory, an SM Card (Smart Media Card), an SD Card (Secure Digital Card), and the like. Further, the memory 10 may include non-volatile memory and volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage devices. The memory 10 is used for storing various types of data, for example, various types of application programs (Applications) installed in the computer device 1, data set and acquired by applying the above interface data flow processing method, and the like.
A display screen 20 is mounted to the computer apparatus 1 for displaying information.
The processor 30 is used for executing the interface data flow processing method and various types of software installed in the computer device 1, such as an operating system and application display software. The processor 30 includes, but is not limited to, a Central Processing Unit (CPU), a Micro Controller Unit (MCU), and other devices for interpreting computer instructions and Processing data in computer software.
The interface data flow processing apparatus 300 may include one or more modules, which are stored in the memory 10 of the computer device 1 and configured to be executed by one or more processors (in this embodiment, one processor 30) to implement the embodiments of the present application. Referring to fig. 3, the interface data flow processing apparatus 300 may include an instruction receiving module 301, an information configuring module 302, an instruction calling module 303, a condition detecting module 304, a parameter adjusting module 305, and a service calling module 306. The modules referred to in the embodiments of the present application may be program segments for performing a specific function, and are more suitable than programs for describing the execution process of software in the processor 30.
It is understood that, corresponding to the above-mentioned embodiments of the interface data stream processing method, the interface data stream processing apparatus 300 may include some or all of the functional modules shown in fig. 3, and the functions of the modules will be described in detail below. It should be noted that the same noun and its specific explanation in the above embodiments of the interface data stream processing method may also be applied to the following functional introduction of each module. For brevity and to avoid repetition, further description is omitted.
The instruction receiving module 301 may be configured to, when an interface call instruction sent by an upstream service system is received, obtain an identifier corresponding to the interface call instruction, and determine target configuration information according to the identifier.
The information configuration module 302 may be configured to configure the initial distribution processor according to the target configuration information, so as to obtain a target distribution processor.
The instruction invoking module 303 may be configured to invoke the target distribution processor to analyze the interface invoking instruction, so as to obtain a request invoking parameter and a target forwarding processor.
The condition detecting module 304 may be configured to detect whether the data structure of the request invoking parameter satisfies a preset complex condition.
The parameter adjusting module 305 may be configured to, when the detection result is that the data structure of the request invoking parameter satisfies a preset complex condition, invoke the target forwarding processor to adjust the request invoking parameter, so as to obtain a target request invoking parameter.
The service invocation module 306 may be configured to invoke a downstream service system based on the target request invocation parameter, resulting in interface invocation data.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 30, implements the steps of the interface data flow processing method in any of the above embodiments.
The interface data flow processing apparatus 300/computer device 1/computer device integrated module/unit may be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by the processor 30 to implement the steps of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-access Memory, or the like.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 30 is a control center of the interface data flow processing apparatus 300/computer device 1, and various interfaces and lines are used to connect the various parts of the whole interface data flow processing apparatus 300/computer device 1.
The memory 10 is used for storing the computer programs and/or modules, and the processor 30 implements various functions of the interface data flow processing apparatus 300/computer device 1 by running or executing the computer programs and/or modules stored in the memory 10 and calling the data stored in the memory 10. The memory 10 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer apparatus 1, and the like.
In the several embodiments provided in this application, it should be understood that the disclosed computer apparatus and method may be implemented in other ways. For example, the system embodiments described above are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It will be evident to those skilled in the art that the embodiments of the present application are not limited to the details of the foregoing illustrative embodiments, and that the embodiments of the present application can be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the embodiments being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. A plurality of units, modules or devices recited in the present invention can also be implemented by the same unit, module or device through software or hardware.
Although the embodiments of the present application have been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the embodiments of the present application.

Claims (10)

1. An interface data flow processing method, characterized in that the interface data flow processing method comprises:
when an interface calling instruction sent by an upstream service system is received, acquiring an identifier corresponding to the interface calling instruction, and determining target configuration information according to the identifier;
configuring an initial distribution processor according to the target configuration information to obtain a target distribution processor;
the target distribution processor is called to analyze the interface calling instruction to obtain a request calling parameter and a target forwarding processor;
detecting whether the data structure of the request calling parameter meets a preset complex condition or not;
when the detection result is that the data structure of the request calling parameter meets a preset complex condition, calling the target forwarding processor to adjust the request calling parameter to obtain a target request calling parameter;
and calling a downstream service system based on the target request calling parameter to obtain interface calling data.
2. The interface data flow processing method according to claim 1, wherein the obtaining an identifier corresponding to the interface call instruction and determining target configuration information according to the identifier includes:
acquiring the carried information of the interface calling instruction;
analyzing the carried information to obtain identification information at a preset position;
and traversing a preset mapping relation table of the identification and the configuration information according to the identification information to obtain target configuration information corresponding to the identification information.
3. The interface data flow processing method according to claim 1, wherein the configuring the initial distribution processor according to the target configuration information to obtain the target distribution processor comprises:
analyzing the target configuration information to obtain a configuration item;
analyzing the initial distribution processor to obtain an item to be configured;
and determining a target configuration item corresponding to each item to be configured, and configuring the content of the item to be configured based on the target configuration item to obtain a target distribution processor.
4. The interface data flow processing method of claim 1, wherein the method further comprises:
when the number of the interface calling instructions is multiple, acquiring downstream service system information corresponding to each interface calling instruction;
constructing an interface flow relation tree according to the downstream service system information;
determining the interface calling instruction with the same downstream service system information as a target group in the interface circulation relation tree;
and constructing a target distribution processor corresponding to the target group.
5. The interface data flow processing method according to claim 1, wherein the detecting whether the data structure of the request call parameter satisfies a preset complex condition includes:
acquiring a list identifier of the request calling parameter;
determining the number of the list identifications, and detecting whether the number exceeds a preset number threshold;
when the number exceeds a preset number threshold value as a detection result, determining that the data structure of the request calling parameter meets a preset complex condition;
and when the number does not exceed a preset number threshold value as a detection result, determining that the data structure of the request calling parameter does not meet a preset complex condition.
6. The interface data flow processing method according to claim 1, wherein when the detection result is that the data structure of the request call parameter does not satisfy a preset complex condition, the method further comprises:
acquiring a target list of the request calling parameters and the request calling parameters corresponding to the target list;
acquiring a target data requirement of the downstream service system for the request call parameter;
and adjusting the request calling parameter based on the target data requirement to obtain a target request calling parameter.
7. The interface data flow processing method of claim 1, wherein the invoking the target forwarding processor to adjust the request invocation parameter to obtain a target request invocation parameter comprises:
acquiring a list identification set of the request calling parameter;
determining a target list identifier according to the list identifier set;
determining a request calling parameter corresponding to the target list identifier;
acquiring a target data requirement of the downstream service system for the request call parameter;
and adjusting the request calling parameter based on the target data requirement to obtain a target request calling parameter.
8. An interface data flow processing apparatus, characterized in that the interface data flow processing apparatus comprises:
the system comprises an instruction receiving module, an interface calling module and a target configuration module, wherein the instruction receiving module is used for acquiring an identifier corresponding to an interface calling instruction when the interface calling instruction sent by an upstream service system is received, and determining target configuration information according to the identifier;
the information configuration module is used for configuring the initial distribution processor according to the target configuration information to obtain a target distribution processor;
the instruction calling module is used for calling the target distribution processor to analyze the interface calling instruction to obtain a request calling parameter and a target forwarding processor;
the condition detection module is used for detecting whether the data structure of the request calling parameter meets a preset complex condition or not;
the parameter adjusting module is used for calling the target forwarding processor to adjust the request calling parameter to obtain a target request calling parameter when the detection result indicates that the data structure of the request calling parameter meets a preset complex condition;
and the service calling module is used for calling the downstream service system based on the target request calling parameter to obtain interface calling data.
9. A computer device, characterized in that the computer device comprises a processor for implementing the interface data flow processing method according to any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing the interface data flow processing method according to any one of claims 1 to 7.
CN202011541086.0A 2020-12-23 2020-12-23 Interface data flow processing method and device, computer equipment and medium Pending CN112527420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011541086.0A CN112527420A (en) 2020-12-23 2020-12-23 Interface data flow processing method and device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011541086.0A CN112527420A (en) 2020-12-23 2020-12-23 Interface data flow processing method and device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN112527420A true CN112527420A (en) 2021-03-19

Family

ID=74975998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011541086.0A Pending CN112527420A (en) 2020-12-23 2020-12-23 Interface data flow processing method and device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN112527420A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113084802A (en) * 2021-03-30 2021-07-09 京东数科海益信息科技有限公司 Robot control method, device, electronic device and storage medium
CN113489773A (en) * 2021-06-30 2021-10-08 未鲲(上海)科技服务有限公司 Data access method, device, equipment and medium
CN114064125A (en) * 2022-01-18 2022-02-18 北京大学 Instruction analysis method and device and electronic equipment
CN114138899A (en) * 2021-11-22 2022-03-04 支付宝(杭州)信息技术有限公司 Block chain-based data stream transfer method and device
CN114579499A (en) * 2022-01-20 2022-06-03 飞腾信息技术有限公司 Control method, device, equipment and storage medium of processor communication interface
CN114610414A (en) * 2022-03-22 2022-06-10 未鲲(上海)科技服务有限公司 Method and device for calling integration interface, computer equipment and storage medium
CN116954942A (en) * 2023-06-29 2023-10-27 广州汽车集团股份有限公司 Interface calling method, device, vehicle and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2004271525A1 (en) * 2003-08-21 2005-03-17 Microsoft Technology Licensing, Llc Systems and methods for providing synchronization services for units of information manageable by a hardware/software interface system
CA2514290A1 (en) * 2004-07-30 2006-01-30 Research In Motion Limited Method for customizing the visual attributes of a user interface
CN108664604A (en) * 2018-05-09 2018-10-16 四川华创世纪科技有限公司 A method of realizing that data minimum splits storage and calling service is presented
CN110297761A (en) * 2019-05-23 2019-10-01 深圳壹账通智能科技有限公司 Acquisition methods, device, computer equipment and the storage medium of returned data
CN110851210A (en) * 2019-11-12 2020-02-28 北京字节跳动网络技术有限公司 Interface program calling method, device, equipment and storage medium
CN112100079A (en) * 2020-11-02 2020-12-18 北京淇瑀信息科技有限公司 Test method and system based on simulation data calling and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2004271525A1 (en) * 2003-08-21 2005-03-17 Microsoft Technology Licensing, Llc Systems and methods for providing synchronization services for units of information manageable by a hardware/software interface system
CA2514290A1 (en) * 2004-07-30 2006-01-30 Research In Motion Limited Method for customizing the visual attributes of a user interface
CN108664604A (en) * 2018-05-09 2018-10-16 四川华创世纪科技有限公司 A method of realizing that data minimum splits storage and calling service is presented
CN110297761A (en) * 2019-05-23 2019-10-01 深圳壹账通智能科技有限公司 Acquisition methods, device, computer equipment and the storage medium of returned data
CN110851210A (en) * 2019-11-12 2020-02-28 北京字节跳动网络技术有限公司 Interface program calling method, device, equipment and storage medium
CN112100079A (en) * 2020-11-02 2020-12-18 北京淇瑀信息科技有限公司 Test method and system based on simulation data calling and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赵琦 等: "制药企业复杂信息系统信息集成服务接口管理设计", 中国医药工业杂志, no. 02, pages 43 - 49 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113084802A (en) * 2021-03-30 2021-07-09 京东数科海益信息科技有限公司 Robot control method, device, electronic device and storage medium
CN113084802B (en) * 2021-03-30 2023-01-31 京东科技信息技术有限公司 Robot control method, device, electronic device and storage medium
CN113489773A (en) * 2021-06-30 2021-10-08 未鲲(上海)科技服务有限公司 Data access method, device, equipment and medium
CN114138899A (en) * 2021-11-22 2022-03-04 支付宝(杭州)信息技术有限公司 Block chain-based data stream transfer method and device
CN114064125A (en) * 2022-01-18 2022-02-18 北京大学 Instruction analysis method and device and electronic equipment
CN114064125B (en) * 2022-01-18 2022-06-24 北京大学 Instruction analysis method and device and electronic equipment
WO2023138090A1 (en) * 2022-01-18 2023-07-27 北京大学 Instruction parsing method and apparatus, and electronic device
CN114579499A (en) * 2022-01-20 2022-06-03 飞腾信息技术有限公司 Control method, device, equipment and storage medium of processor communication interface
CN114610414A (en) * 2022-03-22 2022-06-10 未鲲(上海)科技服务有限公司 Method and device for calling integration interface, computer equipment and storage medium
CN116954942A (en) * 2023-06-29 2023-10-27 广州汽车集团股份有限公司 Interface calling method, device, vehicle and storage medium
CN116954942B (en) * 2023-06-29 2024-06-11 广州汽车集团股份有限公司 Interface calling method, device, vehicle and storage medium

Similar Documents

Publication Publication Date Title
CN112527420A (en) Interface data flow processing method and device, computer equipment and medium
CN109271265B (en) Request processing method, device, equipment and storage medium based on message queue
US20180248879A1 (en) Method and apparatus for setting access privilege, server and storage medium
CN111897818B (en) Data storage method, device, electronic equipment and storage medium
CN112163412B (en) Data verification method and device, electronic equipment and storage medium
CN111698205A (en) Service calling method and related equipment
CN112559831A (en) Link monitoring method and device, computer equipment and medium
CN112070608B (en) Information processing method, device, medium and electronic equipment
CN111142863B (en) Page generation method and device
CN114528044B (en) Interface calling method, device, equipment and medium
CN111611249A (en) Data management method, device, equipment and storage medium
CN104579909A (en) Method and equipment for classifying user information and acquiring user grouping information
CN112291277B (en) Malicious software detection method, device, equipment and storage medium
WO2022156087A1 (en) Data blood relationship establishing method and apparatus, computer device, and storage medium
CN112214770A (en) Malicious sample identification method and device, computing equipment and medium
CN115378806A (en) Flow distribution method and device, computer equipment and storage medium
CN105245380B (en) Message propagation mode identification method and device
CN111859985B (en) AI customer service model test method and device, electronic equipment and storage medium
CN114490718A (en) Data output method, data output device, electronic equipment and computer readable medium
CN109672536B (en) Digital signature method and system for batch PDF files
CN110765327A (en) Data analysis method, data analysis device, computer device, and storage medium
CN114090962B (en) Intelligent publishing system and method based on big data
CN116861455B (en) Event data processing method, system, electronic device and storage medium
CN111507734B (en) Method and device for identifying cheating request, electronic equipment and computer storage medium
CN116204201B (en) Service processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination