CN110489440A - Data query method and apparatus - Google Patents
Data query method and apparatus Download PDFInfo
- Publication number
- CN110489440A CN110489440A CN201910690386.6A CN201910690386A CN110489440A CN 110489440 A CN110489440 A CN 110489440A CN 201910690386 A CN201910690386 A CN 201910690386A CN 110489440 A CN110489440 A CN 110489440A
- Authority
- CN
- China
- Prior art keywords
- api
- data
- parameter
- application server
- incoming 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 70
- 230000004044 response Effects 0.000 claims abstract description 89
- 230000005540 biological transmission Effects 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 14
- 238000006116 polymerization reaction Methods 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 10
- 241001269238 Data Species 0.000 claims description 8
- 241000208340 Araliaceae Species 0.000 claims description 4
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 4
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 4
- 235000008434 ginseng Nutrition 0.000 claims description 4
- 230000008569 process Effects 0.000 abstract description 8
- 238000013507 mapping Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 11
- 230000009466 transformation Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 210000004027 cell Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000000470 constituent Substances 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 210000000352 storage cell Anatomy 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2433—Query languages
- G06F16/244—Grouping and aggregation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
Abstract
This application provides a kind of data query method and apparatus.Wherein, data query method includes: acquisition data inquiry request, and the data inquiry request includes query argument information;According to the call relation of the query argument information and preset query argument information and application programming interfaces API, determine for the first API from application server inquiry data;According to the query argument information, the first incoming parameter is converted to according to the incoming parameter format of the first API, and the described first incoming parameter is sent to the corresponding application server of the first API, so that the corresponding application server of the first API the described first incoming parameter feedback response data based on the received.Technical solution provided by the present application is efficiently solved when calling multiple and different API to obtain game data from corresponding application server, due to it needs to be determined that multiple and different API data process method, and then cause game question answering system can not obtain in time required for game data the problem of.
Description
Technical field
This application involves technical field of data processing, and in particular to a kind of data query method and apparatus.
Background technique
In game question answering system, it can be related to inquiring many specific game datas, such as the stage property flowing water of player etc.
The game for the command word formula that game element information, player's personal information, player's personal information and game element information interact
Data.These game datas are needed from each different application server with application programming interfaces (API, Application
Programming Interface) form obtain.Since the API protocol of different application servers can be different, In as a result,
When multiple and different API being called to obtain game data from corresponding application server, due to needing the number in view of multiple and different API
According to processing logic, and then cause game question answering system that can not obtain required game data in time.
Summary of the invention
The purpose of the application is to solve in game question answering system, call multiple and different API from corresponding application
When server obtains game data, due to needing the data process method in view of multiple and different API, and then lead to game question and answer
The problem of game data required for system can not obtain in time.
According to the one side of the embodiment of the present application, a kind of data query method is provided, comprising: obtain data query and ask
It asks, the data inquiry request includes query argument information;Believed according to the query argument information and preset query argument
The call relation of breath and application programming interfaces API is determined for the first API from application server inquiry data;According to described
Query argument information is converted to the first incoming parameter according to the incoming parameter format of the first API, and described first is passed
Enter parameter and be sent to the corresponding application server of the first API, so that the corresponding application server of the first API is according to connecing
The the described first incoming parameter feedback response data received.
According to the one side of the embodiment of the present application, a kind of data query device is provided, comprising: acquiring unit, for obtaining
Data inquiry request is taken, the data inquiry request includes query argument information;First execution unit, for according to the inquiry
The call relation of parameter information and preset query argument information and API is determined for inquiring data from application server
First API;Transmission unit, for being converted according to the incoming parameter format of the first API according to the query argument information
It is sent to the corresponding application server of the first API to the first incoming parameter, and by the described first incoming parameter, so that described
The corresponding application server of first API the described first incoming parameter feedback response data based on the received.
In one embodiment of the application, it is based on aforementioned schemes, the data query device, further includes: receiving unit,
For receiving the corresponding application server of the first API the described first incoming parameter based on the received by the first API
The response data of feedback;Converting unit, for the lattice by the received response data of the first API according to preset display data
Formula is converted, and display data is obtained;Push unit, for the displaying to be pushed to terminal device, so that terminal device
The display data is shown in query interface.
In one embodiment of the application, aforementioned schemes are based on, it is described to turn if the first API is at least two
Unit is changed for carrying out respectively according to the format of preset display data at least two received response datas of the oneth API
Conversion, the data after obtaining at least two conversions;Data after at least two conversions are subjected to polymerization processing, are shown
Data.
In one embodiment of the application, aforementioned schemes are based on, if the first API is at least two, the number
According to inquiry unit further include: the second execution unit, for determining at least two the oneth API according to the query argument information
Between call relation;Transmission unit is used to be joined the inquiry according to the call relation between at least two the oneth API
Number information is converted to the corresponding first incoming parameter of each first API, and each first API corresponding first is passed
Enter parameter and is sent to the corresponding application server of each first API.
In one embodiment of the application, aforementioned schemes are based on, if transmission unit is used at least two the oneth API
Between call relation be parallel calling relationship, then will include in the query argument information and each described first API pairs
The parameter information answered is respectively converted into the corresponding first incoming parameter of each first API;Each first API is corresponding
The first incoming parameter be sent to the corresponding application server of each first API.
In one embodiment of the application, aforementioned schemes are based on, if transmission unit is used at least two the oneth API
Between call relation be serial call relation, then according to the query argument information, according to the incoming parameter of first object API
Format be converted to first object be passed to parameter, and by the first object be passed to parameter be sent to the first object API
Corresponding application server, the first object API are the API in the first API;It is received by the first object API
The first object is passed to the response data of parameter feedback to the corresponding application server of the first object API based on the received;
According to the received response data of first object API, second is converted to according to the format of the incoming parameter of the second target API
Target is passed to parameter, and the second target API is after coming the calling sequence of the first object API in the first AIP
API;Second target is passed to parameter by the second target API and is sent to that the second target API is corresponding to be answered
With server, so as to be passed to parameter anti-for second target based on the received for the corresponding application server of the second target API
Present response data.
In one embodiment of the application, aforementioned schemes are based on, transmission unit connects for obtaining the first object API
The first field type data in the response data of receipts;By the first field type data according to the incoming of the second target API
The format of parameter is converted to the second target and is passed to parameter.
In one embodiment of the application, aforementioned schemes are based on, transmission unit is used to receive the first object API
Response data and the query argument information polymerize, the data after being polymerize;By the data after the polymerization according to
The format of the incoming parameter of the second target API is converted to the second target and is passed to parameter.
In one embodiment of the application, it is based on aforementioned schemes, the data query device further include: third executes list
Member, for after the corresponding incoming parameter of any API is passed to corresponding server, if received according to any API
The second field type data determination in response data needs to call other API, then generates institute according to the query argument information
The corresponding incoming parameter of other API is stated, and calls corresponding application server to be rung based on the corresponding incoming parameter of other API
Data are answered, until not needing to call other API according to the second field type data in the response data received are determining.
According to the one side of the embodiment of the present application, a kind of electronic equipment is provided, comprising:
Memory is stored with computer-readable instruction;
Processor reads the computer-readable instruction of memory storage, to execute method as described above.
According to the one side of the embodiment of the present application, a kind of computer program medium is provided, being stored thereon with computer can
Reading instruction makes computer execute method as described above when the computer-readable instruction is executed by the processor of computer.
In embodiments herein, by according to the query argument information and preset inquiry in data inquiry request
The call relation of parameter information and API is determined for the first API from application server inquiry data, to realize according to data
Quickly determination needs to call multiple and different API inquiry request, is determining for the first API from application server inquiry data
Afterwards, query argument information is converted to the first incoming parameter by the incoming parameter format of the first API, and by the first incoming parameter
It is sent to the corresponding application server of the first API, so that the corresponding application server of the first API first is passed to ginseng based on the received
Number feedback response data, and then be directed to the data process method of multiple and different API are also able to achieve required for quick search obtains
Game data is efficiently solved when calling multiple and different API to obtain data from corresponding application server, due to it needs to be determined that
The data process method of multiple and different API, and then cause game question answering system that can not obtain required game data in time
Problem.
Other characteristics and advantages of the application will be apparent from by the following detailed description, or partially by the application
Practice and acquistion.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Application.
Detailed description of the invention
Its example embodiment is described in detail by referring to accompanying drawing, above and other target, feature and the advantage of the application will
It becomes more fully apparent.
Fig. 1 shows a kind of schematic diagram of system architecture according to applied by the embodiment of the present application.
Fig. 2 shows the flow charts according to the data query method of one example embodiment of the application.
Fig. 3 shows the flow chart of the data query method according to one example embodiment of the application.
Fig. 4 shows the specific flow chart of the step S231 of the data query method according to one example embodiment of the application.
Fig. 5 shows the API Calls according to the call relation of API in one example embodiment of the application for parallel calling relationship
Schematic diagram.
Fig. 6 shows the specific flow chart of the step S231 of the data query method according to one example embodiment of the application.
Fig. 7 shows the API Calls according to the call relation of API in one example embodiment of the application for serial call relation
Schematic diagram.
Fig. 8 shows the specific flow chart of the step S430 of the data query method according to one example embodiment of the application.
Fig. 9 shows the specific flow chart of the step S430 of the data query method according to one example embodiment of the application.
Figure 10 shows the flow chart of the data query method according to one example embodiment of the application.
Figure 11 is shown according to the API Calls schematic diagram in one example embodiment of the application.
Figure 12 shows the flow chart of the data query method according to one example embodiment of the application.
Figure 13 shows the tool of the step S260 of the flow chart of the data query method according to one example embodiment of the application
Body flow chart.
Figure 14 diagrammatically illustrates the module map of the data query device of one embodiment according to the application.
Figure 15 shows the hardware structure diagram of a kind of electronic equipment according to one example embodiment of the application.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, providing these example embodiments makes the application's
Description will be more full and complete, and the design of example embodiment is comprehensively communicated to those skilled in the art.Attached drawing
The only schematic illustrations of the application are not necessarily drawn to scale.Identical appended drawing reference indicates same or like in figure
Part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more examples in any suitable manner
In embodiment.In the following description, many details are provided to provide filling to the example embodiment of the application
Sub-argument solution.It will be appreciated, however, by one skilled in the art that the technical solution of the application can be practiced and omit the specific detail
In it is one or more, or can be using other methods, constituent element, step etc..
Some block diagrams shown in the drawings are functional entitys, not necessarily must be with physically or logically independent entity phase
It is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated circuit in fact
These existing functional entitys, or these functions reality is realized in heterogeneous networks and/or processor device and/or microcontroller device
Body.
Fig. 1 shows a kind of schematic diagram of system architecture according to applied by the embodiment of the present application.The system architecture includes extremely
A few terminal device (one of smart phone 101, tablet computer 102 and portable computer 103 as shown in fig. 1 or
It is a variety of, naturally it is also possible to be desktop computer etc.), server 104 and at least one connecting with background server 104 answer
With server 105, wherein server 104 refers to background server corresponding to game question answering system, application server 105
It is then the server for storing various game datas, server 104 and application server 105 all can be have the clothes of software respective
The server of business device and hardware point of view.
104 receiving terminal apparatus of server (smart phone 101, tablet computer 102 or portable computing as shown in fig. 1
Machine 103) initiate data inquiry request, according in data inquiry request query argument information and preset query argument
The call relation of information and application programming interfaces (API, Application Programming Interface), determination are used for
The first API of data is inquired from application server 105, and query argument information is converted by the incoming parameter format of the first API
The first incoming parameter is obtained, the corresponding application server 105 of the first incoming parameter to the first API is sent, so that the first API is corresponding
The first incoming parameter feedback response data based on the received of application server 105, in addition, being fed back for application server 105
Response data, the response data of feedback can also be pushed into terminal device by server 104, with realize according to data query
Data required for request.
As it can be seen that server 104 according to the inquiry in data inquiry request by joining in the technical solution of the embodiment of the present invention
The call relation of number information and preset query argument information and API is determined for inquiring data from application server 105
The first API determined with realizing that quickly determination needs to call multiple and different API according to data inquiry request for from answering
After inquiring the first API of data with server 105, query argument information is converted to by the incoming parameter format of the first API
First incoming parameter, and the first incoming parameter is sent to the corresponding application server of the first API, so that the first API is corresponding
The first incoming parameter feedback response data based on the received of application server 105, and then it is directed to the data processing of multiple and different API
Logic is also able to achieve quick search and obtains required game data, efficiently solve call multiple and different API from corresponding
When application server 105 obtains data, due to it needs to be determined that multiple and different API data process method, and then game is caused to be asked
The problem of game data required for the system of answering can not obtain in time.
Some technical solutions of the embodiment of the present application can the system structure based on system architecture as shown in Figure 1 or its deformation
Frame is embodied.
With reference to Fig. 2, Fig. 2 shows the flow chart according to the data query method of one example embodiment of the application, data are looked into
The executing subject of inquiry method is server 102 described in Fig. 1, which includes:
Step S210 obtains data inquiry request, and the data inquiry request includes query argument information.
Step S220, according to the query argument information and preset query argument information and application programming interfaces API
Call relation, determine for from application server inquiry data the first API.
Step S230 is converted to according to the incoming parameter format of the first API according to the query argument information
One incoming parameter, and the described first incoming parameter is sent to the corresponding application server of the first API, so that described first
The corresponding application server of API the described first incoming parameter feedback response data based on the received.
These steps are described in detail below.
In step S210, data inquiry request is the request for being inquired game data, wherein above-mentioned game
Data can be user's a variety of game element information present in multiple and different game, specifically, game element information can be with
The relevant information of the game contents such as information or game role class information is recorded for stage property flowing water information, game fighting.
Above-mentioned query argument information includes subscriber identity information and game account information, and subscriber identity information can be use
The identification information of family mark or the account pet name etc. for being identified to user identity, game account information include game name,
Game subregion etc. is used for the identification information being identified to the game account of certain game, and subscriber identity information is generally swum with certain money
There are one-to-one relationships for the game account information of play, and certainly, subscriber identity information can also be with multiple game of certain game
There are corresponding relationships for account information, are not limited thereto.It should be noted that query argument information further includes for certain game
Game element information, in order to which certain specific game element information of required inquiry are inquired, it should be pointed out that
The game element information for including in query argument information can be not limited thereto to be one or more.
When user inquires the game data of certain game by game question answering system, user can be according to required inquiry
Game data input relevant query argument information in query page, the query argument information for needing to input may include user
Identity information, game account information and the game element information inquired can pass through after having inputted query argument information
Virtual control trigger data inquiry request provided by query interface.Wherein, user specifically can be provided by the terminal device
Data inquiry request is sent to server by input data inquiry request in query page, terminal device, and server obtains terminal
The data inquiry request of equipment, in order to execute the operation to corresponding application server inquiry game data.
In step S220, server is when to application server request data, particular by calling for from application
The API of server inquiry data inquires game data to realize from application server, the corresponding API of each application server with answer
With server, there are corresponding relationships.Application server is as the data stored to certain game element information of certain game
There are corresponding relationships for the game element information of server, each application server and certain game, it should be pointed out that different
Game element information can have the case where one, source application server or multiple application servers.Server is according to above two
Kind corresponding relationship is established to obtain query argument information and the call relation for the API from application server inquiry data.Service
Device obtains query argument information included in data inquiry request, that is, acquires subscriber identity information, game account information
And the game element information inquired, server can be according to the query argument information in data inquiry request, and presets
Query argument information and API call relation, determine for from application server inquiry game data the first API, so as to
In inquiring game data to the corresponding application server of the first API based on identified first API.
In step S230, server when consulting data to the corresponding application server of API by identified API,
It needs to be pre-configured with the parameter for all API from application server inquiry data, specifically, needing to all
The parameters such as method of calling, business source, function type, request protocol, request method, host name and the path of API are matched
It sets, in addition it is also necessary to be configured to the transformation rule of the incoming parameter of all API, in order to pass through each API respectively to each
The corresponding application server of API inquires data.
After server determines the API for inquiring data from application server, for the ease of passing through the first API
Data are inquired to the corresponding application server of the first API, can be joined inquiry according to the transformation rule of the incoming parameter of provisioning API
Number information is converted to the first incoming parameter according to the incoming parameter format of the first API, i.e., by the user in query argument information
Identity information, game account information and the game attributes information inquired be converted to the first API for from application server into
The incoming parameter of the first of row data query.And after the completion of parameter configuration of the server to all API, server then calls first
First incoming parameter is sent to the corresponding application server of the first API by API, and the corresponding application server of the first API is according to institute
Received first incoming parameter is inquired in the database obtains corresponding game element information, and the game inquired is first
Prime information feeds back to server as the response data of the first incoming parameter, so that server realization is looked into from application server
Inquiry obtains corresponding game data.
Above as can be seen that by according in data inquiry request query argument information and preset query argument
The call relation of information and API is determined for the first API from application server inquiry data, to realize according to data query
Request quickly determination needs to call multiple and different API, determine for from application server inquiry data the first API after,
Query argument information is converted to the first incoming parameter by the incoming parameter format of the first API, and the first incoming parameter is sent out
Application server corresponding to the first API is sent, so that the corresponding application server of the first API the first incoming parameter based on the received
Feedback response data, and then it is directed to the data process method of multiple and different API, it is also able to achieve quick search and obtains required trip
Play data are efficiently solved when calling multiple and different API to obtain data from corresponding application server, due to it needs to be determined that more
The data process method of a difference API, and then cause game question answering system that can not obtain asking for required game data in time
Topic.
The flow chart that the data query method according to one example embodiment of the application is shown with reference to Fig. 3, Fig. 3, in this reality
It applies in example, if the first API is at least two, after obtaining data inquiry request S210, the data query method
Further include:
Step S221 determines the call relation between at least two the oneth API according to the query argument information.
It is described according to the query argument information, be converted to the first biography according to the incoming parameter format of the first API
Enter parameter, and the described first incoming parameter be sent to the step S230 of the corresponding application server of the first API, comprising:
Step S231 converts the query argument information according to the call relation between at least two the oneth API
For the corresponding first incoming parameter of each first API, and the corresponding first incoming parameter of each first API is sent
To the corresponding application server of each first API.
In step S221, from the foregoing it will be appreciated that requesting the game element information of inquiry can exist from least two
The case where different application server, is based on this, and server according to game account information in query argument information and can be looked into
The game element information read determines and obtains the call relation between the corresponding API of at least two application servers, and then determining
Calling logic between the corresponding API of at least two application servers executes in order to realize from the corresponding application of the first API
The operation of server access data.
In step S231, for the ease of passing through at least two the first different API to the corresponding application service of the first API
Device inquires data, and server is according to the call relation between identified at least two the oneth API, according to the incoming of provisioning API
Query argument information is converted to each first API according to the incoming parameter format of each first API by the transformation rule of parameter
Corresponding first incoming parameter, it is corresponding that the first incoming parameter is sent to each first API by each first API of server calls
Application server, the corresponding application server of each first API are inquired in the database according to the received first incoming parameter of institute
Game element information required for obtaining, and using the game element information obtained from inquiry as the number of responses of the first incoming parameter
According to server is fed back to, so that server realization is inquired from the corresponding application server of at least two the oneth API and is corresponded to
Game data be also able to achieve and reach and then when the game element information inquired needs to obtain from multiple application servers
The purpose of game data is inquired, to meet more complicated data query requirements.
The tool of step S231 in data query method according to one example embodiment of the application is shown with reference to Fig. 4, Fig. 4
Body flow chart, in the present embodiment, the call relation according between at least two the oneth API joins the inquiry
Number information is converted to the corresponding first incoming parameter of each first API, and each first API corresponding first is passed
Enter the step S231 that parameter is sent to the corresponding application server of each first API, comprising:
Step S310 is looked into if the call relation between at least two the oneth API is parallel calling relationship by described
It askes the parameter information corresponding with each first API for including in parameter information and is respectively converted into each described first API pairs
The incoming parameter of first answered.
It is corresponding to be sent to each first API by step S320 for the corresponding first incoming parameter of each first API
Application server.
In step s310, when the game element information inquired needs application clothes corresponding from least two the oneth API
When business device obtains respectively, and the two acquisition process are then to illustrate that the calling between at least two the oneth API is closed when being completely independent
System is parallel calling relationship.
Showing referring also to Fig. 5, Fig. 5 according to the call relation of API in one example embodiment of the application is parallel calling
The API Calls schematic diagram of relationship, as shown in figure 5, determining that the call relation between at least two the oneth API is parallel in server
When call relation, server can be simultaneously by the parameter information corresponding with each first API for including in query argument information point
The corresponding first incoming parameter of each first API is not converted to, obtains game in order to execute from the corresponding server of the first API
The operation of data.
Also with continued reference to FIG. 4, in step s 320, server can simultaneously pass each first API corresponding first
Enter parameter and be respectively sent to the corresponding application server of each first API, to realize from the corresponding application service of each first API
Inquiry obtains corresponding game element information in device, is determining that the call relation between at least two the oneth API is parallel calling
When relationship, server can simultaneously turn the parameter information corresponding with each first API for including in query argument information respectively
It is changed to the corresponding first incoming parameter of each first API, is avoided successively to the corresponding application server point of at least two the oneth API
Corresponding game data is not inquired, and then convenient for inquiring required game data from corresponding application server in time, is mentioned
The high efficiency of inquiry game data.
The tool of step S231 in data query method according to one example embodiment of the application is shown with reference to Fig. 6, Fig. 6
Body flow chart, in the present embodiment, the call relation according between at least two the oneth API joins the inquiry
Number information is converted to the corresponding first incoming parameter of each first API, and each first API corresponding first is passed
Enter the step S231 that parameter is sent to the corresponding application server of each first API, including step S410 to step S440:
In step S410, if the call relation between at least two the oneth API is serial call relation, basis
The query argument information is converted to first object according to the format of the incoming parameter of first object API and is passed to parameter, and will
The first object is passed to parameter and is sent to the corresponding application server of the first object API, and the first object API is institute
State the API in the first API.
In one embodiment of the application, when the game element information inquired is needed from least two the oneth API pairs
When the application server answered obtains respectively, and obtain from the corresponding application server of at least two the oneth API the data mistake of game
There are when successive call relation, that is, exist from the corresponding application server acquisition of some preceding the first API of calling sequence for journey
When in response data including the incoming parameter of posterior some the first API of calling sequence, then illustrate at least two the oneth API it
Between call relation be serial call relation.
Showing with reference to Fig. 7, Fig. 7 according to the call relation of API in one example embodiment of the application is parallel calling relationship
API Calls schematic diagram, as shown in fig. 7, determining that the call relation between at least two the oneth API is serial calls in server
When relationship, server is converted to first object according to query argument information, according to the format of the incoming parameter of first object API
Incoming parameter, wherein first object API is relative to other API in the first API, and the preceding API of calling sequence, server will
First object is passed to parameter and is sent to the corresponding application server of first object API, in order to answer from first object API is corresponding
Game data is obtained with server.
Step S420 receives the corresponding application server of the first object API according to connecing by the first object API
The first object received is passed to the response data of parameter feedback.
In one embodiment of the application, the corresponding application server of first object API is according to received first mesh of institute
Mark game element information required for incoming parameter inquire in the database, and using from inquire obtained game element information as
The response data that first object is passed to parameter feeds back to server, so that server receives first by first object API
The response data that the corresponding application server of target API is fed back.
Step S430, according to the received response data of first object API, according to the incoming parameter of the second target API
Format be converted to the second target be passed to parameter, the second target API be the first AIP in come the first object
API after the calling sequence of API.
In one embodiment of the application, in order to realize based on the calling sequence for coming first object API in the first AIP
The game element information that the second target API later goes inquiry not inquire, also according to the received response data of first object API
In existing game element information, according to the format of the incoming parameter of the second target API be converted to the second target be passed to parameter,
In order to inquire the game element information that do not inquired from the corresponding application server of the second target API.
In step S440, the second target is passed to parameter and is sent to the corresponding application service of the second target API by server
Device, in order to obtain game data from the corresponding application server of the second target API.
In one embodiment of the application, the second target is passed to parameter by the second target API and is sent to by server
The corresponding application server of second target API, the corresponding application server of the second target API are passed according to received second target of institute
Enter parameter and inquire the game element information that do not inquired in the database, and will be first from the game that do not inquired inquired
Prime information feeds back to server as the response data that the second target is passed to parameter, so that server passes through the second target
API receives the response data that the corresponding application server of the second target API is fed back.
In the scheme of above-described embodiment, server is determining that the call relation between at least two the oneth API is serial
When call relation, can be orderly by the way that there are the corresponding calling sequences of the API of successive call relation successively to answer from API is corresponding
It is inquired respectively with server and obtains required data, and then realized and handle logic for complicated API data, it also can be in time from correspondence
Application server inquire to obtain required data.
The tool of step S430 in data query method according to one example embodiment of the application is shown with reference to Fig. 8, Fig. 8
Body flow chart, it is in the present embodiment, described according to the received response data of first object API, according to the second target API's
The format of incoming parameter is converted to the step S430 that the second target is passed to parameter, comprising:
Step S510 obtains the first field type data in the received response data of first object API.
Step S520 converts the first field type data according to the format of the incoming parameter of the second target API
Parameter is passed to the second target.
In one embodiment of the application, the second target after coming the calling sequence of first object API is being called
When API consults data from corresponding application server, can exist and need some in the received response data of first object API
Incoming parameter of first field data as the 2nd API.Thus, it is desirable to first will be from the received response data of first object API
First field type data required for determining, and by identified first field type data according to the biography of the second target API
The format for entering parameter is converted to the second target and is passed to parameter, and the second target is passed to parameter by the second target API and is sent
To the corresponding application server of the second target API, in order to make server receive the second target API by the second target API
The response data that corresponding application server is fed back.
The tool of step S430 in data query method according to one example embodiment of the application is shown with reference to Fig. 9, Fig. 9
Body flow chart, it is in the present embodiment, described according to the received response data of first object API, according to the second target API's
The format of incoming parameter is converted to the step S430 that the second target is passed to parameter, comprising:
The received response data of the first object API and the query argument information polymerize, obtain by step S610
Data after to polymerization.
Step S620 converts the data after the polymerization according to the format of the incoming parameter of the second target API
Parameter is passed to the second target.
In one embodiment of the application, the second target after coming the calling sequence of first object API is being called
When API consults data from corresponding application server, can exist and need the received response data of first object API and inquiry
Parameter information is used as the incoming parameter of the second target API simultaneously, and thus needing first will be from the received response data of first object API
And query argument information is polymerize, the data after being polymerize, and by the data after polymerization according to the biography of the second target API
The format for entering parameter is converted to the second target and is passed to parameter, then the second target is passed to parameter by the second target API and is sent
To the corresponding application server of the second target API, in order to make server receive the second target API by the second target API
The response data that corresponding application server is fed back.
The flow chart that the data query method according to one example embodiment of the application is shown with reference to Figure 10, Figure 10, at this
In embodiment, the data query method, further includes:
In step S240, after the corresponding incoming parameter of any API is passed to corresponding server, if according to described
The second field type data determination in the received response data of one API needs to call other API, then according to any API
The second field type in received response data generates the corresponding incoming parameter of other API, and corresponding based on other API
Incoming parameter call corresponding application server to obtain response data, until according to the second word in the response data received
Until the determination of segment type data does not need to call other API.
It shows referring also to Figure 11, Figure 11 according to the API Calls schematic diagram in one example embodiment of the application, such as Figure 11
Shown, server, can be according to received from any API after the corresponding incoming parameter of any API is passed to corresponding server
Whether the second field type data in response data need to continue to call other API to determine, when needing to call other API,
The corresponding incoming parameter of other API is then generated according to the second field type in the received response data of any API, in order to base
Corresponding application server is called to obtain response data in the corresponding incoming parameter of other API.It should be noted that based on the
Two field type data come when determining other API that needs call, can according to the field value for including of the second field type come
It determines and needs which API the other API called are specially, the field value for including of the second field type is different, required tune
It also will be different with API.
When other according to not needing to call from the second field type data determination in the received response data of any API
API then stops calling other API, and the game data inquired required for thereby determining that, which has been inquired, to be finished.
The flow chart that the data query method according to one example embodiment of the application is shown with reference to Figure 12, Figure 12, at this
In embodiment, the query argument information is being converted to the first incoming ginseng according to the incoming parameter format of the first API
Number, and the described first incoming parameter is sent to after the step S230 of the corresponding application server of the first API, the number
Further include according to querying method;
It is described based on the received to receive the corresponding application server of the first API by the first API by step S250
The response data of first incoming parameter feedback;
Step S260 converts the received response data of the first API according to the format of preset display data,
Obtain display data;
The displaying is pushed to terminal device, so that terminal device shows the exhibition in query interface by step S270
Registration evidence.
In step s 250, server is by receiving the corresponding application server of the first API based on the received from the first API
The response data of first incoming parameter feedback, and then realize the purpose that game data is consulted from application server.
In step S260, for the ease of being shown to the game data consulted from application server, server
The transformation rule to all API response data received from the corresponding application server of API is also needed to configure, in order to
It is shown in query interface progress, when being configured, needs to carry out field name mapping, field value key-value mapping,
Field value calculates matching for a variety of mapping relations such as mapping, the mapping of field value condition, the mapping of time field, the connection mapping of multiword segment value
It sets, the mapping relations configured can also include converting to response data certainly, in order to obtain on inquiry circle
The other transformation rules for the display data that face is shown, are not limited thereto.
Wherein, field name maps the data for the data of certain field type to be converted to another field type, with
Convenient for being shown in query page, such as the data for the field type that user identity proves are converted to the field of user's pet name
The data of type.
Field value key-value mapping is converted to the field for the key value in the data according to certain field type
The corresponding field value of the data of type, in order to be shown in query page, such as by the data of the field type of stage property ID
Be converted to the data of the field type of stage property title.
Field value calculates mapping and is summed to obtain displaying number for the corresponding field value of data to certain field type
According in order to be shown in query page.
The mapping of field value condition is predetermined for the field value of the data of field type to be mapped to when meeting preset condition
Field value, and then be shown in query page.
The mapping of time field is with about to for indicating that time field data is converted to for carrying out query page
The time field data being shown.
The connection mapping of multiword segment value is attached for the data of multiple field types, obtains display data, in order to
Query page is shown.
In server matching to the transformation rule of all API response data received from the corresponding application server of API
After the completion of setting, for that can be connect according to the format of preset display data to from the first API from the first received response data of API
The response data of receipts is converted, and display data is obtained, in order to be shown in query interface.
Show the step S260's in the data query method according to one example embodiment of the application with reference to Figure 13, Figure 13
Specific flow chart, in the present embodiment, if the first API is at least two, by the received response data of the first API
It is converted according to the format of preset display data, obtains the step S260 of display data, comprising:
Step S2601, at least two received response datas of the oneth API respectively according to preset display data
Format is converted, the data after obtaining at least two conversions.
Data after at least two conversions are carried out polymerization processing, obtain display data by step S2602.
In one embodiment of the application, if the first API is at least two, for corresponding from least two the oneth API
Server received by response data, then server can be at least two the oneth received response datas of API respectively according to pre-
If the format of display data converted, which can synchronize progress, asynchronous can also carry out.Server will be converted to
Data after at least two conversions carry out polymerization and handle to obtain display data, wherein above-mentioned display data be query interface into
Row shows a data acquisition system.
Also please continue to refer to figure, in step S270, displaying is pushed to terminal device by server, so that terminal device
Display data is shown in query interface, so that user checks the game data inquired in query interface.
Figure 14 diagrammatically illustrates the module map of the data query device of one embodiment according to the application.
Referring to Fig.1 shown in 4, according to the data query device 700 of one embodiment of the application, comprising: acquiring unit
710, the first execution unit 720 and transmission unit 730.
Acquiring unit 710, for obtaining data inquiry request, the data inquiry request includes query argument information.
First execution unit 720, for according to the query argument information and preset query argument information and API
Call relation, determine for from application server inquiry data the first API.
Transmission unit 730, for turning according to the incoming parameter format of the first API according to the query argument information
It gets in return to the first incoming parameter, and the described first incoming parameter is sent to the corresponding application server of the first API, so that
The corresponding application server of first API the described first incoming parameter feedback response data based on the received.
In one embodiment of the application, the data query device, further includes: receiving unit, for by described
First API receives the number of responses of the corresponding application server of the first API the described first incoming parameter feedback based on the received
According to;Converting unit, for the received response data of the first API to be converted according to the format of preset display data,
Obtain display data;Push unit, for the displaying to be pushed to terminal device, so that terminal device is in query interface exhibition
Show the display data.
In one embodiment of the application, if the first API is at least two, first converting unit is used for
At least two received response datas of the oneth API are converted according to the format of default registration evidence respectively, are obtained at least
Data after two conversions;Data after at least two conversions are subjected to polymerization processing, obtain display data.
In one embodiment of the application, if the first API is at least two, the data query device is also wrapped
It includes: the second execution unit, for determining that the calling between at least two the oneth API is closed according to the query argument information
System;Transmission unit is used to be converted to the query argument information according to the call relation between at least two the oneth API
The corresponding first incoming parameter of each first API, and the corresponding first incoming parameter of each first API is sent to
The corresponding application server of each first API:
In one embodiment of the application, if transmission unit 730 is for the calling between at least two the oneth API
Relationship is parallel calling relationship, then will include that parameter corresponding with each first API is believed in the query argument information
Breath is respectively converted into the corresponding first incoming parameter of each first API;Each first API corresponding first is passed to
Parameter is sent to the corresponding application server of each first API.
In one embodiment of the application, if transmission unit 730 is for the calling between at least two the oneth API
Relationship is serial call relation, then according to the query argument information, converts according to the format of the incoming parameter of first object API
It obtains first object and is passed to parameter, and the first object is passed to parameter and is sent to the corresponding application of the first object API
Server, the first object API are the API in the first API;First mesh is received by the first object API
Marking the corresponding application server of API, the first object is passed to the response data of parameter feedback based on the received;According to described
The one received response data of target API is converted to the incoming ginseng of the second target according to the format of the incoming parameter of the second target API
Number, the second target API are the API come after the calling sequence of the first object API in the first AIP;Pass through
Second target is passed to parameter and is sent to the corresponding application server of the second target API by the second target API, with
Making the corresponding application server of the second target API, second target is passed to parameter feedback response data based on the received.
In one embodiment of the application, transmission unit 730 is for obtaining the received number of responses of first object API
The first field type data in;By the first field type data according to the format of the incoming parameter of the second target API
It is converted to the second target and is passed to parameter.
In one embodiment of the application, aforementioned schemes are based on, transmission unit 730 is used for the first object API
Received response data and the query argument information are polymerize, the data after being polymerize;By the data after the polymerization
The second target, which is converted to, according to the format of the incoming parameter of the second target API is passed to parameter.
In one embodiment of the application, the data query device further include: third execution unit, for that will appoint
The corresponding incoming parameter of one API is passed to after corresponding server, if according in any received response data of API
The determination of two field type data needs to call other API, then it is corresponding to generate other API according to the query argument information
Incoming parameter, and call corresponding application server to obtain response data based on the corresponding incoming parameter of other API, until basis
Until the second field type data determination in the response data received does not need to call other API.
The hardware structure diagram of a kind of electronic equipment according to one example embodiment of the application is shown with reference to Figure 15, Figure 15,
The data query method of the embodiment of the present application can be implemented by a kind of electronic equipment such as Figure 15, and wherein the electronic equipment can be with
For server 104 shown in FIG. 1, the server 104 according to the embodiment of the present application is described referring to Figure 15.What Figure 15 was shown
Server 104 is only an example, should not function to the embodiment of the present application and use scope bring any restrictions.
As shown in figure 15, server 104 is showed in the form of universal computing device.The component of server 104 may include
But it is not limited to: at least one above-mentioned processing unit 810, at least one above-mentioned storage unit 820, connection different system components (packet
Include storage unit 820 and processing unit 810) bus 830.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 810
Row, so that the processing unit 810 executes described in the description section of this specification above-mentioned example method according to the application
The step of various illustrative embodiments.For example, the processing unit 810 can be executed such as each step in previous embodiment
Suddenly.
Storage unit 820 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 8201 and/or cache memory unit 8202, it can further include read-only memory unit (ROM) 8203.
Storage unit 820 can also include program/utility with one group of (at least one) program module 8205
8204, such program module 8205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 830 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Server 104 can also be with one or more external equipments 900 (such as keyboard, sensing equipment, bluetooth equipment etc.)
Communication, can also be enabled a user to one or more equipment interact with the server 104 communicate, and/or with make the clothes
Any equipment (such as router, modem etc. that business device 104 can be communicated with one or more of the other calculating equipment
Deng) communication.This communication can be carried out by input/output (I/O) interface 650.Also, server 104 can also pass through net
Network adapter 860 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, such as because
Special net) communication.As shown, network adapter 860 is communicated by bus 830 with other modules of server 104.It should be bright
It is white, although not shown in the drawings, other hardware and/or software module can be used in conjunction with server 104, including but not limited to: micro-
Code, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and data backup
Storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the application
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to the application embodiment
Method.
In the exemplary embodiment of the application, a kind of computer program medium is additionally provided, computer is stored thereon with
Readable instruction makes computer execute the above method and implements when the computer-readable instruction is executed by the processor of computer
The method of example part description.
According to one embodiment of the application, a kind of journey for realizing the method in above method embodiment is additionally provided
Sequence product, can be using portable compact disc read only memory (CD-ROM) and including program code, and can set in terminal
It is standby, such as run on PC.However, the program product of the application is without being limited thereto, in this document, readable storage medium storing program for executing can
With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
Person is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal,
Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with any combination of one or more programming languages come write for execute the application operation program
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, according to presently filed embodiment, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the application in the accompanying drawings with particular order, this does not really want
These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize
Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/
Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the application
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to the application embodiment
Method.
Those skilled in the art will readily occur to its of the application after considering specification and practicing application disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the application are by appended
Claim is pointed out.
Claims (10)
1. a kind of data query method characterized by comprising
Data inquiry request is obtained, the data inquiry request includes query argument information;
According to the call relation of the query argument information and preset query argument information and application programming interfaces API, really
Fixed the first API for from application server inquiry data;
According to the query argument information, it is converted to the first incoming parameter according to the incoming parameter format of the first API, and
Described first incoming parameter is sent to the corresponding application server of the first API, so that the corresponding application of the first API
Server the described first incoming parameter feedback response data based on the received.
2. data query method according to claim 1, which is characterized in that according to the query argument information, according to
The incoming parameter format of first API is converted to the first incoming parameter, and the described first incoming parameter is sent to described
After the corresponding application server of first API, the data query method further include:
The corresponding application server of the first API the described first incoming parameter based on the received is received by the first API
The response data of feedback;
The received response data of first API is converted according to the format of preset display data, obtains display data;
The displaying is pushed into terminal device, so that terminal device shows the display data in query interface.
3. data query method according to claim 2, which is characterized in that, will if the first API is at least two
The received response data of first API is converted according to the format of preset display data, obtains display data, comprising:
At least two received response datas of the oneth API are converted according to the format of preset display data respectively,
Data after obtaining at least two conversions;
Data after at least two conversions are subjected to polymerization processing, obtain display data.
4. data query method according to claim 1, which is characterized in that if the first API is at least two,
After obtaining data inquiry request, the data query method further include:
The call relation between at least two the oneth API is determined according to the query argument information;
It is described according to the query argument information, be converted to the first incoming ginseng according to the incoming parameter format of the first API
Number, and the described first incoming parameter is sent to the corresponding application server of the first API, comprising:
According to the call relation between at least two the oneth API, the query argument information is converted to each described
The corresponding first incoming parameter of one API, and the corresponding first incoming parameter of each first API is sent to each described
The corresponding application server of one API.
5. data query method according to claim 4, which is characterized in that described according at least two the oneth API
Between call relation, the query argument information is converted into the corresponding first incoming parameter of each first API, and will
The corresponding first incoming parameter of each first API is sent to the corresponding application server of each first API, comprising:
If the call relation between at least two the oneth API is parallel calling relationship, will be in the query argument information
It is corresponding first incoming that the parameter information corresponding with each first API for including is respectively converted into each first API
Parameter;
The corresponding first incoming parameter of each first API is sent to the corresponding application server of each first API.
6. data query method according to claim 4, which is characterized in that described according at least two the oneth API
Between call relation, the query argument information is converted into the corresponding first incoming parameter of each first API, and will
The corresponding first incoming parameter of each first API is sent to the corresponding application server of each first API, comprising:
If call relation between at least two the oneth API is serial call relation, according to the query argument information,
First object is converted to according to the format of the incoming parameter of first object API and is passed to parameter, and the first object is passed to
Parameter is sent to the corresponding application server of the first object API, and the first object API is in the first API
API;
The corresponding application server of the first object API based on the received described first is received by the first object API
Target is passed to the response data of parameter feedback;
According to the received response data of first object API, it is converted to according to the format of the incoming parameter of the second target API
Second target is passed to parameter, and the second target API is the calling sequence that the first object API is come in the first AIP
API later;
Second target is passed to parameter by the second target API and is sent to the corresponding application of the second target API
Server, so that second target is passed to parameter feedback to the corresponding application server of the second target API based on the received
Response data.
7. data query method according to claim 6, which is characterized in that described to be received according to the first object API
Response data, according to the format of the incoming parameter of the second target API be converted to the second target be passed to parameter, comprising:
Obtain the first field type data in the received response data of first object API;
The first field type data are converted to the second target according to the format of the incoming parameter of the second target API to be passed to
Parameter.
8. data query method according to claim 6, which is characterized in that described to be received according to the first object API
Response data, according to the format of the incoming parameter of the second target API be converted to the second target be passed to parameter, comprising:
The received response data of the first object API and the query argument information are polymerize, the number after being polymerize
According to;
Data after the polymerization are converted to the second target according to the format of the incoming parameter of the second target API to be passed to
Parameter.
9. data query method according to claim 2, which is characterized in that the data query method, further includes:
After the corresponding incoming parameter of any API is passed to corresponding server, if according to any received response of API
The second field type data determination in data needs to call other API, then according in any received response data of API
The second field type generate the corresponding incoming parameter of the other API, and phase is called based on the corresponding incoming parameter of other API
The application server answered obtains response data, until being determined not according to the second field type data in the response data received
Until needing to call other API.
10. a kind of data query device characterized by comprising
Acquiring unit, for obtaining data inquiry request, the data inquiry request includes query argument information;
First execution unit, for being closed according to the query argument information and preset query argument information and the calling of API
System determines for the first API from application server inquiry data;
Transmission unit is converted to the according to the incoming parameter format of the first API for according to the query argument information
One incoming parameter, and the described first incoming parameter is sent to the corresponding application server of the first API, so that described first
The corresponding application server of API the described first incoming parameter feedback response data based on the received.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910690386.6A CN110489440B (en) | 2019-07-29 | 2019-07-29 | Data query method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910690386.6A CN110489440B (en) | 2019-07-29 | 2019-07-29 | Data query method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110489440A true CN110489440A (en) | 2019-11-22 |
CN110489440B CN110489440B (en) | 2024-04-12 |
Family
ID=68548496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910690386.6A Active CN110489440B (en) | 2019-07-29 | 2019-07-29 | Data query method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110489440B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026574A (en) * | 2019-11-25 | 2020-04-17 | 中盈优创资讯科技有限公司 | Method and device for diagnosing Elasticissearch cluster problems |
CN111143397A (en) * | 2019-12-10 | 2020-05-12 | 跬云(上海)信息科技有限公司 | Hybrid data query method and device and storage medium |
CN111459991A (en) * | 2020-04-15 | 2020-07-28 | 中国银行股份有限公司 | Information query method and device |
CN112417016A (en) * | 2020-11-18 | 2021-02-26 | 北京锐安科技有限公司 | Data exchange method, system, equipment and storage medium |
CN115599983A (en) * | 2022-12-09 | 2023-01-13 | 思创数码科技股份有限公司(Cn) | Data query method and device, readable storage medium and electronic equipment |
CN110489440B (en) * | 2019-07-29 | 2024-04-12 | 腾讯科技(深圳)有限公司 | Data query method and device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108108439A (en) * | 2017-12-21 | 2018-06-01 | 北京奇艺世纪科技有限公司 | A kind of data query method, apparatus and electronic equipment |
US20190065520A1 (en) * | 2017-08-30 | 2019-02-28 | Ca, Inc. | Transactional data source integration |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489440B (en) * | 2019-07-29 | 2024-04-12 | 腾讯科技(深圳)有限公司 | Data query method and device |
-
2019
- 2019-07-29 CN CN201910690386.6A patent/CN110489440B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190065520A1 (en) * | 2017-08-30 | 2019-02-28 | Ca, Inc. | Transactional data source integration |
CN108108439A (en) * | 2017-12-21 | 2018-06-01 | 北京奇艺世纪科技有限公司 | A kind of data query method, apparatus and electronic equipment |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110489440B (en) * | 2019-07-29 | 2024-04-12 | 腾讯科技(深圳)有限公司 | Data query method and device |
CN111026574A (en) * | 2019-11-25 | 2020-04-17 | 中盈优创资讯科技有限公司 | Method and device for diagnosing Elasticissearch cluster problems |
CN111026574B (en) * | 2019-11-25 | 2024-03-12 | 中盈优创资讯科技有限公司 | Method and device for diagnosing elastiscearch cluster problem |
CN111143397A (en) * | 2019-12-10 | 2020-05-12 | 跬云(上海)信息科技有限公司 | Hybrid data query method and device and storage medium |
CN111143397B (en) * | 2019-12-10 | 2021-04-13 | 跬云(上海)信息科技有限公司 | Hybrid data query method and device and storage medium |
CN111459991A (en) * | 2020-04-15 | 2020-07-28 | 中国银行股份有限公司 | Information query method and device |
CN111459991B (en) * | 2020-04-15 | 2023-04-07 | 中国银行股份有限公司 | Information query method and device |
CN112417016A (en) * | 2020-11-18 | 2021-02-26 | 北京锐安科技有限公司 | Data exchange method, system, equipment and storage medium |
CN112417016B (en) * | 2020-11-18 | 2024-03-22 | 北京锐安科技有限公司 | Data exchange method, system, equipment and storage medium |
CN115599983A (en) * | 2022-12-09 | 2023-01-13 | 思创数码科技股份有限公司(Cn) | Data query method and device, readable storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110489440B (en) | 2024-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110489440A (en) | Data query method and apparatus | |
CN103631853B (en) | Phonetic search based on correlation and response | |
CN104765621B (en) | A kind of method and system of the deployment program in clustered node | |
CN109087639A (en) | Method for voice recognition, device, electronic equipment and computer-readable medium | |
US20170103070A1 (en) | Data Query Method Supporting Natural Language, Open Platform, and User Terminal | |
CN108540831A (en) | Method and apparatus for pushed information | |
CN107273227A (en) | Using communication means, device, equipment and storage medium | |
WO2019207379A1 (en) | System and method for providing a response to a user query using a visual assistant | |
CN108694941A (en) | For the method for interactive session, information processing unit and product | |
CN107766393A (en) | Information processing method, client and server based on database | |
CN109918492A (en) | System is arranged in a kind of human-computer dialogue setting method and human-computer dialogue | |
CN109543154A (en) | Method for converting types, device, storage medium and the electronic equipment of list data | |
CN111309857A (en) | Processing method and processing device | |
CN109669787A (en) | Data transmission method and device, storage medium, electronic equipment | |
JP2005266192A5 (en) | ||
CN109002434A (en) | Customer service question and answer matching process, server and storage medium | |
CN110750295B (en) | Information processing method, device, electronic equipment and storage medium | |
CN110460647A (en) | Dispatching method, device, electronic equipment and the storage medium of network node | |
US20200285816A1 (en) | Information conversion method and apparatus, storage medium, and electronic apparatus | |
CN115964984B (en) | Method and device for balanced winding of digital chip layout | |
CN108959294A (en) | A kind of method and apparatus accessing search engine | |
CN116016780A (en) | Session service configuration method, device, equipment and medium based on multiple NLPs | |
CN110223694A (en) | Method of speech processing, system and device | |
CN109471792A (en) | Test control method and device, electronic equipment, medium | |
CN110058833A (en) | External control device, sound conversational control system, control method and recording 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 |