CN109871251A - A kind of processing method of response data, device, storage medium and terminal device - Google Patents

A kind of processing method of response data, device, storage medium and terminal device Download PDF

Info

Publication number
CN109871251A
CN109871251A CN201910042833.7A CN201910042833A CN109871251A CN 109871251 A CN109871251 A CN 109871251A CN 201910042833 A CN201910042833 A CN 201910042833A CN 109871251 A CN109871251 A CN 109871251A
Authority
CN
China
Prior art keywords
response data
data
language form
access request
preset
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
Application number
CN201910042833.7A
Other languages
Chinese (zh)
Other versions
CN109871251B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910042833.7A priority Critical patent/CN109871251B/en
Publication of CN109871251A publication Critical patent/CN109871251A/en
Application granted granted Critical
Publication of CN109871251B publication Critical patent/CN109871251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Field of computer technology of the present invention more particularly to a kind of processing method of response data, device, storage medium and terminal device.The described method includes: receiving the access request of application terminal, and the requested language form in application terminal is determined according to access request;Access request is parsed, and the access request after parsing is sent to each micro services, so that each micro services respond the access request received, and returns to corresponding first response data;The first response data that each micro services are returned is obtained, and searches the second response data that is corresponding with each first response data and matching with language form from presetting database;Second response data is back to application terminal, to be handled by carrying out unified internationalization to all response datas, to avoid carrying out respective internationalization processing in each micro services, improve internationalization treatment effeciency, reduce code redundancy, the readability and alterability of code are enhanced, carry out code maintenance is facilitated.

Description

