CN114598750B - Data request processing method, device and storage medium - Google Patents

Data request processing method, device and storage medium Download PDF

Info

Publication number
CN114598750B
CN114598750B CN202210043415.1A CN202210043415A CN114598750B CN 114598750 B CN114598750 B CN 114598750B CN 202210043415 A CN202210043415 A CN 202210043415A CN 114598750 B CN114598750 B CN 114598750B
Authority
CN
China
Prior art keywords
data
target
interface
service
call
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.)
Active
Application number
CN202210043415.1A
Other languages
Chinese (zh)
Other versions
CN114598750A (en
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.)
Zhejiang Geely Holding Group Co Ltd
Hangzhou Youxing Technology Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Hangzhou Youxing Technology 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 Zhejiang Geely Holding Group Co Ltd, Hangzhou Youxing Technology Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN202210043415.1A priority Critical patent/CN114598750B/en
Publication of CN114598750A publication Critical patent/CN114598750A/en
Application granted granted Critical
Publication of CN114598750B publication Critical patent/CN114598750B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources

Abstract

The invention discloses a data request processing method, a data request processing device and a storage medium, relates to the technical field of data processing, and can unify interface specifications during remote data call. The specific scheme comprises the following steps: acquiring a data call request, wherein the data call request is used for requesting target data of a target service; analyzing the data call request to obtain a data call address, a call method name and a service parameter of a target service, wherein the data call address, the call method name and the service parameter are included in the data call request; determining a target interface corresponding to the data call address based on a first mapping relation between the call address and the interface; determining a calling method corresponding to the target interface based on a second mapping relation among the interfaces, the method names and the methods; converting the business parameters and the calling method from a first format to a second format to generate target interface parameters; sending target interface parameters to a service server through a target interface; receiving target data sent by a service server; the target data is converted from the second format to the first format.

Description

