CN108345511A - A kind of application data verification method, device and electronic equipment - Google Patents

A kind of application data verification method, device and electronic equipment Download PDF

Info

Publication number
CN108345511A
CN108345511A CN201710053044.4A CN201710053044A CN108345511A CN 108345511 A CN108345511 A CN 108345511A CN 201710053044 A CN201710053044 A CN 201710053044A CN 108345511 A CN108345511 A CN 108345511A
Authority
CN
China
Prior art keywords
data
verification
verified
rule
value
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
CN201710053044.4A
Other languages
Chinese (zh)
Other versions
CN108345511B (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.)
Alibaba Singapore Holdings Pte Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710053044.4A priority Critical patent/CN108345511B/en
Publication of CN108345511A publication Critical patent/CN108345511A/en
Application granted granted Critical
Publication of CN108345511B publication Critical patent/CN108345511B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • G06F11/0763Error or fault detection not based on redundancy by bit configuration check, e.g. of formats or tags

Abstract

The embodiment of the present application discloses a kind of application data verification method, device and electronic equipment.The method includes:The verification request of data object is received, the data object meets the regulation data characteristics for defining data to be verified;It obtains and the matched verification object of the data object, the verification object includes at least one verification rule of the data to be verified constructed in advance and the data to be verified;The method for calling the verification object verifies the data object according to corresponding verification rule;Return to the value of statistical indicant of the check results of the data object.The each embodiment of the application, local data to be verified, verification rule are abstracted, digital independent and data source are isolated, digital independent logic obtains unification, application program is solved when carrying out local data verification, data check service logic caused by the uncertainty of data is complicated, realizes the problems such as code is difficult to safeguard due to being generated when operation.

Description