A kind of processing method of response data, device, storage medium and terminal device
Technical field
The present invention relates to field of computer technology more particularly to a kind of processing method of response data, device, computer can Read storage medium and terminal device.
Background technique
With the rise of internet and the growth of user's explosion type, towards user group diversification is also presented, no longer limit to In domestic perhaps domestic local user be to allow the application to be carried out according to user area or the different of language setting Different responses generally requires to carry out internationalization processing to the response data that interface each in application program is returned, and existing Internationalize processing mode, and respective internationalization processing is usually carried out in each interface, this to carry out respectively in each interface Not only make internationalization treatment effeciency lower from the mode of internationalization processing, but also also cause code redundancy, is not easy to carry out generation The reading and modification of code.
Summary of the invention
The embodiment of the invention provides a kind of processing method of response data, device, computer readable storage medium and ends End equipment can carry out unified internationalization processing to all response datas, avoid carrying out respective state in each micro services Borderization processing, effectively increases the efficiency of internationalization processing, reduces code redundancy, enhances the readability of code and can modify Property, facilitate carry out code maintenance.
The embodiment of the present invention in a first aspect, providing a kind of processing method of response data, comprising:
The access request of application terminal is received, and the requested language in the application terminal is determined according to the access request Type;
The access request is parsed, and the access request after parsing is sent to each micro services, so that each micro- Service responds the access request received, and returns to corresponding first response data;
The first response data that each micro services are returned is obtained, and is searched and each first response data from presetting database The second response data that is corresponding and matching with the language form, wherein configured with each the in the presetting database Second response data of each language form corresponding to one response data;
Second response data is back to the application terminal.
The second aspect of the embodiment of the present invention provides a kind of processing unit of response data, comprising:
Access request receiving module determines institute for receiving the access request of application terminal, and according to the access request State the requested language form in application terminal;
Access request respond module is sent for parsing to the access request, and by the access request after parsing To each micro services, so that each micro services respond the access request received, and corresponding first response data is returned to;
Response data processing module, the first response data returned for obtaining each micro services, and from presetting database It is middle to search the second response data that is corresponding with each first response data and matching with the language form, wherein described The second response data configured with each language form corresponding to each first response data in presetting database;
Response data return module, for second response data to be back to the application terminal.
The third aspect of the embodiment of the present invention, provides a kind of computer readable storage medium, described computer-readable to deposit Storage media is stored with computer-readable instruction, and such as aforementioned first aspect is realized when the computer-readable instruction is executed by processor The step of processing method of the response data.
The fourth aspect of the embodiment of the present invention, provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer-readable instruction that can run on the processor, the processor executes the computer can Following steps are realized when reading instruction:
The access request of application terminal is received, and the requested language in the application terminal is determined according to the access request Type;
The access request is parsed, and the access request after parsing is sent to each micro services, so that each micro- Service responds the access request received, and returns to corresponding first response data;
The first response data that each micro services are returned is obtained, and is searched and each first response data from presetting database The second response data that is corresponding and matching with the language form, wherein configured with each the in the presetting database Second response data of each language form corresponding to one response data;
Second response data is back to the application terminal.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, after receiving the access request of application terminal, it can be determined according to the access request The requested language form in application terminal, and the access request is parsed, while by the access request after parsing Each micro services are sent to, so that each micro services respond the access request received, and return to corresponding first response Data, and when getting the first response data that each micro services are returned, then each first response data can be unified Internationalization processing, and the second response data that internationalization is handled is back to the application terminal, it can be by all Response data carries out unified internationalization processing, to avoid carrying out respective internationalization processing in each micro services, effectively mentions The high treatment effeciency of internationalization processing, reduces code redundancy, enhances the readability and alterability of code, facilitate progress Code maintenance.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of one embodiment flow chart of the processing method of response data in the embodiment of the present invention;
Fig. 2 obtains the second response for the processing method of response data a kind of in the embodiment of the present invention under an application scenarios The flow diagram of data;
Fig. 3 obtains the second sound for the processing method of response data a kind of in the embodiment of the present invention under another application scenarios Answer the flow diagram of data;
Fig. 4 is a kind of one embodiment structure chart of the processing unit of response data in the embodiment of the present invention;
Fig. 5 is a kind of schematic diagram for terminal device that one embodiment of the invention provides.
Specific embodiment
The embodiment of the invention provides a kind of processing method of response data, device, computer readable storage medium and ends End equipment handles for carrying out unified internationalization to all response datas, avoids carrying out respective state in each micro services Borderization processing, effectively increase internationalization processing treatment effeciency, reduce code redundancy, enhance code readability and can Modification property, facilitates carry out code maintenance.
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field Those of ordinary skill's all other embodiment obtained without making creative work, belongs to protection of the present invention Range.
Referring to Fig. 1, the treating method comprises the embodiment of the invention provides a kind of processing method of response data:
Step S101, the access request of application terminal is received, and the application terminal institute is determined according to the access request The language form of request;
In the embodiment of the present invention, the access request of application terminal can be received by gateway gateway, and can be according to the visit Ask that request determines the requested language form in application terminal, the object language label that can such as carry according to the access request The requested language form in the application terminal is determined, to return to corresponding sound to the application terminal according to the language form Answer data.
Step S102, the access request is parsed, and the access request after parsing is sent to each micro services, with So that each micro services respond the access request received, and return to corresponding first response data;
It is understood that after the access request for receiving the application terminal by gateway, it can be to the access Request carries out dissection process, can such as be carried out at parsing according to the collaborative work situation between each micro services to the access request Reason, resolves into multiple sub- requests corresponding to each micro services for the access request, and this multiple sub- request is passed through Gateway is forwarded to respectively in corresponding micro services, so that each micro services can respond received son request, is obtained To corresponding first response data, and it can return to first response data to gateway.
Step S103, the first response data that each micro services are returned is obtained, and is searched from presetting database and each the One response data is corresponding and the second response data for matching with the language form, wherein in the presetting database The second response data configured with each language form corresponding to each first response data;
It, can be to each first before the first response data that each micro services return reaches gateway in the embodiment of the present invention Response data carries out intercept process can obtain each micro- that is, before the first response data that each micro services return reaches gateway The first returned response data, and the language form according to corresponding to the access request are serviced, is looked into from presetting database Look for the second response data that is corresponding with each first response data and matching with the language form, wherein described default The second response data configured with each language form corresponding to each first response data in database.In the embodiment of the present invention, By carrying out unified interception to each first response data, then again before the first response data returned reaches gateway It is handled by carrying out data search in the preset database to carry out unified internationalization to each first response data, so that It does not need to carry out internationalization processing in each micro services, effectively reduces code redundancy, enhance code readability and can Modification property improves the treatment effeciency of internationalization processing.
Such as in a certain concrete application scene, configured with corresponding with the first response data A the in the presetting database Two response data B, the second response data C, the second response data D, the second response data E and the second response data F, wherein The language form of second response data B be English, the second response data C language form be the language of Japanese, the second response data D Speech type be French, the second response data E language form be German, the second response data F language form be Korean, and certain The first response data that one access request is returned is the first response data A, and determines the application eventually according to the access request Hold requested language form be French when, then from presetting database can find it is corresponding with the first response data A and accord with The second response data for closing requested language form is the second response data D.
Further, as shown in Fig. 2, it is described from presetting database search it is corresponding with each first response data and The second response data to match with the language form may include:
Step S201, history lookup number of first response data in the language form is obtained;
Step S202, judge whether the history lookup number is greater than preset times threshold value;
If step S203, the described history lookup number is greater than the preset times threshold value, looked into from preset cache unit Look for the second response data that is corresponding with first response data and matching with the language form;
If step S204, the described history lookup number is less than or equal to the preset times threshold value, preset from described The second response data that is corresponding with first response data and matching with the language form is searched in database.
In the embodiment of the present invention, for the processing speed and efficiency for improving internationalization processing, the usage experience of user is promoted, it can Hot spot data often accessed in presetting database is stored in preset cache unit, hot spot data can be such as stored in In Redis server, thus needing the second response handled as a certain language form that a certain first response data internationalizes Before data, can first determine whether the second response data of the language form is hot spot data, if the second of the language form If response data is hot spot data, then second response data can be directly searched from the Redis server;If the class of languages If second response data of type is not hot spot data, then second response data can be searched from presetting database.
For above-mentioned steps S210 to step S204, it is to be understood that, can be secondary according to searching in an application scenarios Number can carry out the setting of preset times threshold value to determine hot spot data in advance, such as can be as the case may be by described default time Number threshold value is set as 10 times, that is to say, that when history lookup number of a certain first response data in a certain language form is big It, then can be true by the second response data that is corresponding with first response data and matching with the language form when 10 times It is set to hot spot data, and is stored in Redis server.
Here, needing the second response data handled as a certain language form that a certain first response data internationalizes When, history lookup number of first response data in the language form can be obtained first, when the history lookup number is greater than The preset times threshold value, it is such as when the history lookup number is greater than 10 times, then it is believed that corresponding with first response data And the second response data for matching with the language form be hot spot data, described the can be carried out from Redis server The lookup of two response datas improves internationalization processing speed and efficiency so as to improve data search speed;And work as the history lookup Number is less than or equal to preset times threshold value, such as when the history lookup number is 4 times, then it is believed that with first number of responses It is not hot spot data according to the second response data that is corresponding and matching with the language form, it can be from presetting database The middle lookup for carrying out second response data.
Preferably, as shown in figure 3, it is described from presetting database search it is corresponding with each first response data and with The second response data that the language form matches may include:
Step S301, the data type of first response data is obtained;
Step S302, judge whether the data type belongs to preset data type;
If step S303, the described data type belongs to preset data type, it is pre- to judge whether the language form belongs to If language form;
If step S304, the described language form belongs to preset language type, from preset cache unit search with it is described First response data is corresponding and the second response data for matching with the language form;
If step S305, the described data type is not belonging to preset data type or the language form is not belonging to default language Say type, then from the presetting database search it is corresponding with first response data and with the language form phase Matched second response data.
For above-mentioned steps S301 to step S305, in another application scenarios, the embodiment of the present invention can also be according to number The determination of hot spot data is carried out according to type and language form, it such as the case may be can be by the EC for needing often to obtain (China East), the response data of the English type of areal types such as SC (south China) is determined as hot spot data, and stores to Redis server In.
Here, needing the second response data handled as a certain language form that a certain first response data internationalizes When, the data type of first response data can be obtained first, and determines whether the data type of first response data belongs to Preset data type such as determines whether the data type of first response data is areal type data, when first number of responses According to data type be areal type data when, then can further judge whether the required language form of internationalization processing belongs to In preset language type, such as internationalization processing, whether required language form is English, required by internationalization processing Language form when being English, then it is believed that it is corresponding with first response data and match with the language form the Two response datas are hot spot data, can carry out the lookup of second response data, from Redis server so as to improve number According to search speed, internationalization processing speed and efficiency are improved;And the data type of first response data is not belonging to areal type Data, although the data type of first response data belong to areal type data, internationalization processing is required It is when language form is not English, then it is believed that corresponding with first response data and match with the language form Second response data is not hot spot data, and the lookup of second response data can be carried out from presetting database.
Optionally, in the embodiment of the present invention, it is described from presetting database search it is corresponding with each first response data, And the second response data to match with the language form, may include:
Step a, the attribute information of each first response data is obtained;
Step b, it according to the attribute information, is searched from the presetting database opposite with each first response data The second response data that is answering and matching with the language form.
For above-mentioned steps a and step b, it is to be understood that in the embodiment of the present invention, in the presetting database, Classification storage can be carried out according to the second response data of the attribute information of the first response data to each language form, it such as can be according to the The classification (category) and/or keyword (key) of one response data carry out classification storage to the second response data, thus, After getting the first response data, the attribute information of first response data can be obtained immediately, then can be believed according to the attribute Breath goes in presetting database to carry out the quick lookup of the second response data.
Here, such as describing enumerated value EC (East China) and the SC (China of region because the value of enumeration type generally has invariance South) etc., and indicate value Available (available), Pending (in creation) and the Destroyed (deletion) of resource status Deng internationalization value, i.e. the second response data of its each language form can be looked into directly according to keyword in the preset database Call in acquisition;And the internationalization value of character string type then can by it is customized note@i18N in attribute information " key " with " category " first finds the tables of data in presetting database where the category, is then carried out according to keyword key specific Data acquisition.
It should be noted that in preset cache unit, it can also be according to the attribute information of the first response data to relevant Second response data carries out classification storage, and when carrying out the lookup of the second response data in preset cache unit, can also be by It is executed according to step a and step b.
Step S104, second response data is back to the application terminal.
It is understood that being intercepted by unified, and carries out unified internationalization and handle to obtain corresponding second number of responses According to rear, then corresponding second response data can be back to by the application terminal by gateway, so that in the application The display of processing result is carried out in terminal according to requested language form.
Further, in the embodiment of the present invention, the processing method of the response data can also include:
Step c, when receiving data update request, more new data is obtained;
Step d, according to corresponding second response data in the more new data update presetting database, or according to The more new data updates corresponding in corresponding second response data and the preset cache unit in the presetting database Second response data.
For above-mentioned steps c and step d, it is to be understood that in the embodiment of the present invention, can also according to the actual situation into The update of each second response data of row, to guarantee the correctness of the second response data.Specifically, receive data update ask When asking, corresponding more new data can be obtained, and corresponding second response in presetting database can be updated according to the more new data Data, while can also judge whether the more new data is hot spot data, when the more new data is hot spot data, may be used also According to corresponding second response data in preset cache unit described in the update data synchronization updating.
In the embodiment of the present invention, after the access request for receiving application terminal, institute can be determined according to the access request The requested language form in application terminal is stated, and the access request is parsed, therewith sends out the access request after parsing It send to each micro services, so that each micro services respond received access request, and returns to corresponding first response Data, and after getting the first response data that each micro services are returned, then each first response data can be unified Internationalization processing, and the second response data that internationalization is handled is back to the application terminal, i.e., by all sound It answers data to carry out unified internationalization processing, to avoid carrying out respective internationalization processing in each micro services, effectively improves The treatment effeciency of internationalization processing, reduces code redundancy, enhances the readability and alterability of code, facilitates and carries out generation Code maintenance.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Essentially describe a kind of processing method of response data above, below by the processing unit to a kind of response data into Row detailed description.
Fig. 4 shows a kind of one embodiment structure chart of the processing unit of response data in the embodiment of the present invention.Such as Fig. 4 It is shown, the processing unit, comprising:
Access request receiving module 401 is determined for receiving the access request of application terminal, and according to the access request The requested language form in application terminal;
Access request respond module 402 is sent out for parsing to the access request, and by the access request after parsing It send to each micro services, so that each micro services respond the access request received, and returns to corresponding first number of responses According to;
Response data processing module 403, the first response data returned for obtaining each micro services, and from preset data The second response data that is corresponding with each first response data and matching with the language form is searched in library, wherein institute State the second response data configured with each language form corresponding to each first response data in presetting database;
Response data return module 404, for second response data to be back to the application terminal.
Further, the response data processing module 403 may include:
Number acquiring unit is searched, for obtaining first response data history lookup in the language form time Number;
Frequency judging unit is searched, for judging whether the history lookup number is greater than preset times threshold value;
First cache lookup unit, if being greater than the preset times threshold value for the history lookup number, from default The second number of responses that is corresponding with first response data and matching with the language form is searched in cache unit According to;
First database searching unit, if being less than or equal to the preset times threshold for the history lookup number Value then searches corresponding with first response data from the presetting database and matches with the language form The second response data.
Preferably, the response data processing module 403 may include:
Data type acquiring unit, for obtaining the data type of first response data;
Data type judging unit, for judging whether the data type belongs to preset data type;
Language form judging unit judges the class of languages if belonging to preset data type for the data type Whether type belongs to preset language type;
Second cache lookup unit, if belonging to preset language type for the language form, from preset cache unit It is middle to search the second response data that is corresponding with first response data and matching with the language form;
Second database lookup unit, if being not belonging to preset data type or the class of languages for the data type Type is not belonging to preset language type, then from the presetting database search it is corresponding with first response data and with The second response data that the language form matches.
Optionally, the response data processing module 403 can also include:
Attribute information acquiring unit, for obtaining the attribute information of each first response data;
Response data processing unit, for according to the attribute information, searched from the presetting database with it is each described First response data is corresponding and the second response data for matching with the language form.
Further, the processing unit can also include:
Data acquisition module is updated, for obtaining more new data when receiving data update request;
Response data update module, for updating corresponding second sound in the presetting database according to the more new data Data are answered, or corresponding second response data and described preset in the presetting database are updated according to the more new data and delayed Corresponding second response data in memory cell.
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 5, the terminal of the embodiment is set Standby 5 include: processor 50, memory 51 and are stored in the meter that can be run in the memory 51 and on the processor 50 Calculation machine readable instruction 52, such as the processing routine of response data.When the processor 50 executes the computer-readable instruction 52 Realize the step in the processing method embodiment of above-mentioned each response data, such as step S101 shown in FIG. 1 to step S104. Alternatively, the processor 50 realizes each module/unit in above-mentioned each Installation practice when executing the computer-readable instruction 52 Function, such as module shown in Fig. 4 401 is to the function of module 404.
Illustratively, the computer-readable instruction 52 can be divided into one or more module/units, one Or multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Institute Stating one or more module/units can be the series of computation machine readable instruction section that can complete specific function, the instruction segment For describing implementation procedure of the computer-readable instruction 52 in the terminal device 5.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
The processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk or interior of terminal device 5 It deposits.The memory 51 is also possible to the External memory equipment of the terminal device 5, such as be equipped on the terminal device 5 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5 Member also includes External memory equipment.The memory 51 is for storing the computer-readable instruction and the terminal device 5 Other required programs and data.The memory 51 can be also used for temporarily storing the number that has exported or will export According to.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of processing method of response data characterized by comprising
The access request of application terminal is received, and the requested class of languages in the application terminal is determined according to the access request Type;
The access request is parsed, and the access request after parsing is sent to each micro services, so that each micro services The access request received is responded, and returns to corresponding first response data;
The first response data that each micro services are returned is obtained, and lookup is opposite with each first response data from presetting database The second response data that is answering and matching with the language form, wherein each first sound is configured in the presetting database Answer the second response data of each language form corresponding to data;
Second response data is back to the application terminal.
2. the processing method of response data according to claim 1, which is characterized in that described to be searched from presetting database The second response data that is corresponding with each first response data and matching with the language form, comprising:
Obtain history lookup number of first response data in the language form;
Judge whether the history lookup number is greater than preset times threshold value;
If the history lookup number is greater than the preset times threshold value, searched and first sound from preset cache unit The second response data answered data corresponding and matched with the language form;
If the history lookup number be less than or equal to the preset times threshold value, from the presetting database search with First response data is corresponding and the second response data for matching with the language form.
3. the processing method of response data according to claim 1, which is characterized in that described to be searched from presetting database The second response data that is corresponding with each first response data and matching with the language form, comprising:
Obtain the data type of first response data;
Judge whether the data type belongs to preset data type;
If the data type belongs to preset data type, judge whether the language form belongs to preset language type;
If the language form belongs to preset language type, searched and the first response data phase from preset cache unit The second response data that is corresponding and matching with the language form;
If the data type is not belonging to preset data type or the language form is not belonging to preset language type, from institute It states and searches the second response that is corresponding with first response data and matching with the language form in presetting database Data.
4. the processing method of response data according to claim 1, which is characterized in that described to be searched from presetting database The second response data that is corresponding with each first response data and matching with the language form, comprising:
Obtain the attribute information of each first response data;
According to the attribute information, searched from the presetting database it is corresponding with each first response data and with The second response data that the language form matches.
5. the processing method of response data according to any one of claim 1 to 4, which is characterized in that the number of responses According to processing method, further includes:
When receiving data update request, more new data is obtained;
Corresponding second response data in the presetting database is updated according to the more new data, or according to the update number According to corresponding second number of responses in corresponding second response data in the update presetting database and the preset cache unit According to.
6. a kind of processing unit of response data characterized by comprising
Access request receiving module is answered for receiving the access request of application terminal, and according to access request determination With the requested language form of terminal;
Access request respond module for parsing to the access request, and the access request after parsing is sent to respectively Micro services so that each micro services respond the access request received, and return to corresponding first response data;
Response data processing module, the first response data returned for obtaining each micro services, and looked into from presetting database Look for the second response data that is corresponding with each first response data and matching with the language form, wherein described default The second response data configured with each language form corresponding to each first response data in database;
Response data return module, for second response data to be back to the application terminal.
7. a kind of computer readable storage medium, the computer-readable recording medium storage has computer-readable instruction, special Sign is, the response data as described in any one of claims 1 to 5 is realized when the computer-readable instruction is executed by processor Processing method the step of.
8. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer-readable instruction of operation, which is characterized in that the processor realizes following step when executing the computer-readable instruction It is rapid:
The access request of application terminal is received, and the requested class of languages in the application terminal is determined according to the access request Type;
The access request is parsed, and the access request after parsing is sent to each micro services, so that each micro services The access request received is responded, and returns to corresponding first response data;
The first response data that each micro services are returned is obtained, and lookup is opposite with each first response data from presetting database The second response data that is answering and matching with the language form, wherein each first sound is configured in the presetting database Answer the second response data of each language form corresponding to data;
Second response data is back to the application terminal.
9. terminal device according to claim 8, which is characterized in that described to be searched and each first sound from presetting database The second response data answered data corresponding and matched with the language form, comprising:
Obtain history lookup number of first response data in the language form;
Judge whether the history lookup number is greater than preset times threshold value;
If the history lookup number is greater than the preset times threshold value, searched and first sound from preset cache unit The second response data answered data corresponding and matched with the language form;
If the history lookup number be less than or equal to the preset times threshold value, from the presetting database search with First response data is corresponding and the second response data for matching with the language form.
10. terminal device according to claim 8, which is characterized in that described to be searched and each first from presetting database Response data is corresponding and the second response data for matching with the language form, comprising:
Obtain the data type of first response data;
Judge whether the data type belongs to preset data type;
If the data type belongs to preset data type, judge whether the language form belongs to preset language type;
If the language form belongs to preset language type, searched and the first response data phase from preset cache unit The second response data that is corresponding and matching with the language form;
If the data type is not belonging to preset data type or the language form is not belonging to preset language type, from institute It states and searches the second response that is corresponding with first response data and matching with the language form in presetting database Data.
CN201910042833.7A 2019-01-17 2019-01-17 Response data processing method and device, storage medium and terminal equipment Active CN109871251B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910042833.7A CN109871251B (en) 2019-01-17 2019-01-17 Response data processing method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910042833.7A CN109871251B (en) 2019-01-17 2019-01-17 Response data processing method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN109871251A true CN109871251A (en) 2019-06-11
CN109871251B CN109871251B (en) 2023-12-29