Data request processing method, device and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data request processing method, device and storage medium.
Background
The traffic server has a plurality of interfaces, each of which may correspond to a service. In general, services in a service server are all called internally, so when a data calling device needs to call one service in the service server, a templated application layer code needs to be written for an interface corresponding to each service, and request parameters of the data calling device and response parameters of the service server need to be customized, which is not beneficial to unified interface specifications.
Disclosure of Invention
The invention provides a data request processing method, a data request processing device and a storage medium, which can unify interface specifications when remote data is called.
In order to achieve the above purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a data request processing method, including:
acquiring a data call request, wherein the data call request is used for requesting target data of a target service;
analyzing the data call request to obtain a data call address, a call method name and a service parameter of a target service, wherein the data call address, the call method name and the service parameter are included in the data call request;
determining a target interface corresponding to the data call address based on a first mapping relation between the call address and the interface;
determining a calling method corresponding to the target interface based on a second mapping relation among the interfaces, the method names and the methods;
converting the business parameters and the calling method from a first format to a second format to generate target interface parameters;
sending target interface parameters to a service server through a target interface;
receiving target data sent by a service server;
the target data is converted from the second format to the first format.
By adopting the data request processing method provided by the invention, when the gateway receives the data call request sent by the data call equipment, the target interface parameter is obtained by processing the data call request. Then, the gateway transmits the target interface parameters to the service server and receives the target data transmitted by the service server. Finally, the gateway converts the target data from the second format to the first format so that the data calling device can identify the target data and obtain the data to be called. Compared with the prior art that when the gateway needs to call one service in the service server, a templated application layer code is required to be written for an interface corresponding to each service, and the request parameters of the gateway and the response parameters of the service server are required to be customized, the data request processing method provided by the invention can unify interface specifications in the call process. And the gateway can provide customizable parameter conversion, so that the convenience and the safety of interface management are improved.
In one possible implementation manner, after the data call request is parsed, the identity identifier included in the data call request is also obtained;
based on the identity and a pre-stored identity verification strategy, determining whether an account indicated by the identity has data calling authority;
determining a target interface corresponding to the data call address based on a first mapping relation between the call address and the interface, including:
and under the condition that the account indicated by the identity mark is determined to have the data calling authority, determining the target interface based on the first mapping relation.
In one possible implementation manner, the data request processing method further includes:
sending subscription information to a registration server;
and receiving the first mapping relation and the second mapping relation sent by the registration server.
In a second aspect, the present invention provides a data request processing method, applied to a service server, where the method includes:
acquiring an identified preset interface, wherein the preset interface is used for calling target data of a target service;
and sending a preset interface and method information corresponding to the preset interface to the registration server, wherein the method information comprises a calling address corresponding to the preset interface and at least one method name and method corresponding to the preset interface.
In a third aspect, the present invention provides a data request processing apparatus comprising:
the acquisition unit is used for acquiring a data call request, wherein the data call request is used for requesting target data of a target service;
the analyzing unit is used for analyzing the call request acquired by the acquiring unit to acquire a data call address, a call method name and a service parameter of a target service, wherein the data call address, the call method name and the service parameter are included in the data call request;
the determining unit is used for determining a target interface corresponding to the data call address obtained by the analyzing unit based on the first mapping relation between the data call address and the interface, and determining a call method corresponding to the target interface based on the second mapping relation among the interface, the method name and the method;
the generating unit is used for converting the service parameters obtained by the analyzing unit and the calling method obtained by the determining unit from the first format to the second format to generate target interface parameters;
the acquisition unit is also used for sending the target interface parameters to the service server through the target interface and receiving the target data sent by the service server;
the generating unit is further used for converting the target data acquired by the acquiring unit from the second format to the first format.
In one possible implementation manner, after the parsing unit parses the data call request, the identity identifier included in the data call request is also obtained;
the determining unit is also used for determining whether the account indicated by the identity mark has data calling authority or not based on the identity mark and a pre-stored identity verification strategy;
the determining unit is specifically configured to:
and under the condition that the account indicated by the identity mark is determined to have the data calling authority, determining the target interface based on the first mapping relation.
In one possible implementation manner, the obtaining unit is further configured to send subscription information to the registration server, and receive the first mapping relationship and the second mapping relationship sent by the registration server.
In a fourth aspect, the present invention provides a data request processing apparatus comprising:
the acquisition unit is used for acquiring the identified preset interface, and the preset interface is used for calling target data of target service;
the sending unit is used for sending a preset interface and method information corresponding to the preset interface to the registration server, wherein the method information comprises a calling address corresponding to the preset interface and at least one method name and method corresponding to the preset interface.
In a fifth aspect, the present invention provides a data request processing apparatus comprising: a processor and a memory. The memory is used to store computer program code, which includes computer instructions. When the processor executes computer instructions, the data request processing apparatus performs the data request processing method as described in the first aspect and any possible implementation manner thereof, or performs the data request processing method as described in the second aspect.
In a sixth aspect, the present invention provides a computer readable storage medium having stored thereon computer instructions which, when run on a data request processing apparatus, cause the data request processing apparatus to perform the data request processing method as in the first aspect or any one of the possible implementations of the first aspect, or to perform the data request processing method as in the second aspect.
Drawings
FIG. 1 is a schematic diagram of a data request processing system according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a computing device according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data request processing method according to an embodiment of the present invention;
FIG. 4 is a second flowchart of a data request processing method according to an embodiment of the present invention;
FIG. 5 is a third flow chart of a data request processing method according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a data request processing apparatus according to an embodiment of the present invention;
FIG. 7 is a second schematic diagram of a data request processing apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the embodiments of the present disclosure, unless otherwise indicated, the meaning of "a plurality" is two or more. In addition, the use of "based on" or "according to" is intended to be open and inclusive in that a process, step, calculation, or other action "based on" or "according to" one or more of the stated conditions or values may in practice be based on additional conditions or beyond the stated values.
In order to unify interface specifications during remote data call, the embodiment of the invention provides a data request processing method, a data request processing device and a storage medium. When the gateway receives a data call request sent by the data call device, the gateway obtains the target interface parameters by processing the data call request. And then, the gateway sends the target interface parameters to the service server, receives the target data sent by the service server, and converts the target data from the second format to the first format so that the data calling equipment can identify the target data, and data needing to be called are obtained.
The data request processing method provided by the embodiment of the invention can be applied to a data request processing system. Fig. 1 shows a structure of the data request processing system. As shown in fig. 1, the data request processing system may include: the data calling device 11, the gateway 12, the registration server 13 and the service server 14. The data calling device 11 establishes a connection with the gateway 12 by means of wired communication or wireless communication. The gateway 12, the registration server 13 and the service server 14 establish connection through wired communication or wireless communication.
The data calling device 11 is configured to send a data calling request to the gateway 12, where the data calling request is used to request target data, and receive the target data sent by the gateway 12 and having a data format that is the first format.
By way of example, the data recall device 11 may be a gateway such as a smart phone, tablet or desktop computer.
The gateway 12 is configured to parse the received data call request to obtain a data call address, a call method name, and a service parameter. The gateway 12 is further configured to determine a target interface corresponding to the data call address based on a first mapping relationship between the data call address and the interface, and determine a call method corresponding to the target interface based on a second mapping relationship among the interface, the method name, and the method. The gateway 12 is further configured to convert the service parameter and the calling method from the first format to the second format, generate a target interface parameter, send the target interface parameter to the service server through the target interface, and convert the target data from the second format to the first format after receiving the target data sent by the service server. The gateway 12 is further configured to send the target data with the data format being the first format to the data calling device 11.
The registration server 13 is configured to receive the identification interface and the method information corresponding to the identification interface sent by the service server 14, and generate a first mapping relationship and a second mapping relationship according to the identification interface and the method information corresponding to the identification interface.
The service server 14 is configured to provide the gateway 12 with the target data in the second format. The service server 14 is further configured to send the identification interface and method information corresponding to the identification interface to the registration server.
The basic hardware structure of the data calling device 11, gateway 12, registration server 13 and service server 14 described above is similar, and includes elements included in the computing apparatus shown in fig. 2. The hardware configuration of the data calling device, gateway, registration server, and service server will be described below using the computing device shown in fig. 2 as an example.
As shown in fig. 2, the computing device may include: a processor 21, a memory 22, a communication interface 23 and a bus 24. The processor 21, the memory 22 and the communication interface 23 may be connected by a communication bus 24.
The processor 21 is a control center of the computing device, and may be one processor 21 or a collective term of a plurality of processing elements. For example, the processor 21 may be a general-purpose central processing unit (central processing unit, CPU), or may be another general-purpose processor 21. The general-purpose processor 21 may be a microprocessor 21 or any conventional processor 21 or the like.
As one example, processor 21 may include one or more CPUs, such as CPU0 and CPU1 shown in fig. 2.
The memory 22 may be, but is not limited to, a read-only memory 22 (ROM) or other type of static storage device that can store static information and instructions, a random access memory 22 (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or an electrically erasable programmable read-only memory 22 (electrically erasable programmable read-only memory, EEPROM), magnetic disk storage or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
In a possible implementation, the memory 22 may exist separately from the processor 21, and the memory 22 may be connected to the processor 21 by a bus 24 for storing instructions or program code. The processor 21, when calling and executing instructions or program code stored in the memory 22, is capable of implementing the data request processing method provided in the following embodiments of the present invention.
In another possible implementation, the memory 22 may also be integrated with the processor 21.
A communication interface 23 for connecting the computing device with other devices via a communication network, which may be an ethernet, a radio access network (radio access network, RAN), a wireless local area network (wireless local areanetworks, WLAN), etc. The communication interface 23 may include a receiving unit for receiving data, and a transmitting unit for transmitting data.
The bus 24 may be an Industry standard architecture (Industry StandardArchitecture, ISA) bus 24, an external device interconnect (Peripheral Component Interconnect, PCI) bus 24, or an extended Industry standard architecture (Extended Industry StandardArchitecture, EISA) bus 24, among others. The bus 24 may be divided into an address bus 24, a data bus 24, a control bus 24, etc. For ease of illustration, only one thick line is shown in FIG. 2, but not only one bus 24 or one type of bus 24.
It should be noted that the structure shown in fig. 2 is not limiting of the computing device, and the computing device may include more or less components than those shown in fig. 2, or may combine some components, or a different arrangement of components.
The following describes a data request processing method provided by an embodiment of the present invention with reference to the accompanying drawings.
As shown in fig. 3, the data request processing method provided by the embodiment of the present invention includes the following steps 301 to 308.
301. The gateway obtains a data call request for requesting target data of a target service.
In one scenario, when a user invokes target data of a target service in a service server through a data invoking device, the data invoking device invokes a request for data invocation to a gateway side, the data invocation requesting target data for requesting the target service. The data call request may be an http request, for example.
302. The gateway analyzes the data call request to obtain a data call address, a call method name and a service parameter of the target service, which are included in the data call request.
Optionally, after receiving the data call request sent by the data call device, the gateway analyzes the data call request by adopting a preset analysis rule to obtain a data call address, a call method name and a service parameter of the target service, which are included in the data call request. Wherein, the business parameters of the target business are parameters necessary for the target data called by the data calling equipment.
Illustratively, the data call request is taken as an http request. After receiving the http request sent by the data calling device, the gateway analyzes the http request to obtain a uniform resource locator (Uniform Resource Locator, URL) of the http request. The gateway is also used for carrying out path matching according to the URL of the http request, and determining the data call address, the call method name and the service parameters of the target service included in the http request.
For example, the data calling device is provided with an operation and maintenance application, and the target service is to call the operation and maintenance data of 11 months of the operation and maintenance device. When the operation and maintenance personnel want to call the operation and maintenance data of the operation and maintenance equipment in the whole month of 11 months, the operation and maintenance personnel send an http request for calling the operation and maintenance data of 11 months to the gateway through the data calling equipment. The http request for calling the operation and maintenance data of 11 months comprises data calling addresses, calling method names, date and other service parameters. After receiving the http request, the gateway analyzes the http request and determines the data call address, the call method name, the date and other service parameters.
Optionally, after the data call request is parsed, an identity identifier included in the data call request may also be obtained. The gateway determines whether the account indicated by the identity mark has data calling authority or not based on the identity mark and a pre-stored identity verification strategy. The gateway will continue to perform the following steps only if it is determined that the account to which the data calling device is logged has the right to call the target data.
303. And the gateway determines a target interface corresponding to the data call address based on the first mapping relation between the call address and the interface.
Optionally, when the gateway determines that the account indicated by the identity has the data calling authority, determining the target interface based on the first mapping relation. The data calling addresses are in one-to-one correspondence with interfaces in the service server, and when the gateway determines the data calling addresses, a target interface corresponding to the data calling addresses is determined according to a first mapping relation between the calling addresses and the interfaces. The target interface is an interface corresponding to the service server when the target data is called.
304. The gateway determines a calling method corresponding to the target interface based on a second mapping relation among the interfaces, the method names and the methods.
Alternatively, an interface may include multiple methods, one method having a name. After the gateway determines the name of the calling method, the gateway determines the calling method corresponding to the target interface according to the interface, the name of the method and the second mapping relation among the methods.
305. The gateway converts the service parameters and the calling method from the first format to the second format to generate the target interface parameters.
Optionally, since the data format of the data used by the data calling device is the first format, the data format of the data used by the service server is the second format. Therefore, after determining the target interface corresponding to the target data and the calling method corresponding to the target interface, the gateway needs to convert the service parameters and the calling method from the first format to the second format which can be identified by the service server, and generate the target interface parameters.
306. And the gateway sends the target interface parameters to the service server through the target interface.
307. And the gateway receives the target data sent by the service server.
308. The gateway converts the target data from the second format to the first format.
The data format of the target data received by the gateway is a second data format, and in order for the data calling device to be able to identify the target data, the gateway also needs to convert the target data from the second format to the first format.
By adopting the data request processing method provided by the invention, when the gateway receives the data call request sent by the data call equipment, the target interface parameter is obtained by processing the data call request. And then, the gateway sends the target interface parameters to the service server, receives target data sent by the service server, and converts the target data from the second format to the first format so that the data calling equipment can acquire the data to be called. Compared with the prior art that when the gateway needs to call one service in the service server, the gateway needs to write a templated application layer code for the interface corresponding to each service, and the request parameters of the gateway and the response parameters of the service server need to be customized, the gateway can unify the interface specifications. And the gateway can provide customizable parameter conversion, so that the convenience and the safety of interface management are improved.
Referring to fig. 3, as shown in fig. 4, the data request processing method provided by the embodiment of the present invention may further include the following steps 401 and 402.
401. The gateway sends subscription information to the registration server.
402. The gateway receives the first mapping relation and the second mapping relation sent by the registration server.
Optionally, when the gateway is started, subscription information is actively sent to the registration server. After receiving the subscription information, the registration server sends a first mapping relation between the calling address and the interface and a second mapping relation among the interface, the method name and the method to the gateway. After the gateway receives the first mapping relation and the second mapping relation, a caching strategy is adopted to cache the first mapping relation and the second mapping relation. When the first mapping relation and the second mapping relation in the registration server are changed, the registration server actively sends change information to the gateway.
Referring to fig. 4, as shown in fig. 5, the data request processing method provided by the embodiment of the present invention may further include the following step 501 and step 502.
501. The service server obtains the identified preset interface. The preset interface is used for calling target data of target service.
502. And the service server sends a preset interface and method information corresponding to the preset interface to the registration server. The method information comprises a calling address corresponding to a preset interface, and at least one method name and method corresponding to the preset interface.
Optionally, after the service server is started, the interface that needs to be exposed when the automatic scanning data calling device calls the data, and specific method information corresponding to the interface that needs to be exposed. When the service server determines the interface to be exposed, the interface to be exposed is identified in a mode of marking notes by classes on the interface to be exposed, and a preset interface to be identified is obtained, wherein the preset interface is used for calling target data of target service. After the service server generates the identification interface, the preset interface and the method information corresponding to the preset interface are sent to the registration server, so that the interface in the service server can be automatically exposed and found by the registration server, and repeated identification of the interface in the service server can be avoided.
Optionally, after the registration server obtains the preset interface and the method information corresponding to the preset interface, the first mapping relationship and the second mapping relationship are generated according to the preset interface and the method information corresponding to the preset interface.
The above description has been made mainly from the point of view of the data request processing apparatus according to the embodiment of the present invention. It will be appreciated that the data request processing means, in order to implement the above-described functions, comprise corresponding hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the various illustrative algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
Fig. 6 shows a schematic diagram of one possible composition of the data request processing apparatus 600 involved in the above embodiment, and as shown in fig. 6, the data request processing apparatus 600 may include: an acquisition unit 601, an analysis unit 602, a determination unit 603, and a generation unit 604.
The acquiring unit 601 is configured to acquire a data call request, where the data call request is used for requesting target data of a target service. The parsing unit 602 is configured to parse the data call request acquired by the acquiring unit, to obtain a data call address, a call method name, and a service parameter of the target service included in the data call request. The determining unit 603 is configured to determine, based on the first mapping relationship between the call address and the interface, a target interface corresponding to the data call address obtained by the parsing unit, and determine, based on the second mapping relationship among the interface, the method name, and the method, a call method corresponding to the target interface. And the generating unit 604 is configured to convert the service parameter obtained by the analyzing unit and the calling method obtained by the determining unit from the first format to the second format, and generate the target interface parameter. The obtaining unit 601 is further configured to send a target interface parameter to the service server through the target interface, and receive target data sent by the service server. The generating unit 604 is further configured to convert the target data acquired by the acquiring unit from the second format to the first format.
After the parsing unit 602 parses the data call request, the identity identifier included in the data call request may also be obtained.
Optionally, the determining unit 603 is further configured to determine whether the account indicated by the identity identifier has a data call authority based on the identity identifier and a pre-stored identity verification policy.
Optionally, the determining unit 603 is specifically configured to:
and under the condition that the account indicated by the identity mark is determined to have the data calling authority, determining the target interface based on the first mapping relation.
Optionally, the obtaining unit 601 is further configured to send subscription information to the registration server, and receive the first mapping relationship and the second mapping relationship sent by the registration server.
Fig. 7 shows a schematic diagram of a possible composition of the data request processing apparatus according to the above embodiment, and as shown in fig. 7, the data request processing apparatus 700 may include: an acquisition unit 701 and a transmission unit 702.
The acquiring unit 701 is configured to acquire the identified preset interface, where the preset interface is used to invoke the target data of the target service. The sending unit 702 is configured to send, to the registration server, a preset interface and method information corresponding to the preset interface, where the method information includes a call address corresponding to the preset interface and at least one method name and method corresponding to the preset interface.
Of course, the data request processing device provided by the embodiment of the invention includes, but is not limited to, the above modules.
In actual implementation, the acquisition unit, the parsing unit, the determination unit, the generation unit, and the transmission unit may be implemented by the processor 21 shown in fig. 2 calling the program code in the memory 22. The specific implementation process may refer to the description of the data request processing method shown in fig. 3 to 6, and will not be repeated here.
Another embodiment of the present invention also provides a computer readable storage medium having stored therein computer instructions which, when executed on a data request processing apparatus, cause the data request processing apparatus to execute the steps executed by the data request processing apparatus in the method flow shown in the above-described method embodiment.
The invention also provides a chip system which is applied to the data request processing device. The system-on-chip includes one or more interface circuits, and one or more processors 21. The interface circuit and the processor 21 are interconnected by wires. The interface circuit is arranged to receive signals from the memory 22 of the data request processing means and to send said signals to the processor 21, said signals comprising computer instructions stored in said memory 22. When the processor 21 executes the computer instructions, the data request processing apparatus executes the respective steps executed by the data request processing apparatus in the method flow shown in the method embodiment described above.
In another embodiment of the present invention, there is also provided a computer program product including instructions which, when executed on a data request processing apparatus, cause the data request processing apparatus to perform the steps performed by the data request processing apparatus in the method flow shown in the method embodiment described above.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer-executable instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present invention are fully or partially produced. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, a website, computer, server, or data center via a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. Computer readable storage media can be any available media that can be accessed by a computer or data storage devices including one or more servers, data centers, etc. that can be integrated with the media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The foregoing is merely illustrative of specific embodiments of the present invention, and the scope of the present invention is not limited thereto, but any changes or substitutions within the technical scope of the present invention should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A data request processing method, comprising:
acquiring a data call request, wherein the data call request is used for requesting target data of a target service;
analyzing the data call request to obtain a data call address, a call method name and a service parameter of the target service, wherein the data call address, the call method name and the service parameter are included in the data call request;
determining a target interface corresponding to the data call address based on a first mapping relation between the call address and the interface;
determining a calling method corresponding to the target interface based on a second mapping relation among the interfaces, the method names and the methods;
converting the service parameters and the calling method from a first format to a second format to generate target interface parameters;
sending the target interface parameters to a service server through the target interface;
receiving the target data sent by the service server;
converting the target data from the second format to the first format;
after the data call request is analyzed, the identity mark included in the data call request is also obtained;
determining whether an account indicated by the identity has data calling authority or not based on the identity and a pre-stored identity verification strategy;
the determining, based on the first mapping relationship between the call address and the interface, the target interface corresponding to the data call address includes:
and under the condition that the account indicated by the identity mark is determined to have the data calling authority, determining the target interface based on the first mapping relation.
2. The data request processing method according to claim 1, characterized in that the data request processing method further comprises:
sending subscription information to a registration server;
and receiving the first mapping relation and the second mapping relation sent by the registration server.
3. A data request processing method, comprising:
acquiring an identified preset interface, wherein the preset interface is used for calling target data of a target service;
and sending the preset interface and method information corresponding to the preset interface to a registration server, wherein the method information comprises a calling address corresponding to the preset interface and at least one method name and method corresponding to the preset interface.
4. A data request processing apparatus, comprising:
the acquisition unit is used for acquiring a data call request, wherein the data call request is used for requesting target data of a target service;
the analyzing unit is used for analyzing the data call request acquired by the acquiring unit to acquire a data call address, a call method name and a service parameter of the target service, wherein the data call address, the call method name and the service parameter are included in the data call request;
the determining unit is used for determining a target interface corresponding to the data call address obtained by the analyzing unit based on a first mapping relation between the call address and the interface, and determining a call method corresponding to the target interface based on a second mapping relation among the interface, the method name and the method;
the generating unit is used for converting the service parameters obtained by the analyzing unit and the calling method obtained by the determining unit from a first format to a second format to generate target interface parameters;
the obtaining unit is further configured to send the target interface parameter to a service server through the target interface, and receive the target data sent by the service server;
the generating unit is further configured to convert the target data acquired by the acquiring unit from the second format to the first format.
5. The apparatus according to claim 4, wherein after the parsing unit parses the data call request, an identity included in the data call request is also obtained;
the determining unit is further used for determining whether the account indicated by the identity mark has data calling authority or not based on the identity mark and a pre-stored identity verification strategy;
the determining unit is specifically configured to: and under the condition that the account indicated by the identity mark is determined to have the data calling authority, determining the target interface based on the first mapping relation.
6. The apparatus according to claim 4 or 5, wherein the obtaining unit is further configured to send subscription information to a registration server, and receive the first mapping relationship and the second mapping relationship sent by the registration server.
7. A data request processing apparatus, comprising:
the acquisition unit is used for acquiring the identified preset interface, and the preset interface is used for calling target data of target service;
the sending unit is used for sending the preset interface and the method information corresponding to the preset interface to the registration server, wherein the method information comprises a calling address corresponding to the preset interface and at least one method name and method corresponding to the preset interface.
8. A data request processing apparatus, characterized in that the data request processing apparatus comprises: a processor and a memory; the memory is used for storing computer program codes, and the computer program codes comprise computer instructions; when the processor executes the computer instructions, the data request processing apparatus performs the data request processing method according to any one of claims 1-2, or performs the data request processing method according to claim 3.
9. A computer readable storage medium comprising computer instructions which, when run on data request processing means, cause the data request processing means to perform the data request processing method of any of claims 1-2 or to perform the data request processing method of claim 3.
CN202210043415.1A 2022-01-14 2022-01-14 Data request processing method, device and storage medium Active CN114598750B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210043415.1A CN114598750B (en) 2022-01-14 2022-01-14 Data request processing method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210043415.1A CN114598750B (en) 2022-01-14 2022-01-14 Data request processing method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114598750A CN114598750A (en) 2022-06-07
CN114598750B true CN114598750B (en) 2024-01-30

Family

ID=81804501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210043415.1A Active CN114598750B (en) 2022-01-14 2022-01-14 Data request processing method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114598750B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114885026A (en) * 2022-07-07 2022-08-09 飞狐信息技术(天津)有限公司 Data interface request processing system, method, equipment and storage medium
CN115604333B (en) * 2022-10-12 2023-09-12 江苏赛融科技股份有限公司 Distributed big data analysis service scheduling method and system based on dubbo

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration
WO2018201978A1 (en) * 2017-05-04 2018-11-08 平安科技(深圳)有限公司 Interface call data processing method, apparatus, computer device and storage medium
CN111930534A (en) * 2020-07-29 2020-11-13 北京字节跳动网络技术有限公司 Data calling method and device and electronic equipment
CN112099964A (en) * 2019-06-18 2020-12-18 北京思源政通科技集团有限公司 Interface calling method and device, storage medium and electronic device
CN112804303A (en) * 2020-12-31 2021-05-14 网银在线(北京)科技有限公司 Service providing method, device, system, transfer platform and storage medium
CN112866177A (en) * 2019-11-26 2021-05-28 浙江大搜车软件技术有限公司 Method, device, storage medium and computer equipment for processing service call request
US11023301B1 (en) * 2020-07-02 2021-06-01 Ryan L. Hornbeck Unified API platform
CN113626223A (en) * 2021-08-12 2021-11-09 北京京东振世信息技术有限公司 Interface calling method and device
CN113806037A (en) * 2021-07-14 2021-12-17 远光软件股份有限公司 Service calling method and device, storage medium and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104660562B (en) * 2013-11-21 2019-10-22 深圳市腾讯计算机系统有限公司 A kind of information inspection method, relevant apparatus and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095479A (en) * 2011-11-04 2013-05-08 华为技术有限公司 Method and device of business configuration
WO2018201978A1 (en) * 2017-05-04 2018-11-08 平安科技(深圳)有限公司 Interface call data processing method, apparatus, computer device and storage medium
CN112099964A (en) * 2019-06-18 2020-12-18 北京思源政通科技集团有限公司 Interface calling method and device, storage medium and electronic device
CN112866177A (en) * 2019-11-26 2021-05-28 浙江大搜车软件技术有限公司 Method, device, storage medium and computer equipment for processing service call request
US11023301B1 (en) * 2020-07-02 2021-06-01 Ryan L. Hornbeck Unified API platform
CN111930534A (en) * 2020-07-29 2020-11-13 北京字节跳动网络技术有限公司 Data calling method and device and electronic equipment
CN112804303A (en) * 2020-12-31 2021-05-14 网银在线(北京)科技有限公司 Service providing method, device, system, transfer platform and storage medium
CN113806037A (en) * 2021-07-14 2021-12-17 远光软件股份有限公司 Service calling method and device, storage medium and electronic equipment
CN113626223A (en) * 2021-08-12 2021-11-09 北京京东振世信息技术有限公司 Interface calling method and device

Also Published As

Publication number Publication date
CN114598750A (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN109040316B (en) HTTP service processing method and device
CN114598750B (en) Data request processing method, device and storage medium
CN109560955B (en) Method and device for determining deployment information of network
CN107360261B (en) HTTP request processing method and device and electronic equipment
CN111756674B (en) Network communication method, system, device and computer readable storage medium
CN110958281A (en) Data transmission method and communication device based on Internet of things
CN110308880B (en) Log printing method, system, computer device and computer readable storage medium
CN112953745A (en) Service calling method, system, computer device and storage medium
CN112422450A (en) Computer equipment, and flow control method and device for service request
CN114040032A (en) Protocol conversion method, system, storage medium and electronic equipment
CN113423120A (en) Data distribution processing method and device based on private network terminal and electronic equipment
CN117041234A (en) Interaction method of web end and original end and terminal equipment
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN115514665A (en) Service expansion method and device, electronic equipment and storage medium
CN112861004B (en) Method and device for determining rich media
CN111988298B (en) Data processing method, device and equipment
CN113746851A (en) Agent system and method for supporting real-time analysis of GRPC request
CN112000313A (en) Request response method, device, equipment and storage medium
CN113891385B (en) Method, device and equipment for detecting link state of network equipment
CN115396525B (en) Data interaction method and device based on service template mapping
US9680940B2 (en) Method, device and system for acquiring data type definition
CN114153698B (en) Display monitoring method, device, electronic equipment and readable storage medium
CN113949738B (en) Advertisement pushing method and device and computer readable storage medium
CN114071628B (en) Terminal communication method and device based on android system and storage medium

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
GR01 Patent grant
GR01 Patent grant