CN110134461A - A kind of universal process method and device of data interaction - Google Patents
A kind of universal process method and device of data interaction Download PDFInfo
- Publication number
- CN110134461A CN110134461A CN201910280061.0A CN201910280061A CN110134461A CN 110134461 A CN110134461 A CN 110134461A CN 201910280061 A CN201910280061 A CN 201910280061A CN 110134461 A CN110134461 A CN 110134461A
- Authority
- CN
- China
- Prior art keywords
- data
- currently used
- data interaction
- used scene
- request
- 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
- 230000003993 interaction Effects 0.000 title claims abstract description 131
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000008569 process Effects 0.000 title claims abstract description 35
- 238000012545 processing Methods 0.000 claims abstract description 54
- 238000012544 monitoring process Methods 0.000 claims abstract description 14
- 230000002452 interceptive effect Effects 0.000 claims abstract description 12
- 230000005856 abnormality Effects 0.000 claims description 15
- 238000012546 transfer Methods 0.000 claims description 12
- 241000208340 Araliaceae Species 0.000 claims description 10
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 10
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 10
- 235000008434 ginseng Nutrition 0.000 claims description 10
- 230000000977 initiatory effect Effects 0.000 claims description 9
- 241001269238 Data Species 0.000 claims description 7
- 230000002159 abnormal effect Effects 0.000 claims description 7
- 230000006870 function Effects 0.000 abstract description 10
- 230000007613 environmental effect Effects 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 6
- 238000011161 development Methods 0.000 description 5
- 230000018109 developmental process Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000003860 storage Methods 0.000 description 3
- 238000005538 encapsulation Methods 0.000 description 2
- 230000033772 system development Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 235000014510 cooky Nutrition 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4488—Object-oriented
- G06F9/449—Object-oriented method invocation or resolution
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Exchange Systems With Centralized Control (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of universal process method of data interaction and devices, belong to big data technical field.The described method includes: carrying out initialization data parameter setting to data interactive service according to the preset rules of data interaction service;Currently used scene calls the data interaction service according to the initialization data parameter;According to the corresponding otherness data parameters of currently used scene, corresponding data request is issued;Data processing needed for carrying out the currently used scene according to the data that the request of data returns.The universal process method and device of data interaction provided by the invention, the reusability, high efficiency and consistency of code can be effectively improved, and realizes the functions such as the method for data interaction and the consistency of result, Version Control, extension usage scenario, environmental monitoring, error handle simultaneously.
Description
Technical field
The present invention relates to big data technical field, in particular to the universal process method and device of a kind of data interaction.
Background technique
Available data interactive mode is to transmit querying condition using specific data-interface to obtain according to specifically used scene
Data.This method is unfavorable for the generic scenario processing of data interaction, for example different mistakes is prompted according to different error status codes
False information;Also it is unfavorable for the Version Control of unified data interaction interface.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of universal process method of data interaction and
Device, can effectively improve the reusability, high efficiency and consistency of code, and realize the method and result of data interaction simultaneously
The functions such as consistency, Version Control, extension usage scenario, environmental monitoring, error handle.The technical solution is as follows:
In a first aspect, providing a kind of universal process method of data interaction, comprising: according to the default of data interaction service
Rule carries out initialization data parameter setting to data interactive service;Currently used scene is according to the initialization data parameter
Call the data interaction service;According to the corresponding otherness data parameters of currently used scene, corresponding data request is issued;Root
Data processing needed for carrying out the currently used scene according to the data that the request of data returns.
With reference to first aspect, in the first possible implementation, the preset rules according to data interaction service,
Carry out initialization data parameter setting, comprising: according to the treaty rule of the data interaction service, carry out basic data interaction and pass
Enter the setting of parameter, wherein the incoming parameter of basic data interaction includes data interaction base address, for distinguishing user's body
The local cipher data, the mark for distinguishing user identity of part.
With reference to first aspect, in the second possible implementation, according to the corresponding otherness of currently used scene
Data parameters, before issuing corresponding data request, the method also includes: the tool of data interaction needed for carrying out currently used scene
The marks of the otherness data parameters of body address information is arranged, and the Transfer Parameters of data interaction needed for currently used scene is arranged
Mark, and it is initialized as sky object.
The possible implementation of second with reference to first aspect, in the third possible implementation, the basis is worked as
The corresponding otherness data parameters of preceding usage scenario issue corresponding data request, comprising: insert the corresponding difference of currently used scene
Anisotropic data parameters, the Transfer Parameters of data interaction needed for filling in currently used scene.
Any one of possible implementation of the first to three kind with reference to first aspect, in the four to six kind of possible realization
In mode, data processing needed for carrying out the currently used scene according to the data that the request of data returns, comprising: judgement
Whether the data that the request of data returns are normal datas, if so, returning to the corresponding logical process of the normal data, such as
Fruit is no, further monitors whether the currently used scene needs abnormality processing, if necessary to abnormality processing, then by the exception
Corresponding exception handling logic is handled to be put into abnormal readjustment.
Second aspect, provides a kind of general processing unit of data interaction, and described device includes: initialization data parameter
Setup module carries out initialization data parameter setting to data interactive service for the preset rules according to data interaction service;
Data interaction service calling module calls the data interaction to take for currently used scene according to the initialization data parameter
Business;Request of data initiation module, for issuing corresponding data and asking according to the corresponding otherness data parameters of currently used scene
It asks;Data processing module, data needed for the data for being returned according to the request of data carry out the currently used scene
Processing.
In conjunction with second aspect, in the first possible implementation, the initialization data parameter setting module is used for:
According to the treaty rule of the data interaction service, the setting of the incoming parameter of basic data interaction is carried out, wherein the basis number
It include data interaction base address, the local cipher data for distinguishing user identity, for distinguishing use according to the incoming parameter of interaction
The mark of family identity.
In conjunction with second aspect, in the second possible implementation, described device further includes otherness setup module, institute
It states otherness setup module to be used for: be joined in the request of data initiation module according to the corresponding otherness data of currently used scene
Number, before issuing corresponding data request, the otherness number of the specific address information of data interaction needed for carrying out currently used scene
Be arranged according to the mark of parameter, and the Transfer Parameters mark of data interaction needed for currently used scene is set, and be initialized as it is empty right
As.
In conjunction with second of possible implementation of second aspect, in the third possible implementation, request of data hair
It plays module to be used for: inserting the corresponding otherness data parameters of currently used scene, data interaction needed for filling in currently used scene
Transfer Parameters.
In conjunction with any one of the first to three kind of possible implementation of second aspect, in the four to six kind of possible realization
In mode, the data processing module is used for: whether the data for judging that the request of data returns are normal datas, if so,
The corresponding logical process of the normal data is returned to, if not, further monitoring whether the currently used scene needs exception
The corresponding exception handling logic of the abnormality processing is then put into abnormal readjustment by processing if necessary to abnormality processing.
Technical solution provided in an embodiment of the present invention has the benefit that
(1) consistency, in establishment of item period, according to project data provider's agreed specifications, according to engagement outcome to this
Device is initialized.It actually uses in scene, need to only call data interaction service that can initiate request of data and obtain data
Feedback result realizes the method for data interaction and the consistency of result, be exploration project front and back end data interaction enter ginseng and
Returned data is uniformly processed, and repeats to be arranged and handle due to handing over using to project data in actual use scene to reduce
It is mutual to enter ginseng and returned data carries out unified encapsulation process, code, step and the logic of exploitation are simplified, item code is enhanced
Reusability, the consistency of operation, the controllability of the centralization of data interaction and version, and effectively improve development efficiency.
(2) specific to Version Control, the mode of available data interaction is opened during programming personnel carries out system development
Hair personnel need to enter ginseng and go out ginseng to need to carry out respectively to data interaction to currently used scene in front and back end data interaction
Setting and processing, are unfavorable for the decoupling and reuse of code function, also bring no small challenge, nothing to the consistency of whole project
Data interaction is uniformly processed in method, and unified Version Control can not be also carried out to data interaction, the introducing based on this innovation
The concept of Version Control can call the data of different editions according to actual use scene, easily realize the Version Control of data,
The data control of different scenes different situations can be coped with.
(3) scalability retains call parameters, can be according to customization for transmitting the parameter of customization in actual use scene
The difference for changing parameter handles the request of some Exception Types, extends usage scenario, meets the use demand of more scenes;
(4) environmental monitoring can configure different request of data addresses according to publication on project development phase, test phase, line,
The data of corresponding data providing can be obtained automatically according to locating environment difference in actual use scene;
(5) error handle, containing error handling mechanism, which carries out conventional treatment to the wrong data of rule agreement,
And whether error handling mechanism in need carries out selective wrong readjustment processing in reserved monitoring usage scenario.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the universal process method flow chart for the data interaction that the embodiment of the present invention 1 provides;
Fig. 2 is the specific sub-step flow chart of 104 steps in the embodiment of the present invention 1;
Fig. 3 is the general processing unit structural schematic diagram for the data interaction that the embodiment of the present invention 2 provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.It needs
Bright, in the description of the present invention, " multiple " or " a variety of " are meant that two or more, unless otherwise clearly specific limit
It is fixed.
The universal process method and device of data interaction provided in an embodiment of the present invention, by using dynamic parameter setting
Mode is dished out to default usage scenario and customizable parameter and is initialized, and usage scenario is adjusted according to preset parameter rule
With, the reusability, high efficiency and consistency of code can be effectively improved, and realize simultaneously data interaction method and result one
The functions such as cause property, Version Control, extension usage scenario, environmental monitoring, error handle, it is therefore, provided in an embodiment of the present invention to be somebody's turn to do
The universal process method and device of data interaction can be applied to a variety of usage scenarios for being related to data interaction.
Combined with specific embodiments below and attached drawing, the universal process method to data interaction provided in an embodiment of the present invention and
Device elaborates.
Embodiment 1
Fig. 1 is the universal process method flow chart for the data interaction that the embodiment of the present invention 1 provides.As shown in Figure 1, of the invention
The universal process method for the data interaction that embodiment provides, comprising the following steps:
101, according to the preset rules of data interaction service, initialization data parameter setting is carried out to data interactive service.
Specifically, the setting of the incoming parameter of basic data interaction is carried out according to the treaty rule of data interaction service,
In, the incoming parameter of basic data interaction includes data interaction base address, the local cipher data for distinguishing user identity, uses
In the mark for distinguishing user identity.Here, the treaty rule of data interaction service refers to about establishes rules according to project data provider
Model or the treaty rule of project front and back end data interaction carry out predetermined data interaction service dependency rule.
Illustratively, according to the treaty rule of project front and back end data interaction, out of information storage unit or
BaseUrl (data interaction base address), cookie (are stored in the local data by encryption, for distinguishing user identity),
The information such as token (mark for being used to distinguish user identity of data interaction both sides agreement), it is incoming to be set as basic data interaction
Parameter.It is initialized according to the treaty rule of project data interactive service according to treaty rule in establishment of item period, just
The setting of beginningization data parameters, actually uses in scene, need to only call data interaction service that can initiate request of data and be counted
According to feedback result, the method for data interaction and the consistency of result are realized.
It is worth noting that, preset rules of the step 101 according to data interaction service, carry out data interactive service initial
The process for changing data parameters setting other than the mode described in the above-mentioned steps, can also realize the process by other means,
The embodiment of the present invention is not limited specific mode.
102, currently used scene calls data interaction service according to initialization data parameter.
Specifically, usage scenario here includes project development phase, tester, a variety of usage scenarios such as issues on line, protect
Call parameters are stayed, it, can be according to the difference for customizing parameter, processing for transmitting the parameter of customization in actual use scene
The request of Exception Type extends usage scenario, meets the use demand of more scenes.
It is worth noting that, the currently used scene of step 102 calls data interaction service according to initialization data parameter
Process other than the mode described in the above-mentioned steps, can also realize the process, the embodiment of the present invention is to tool by other means
The mode of body is not limited.
103, according to the corresponding otherness data parameters of currently used scene, corresponding data request is issued.
Specifically, inserting the corresponding otherness data parameters of currently used scene, data needed for filling in currently used scene
Interactive Transfer Parameters.
Illustratively, currently used scene calls data interaction service, inserts real data interaction url according to actual needs
(one kind of data interaction service contract is for identifying to api for the otherness data parameters of (the specific address information of data interaction)
The information of specific address) in parameter, parameter that current interaction needs to transmit is filled in params (the one of data interaction service contract
The mark of kind Transfer Parameters) in, the corresponding data request of current data interaction can be completed.
According to the corresponding otherness data parameters of currently used scene, before issuing corresponding data request, the present invention is real
The universal process method of the data interaction of example offer is provided further include:
The mark of the otherness data parameters of the specific address information of data interaction needed for carrying out currently used scene is arranged,
And the Transfer Parameters mark of data interaction needed for currently used scene is set, and it is initialized as sky object.
Illustratively, url (the specific address information of data interaction service) difference of the current Back end data interaction of customization
Property data parameters be api (data interaction service contract a kind of for identifying the information of specific address), setting data interaction take
Business enters to join params (a kind of marks of Transfer Parameters of data interaction service contract), and is initialized as sky object.
It is worth noting that, step 103 issues corresponding data according to the corresponding otherness data parameters of currently used scene
The process of request other than the mode described in the above-mentioned steps, can also realize that the process, the present invention are implemented by other means
Example is not limited specific mode.
104, data processing needed for carrying out currently used scene according to the data that request of data returns.
Fig. 2 is the specific sub-step flow chart of 104 steps in the embodiment of the present invention 1.
Specifically, as shown in Fig. 2, whether the data for judging that request of data returns are normal datas, if so, returning normal
The corresponding logical process of data, if not, further monitoring whether currently used scene needs abnormality processing, if necessary to abnormal
The corresponding exception handling logic of abnormality processing is then put into abnormal readjustment by processing.
Illustratively, according to the treaty rule of project front and back end data interaction, error code monitoring, root are carried out to returned data
Provide different error handling mechanisms according to different error codes, and in reserved monitoring usage scenario whether error handler in need
System carries out the wrong readjustment processing of selectivity.It is normally successfully adjusted back to regular data progress is no different, the return of returned data interaction
Body is used for usage scenario.The logical process write-in present apparatus that the normal data that actual use scene uses this returns
Success can meet conventional requirement in adjusting back.If actual use scene, which needs to return to data wrong scene, carries out data weight
Equal specially treateds are set, the logic of error handle can be put into mistake readjustment, if can not be filled out without specially treated.Different fields
Scape use repeats above-mentioned process.
It is worth noting that, the data that step 104 is returned according to request of data carry out currently used scene needed for data
The process of processing other than the mode described in the above-mentioned steps, can also realize that the process, the present invention are implemented by other means
Example is not limited specific mode.
Embodiment 2
Fig. 3 is the general processing unit structural schematic diagram for the data interaction that the embodiment of the present invention 2 provides.As shown in Fig. 2, this
The general processing unit 2 for the data interaction that inventive embodiments provide, comprising: initialization data parameter setting module 21, data are handed over
Mutual service calling module 22, request of data initiation module 23 and data processing module 24.
Wherein, initialization data parameter setting module 21 hands over data for the preset rules according to data interaction service
Mutually service carries out initialization data parameter setting.Specifically, initialization data parameter setting module 21 is used for: according to data interaction
The treaty rule of service carries out the setting of the incoming parameter of basic data interaction, wherein the incoming parameter of basic data interaction includes number
According to interactive basis address, the local cipher data for distinguishing user identity, the mark for distinguishing user identity.
Data interaction service calling module 22 calls data interaction according to initialization data parameter for currently used scene
Service.
Request of data initiation module 23, for issuing corresponding according to the corresponding otherness data parameters of currently used scene
Request of data.Specifically, request of data initiation module 23 is used for: the corresponding otherness data parameters of currently used scene are inserted,
The Transfer Parameters of data interaction needed for filling in currently used scene.8, device according to claim 6, above-mentioned apparatus are also wrapped
Otherness setup module 25 is included, otherness setup module 25 is used for:
In request of data initiation module 23 according to the corresponding otherness data parameters of currently used scene, corresponding data is issued
Before request, the mark of the otherness data parameters of the specific address information of data interaction needed for carrying out currently used scene is set
It sets, and the Transfer Parameters mark of data interaction needed for currently used scene is set, and is initialized as sky object.
Data processing module 24, at data needed for the data for being returned according to request of data carry out currently used scene
Reason.Specifically, data processing module 24 is used for: whether the data for judging that request of data returns are normal datas, if so, returning
The corresponding logical process of normal data, if not, further monitoring whether currently used scene needs abnormality processing, if necessary
The corresponding exception handling logic of abnormality processing is then put into abnormal readjustment by abnormality processing.
It should be understood that the general processing unit of data interaction provided by the above embodiment is in the logical of trigger data interaction
When with processing method, only the example of the division of the above functional modules, in practical application, it can according to need and incite somebody to action
Above-mentioned function distribution is completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, with complete
At all or part of function described above.In addition, the general processing unit and number of data interaction provided by the above embodiment
Belong to same design according to interactive universal process method embodiment, specific implementation process is detailed in embodiment of the method, here no longer
It repeats.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
In conclusion the universal process method and device of data interaction provided in an embodiment of the present invention, compared with prior art
It has the advantages that
(1) consistency, in establishment of item period, according to project data provider's agreed specifications, according to engagement outcome to this
Device is initialized.It actually uses in scene, need to only call data interaction service that can initiate request of data and obtain data
Feedback result realizes the method for data interaction and the consistency of result, be exploration project front and back end data interaction enter ginseng and
Returned data is uniformly processed, and repeats to be arranged and handle due to handing over using to project data in actual use scene to reduce
It is mutual to enter ginseng and returned data carries out unified encapsulation process, code, step and the logic of exploitation are simplified, item code is enhanced
Reusability, the consistency of operation, the controllability of the centralization of data interaction and version, and effectively improve development efficiency.
(2) specific to Version Control, the mode of available data interaction is opened during programming personnel carries out system development
Hair personnel need to enter ginseng and go out ginseng to need to carry out respectively to data interaction to currently used scene in front and back end data interaction
Setting and processing, are unfavorable for the decoupling and reuse of code function, also bring no small challenge, nothing to the consistency of whole project
Data interaction is uniformly processed in method, and unified Version Control can not be also carried out to data interaction, the introducing based on this innovation
The concept of Version Control can call the data of different editions according to actual use scene, easily realize the Version Control of data,
The data control of different scenes different situations can be coped with.
(3) scalability retains call parameters, can be according to customization for transmitting the parameter of customization in actual use scene
The difference for changing parameter handles the request of some Exception Types, extends usage scenario, meets the use demand of more scenes;
(4) environmental monitoring can configure different request of data addresses according to publication on project development phase, test phase, line,
The data of corresponding data providing can be obtained automatically according to locating environment difference in actual use scene;
(5) error handle, containing error handling mechanism, which carries out conventional treatment to the wrong data of rule agreement,
And in reserved monitoring usage scenario whether error handling mechanism in need, to carry out the wrong readjustment processing of selectivity.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It is referring to according to the method for embodiment, equipment (system) and calculating in the embodiment of the present application in the embodiment of the present application
The flowchart and/or the block diagram of machine program product describes.It should be understood that can be realized by computer program instructions flow chart and/or
The combination of the process and/or box in each flow and/or block and flowchart and/or the block diagram in block diagram.It can mention
For the processing of these computer program instructions to general purpose computer, special purpose computer, Embedded Processor or other programmable datas
The processor of equipment is to generate a machine, so that being executed by computer or the processor of other programmable data processing devices
Instruction generation refer to for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of fixed function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although the preferred embodiment in the embodiment of the present application has been described, once a person skilled in the art knows
Basic creative concept, then additional changes and modifications may be made to these embodiments.So appended claims are intended to explain
Being includes preferred embodiment and all change and modification for falling into range in the embodiment of the present application.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (10)
1. a kind of universal process method of data interaction characterized by comprising
According to the preset rules of data interaction service, initialization data parameter setting is carried out to data interactive service;
Currently used scene calls the data interaction service according to the initialization data parameter;
According to the corresponding otherness data parameters of currently used scene, corresponding data request is issued;
Data processing needed for carrying out the currently used scene according to the data that the request of data returns.
2. the method according to claim 1, wherein the preset rules according to data interaction service, carry out
Initialization data parameter setting, comprising:
According to the treaty rule of the data interaction service, the setting of the incoming parameter of basic data interaction is carried out,
Wherein, the incoming parameter of basic data interaction includes data interaction base address, the local for distinguishing user identity
Encryption data, the mark for distinguishing user identity.
3. the method according to claim 1, wherein joining according to the corresponding otherness data of currently used scene
Number, before issuing corresponding data request, the method also includes:
The mark of the otherness data parameters of the specific address information of data interaction needed for carrying out currently used scene is arranged, and sets
The Transfer Parameters of data interaction needed for setting currently used scene identify, and are initialized as sky object.
4. according to the method described in claim 3, it is characterized in that, described according to the corresponding otherness data of currently used scene
Parameter issues corresponding data request, comprising:
Insert the corresponding otherness data parameters of currently used scene, the transmitting ginseng of data interaction needed for filling in currently used scene
Number.
5. method according to any one of claims 1 to 4, which is characterized in that the data returned according to the request of data
Data processing needed for carrying out the currently used scene, comprising:
Whether the data for judging that the request of data returns are normal datas, if so, returning, the normal data is corresponding to be patrolled
Processing is collected, if not, further monitoring whether the currently used scene needs abnormality processing, if necessary to abnormality processing, then
The corresponding exception handling logic of the abnormality processing is put into abnormal readjustment.
6. a kind of general processing unit of data interaction, which is characterized in that described device includes:
Initialization data parameter setting module carries out data interactive service for the preset rules according to data interaction service
Initialization data parameter setting;
Data interaction service calling module calls the data to hand over for currently used scene according to the initialization data parameter
Mutually service;
Request of data initiation module, for issuing corresponding data and asking according to the corresponding otherness data parameters of currently used scene
It asks;
Data processing module, data needed for the data for being returned according to the request of data carry out the currently used scene
Processing.
7. device according to claim 6, which is characterized in that the initialization data parameter setting module is used for:
According to the treaty rule of the data interaction service, the setting of the incoming parameter of basic data interaction is carried out,
Wherein, the incoming parameter of basic data interaction includes data interaction base address, the local for distinguishing user identity
Encryption data, the mark for distinguishing user identity.
8. device according to claim 6, which is characterized in that described device further includes otherness setup module, the difference
Anisotropic setup module is used for:
In the request of data initiation module according to the corresponding otherness data parameters of currently used scene, issues corresponding data and ask
Before asking, the mark of the otherness data parameters of the specific address information of data interaction needed for carrying out currently used scene is arranged,
And the Transfer Parameters mark of data interaction needed for currently used scene is set, and it is initialized as sky object.
9. device according to claim 8, which is characterized in that the request of data initiation module is used for:
Insert the corresponding otherness data parameters of currently used scene, the transmitting ginseng of data interaction needed for filling in currently used scene
Number.
10. according to the described in any item devices of claim 6 to 9, which is characterized in that the data processing module is used for:
Whether the data for judging that the request of data returns are normal datas, if so, returning, the normal data is corresponding to be patrolled
Processing is collected, if not, further monitoring whether the currently used scene needs abnormality processing, if necessary to abnormality processing, then
The corresponding exception handling logic of the abnormality processing is put into abnormal readjustment.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910280061.0A CN110134461B (en) | 2019-04-09 | 2019-04-09 | Universal processing method and device for data interaction |
CA3176864A CA3176864A1 (en) | 2019-04-09 | 2019-09-29 | General-purpose processing method and apparatus for data exchange |
PCT/CN2019/109110 WO2020206955A1 (en) | 2019-04-09 | 2019-09-29 | Universal processing method and apparatus for data interaction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910280061.0A CN110134461B (en) | 2019-04-09 | 2019-04-09 | Universal processing method and device for data interaction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110134461A true CN110134461A (en) | 2019-08-16 |
CN110134461B CN110134461B (en) | 2021-08-06 |
Family
ID=67569478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910280061.0A Active CN110134461B (en) | 2019-04-09 | 2019-04-09 | Universal processing method and device for data interaction |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN110134461B (en) |
CA (1) | CA3176864A1 (en) |
WO (1) | WO2020206955A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020206955A1 (en) * | 2019-04-09 | 2020-10-15 | 苏宁云计算有限公司 | Universal processing method and apparatus for data interaction |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101145163A (en) * | 2007-10-30 | 2008-03-19 | 金蝶软件(中国)有限公司 | Method and system for obtaining data from a plurality of data pool |
CN102571550A (en) * | 2010-12-30 | 2012-07-11 | 北京亿阳信通软件研究院有限公司 | General information interaction platform and method |
CN105335523A (en) * | 2015-12-01 | 2016-02-17 | 深圳市迪菲特科技股份有限公司 | Data interaction method and Web server |
CN106487861A (en) * | 2015-09-01 | 2017-03-08 | 腾讯科技(北京)有限公司 | Network data provides method and apparatus |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105511895A (en) * | 2014-09-24 | 2016-04-20 | 中兴通讯股份有限公司 | Method, device, and system for configuring operating environment |
CN109547514A (en) * | 2017-09-22 | 2019-03-29 | 北京金山云网络技术有限公司 | A kind of task processing method, device, electronic equipment and storage medium |
CN109408376B (en) * | 2018-09-28 | 2022-04-22 | 深圳乐信软件技术有限公司 | Configuration data generation method, device, equipment and storage medium |
CN110134461B (en) * | 2019-04-09 | 2021-08-06 | 苏宁易购集团股份有限公司 | Universal processing method and device for data interaction |
-
2019
- 2019-04-09 CN CN201910280061.0A patent/CN110134461B/en active Active
- 2019-09-29 CA CA3176864A patent/CA3176864A1/en active Pending
- 2019-09-29 WO PCT/CN2019/109110 patent/WO2020206955A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101145163A (en) * | 2007-10-30 | 2008-03-19 | 金蝶软件(中国)有限公司 | Method and system for obtaining data from a plurality of data pool |
CN102571550A (en) * | 2010-12-30 | 2012-07-11 | 北京亿阳信通软件研究院有限公司 | General information interaction platform and method |
CN106487861A (en) * | 2015-09-01 | 2017-03-08 | 腾讯科技(北京)有限公司 | Network data provides method and apparatus |
CN105335523A (en) * | 2015-12-01 | 2016-02-17 | 深圳市迪菲特科技股份有限公司 | Data interaction method and Web server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020206955A1 (en) * | 2019-04-09 | 2020-10-15 | 苏宁云计算有限公司 | Universal processing method and apparatus for data interaction |
Also Published As
Publication number | Publication date |
---|---|
CN110134461B (en) | 2021-08-06 |
CA3176864A1 (en) | 2020-10-15 |
WO2020206955A1 (en) | 2020-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103544064B (en) | Cloud computing method, cloud management platform and client | |
CN104937572B (en) | The method and apparatus handled for business and/or live load | |
CN103942093B (en) | Method for processing business and system | |
CN104486234B (en) | A kind of method and server that service switch is unloaded to physical network card | |
CN110324164A (en) | A kind of dispositions method and device of network slice | |
CN106354544A (en) | Virtual machine creating method and system and host | |
CN108268372A (en) | Mock test processing methods, device, storage medium and computer equipment | |
CN106941516A (en) | Isomery field apparatus Control management system based on industry internet operating system | |
CN108134830A (en) | Load-balancing method, system, device and storage medium based on message queue | |
CN110535679A (en) | Management method, framework, network slice sales platform and the management system of slice | |
CN105930731B (en) | A kind of method and device of security application TA interaction | |
CN106385329A (en) | Processing method and device of resource pool and equipment | |
CN107302488A (en) | Distribution method, system and the server of virtual objects | |
CN106878194A (en) | A kind of message processing method and device | |
CN107770269A (en) | A kind of service response method and its terminal | |
CN108228363A (en) | A kind of message method and device | |
CN107908488A (en) | Message request interactive interfacing method, apparatus, computer equipment and storage medium | |
CN106302211A (en) | The request amount control method of a kind of Internet resources and device | |
CN109731334A (en) | Switching method and apparatus, storage medium, the electronic device of state | |
CN109347866A (en) | Login method, device, system and computer readable storage medium | |
CN110347593A (en) | Flow testing method and device | |
CN109995787A (en) | A kind of data processing method and relevant device | |
CN110197064A (en) | Process handling method and device, storage medium and electronic device | |
CN110134461A (en) | A kind of universal process method and device of data interaction | |
CN105379192A (en) | Hardware management communication protocol |
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 |