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.

Inactive Publication Date: 2019-03-29
福建省华渔教育科技有限公司
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the user submits the form, the client and the server respectively verify the validity of the submitted data, but sometimes when the client and the server verify the same data, the verification rules are not uniform, which may easily lead to The verification results of the same data by the server are inconsistent, and a program error occurs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for unified data verification
  • A method and system for unified data verification

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to a method and a system for unified data verification. Verification rules for data fields are unified by configuring a configuration table with a mapping relationship between the data fields and the validation rules, the client and the server verify the corresponding data fields respectively according to the same verification rule, which can avoid the program error caused bythe inconsistent verification results of the same form data between the client and the server, At the same time, the server stores the configuration table and sends the configuration table to the client, so as to ensure that the verification rule changes in the configuration table of the server can be synchronized to the client in time, and even if the verification rule changes in the configuration table, the verification method and the verification result of the same form data of the client and the server can be kept unified.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and system for unified data verification. Background technique [0002] In the Internet WEB application system based on the BS architecture, there are many business scenarios where users need to submit forms. During the process, the client usually submits form data based on the HTML Form tag, and the server receives the form data and processes the data. When the user submits the form, the client and the server respectively verify the submitted data for validity, but sometimes when the client and the server verify the same data, the verification rules are not uniform, which may easily lead to the client and the server. The server-side verification results for the same data are inconsistent, and a program error occurs. SUMMARY OF THE INVENTION [0003] The technical problem to be solved by the present invention is to provide a method and system for unified data verification, wh...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/23G06F16/22
Inventor 刘德建张章湫欧远宁郭玉湖
Owner 福建省华渔教育科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products