A method and system for unified data verification
A data verification and verification method technology, applied in the computer field, can solve the problems of inconsistent verification rules, inconsistent verification results, program errors, etc., and achieve the effect of keeping the verification method and verification result unified.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0067] Please refer to figure 1 As shown, the first embodiment of the present invention is:
[0068] A method for unified data validation, including the following steps:
[0069] S1, the client and the server respectively encapsulate the verification method corresponding to the verification rule of the data field;
[0070] Wherein, the verification rules described in S1 include: verifying whether the data field is empty, verifying the data type of the data field, verifying the numerical range of the data field or verifying the string length of the data field.
[0071] S2, the server stores the configuration table configured with the mapping relationship between the data field and the verification rule, and sends the configuration table to the client;
[0072] Among them, S2 includes:
[0073] S201, the server stores the configuration table configured with the mapping relationship between the data field and the verification rule, and sets a version number for the configurati...
Embodiment 2
[0080] Please refer to figure 1 As shown, the second embodiment of the present invention is:
[0081] The method for unified data verification of the present invention is applied to specific form data, and the form data provided by the user is as follows:
[0082]
[0083] Mail:
[0084] age:
[0085] family address:
[0086]
[0087]
[0088] The validation rules corresponding to the data fields in the form data are:
[0089] Validation rules for email fields: required, use email validation rules;
[0090] Validation rule for age field: integer, greater than 0 and less than 120;
[0091] Validation rules for home address: string, greater than 0 and less than 100 characters;
[0092] The corresponding unified data verification method includes the following steps:
[0093] Step 1: The client and the server respectively encapsulate the verification method corresponding to the verification rule of the data field, wherein the verification rule is a verif...
Embodiment 3
[0117] Please refer to figure 2 As shown, the third embodiment of the present invention is:
[0118] A system 1 for unified data verification, including a client 2 and a server 5, the client 2 includes a first memory 3, a first processor 4 and is stored on the first memory 3 and can be stored in the first processor 4. The first computer program running on the server 5 includes a second memory 6, a second processor 7 and a second computer program stored on the second memory 6 and running on the second processor 7, the The first processor 4 implements the following steps when executing the first computer program:
[0119] S11, encapsulate the verification method corresponding to the verification rule of the data field;
[0120] Wherein, the verification rules described in S11 all include: verifying whether the data field is empty, verifying the data type of the data field, verifying the numerical range of the data field or verifying the string length of the data field;
[01...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com