A kind of application data verification method, device and electronic equipment
Technical field
The application belongs to the technical field of data processing of terminal applies exploitation more particularly to a kind of application data check side Method, device and electronic equipment.
Background technology
With the continuous development and extension of business, the business scope involved by terminal applies is also more and more extensive at present, institute It obtains and data to be treated is also more and more.During application program is run, it will usually generate some prior nothings The data that method determines, such as input data of the user in list, need at runtime by calculating just getable data.This Determine how this executes using next step using whether locally generated data meet scheduled rule a bit.Therefore it is setting at present When counting and writing application program, it usually needs the logic and process to above-mentioned data check is added.A such as typical example In, allow user to fill in personal information using list is shown, wherein this field of phone number requirement is 11 0-9 Arab numbers Word.If the input data of user meets the requirements after verification, program normally executes next flow and (such as redirects the next item down It fills in list or sends identifying code etc. to the phone number filled in);It is on the contrary then show that user is informed in error message.
The checkschema that mainstream uses at present is broadly divided into two steps:The first step reads data to be verified;Second step, To each data to be verified, judge whether it meets rule.But with the continually developing of application, safeguard, when needing to increase This specific underlying services data of reading each single item are simultaneously when the data to be verified or data check rule in new source, in existing By the rule of the underlying services data verified in the way of then there are many deficiencies.For example, the number to be verified of separate sources It needs correspondingly to increase the generation for reading this data when often increasing a kind of data to be verified of new sources according to reading manner difference Code logic.Therefore in currently existing scheme, scalability is very weak the step for digital independent, and number can not be uniformly processed in underaction According to the logic of reading.Also, the verification rule of data may change with the development of business.It such as verifies input by user The rule of phone number, beginning is " 11 0-9 Arabic numerals ", later rule increase for " 11 0-9 Arabic numerals and with Number 1 starts ".Currently existing scheme needs to increase a branching logic newly during data check when handling such case To judge whether the data read meet newly-increased rule.Such as signal pseudocode is as follows:
DEFINE mobileNumber;// data to be verified
If (mobileNumber is not the Arabic numerals of 11 0-9) return fails;
// it is below the branching logic of newly-increased rule verification
If (mobileNumber is not with 1 beginning) return failures;
Return successes;
To be verified digital independent logic and verification rule of the method for local data verification due to separate sources in the prior art It is then different, and as the development of business may change, each business datum all needs corresponding check logic, can not unify The logic of digital independent is handled, digital independent and check part autgmentability are weaker, underaction.Meanwhile the verification of different data It is regular different, it is presented as that verification rule is more and miscellaneous, the processing of data check is complex.Using existing scheme, data to be verified Orderly organization and management can not be obtained with corresponding verification rule, data check realizes that code reuse is poor, data school It tests execution and the efficiency of management is relatively low.
Invention content
The application is designed to provide a kind of application data verification method, device and electronic equipment, will be local to be verified Data, verification rule are abstracted, and digital independent and data source are isolated, digital independent logic obtains unification, solves Application program is when carrying out local data verification, due to generating data check business caused by the uncertainty of data when operation Logic is complicated, realizes the problems such as code is difficult to safeguard.
It is provided by the present application a kind of to be realized in using data verification method, device and electronic equipment:
It is a kind of to apply data verification method, the method includes:
The verification request of data object is received, the data object meets the regulation data characteristics for defining data to be verified;
Obtain with the matched verification object of the data object, the verification object include construct in advance data to be verified with At least one verification rule of the data to be verified;
The method for calling the verification object verifies the data object according to corresponding verification rule;
Return to the value of statistical indicant of the check results of the data object.
A kind of to apply data calibration device, described device includes:
Data acquisition module, the verification for receiving data object are asked, and the data object, which meets, defines number to be verified According to regulation data characteristics;
Matching module includes with the matched verification object of the data object, the verification object for constructing and preserving At least one verification rule of the data to be verified and the data to be verified that construct in advance;
Correction verification module, the method for calling the verification object, according to corresponding verification rule to the data object It is verified;
Result return module, the value of statistical indicant of the check results for returning to the data object.
A kind of electronic equipment, including processor and the memory for storing processor-executable instruction,
The processor is configured to, and the verification for receiving data object is asked, and the data object, which meets definition, to be waited for The regulation data characteristics of verification data;It is additionally operable to obtain and the matched verification object of the data object, the verification object packet Include at least one verification rule of the data to be verified constructed in advance and the data to be verified;It is additionally operable to call the verification pair The method of elephant verifies the data object according to the verification rule in corresponding;It is additionally operable to return to the data object The value of statistical indicant of check results.
A method of realizing local data verification, including:
The verification that the data to be verified registered to it and the data to be verified meet is stored with the data format of key-value pair Rule, data to be verified described in the key-value pair are key, verification entity corresponding with the data to be verified is value;Wherein, Data to be verified and corresponding verification rule to registration carry out the verification entity that data encapsulation generates;
When receiving data to be verified using the local generated, the regulation data of the local data fit to be verified are special Sign obtains the verification object with local Data Matching to be verified from the dictionary database;
The method for calling the verification object carries out school according to corresponding verification rule to local data to be verified It tests, and the value of statistical indicant of back-checking result.
A kind of application data verification method, device and electronic equipment provided by the present application advise data to be verified, verification It is then abstracted, defines the feature of data and rule, conventional business datum to be verified complicated and changeable, which is abstracted as, to be had The data of regulation feature are verified rule simultaneously and checking procedure logic is encapsulated into verification entity, are no longer concerned about specific number According to specific rule, digital independent and data source are isolated so that data to be verified and corresponding verification rule are had The organization and management of sequence.In the application embodiment, can by first pass through in advance it is abstract in a manner of unified definition data to be verified and school Rule is tested, and data and rule unified management are got up by specified data format mode, verification is arrived in decision logic gathering Inside object identifier object., can be with data to be verified registered in advance and corresponding verification rule when using this programme, and define and return The method of readjustment is for receiving check results.After registration, can call by exposed interface when data check Verify entity and method of calibration.Then its return value is examined, can obtain whether primary data meets verification rule, completes data school It tests.Using the application embodiment, it can easily and efficiently be inquired by given data to be verified, change its verification rule, And convenient for the additions and deletions of verification rule, and data to be verified and corresponding verification rule is made to obtain orderly organization and management, school It tests digital independent logic and obtains unification, be just apparent from controllably using verification operation workflow, can effectively improve data check and hold The efficiency of management of data capable and to be verified and its verification rule greatly improves autgmentability and management, the maintenance of data check Convenience.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments described in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, other drawings may also be obtained based on these drawings.
Fig. 1 is provided by the present application a kind of using a kind of method flow diagram of embodiment of data verification method;
Fig. 2 is the signal class figure of one provided by the present application specific verification entity class;
Fig. 3 is the self-defined word that the mapping for saving data to be verified to verification entity in the application one embodiment is concerned about One signal class figure of allusion quotation class;
The structural representation of Fig. 4 used custom dictionaries when being the device data verification provided by the present application using verification Figure;
Fig. 5 is that the administrative section of custom dictionaries class data and rule integrally illustrates class figure in the application one embodiment;
Fig. 6 is that a kind of process flow being carried out data check using herein described method provided by the present application is illustrated Figure;
Fig. 7 is provided by the present application a kind of using a kind of modular structure schematic diagram of embodiment of data calibration device;
Fig. 8 is the modular structure schematic diagram of another embodiment of described device provided by the present application;
Fig. 9 is that the scene verified to the local data that user fills in client in one exemplary scene of the application is shown It is intended to.
Specific implementation mode
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The every other embodiment that technical staff is obtained without creative efforts should all belong to the application protection Range.
Fig. 1 is herein described a kind of using a kind of method flow diagram of embodiment of data verification method.Although the application It provides such as following embodiments or method operating procedure shown in the drawings or apparatus structure, but based on conventional or without creativeness Labour may include more in the method or device or part merge after less operating procedure or modular unit. In the step of there is no necessary causalities in logicality or structure, the execution sequence of these steps or the modular structure of device are not It is limited to the embodiment of the present application or execution shown in the drawings sequence or modular structure.The method or modular structure is in practice Device or end product in application, can be according to embodiment or method shown in the drawings or modular structure carry out sequence execution Either execute parallel (such as the environment of parallel processor or multiple threads, the implementation ring for even including distributed treatment Border).
Below for the sake of clarity, the data inputted in the page with specific mobile terminal application verification user are real Application scenarios are applied to illustrate.But skilled artisans appreciate that arrive, the connotation of this programme can be applied to In the implement scene of the local data verification generated when other are according to operations such as verification Application, terminal device, systems.It is understood that It is " local " for implementing local data verification, the common application that can be understood as in terminal device in one example It need not be carried out data transmission by any form and other programs, or not over the other programs of any form dependence or by it Its program relies on.Context in the program operation process that can refer to when the described operation, including but not limited to program are run Data, variable, code, environment in the process etc..By embodiment provided by the present application, the unified definition by way of abstract Data to be verified and verification regular nature, the object for meeting (realization) abstract data defined feature to be verified are available Built-in digital independent logic reads data, and then carries out subsequent data check, and the handle by way of custom dictionaries Data and rule unified management are got up, and checking procedure is encapsulated into verification entity inside decision logic gathering to verification entity object In class, the logic of verification is multiplexed, and can be informed external check results by way of exposure callback interface, removed bottom The complexity of specific different business data check so that it is data check unified logic, clear controllable, greatly improve data check The convenience of autgmentability and management, maintenance.The autgmentability is typically referred to without wholesale revision original system framework and original There is the ability for realizing that logic completes the addition of new logic or the deletion of old logic.
A kind of specific embodiment is as shown in Figure 1, a kind of a kind of implementation using data verification method provided by the present application In example, the method may include:
S1:The verification request of data object is received, the data object meets the regulation data spy for defining data to be verified Sign.
Data object described in the embodiment of the present application can be defined as required full when meeting the definition data to be verified The regular data feature of foot.Data to be verified described in the present embodiment can be abstracted " any to provide a character string The object of the data of type ", or even it is generalized for " any object that an arbitrary example can be provided ".It, can in actual treatment Need which defined data characteristics met with the data object for the business verified as needed, then will meet these stated numbers Data unified definition according to feature is a kind of data to be verified.The feature for defining data to be verified, in different business scenarios In, can define the every data for having (satisfaction) the regular data feature of setting can in the application embodiment quilt Verification.Therefore when increasing a kind of data to be verified newly, as long as can be to make this data meet defined item by being simply transformed Part, you can unified to complete digital independent using the method for reading data built in the application.This mode can digital independent and Data source is isolated, and digital independent is no longer concerned about that data source, logic obtain unification.
By taking Objective-C programming languages as an example, can be defined as follows interface, it is specified that data to be verified feature.
@protocol AEValidatable<NSObject>
@required
-(NSString*)validationText;
@end
Above-mentioned is the programming language signal description of data characteristics to be verified.If this rower of@required is bright Certain object, which is claimed, oneself meets eigen, then it must realize the method that next line defines.-(NSString*) This line of validationText is feature noumenon.I.e. if this method of object implementatio8, returns to a NSString The variable of (character string) type, then it just meets feature.@protocol AEValidatable<NSObject>It defines The name of the feature of data to be verified, AEValidatable.Namely all (realization) above-mentioned interface defined features of meeting Digital independent logic built in the equal utilisation system of object reads data, and then carries out subsequent data check.It is implementing In mode, defines interface while defining the feature of data to be verified, it is specified that this process of data characteristics is to specifically It is above-mentioned to define an interface on programming language.
The example of i.e. every class for realizing the interface can use unified system onboard data to read logic, read Data to be verified are got, subsequent verification is carried out.For example, TextField classes realize this interface, its word content is returned to, then Its example can be verified in the application for implementing this programme.
In this specific example, UITextField claims that oneself meets AEValidatable.It realizes feature Method as defined in ontology returns a string variable (self.text) and therefore uses the data object of TextField classes It can be verified in the application such as mobile terminal application for implementing this programme.
Based on foregoing description it is understood that the data object of the initiation verification request described in the embodiment of the present application is also Meet the regulation data characteristics required by abstract data to be verified.In specific application scenarios, the data object is Meet the verified object of the regular data feature of data to be verified, such as a text box.This is defined in initial registration Content in the data object of a text box needs which rule met.When initiating to verify, the text box is as to be verified Data object.
S2:Obtain with the matched verification object of the data object, the verification object include construct in advance it is to be verified At least one verification rule of data and the data to be verified.
To manage data to be verified and corresponding verification rule in the present embodiment, verification object can be defined.The school Data to be verified can be kept and it is expected that the verification met needed for the data to be verified is regular by testing in object.The rule can To be interpreted as scheduled condition, feature, feature.Certainly, the verification rule may include one or more verification rule. In a kind of embodiment provided by the present application, definition verification entity class may be used in the verification object, in the verification entity The data to be verified and at least one verification rule of registration are preserved in class.Here, the verification rule can also be conceptualized as It receives data to be verified and return identifies whether the object for meeting the variate-value of data shape rule.Certainly, the application does not arrange Except others are using without using verification entity class, checking procedure is not encapsulated, the realization of checking procedure is placed on verification executive agent Such as the embodiment inside checker.In specific one embodiment, the verification object may include:
S201:Data to be verified and corresponding verification rule to registration carry out the verification entity that data encapsulation generates, institute The data to be verified for stating registration are defined as meeting the object of the data of regulation data characteristics, and the verification rule is defined as connecing It receives data to be verified and return identifies whether the object for meeting the variate-value of data shape rule.
In a specific example, verification rule can be conceptualized as " receive a character string and return a mark be The object of no legal Boolean ".Still by taking Objective-C language as an example, interface is can be defined as follows, it is specified that verification rule Feature then:
@protocol AEValidationRule<NSObject>
-(BOOL)validate:(NSString*)text;
-(NSString*)errorMessage;
@end
The example of so every class for realizing above-mentioned interface may be used as the verification rule of the mobile terminal application Then.For example, verification rule can be:The length of data must be 11, meet then through verification, otherwise do not pass through.This rule tool Body is realized as follows:
Certainly, the verification rule that " verification rule " refers to abstract is previously mentioned in the application.Fig. 2 is one provided by the present application The signal class figure of specific verification entity class.
Further, in another embodiment provided by the present application, can be preserved using dictionary data to be verified and It verifies the mapping of rule.The dictionary is a kind of data structure, preserves a pair of keys and value, can be normal by given key Corresponding value is found in number complexity.Another embodiment of the application can use custom dictionaries as the appearance of management Device stores data to be verified to the mapping for verifying entity class, can easily be searched by exposed interface so given The verification rule of data to be verified.Fig. 3 is that data to be verified are saved in the application one embodiment to the mapping for verifying entity One signal class figure of the custom dictionaries class of care.In a kind of specific embodiment, the acquisition and the data object Matched verification object may include:
S202:Using the data object as query key, the inquiry is obtained from the key-value pair that custom dictionaries stores The identical key of value of key and corresponding value;
The custom dictionaries is configured to, and the data to be verified registered to it and institute are stored with the data format of key-value pair State the verification rule that data to be verified meet, data to be verified described in the key-value pair be key, with the data pair to be verified The verification entity answered is value.
Such as in an example, after determining data D to be verified and its verification rule, verification rule is placed on a list In, such as [A, B ...], verification rule A, B etc. of data D to be verified defined in list.Then can data D to be verified and The regular list of verification [A, B ...] it is encapsulated into a verification object E (the verification entity class stated).The self-defined word Key in allusion quotation is D, and value is E.Fig. 4 used custom dictionaries when being the device data verification provided by the present application using verification Structural schematic diagram.In general, there are one custom dictionaries inside a checker, checker and custom dictionaries can be one by one Corresponding relationship.One checker is supported to verify the data object of all satisfaction regulation data characteristicses.(in advance different industry The data object of business and corresponding verification list of rules are registered in custom dictionaries).Certainly, itself is not precluded within In embodiment, different business domains use individual checker object, and maintainable in this way is more preferable.
Fig. 5 is that the administrative section of custom dictionaries class data and rule integrally illustrates class figure in the application one embodiment. Using the method for custom dictionaries, using abstract data to be verified as key, verification entity is managed collectively and preserves as value, User interpolation data and rule by way of registration.Specifically in one embodiment, to increase new business data when confirming When the verification of object, the new business data object and corresponding verification rule are registered in the custom dictionaries, generated The verification generated using the new business data object as key, by the new business data object and corresponding verification rule encapsulation is real Body is the key-value pair of value.
When specific example, such as aforementioned verification phone number input by user, the rule of beginning is " 11 0-9 Arab Number ", later rule increase for " 11 0-9 Arabic numerals and with number 1 start ".So handled using the present embodiment When the case where above-mentioned verification rule increases, without increasing branching logic, only newly-increased rule need to be registered to mobile terminal application, Just the increase of rule is completed.The mode of regular reduction is similar.Data check part flexibly additions and deletions can verify rule in this way, Improve the autgmentability of system.Pseudocode is as follows.
DEFINE mobileNumber;// data to be verified
DEFINE validator;The checker object that // this system provides
validator.register(mobileNumber,forRules:[11 0-9 Arabic numerals are opened with number 1 Head])
return validator.validate()
Former scheme is rule to be become " A and B " from " A ", and " whether meets A, if meet B ", such decision logic It wants oneself to go to realize;The list that this programme rule is only become there are one the list [A] of elements A by one to be made of two elements [A, B], and this list is that internal system is safeguarded, it is transparent to user.User can only need newly-increased regular B to lead to The API registration for crossing system exposure is entered, so that it may to complete the newly-increased of logic.Redundant rule elimination is similarly.In this way, user can also nothing Former verification logic rules need to be understood again, directly using new rule registration so that entirely verify efficient administration, simple, easy Extension.
S3:The method for calling the verification object verifies the data object according to corresponding verification rule.
When practical application carries out data check, a checker can be provided, inside gather around there are one custom dictionaries Example.The interface of external call checker exposure registers the verification rule that data and expected data to be verified meet to checker Then.Both checker inner utilizations generate verification entity, and data and corresponding verification entity are stored in the form of key assignments In its custom dictionaries example.Checker can also provide the interface of solution registration, for cancelling the verification to certain data.Verification The check results of device can notify outside, callback method specified by outside by calling callback method.
When being verified to data object, key and value can be taken out from dictionary successively, calls the method for calibration of verification entity, Its return value is examined, can obtain whether primary data meets verification rule.
S4:Return to the value of statistical indicant of the check results of the data object.
As previously mentioned, verification can obtain the check results of data object after being finished, due to using in the present embodiment The processing of the abstract data class of verification data and its verification rule, its return can be arranged is to indicate data object check results A value of statistical indicant.Such as can be one indexed variable of setting inside checker, to identify check results, outside passes through inspection The value of this variable is tested to know check results.
In a kind of embodiment provided by the present application, the mode that readjustment may be used notifies external check results.Specifically, In a kind of embodiment provided by the present application, the value of statistical indicant of the check results for returning to the data object may include:
S401:The check results of the data object are returned into verification request originator by way of method readjustment.
Checking procedure is encapsulated into verification entity class, the logic of verification is multiplexed, and system passes through exposure callback interface Mode inform external check results.In a kind of embodiment, the check results of the return can be to identify whether to meet school Test the Boolean of rule.
In aforementioned, a kind of data to be verified may include one or more verification rule.The application is to verification rule It is abstracted, can be encapsulated into verification entity.In a kind of application data verification method provided by the present application, the verification is real Verification rule in body is stored in the form of verifying list of rules, is retained in the verification list of rules and at least one is waited for school Test the verification rule of data.
The mode of verification list of rules has been used to store the verification rule for defining data to be verified, verification rule can be improved Management then, convenient for operations such as addition, deletions.Therefore, the method further includes:
When confirming the first verification rule for increasing data to be verified, verifies rule by described first and be registered to described make by oneself In the corresponding verification list of rules of data to be verified described in adopted dictionary;
When confirming the second verification rule for deleting data to be verified, from the corresponding verification rules column of the data to be verified The second verification rule is deleted in table;
When confirming that the third for changing data to be verified verifies rule, modified third verification rule is replaced described The corresponding original third verification rule verified in list of rules of data to be verified.
In addition, in another embodiment of the application, the data to be verified can also be encapsulated in the verification entity Check logic;Correspondingly, it includes root that the verification rule called in the verification object carries out verification to the data object The verification executive mode using the verification rule to the data object is determined according to the check logic.For example, verifying successively Whether data meet each rule in list of rules.
Fig. 6 is that a kind of process flow being carried out data check using herein described method provided by the present application is illustrated Figure.Scheme provided by the present application, by first pass through in advance it is abstract in a manner of unified definition data to be verified and verification rule, and pass through finger Fixed data format mode gets up data and rule unified management, and decision logic is collapsed into the object identifier object of verification Portion., can be with data to be verified registered in advance and corresponding verification rule when using this programme, and realize callback method for receiving Check results.After registration, verification entity and method of calibration can be called by exposed interface when carrying out data check.So After examine its return value, can obtain primary data whether meet verification rule, complete data check.Using the application embodiment, It can easily and efficiently be inquired by given data to be verified, change its verification rule, and convenient for the additions and deletions of verification rule, and So that data to be verified and corresponding verification rule obtain orderly organization and management, verification data reads logic and obtains unification, It is just apparent from controllably using verification operation workflow, can effectively improve data check execution and data to be verified and its verification The efficiency of management of rule, greatly improves the convenience of the autgmentability and management, maintenance of data check.
Based on the application data verification method described in above-described embodiment or scene, the application also provides a kind of application data school Experiment device.The device may include that the system (including distributed system) of herein described method, software has been used (to answer With), module, component, server etc. and combine the necessary device for implementing hardware.Based on same innovation thinking, the application provides A kind of embodiment in device as described in the following examples.Since the implementation that device solves the problems, such as is similar to method, Therefore the implementation of the specific device of the application may refer to the implementation of preceding method, and overlaps will not be repeated.It is following to be used , the combination of the software and/or hardware of predetermined function may be implemented in term " unit " or " module ".Although following embodiment institute The device of description preferably realized with software, but the realization of the combination of hardware or software and hardware be also may and quilt That conceives is specific.Fig. 7 be it is provided by the present application a kind of using a kind of modular structure schematic diagram of embodiment of data calibration device, As shown in fig. 7, described device may include:
Data acquisition module 101 can be used for receiving the verification request of data object, and the data object, which meets definition, to be waited for The regulation data characteristics of verification data;
Matching module 102 can be used for constructing and preserve and the matched verification object of the data object, the verification pair As at least one verification rule of data to be verified and the data to be verified including constructing in advance;
Correction verification module 103 can be used for calling the method for the verification object, according to corresponding verification rule to the number It is verified according to object;
Result return module 104 can be used for returning the value of statistical indicant of the check results of the data object.
In one embodiment of herein described device, the data object can be the embodiment party for verifying entity Formula, therefore.In a kind of embodiment, the verification object may include:
Data to be verified and corresponding verification rule to registration carry out the verification entity that data encapsulation generates, the registration Data to be verified be defined as meeting the object of the data of regulation data characteristics, the verification rule, which is defined as receiving, waits for school The data and return tested identify whether the object for meeting the variate-value of data shape rule.
In described device another embodiment, it can be used for the mapping that dictionary stores data to be verified and its verification rule Relationship.Fig. 8 is the modular structure schematic diagram of another embodiment of described device provided by the present application, as shown in figure 8, the dress Setting to include:
Custom dictionaries 105 can be used for storing the data to be verified registered to it and institute with the data format of key-value pair State the verification rule that data to be verified meet, data to be verified described in the key-value pair be key, with the data pair to be verified The verification entity answered is value;
Correspondingly, it includes being made by oneself from described that the matching module 102, which is obtained with the matched verification object of the data object, Verification entity identical with the value of data key to be verified is obtained in adopted dictionary 105.
In another embodiment, the check logic of the data to be verified is also encapsulated in the verification entity;
Correspondingly, the correction verification module 103 call it is described verification object method according to accordingly in verification rule to institute It includes the school determined according to the check logic using the verification rule to the data object to state data object and carry out verification Test executive mode.
In the another embodiment of described device, the result return module 104 returns to the verification of the data object As a result value of statistical indicant includes:
Method readjustment by way of will identify the data object whether meet verification rule Boolean return to school Test request originator.
The specific embodiment of above-described embodiment described device is referred to retouching for preceding method embodiment related content It states.In place of different embodiment emphasis describe the difference with other embodiment, same or analogous implementation section is mutually joined See, does not do repeating one by one herein.
Method or apparatus described herein can realize that certain may be used in the checker with the embodiment of checker Kind Programming language such as Objective-C realizes the above-mentioned service logic of the application.In general, having in a checker example One custom dictionaries example, which supports to preserve a variety of (meeting stated features) verification datas, in reality It tramples and also implements a checker object and preserve data to be verified all under some business domains.For example, it can protect simultaneously Deposit the data to be verified of text box A, the data to be verified of text box B, the data to be verified of multiselect frame C.
The checker realized in the application both can be with call method M1, such as M1 (A), to inform that checker only verifies text The data of frame A, can also call method M2, to verify whole registered data --- A, B, C, with specific reference to the need of user It asks to determine, checker has this ability.
When in use, calling is interface (API) that checker is exposed to user, the inside of checker to user Realization is transparent to user, and user can directly need not come into contacts with verification entity or custom dictionaries object, can be only Need log-on data and rule.When needed, it calls API to initiate checking procedure, receives check results, stand in user Angle, checker is a black box.
The technical solution of the application can be achieved in object oriented program language, such as Objective-C language.
Certainly, verification entity class can not also be used in described device or method others embodiment, does not encapsulate and verified Journey can be placed on the realization of checking procedure inside checker.Even, in other embodiment, data to be verified is managed and also may be used Not use dictionary (mapping relations for not preserving data and rule) one is used only without using data types such as Map, Table A List preserves verification entity.The check results of checker can not also be notified using call-back manner, but in checker An indexed variable is arranged in portion, and to identify check results, the side of check results is known in outside by examining the value of this variable Formula is realized.Other embodiment based on the application innovative idea should all belong within scope of the present application.
It is provided by the present application it is a kind of apply data calibration device, can by first pass through in advance it is abstract in a manner of unified definition it is to be verified Data and verification rule, and data and rule unified management are got up by specified data format mode, decision logic collapses To inside the object identifier object of verification., can be regular with data to be verified registered in advance and corresponding verification when using this programme, And the method for returning and calling is defined for receiving check results.After registration, carry out data check when can be by exposed Interface calls verification entity and method of calibration.Then its return value is examined, can obtain whether primary data meets verification rule, is completed Data check.Using the application embodiment, it can easily and efficiently be inquired by given data to be verified, change its verification Rule, and convenient for the additions and deletions of verification rule, and data to be verified and corresponding verification rule is made to obtain orderly tissue and pipe Reason, verification data read logic and obtain unification, are just apparent from controllably using verification operation workflow, can effectively improve data school The efficiency of management for testing execution and data to be verified and its verification rule, greatly improves the autgmentability and management, dimension of data check The convenience of shield.
Aforementioned the application data verification method or device can be applied in multiple terminal application or server system, It is numerous due to generating data check service logic caused by the uncertainty of data when operation when effectively solving local data verification The problems such as miscellaneous, realization code is difficult to safeguard.Therefore, the application also provides a kind of electronic equipment, and the electronic equipment may include Mobile terminal (such as mobile phone), PC, server, distributed system, the electronic equipment include processor and are used at storage The memory of device executable instruction is managed,
The processor is configured to, and can be used for receiving the verification request of data object, the data object meets fixed The regulation data characteristics of justice data to be verified;It is additionally operable to obtain and the matched verification object of the data object, the verification pair As at least one verification rule of data to be verified and the data to be verified including constructing in advance;It is additionally operable to call the school The method for testing object verifies the data object according to the verification rule in corresponding;It is additionally operable to return to the data pair The value of statistical indicant of the check results of elephant.
In another embodiment, the electronic equipment can also include storage unit, and the storage unit is coupled in described Processor, for storing the school that the data to be verified registered to it and the data to be verified meet with the data format of key-value pair Rule is tested, data to be verified described in the key-value pair are key, verification entity corresponding with the data to be verified is value;
Correspondingly, the processor obtains and the matched verification object of the data object and verify include from described The data that verification entity identical with the value of data key to be verified is obtained in custom dictionaries, in the verification entity Complete data check.
Certainly, the electronic equipment can also have other embodiment party with reference to the description of preceding method or device embodiment Formula is specifically referred to the description of preceding method or device, and this will not be repeated here.
Method or apparatus described herein can be applied in client-side, and server-side is can be used for, by visitor The function of method or apparatus is implemented separately in family end or server-side, realizes the verification of client or server to local data. It is realized, such as obtained and the data pair by server-side alternatively, the application is not precluded within part steps in some embodiments As this implementation process of matched verification object, dictionary can be stored by server-side, and matching school is then asked according to verification It tests object and realizes verification, check results are finally sent to client-side.It is provided by the present application to apply data verification method Other implement scenes in, the data object to be verified of acquisition can be the local data of client, such as a kind of movement User fills in the local data of the generation of the phone number in list during some application operation in terminal.And to this cell-phone number The processing procedure that is verified of local data of code, for example, including described in previous embodiment acquisition verification object, according to correspondence Verification rule implement verification, return whether verify the value etc. passed through, can be realized in local terminal, in local data school It may not need in the processing procedure tested and interacted with server-side side.Specifically, the application also provides a kind of realization local data school The method tested, specifically, may include:
The verification that the data to be verified registered to it and the data to be verified meet is stored with the data format of key-value pair Rule, data to be verified described in the key-value pair are key, verification entity corresponding with the data to be verified is value;Wherein, Data to be verified and corresponding verification rule to registration carry out the verification entity that data encapsulation generates;
When receiving data to be verified using the local generated, the regulation data of the local data fit to be verified are special Sign obtains the verification object with local Data Matching to be verified from the dictionary database;
The method for calling the verification object carries out school according to corresponding verification rule to local data to be verified It tests, and the value of statistical indicant of back-checking result.
The method provided by the embodiments of the present application for realizing local data verification, can store comprising multiple needles being pre-designed To the verification entity of different data to be verified, these verification entities can be stored in the mapping relations of corresponding data to be verified In the database of client.It can be taken out from dictionary database by the interface that dictionary database exposes and data pair to be verified Then the key and value answered call the method for calibration of verification entity, verify the value of simultaneously back-checking result, can obtain client Whether meet verification rule using the data of generation.Certainly, the method for realizing local data verification can be also used for other Terminal device, such as server, intelligent wearable device, onboard system can be completed to verify with terminal device to local data.
Fig. 9 is that the scene verified to the local data that user fills in client in one exemplary scene of the application is shown It is intended to.As shown in figure 9, filling in multiple business datums in list of the user in a registration traffic item of application.According to Existing conventional mode is typically then to call the rule of name to verify whether name accords with by verifying the interface of name text frame It closes and requires, by the interface tune telephonic regular 1 of verification phone text box:" 11 0-9 Arabic numerals " verify phone It fills in and whether meets the requirements.If increasing the other business of the application newly, such as when password modification traffic item, newly-increased new sources wait for The code logic of this data is accordingly increased when verification data, and the password is set and changes business to Input Data Verification Calling interface.In currently existing scheme, scalability is very weak the step for digital independent, and data can not be uniformly processed in underaction The logic of reading.And use the embodiment of the present application scheme, data to be verified are carried out abstract, it is specified that the spy of data to be verified Sign, i.e., every data for having certain feature can be verified.Therefore when increasing a kind of data to be verified newly, as long as passing through letter Single transformation makes this data meet defined condition, you can unified to complete number using the method for reading data built in the application According to reading.Digital independent and data source can be isolated in this mode, and digital independent is no longer concerned about that data source, logic obtain It is unified.Such as in scene shown in Fig. 9, dynamic registration rule can be carried out, it is flexible, easily advance to various data to be verified Registration and management.Various data to be verified (name, telephone number in list) can call corresponding verification when being verified Entity class completes verification.If rule change, such as would increase telephone regulation 2:It " 11 0-9 Arabic numerals and 1 is opened with number The rule 2, then can directly be registered in dictionary, certainly, meta-rule 1 can be deleted directly by head ".
The complexity of data check is presented as that verification rule is more and miscellaneous.Using existing scheme, data to be verified and corresponding Verification rule cannot obtain orderly organization and management.Technical solution provided by the embodiments of the present application can use custom dictionaries Mode, using abstract data to be verified as key, the customized verification entity for encapsulating checking procedure is as value, school It tests in entity class and saves verification list of rules, can easily and efficiently inquire its verification by given data to be verified in this way Rule, and convenient for the additions and deletions of verification rule.
Although mentioned in teachings herein call-back manner feedback check result, using dictionary management verification data, using school Test entity class wrapper checking procedure, Objective-C programming languages realize custom dictionaries or the like data definition, The descriptions such as match, interact, calculating, judging, still, the application is not limited to meet data communication identifier, standard in the industry Situation described in assembly tool calling, standard computer language processing/database purchase loading method or the embodiment of the present application. Certain professional standards use embodiment modified slightly in self-defined mode or the practice processes of embodiment description May be implemented above-described embodiment it is identical, it is equivalent or it is close or deformation after it is anticipated that implementation result.Using these modifications or deformation The embodiment of the acquisitions such as configuration data afterwards defines, stores, judging, set-up mode, still may belong to the optional reality of the application It applies within aspects.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method flow can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and embedded microcontroller, the example of controller includes but not limited to following microcontroller Device:ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320, are deposited Memory controller is also implemented as a part for the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained in the form of logic gate, switch, application-specific integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. to come in fact Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
Unit, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, vehicle-mounted human-computer interaction device, cellular phone, camera phone, smart phone, individual Digital assistants, media player, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or The combination of any equipment in these equipment of person.
Although this application provides the method operating procedure as described in embodiment or flow chart, based on conventional or noninvasive The means for the property made may include more or less operating procedure.The step of being enumerated in embodiment sequence is only numerous steps A kind of mode in execution sequence does not represent and unique executes sequence.It, can be with when device in practice or end product execute According to embodiment, either method shown in the drawings sequence executes or parallel executes (such as parallel processor or multiple threads Environment, even distributed data processing environment).The terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that process, method, product or equipment including a series of elements are not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, product or equipment Intrinsic element.In the absence of more restrictions, be not precluded including the element process, method, product or There is also other identical or equivalent elements in person's equipment.
For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively.Certainly, implementing this The function of each module is realized can in the same or multiple software and or hardware when application, can also will realize same work( Can module by multiple submodule or subelement combination realize etc..Device embodiment described above is only schematic , for example, the division of the unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, Such as multiple units or component can be combined or can be integrated into another system, or some features can be ignored, or do not hold Row.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be by some interfaces, The INDIRECT COUPLING or communication connection of device or unit can be electrical, machinery or other forms.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, application-specific integrated circuit, programmable The form of logic controller and embedded microcontroller etc. realizes identical function.Therefore this controller is considered one kind Hardware component, and the structure that the device for realizing various functions that its inside includes can also be considered as in hardware component.Or Person even, can will be considered as either the software module of implementation method can be hardware again for realizing the device of various functions Structure in component.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of 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 count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology realizes information storage.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, tape magnetic disk storage or other magnetic storage apparatus Or any other non-transmission medium, it can be used for storage and can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage device.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so description is fairly simple, related place is referring to embodiment of the method Part explanation.
Above is only an example of the present application, it is not intended to limit this application.For those skilled in the art For, the application can have various modifications and variations.It is all within spirit herein and principle made by any modification, equivalent Replace, improve etc., it should be included within the scope of claims hereof.

Claims (17)

1. a kind of applying data verification method, which is characterized in that the method includes:
The verification request of data object is received, the data object meets the regulation data characteristics for defining data to be verified;
Acquisition and the matched verification object of the data object, the verification object includes the data to be verified constructed in advance and institute State at least one verification rule of data to be verified;
The method for calling the verification object verifies the data object according to corresponding verification rule;
Return to the value of statistical indicant of the check results of the data object.
2. a kind of data verification method is applied as described in claim 1, which is characterized in that the verification object includes:
Data to be verified and corresponding verification rule to registration carry out the verification entity that data encapsulation generates, and the registration waits for Verification data is defined as meeting the object of the data of regulation data characteristics, and the verification rule is defined as receiving to be verified Data and the object for returning to the variate-value for identifying whether to meet data shape rule.
3. as claimed in claim 2 a kind of using data verification method, which is characterized in that the acquisition and the data object Matched verification object includes:
Using the data object as query key, the value phase of the query key is obtained from the key-value pair that custom dictionaries stores Same key and corresponding value;
The custom dictionaries is configured to, and is stored the data to be verified registered to it with the data format of key-value pair and described is waited for The verification rule that verification data meets, data to be verified described in the key-value pair are key, corresponding with the data to be verified It is value to verify entity.
4. as claimed in claim 3 a kind of using data verification method, which is characterized in that increase new business data pair when confirming When the verification of elephant, the new business data object and corresponding verification rule are registered in the custom dictionaries, generate with The new business data object is key, the new business data object and corresponding verification rule is encapsulated the verification entity generated For the key-value pair of value.
5. as claimed in claim 3 a kind of using data verification method, which is characterized in that the verification rule in the verification entity It is then stored in the form of verifying list of rules, the verification of at least one data to be verified is retained in the verification list of rules Rule.
6. as claimed in claim 5 a kind of using data verification method, which is characterized in that the method further includes at least executing One of the following:
When confirming the first verification rule for increasing data to be verified, verifies rule by described first and be registered to the self-defined word In the corresponding verification list of rules of data to be verified described in allusion quotation;
When confirming the second verification rule for deleting data to be verified, from the corresponding verification list of rules of the data to be verified Delete the second verification rule;
When confirming that the third for changing data to be verified verifies rule, modified third verification rule is replaced and described waits for school Test the original third verification rule in the corresponding verification list of rules of data.
7. as claimed in claim 5 a kind of using data verification method, which is characterized in that also encapsulation is set in the verification entity The check logic of the data to be verified is set;
Correspondingly, it is described call it is described verification object method according to accordingly in verification rule school is carried out to the data object It tests including determining the verification executive mode using the verification rule to the data object according to the check logic.
8. as described in claim 1 a kind of using data verification method, which is characterized in that the return data object The value of statistical indicant of check results includes:
The check results of the data object are returned into verification request originator by way of method readjustment.
9. as claimed in claim 8 a kind of using data verification method, which is characterized in that the check results of the return are mark The Boolean for whether meeting verification rule known.
10. a kind of applying data calibration device, which is characterized in that described device includes:
Data acquisition module, the verification for receiving data object are asked, and the data object, which meets, defines data to be verified Provide data characteristics;
Matching module, for construct and preserve with the matched verification object of the data object, the verification object includes advance The data to be verified of construction and at least one verification rule of the data to be verified;
Correction verification module, the method for calling the verification object, carries out the data object according to corresponding verification rule Verification;
Result return module, the value of statistical indicant of the check results for returning to the data object.
11. a kind of data calibration device is applied as claimed in claim 10, which is characterized in that the verification object includes:
Data to be verified and corresponding verification rule to registration carry out the verification entity that data encapsulation generates, and the registration waits for Verification data is defined as meeting the object of the data of regulation data characteristics, and the verification rule is defined as receiving to be verified Data and the object for returning to the variate-value for identifying whether to meet data shape rule.
12. a kind of data calibration device is applied as claimed in claim 11, which is characterized in that described device further includes:
Custom dictionaries, for storing the data to be verified registered to it and the data to be verified with the data format of key-value pair The verification rule of satisfaction, data to be verified described in the key-value pair are key, verification entity corresponding with the data to be verified For value;
Correspondingly, it includes from the custom dictionaries that the matching module, which is obtained with the matched verification object of the data object, Obtain verification entity identical with the value of data key to be verified.
13. a kind of using data calibration device as described in claim 10 or 11, which is characterized in that in the verification entity also Encapsulate the check logic of the data to be verified;
Correspondingly, the correction verification module call it is described verification object method according to accordingly in verification rule to the data pair Include the verification side of execution determined according to the check logic using the verification rule to the data object as carrying out verification Formula.
14. as claimed in claim 13 a kind of using data calibration device, which is characterized in that the result return module returns The value of statistical indicant of the check results of the data object includes:
The data object will be identified by way of method readjustment whether meet the Boolean of verification rule return to verification and ask Ask initiator.
15. a kind of electronic equipment, which is characterized in that the storage including processor and for storing processor-executable instruction Device, the processor are configured to, and the verification for receiving data object is asked, and the data object, which meets, defines number to be verified According to regulation data characteristics;It is additionally operable to obtain and the matched verification object of the data object, the verification object includes advance The data to be verified of construction and at least one verification rule of the data to be verified;It is additionally operable to call the side of the verification object Method verifies the data object according to the verification rule in corresponding;It is additionally operable to return to the verification knot of the data object The value of statistical indicant of fruit.
16. a kind of electronic equipment as claimed in claim 15, which is characterized in that the electronic equipment further includes:
Storage unit, the storage unit are coupled in the processor, are registered for being stored to it with the data format of key-value pair Data to be verified and the verification rule that meets of the data to be verified, data to be verified described in the key-value pair be key, with The corresponding verification entity of the data to be verified is value;
Correspondingly, the processor obtains and the matched verification object of the data object and verify include being made by oneself from described The data that verification entity identical with the value of data key to be verified is obtained in adopted dictionary, are completed in the verification entity Data check.
17. a kind of method for realizing local data verification, which is characterized in that including:
The verification rule that the data to be verified registered to it and the data to be verified meet is stored with the data format of key-value pair, Data to be verified described in the key-value pair are key, verification entity corresponding with the data to be verified is value;Wherein, to registration Data to be verified and it is corresponding verification rule carry out data encapsulation generate verification entity;
When receiving data to be verified using the local generated, the regulation data characteristics of the local data fit to be verified, The verification object with local Data Matching to be verified is obtained from the dictionary database;
The method for calling the verification object verifies local data to be verified according to corresponding verification rule, and The value of statistical indicant of back-checking result.
CN201710053044.4A 2017-01-24 2017-01-24 Application data checking method and device and electronic equipment Active CN108345511B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710053044.4A CN108345511B (en) 2017-01-24 2017-01-24 Application data checking method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710053044.4A CN108345511B (en) 2017-01-24 2017-01-24 Application data checking method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN108345511A true CN108345511A (en) 2018-07-31
CN108345511B CN108345511B (en) 2022-02-08

Family

ID=62961851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710053044.4A Active CN108345511B (en) 2017-01-24 2017-01-24 Application data checking method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN108345511B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271152A (en) * 2018-08-17 2019-01-25 五八有限公司 A kind of method of calibration, device, storage medium and the terminal of input frame content
CN109376285A (en) * 2018-10-30 2019-02-22 上海掌门科技有限公司 Data sorting verification method, electronic equipment and medium based on json format
CN109389298A (en) * 2018-09-25 2019-02-26 阿里巴巴集团控股有限公司 A kind of service request method of calibration and device
CN109614327A (en) * 2018-12-06 2019-04-12 北京字节跳动网络技术有限公司 Method and apparatus for output information
CN109614262A (en) * 2018-09-25 2019-04-12 阿里巴巴集团控股有限公司 Business method of calibration, device and computer readable storage medium
CN109636317A (en) * 2018-11-23 2019-04-16 山东中创软件工程股份有限公司 Service control method, device, system and storage medium
CN110321505A (en) * 2019-06-25 2019-10-11 阿里巴巴集团控股有限公司 Data consistency verification method and device
CN111159153A (en) * 2019-12-30 2020-05-15 北京三快在线科技有限公司 Service data checking method and device, computer equipment and storage medium
CN111339125A (en) * 2020-02-24 2020-06-26 山东浪潮商用系统有限公司 Data query method and device
CN111382063A (en) * 2018-12-30 2020-07-07 贝壳技术有限公司 Acts compatible checking method and device
CN111427566A (en) * 2020-03-18 2020-07-17 北京达佳互联信息技术有限公司 Data processing method and device suitable for analog interface platform and server
CN113821829A (en) * 2021-01-07 2021-12-21 北京沃东天骏信息技术有限公司 Data verification method, device and storage medium
CN113821829B (en) * 2021-01-07 2024-04-16 北京沃东天骏信息技术有限公司 Data verification method, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120293840A1 (en) * 2008-03-22 2012-11-22 Kelce Steven Wilson Date-provable registration system for published documents
CN103455471A (en) * 2012-06-01 2013-12-18 阿里巴巴集团控股有限公司 Method and device for analyzing text to key value pairs
US8949203B1 (en) * 2012-01-11 2015-02-03 Cadence Design Systems, Inc. Verification of design libraries and databases
CN104391934A (en) * 2014-11-21 2015-03-04 深圳市银雁金融配套服务有限公司 Data calibration method and device
CN105786911A (en) * 2014-12-25 2016-07-20 阿里巴巴集团控股有限公司 Application data checking method and device
CN106254045A (en) * 2016-08-09 2016-12-21 中国银行股份有限公司 A kind of data verification method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120293840A1 (en) * 2008-03-22 2012-11-22 Kelce Steven Wilson Date-provable registration system for published documents
US8949203B1 (en) * 2012-01-11 2015-02-03 Cadence Design Systems, Inc. Verification of design libraries and databases
CN103455471A (en) * 2012-06-01 2013-12-18 阿里巴巴集团控股有限公司 Method and device for analyzing text to key value pairs
CN104391934A (en) * 2014-11-21 2015-03-04 深圳市银雁金融配套服务有限公司 Data calibration method and device
CN105786911A (en) * 2014-12-25 2016-07-20 阿里巴巴集团控股有限公司 Application data checking method and device
CN106254045A (en) * 2016-08-09 2016-12-21 中国银行股份有限公司 A kind of data verification method and device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109271152A (en) * 2018-08-17 2019-01-25 五八有限公司 A kind of method of calibration, device, storage medium and the terminal of input frame content
CN109389298A (en) * 2018-09-25 2019-02-26 阿里巴巴集团控股有限公司 A kind of service request method of calibration and device
CN109614262A (en) * 2018-09-25 2019-04-12 阿里巴巴集团控股有限公司 Business method of calibration, device and computer readable storage medium
CN109389298B (en) * 2018-09-25 2022-04-29 创新先进技术有限公司 Service request checking method and device
CN109376285A (en) * 2018-10-30 2019-02-22 上海掌门科技有限公司 Data sorting verification method, electronic equipment and medium based on json format
CN109376285B (en) * 2018-10-30 2021-03-02 上海掌门科技有限公司 Data sorting verification method based on json format, electronic device and medium
CN109636317A (en) * 2018-11-23 2019-04-16 山东中创软件工程股份有限公司 Service control method, device, system and storage medium
CN109614327A (en) * 2018-12-06 2019-04-12 北京字节跳动网络技术有限公司 Method and apparatus for output information
CN109614327B (en) * 2018-12-06 2022-02-01 北京字节跳动网络技术有限公司 Method and apparatus for outputting information
CN111382063A (en) * 2018-12-30 2020-07-07 贝壳技术有限公司 Acts compatible checking method and device
CN111382063B (en) * 2018-12-30 2023-09-08 贝壳技术有限公司 Method and device for verifying compact compatibility
CN110321505B (en) * 2019-06-25 2023-08-08 创新先进技术有限公司 Data consistency verification method and device
CN110321505A (en) * 2019-06-25 2019-10-11 阿里巴巴集团控股有限公司 Data consistency verification method and device
CN111159153B (en) * 2019-12-30 2023-08-29 北京三快在线科技有限公司 Service data verification method, device, computer equipment and storage medium
CN111159153A (en) * 2019-12-30 2020-05-15 北京三快在线科技有限公司 Service data checking method and device, computer equipment and storage medium
CN111339125B (en) * 2020-02-24 2023-07-25 浪潮软件科技有限公司 Data query method and device
CN111339125A (en) * 2020-02-24 2020-06-26 山东浪潮商用系统有限公司 Data query method and device
CN111427566A (en) * 2020-03-18 2020-07-17 北京达佳互联信息技术有限公司 Data processing method and device suitable for analog interface platform and server
CN113821829A (en) * 2021-01-07 2021-12-21 北京沃东天骏信息技术有限公司 Data verification method, device and storage medium
CN113821829B (en) * 2021-01-07 2024-04-16 北京沃东天骏信息技术有限公司 Data verification method, device and storage medium

Also Published As

Publication number Publication date
CN108345511B (en) 2022-02-08

Similar Documents

Publication Publication Date Title
CN108345511A (en) A kind of application data verification method, device and electronic equipment
US20190392617A1 (en) Visual workflow model
US9720656B2 (en) Method and apparatus for enabling agile development of services in cloud computing and traditional environments
CN105335389B (en) A kind of business method for visualizing and system
CN107450972A (en) A kind of dispatching method, device and electronic equipment
CN107402824A (en) A kind of method and device of data processing
CN107644286A (en) Workflow processing method and device
CN108282518A (en) A kind of customer terminal webpage generation method and device
CN107562777B (en) Data processing method and apparatus thereof
CN107506181A (en) Business processing, data processing method, device and electronic equipment
CN107045438A (en) One kind application top level view processing method, device and component
CN107203465A (en) System interface method of testing and device
CN107092475A (en) The call method and device of a kind of interactive controls
US20150143267A1 (en) SYSTEM AND METHOD FOR DEVELOPING A RULE-BASED EVENT-DRIVEN MULTI-LAYERED FRONTEND FOR BUSINESS SERVICES AND RENDERING THE GUIs ON MULTIPLE CLIENT DEVICES
CN109241026A (en) The method, apparatus and system of data management
CN107066519A (en) A kind of task detection method and device
CN106295390A (en) A kind of method and device of information processing
CN109947643A (en) A kind of configuration method, device and the equipment of the experimental program based on A/B test
CN110633959A (en) Method, device, equipment and medium for creating approval task based on graph structure
CN107330014A (en) The creation method and equipment of a kind of tables of data
CN115270202A (en) Privacy calculation method and device based on multi-party cooperation
CN108255471A (en) A kind of system configuration item configuration device based on configuration external member, method and apparatus
CN108363732A (en) A kind of form processing method of multi-user collaborative, device and equipment
CN115269683A (en) Data query method and device based on multi-party cooperation
CN108170430A (en) A kind of method and system of showing interface

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240208

Address after: # 01-21, Lai Zan Da Building 1, 51 Belarusian Road, Singapore

Patentee after: Alibaba Singapore Holdings Ltd.

Guo jiahuodiqu after: Xin Jiapo

Address before: Greater Cayman, British Cayman Islands

Patentee before: ALIBABA GROUP HOLDING Ltd.

Guo jiahuodiqu before: Ikujin group