Family

ID=66917812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910042833.7A Active CN109871251B (en) 2019-01-17 2019-01-17 Response data processing method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN109871251B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502696A (en) * 2019-08-05 2019-11-26 上海掌门科技有限公司 A kind of method and apparatus of information stream distribution
CN110825459A (en) * 2019-11-08 2020-02-21 深圳前海环融联易信息科技服务有限公司 Enumeration constant hot loading method and device, computer equipment and storage medium
CN111651221A (en) * 2020-07-14 2020-09-11 迈普通信技术股份有限公司 Annotation internationalization method and device, storage medium and electronic equipment
CN112579235A (en) * 2020-12-16 2021-03-30 平安银行股份有限公司 Method, transcoding center, client, device and medium for internationalizing response data
CN113467308A (en) * 2021-07-05 2021-10-01 浙江大云物联科技有限公司 Edge calculation controller and data processing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5960421A (en) * 1997-08-20 1999-09-28 Bea Systems, Inc. Service interface repository internationalization
CN106156128A (en) * 2015-04-08 2016-11-23 阿里巴巴集团控股有限公司 A kind of realize website multi-lingual mention multiple domain name service method and device
US20180052573A1 (en) * 2016-08-17 2018-02-22 Microsoft Technology Licensing, Llc Interaction with a file storage service through a messaging bot
CN108289060A (en) * 2017-01-09 2018-07-17 腾讯科技(深圳)有限公司 A kind of data processing method and device based on RPC service
CN108491450A (en) * 2018-02-26 2018-09-04 平安普惠企业管理有限公司 Data cache method, device, server and storage medium
CN108540521A (en) * 2018-02-02 2018-09-14 捷开通讯(深圳)有限公司 A kind of method of synchronizing information, terminal device and server
CN108848000A (en) * 2018-05-07 2018-11-20 深圳壹账通智能科技有限公司 Network request test method, device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5960421A (en) * 1997-08-20 1999-09-28 Bea Systems, Inc. Service interface repository internationalization
CN106156128A (en) * 2015-04-08 2016-11-23 阿里巴巴集团控股有限公司 A kind of realize website multi-lingual mention multiple domain name service method and device
US20180052573A1 (en) * 2016-08-17 2018-02-22 Microsoft Technology Licensing, Llc Interaction with a file storage service through a messaging bot
CN108289060A (en) * 2017-01-09 2018-07-17 腾讯科技(深圳)有限公司 A kind of data processing method and device based on RPC service
CN108540521A (en) * 2018-02-02 2018-09-14 捷开通讯(深圳)有限公司 A kind of method of synchronizing information, terminal device and server
CN108491450A (en) * 2018-02-26 2018-09-04 平安普惠企业管理有限公司 Data cache method, device, server and storage medium
CN108848000A (en) * 2018-05-07 2018-11-20 深圳壹账通智能科技有限公司 Network request test method, device, computer equipment and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502696A (en) * 2019-08-05 2019-11-26 上海掌门科技有限公司 A kind of method and apparatus of information stream distribution
CN110825459A (en) * 2019-11-08 2020-02-21 深圳前海环融联易信息科技服务有限公司 Enumeration constant hot loading method and device, computer equipment and storage medium
CN110825459B (en) * 2019-11-08 2023-11-03 深圳前海环融联易信息科技服务有限公司 Enumeration constant hot loading method, device, computer equipment and storage medium
CN111651221A (en) * 2020-07-14 2020-09-11 迈普通信技术股份有限公司 Annotation internationalization method and device, storage medium and electronic equipment
CN111651221B (en) * 2020-07-14 2022-09-20 迈普通信技术股份有限公司 Annotation internationalization method and device, storage medium and electronic equipment
CN112579235A (en) * 2020-12-16 2021-03-30 平安银行股份有限公司 Method, transcoding center, client, device and medium for internationalizing response data
CN113467308A (en) * 2021-07-05 2021-10-01 浙江大云物联科技有限公司 Edge calculation controller and data processing method

Also Published As

Publication number Publication date
CN109871251B (en) 2023-12-29

Similar Documents

Publication Publication Date Title
CN109871251A (en) A kind of processing method of response data, device, storage medium and terminal device
US20210150142A1 (en) Method and apparatus for determining feature words and server
US20150234927A1 (en) Application search method, apparatus, and terminal
CN110046169B (en) Computing service implementation scheme based on structured query language statements
CN108255958A (en) Data query method, apparatus and storage medium
CN111459977B (en) Conversion of natural language queries
US11386131B2 (en) System and method for multi-language search
CN111737564A (en) Information query method, device, equipment and medium
CN111625638A (en) Question processing method, device and equipment and readable storage medium
CN113157734B (en) Data processing method, device and equipment based on search framework and storage medium
CN112559717A (en) Search matching method and device, electronic equipment and storage medium
JP7172187B2 (en) INFORMATION DISPLAY METHOD, INFORMATION DISPLAY PROGRAM AND INFORMATION DISPLAY DEVICE
CN108959294A (en) A kind of method and apparatus accessing search engine
CN116415564A (en) Functional point amplification method and system based on knowledge graph
CN110321252A (en) A kind of method and apparatus of craft services scheduling of resource
CN116150376A (en) Sample data distribution optimization method, device and storage medium
JP2023015275A (en) Observation information processing method, apparatus, electronic device, storage medium, and computer program
CN110515979B (en) Data query method, device, equipment and storage medium
CN111090668B (en) Data retrieval method and device, electronic equipment and computer readable storage medium
CN112685540A (en) Search method, search device, storage medium and terminal
CN113761183A (en) Intention recognition method and intention recognition device
CN113297436A (en) User policy distribution method and device based on relational graph network and electronic equipment
CN111859154A (en) Application recommendation method and device
CN112949280B (en) Data processing method and device
CN116383412B (en) Functional point amplification method and system based on knowledge graph

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