CN116820633A - Data verification method and device, electronic equipment and storage medium - Google Patents

Data verification method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116820633A
CN116820633A CN202310834908.1A CN202310834908A CN116820633A CN 116820633 A CN116820633 A CN 116820633A CN 202310834908 A CN202310834908 A CN 202310834908A CN 116820633 A CN116820633 A CN 116820633A
Authority
CN
China
Prior art keywords
data
verification
management library
category
verified
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.)
Pending
Application number
CN202310834908.1A
Other languages
Chinese (zh)
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.)
Digital Guangdong Network Construction Co Ltd
Original Assignee
Digital Guangdong Network Construction Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Digital Guangdong Network Construction Co Ltd filed Critical Digital Guangdong Network Construction Co Ltd
Priority to CN202310834908.1A priority Critical patent/CN116820633A/en
Publication of CN116820633A publication Critical patent/CN116820633A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a data verification method, a device, electronic equipment and a storage medium, belonging to the technical field of computers, wherein the method comprises the following steps: acquiring an associated application program interface from a preset application program interface management library according to the data type of the data to be verified, which is input by a user; acquiring an association verification rule from a preset verification rule management library according to the data category by using the association application program interface; and verifying the data to be verified according to the association verification rule by using the association application program interface, and returning a verification result. The invention can replace system development and edition raising by operation configuration when the data needing verification is newly added or verification rules are adjusted, and the front end and the rear end are not required to be adjusted together, so that normal business is not influenced.

Description

Data verification method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data verification method, a data verification device, an electronic device, and a storage medium.
Background
The business process typically requires verification of the material filled by the user. The data required for verification is diverse and new verification rules are often adjusted or added according to the change in demand. In the prior art, each time there is a new verification, a verification interface is developed first, then the verification interface is applied to a specific field for verification, the front end and the rear end are required to be adjusted together, and the service of a release plate is required to be stopped for online of related functions. The process has strong dependence on development, long development period, inconvenient maintenance and adjustment and can not meet the requirement of high-efficiency support business application.
Disclosure of Invention
The embodiment of the invention provides a data verification method, a device, electronic equipment and a storage medium, which can replace system development and edition raising by operation configuration when data needing verification is newly added or verification rules are adjusted, and do not need front and rear end adjustment together, so that normal business is not influenced.
In a first aspect, an embodiment of the present invention provides a data verification method, including: acquiring an associated application program interface from a preset application program interface management library according to the data type of the data to be verified, which is input by a user; acquiring an association verification rule from a preset verification rule management library according to the data category by using the association application program interface; and verifying the data to be verified according to the association verification rule by using the association application program interface, and returning a verification result.
In a second aspect, an embodiment of the present invention provides a data verification apparatus, including: the associated application program acquisition module is used for acquiring an associated application program interface from the application program interface management library according to the data category of the data to be verified, which is input by the user; the association verification rule acquisition module is used for acquiring association verification rules from a verification rule management library according to the data category by utilizing the association application program interface; and the verification module is used for verifying the data to be verified according to the association verification rule by using the association application program interface and returning a verification result.
In a third aspect, an embodiment of the present invention further provides a data verification system, including: the system comprises an application programming interface management library, a metadata management library, the verification rule management library and a data verification device, wherein the data verification device is used for executing the data verification method according to any one of the embodiments of the invention.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a memory, a processor, and a computer program stored on the memory and capable of running on the processor, where the processor implements the data verification method according to any one of the embodiments of the present invention when executing the program.
In a fourth aspect, embodiments of the present invention further provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data verification method according to any of the embodiments of the present invention.
The data verification method, the device, the electronic equipment and the storage medium provided by the invention have the advantages that by utilizing the pre-established application programming interface management library and the verification rule management library, when verification data is newly added or verification rules are adjusted, only the application programming interface management library and the verification rule management library are managed and adjusted, when verification of data input by a user is not influenced, the selection acquisition of the associated application programming interface is carried out from the program programming interface management library and the acquisition of the associated verification rules is carried out from the verification rule management library, so that normal verification business is not influenced by requirement change and verification rule change, namely, when verification data is newly added or verification rules are adjusted, the system development and verification work is replaced by an operation configuration implementation mode, an overlong development period is not required, normal business is not influenced, and the general verification rules can be applied to a plurality of business scenes, and the development cost is reduced as a whole; in addition, verification rules which are originally hidden in each service application code can be abstracted out and centralized configuration management is carried out, so that the sedimentation and management of service logic are realized, and the management difficulty and cost are reduced through unified management and control.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and should not be considered as limiting the scope, and that other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a data verification method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a data verification method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a data verification method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data verification device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Fig. 1 is a schematic flow chart of a data verification method according to an embodiment of the present invention, where the method may be performed by the data verification method according to the embodiment of the present invention, and the device may be implemented in software and/or hardware. In a specific embodiment, the apparatus may be integrated in an electronic device, such as a computer, a server, etc. The following embodiments will be described taking the integration of the device in an electronic apparatus as an example. Referring to fig. 1, the method may specifically include the steps of:
step 101, acquiring an associated application program interface from a preset application program interface management library according to the data type of the data to be verified, which is input by a user, so that the associated application program interface can be used for acquiring an associated verification rule and further verifying the data to be verified.
Optionally, the category of the data to be verified includes a category of data to be verified, which is input by a user, and may include: name, phone, date of birth, residence address, identification card number, etc. The data to be verified is specific data input by the user, for example, "king" input when the category is a name, and "2012.5.20" input when the category is a date of birth.
In an optional embodiment of the present invention, the process of obtaining the associated application program interface from the preset application program interface management library according to the data category of the data to be verified, which is input by the user, includes:
and acquiring the associated application programming interface from the application programming interface management library according to the data category and the verification task category of the data category.
Optionally, the verification task category of the data category may include one or a plurality of verification task categories.
For example, the verification task categories of the data categories are two, and specifically may include: checking task type I, checking whether name data input by a user is a correct user name or not; and checking the second task category to check whether the name input by the user is on the blacklist.
Optionally, the acquiring the associated application programming interface from the application programming interface management library according to the data class and the verification task class of the data class may include acquiring the associated application interface of the verification task class one and the associated application interface of the verification task class two from the application programming interface management library respectively.
Optionally, the application programming interface management library may include information such as a name of each Application Programming Interface (API), a parameter-out, a parameter-in, and an association relationship with a data class of the data to be verified.
Optionally, the application programming interface management library may further include an association relationship with each verification task category of the data to be verified. Wherein the verification task categories may include: the verification task of verifying whether the name data input by the user is the correct user name or whether the name input by the user is on the blacklist is performed.
Specifically, the content included in the verification rule management library can facilitate operators to intuitively identify and refer to the API.
Optionally, each application programming interface in the application programming interface management library is a packaged standard interface. The inclusion of the standard interface described above may be defined as including the data to be verified and the corresponding associated verification rules. Thus, the associated application programming interface of each piece of data to be verified can complete verification of each piece of data to be verified according to the associated verification rule of each piece of data to be verified. By setting the standard interface, the problem that business applications need to be connected with various interfaces can be avoided, the business applications can be guided to be in high-efficiency butt joint, and the application efficiency is improved.
Step 102, acquiring an association verification rule from a preset verification rule management library according to the data category by using an association application program interface, so that verification of the data to be verified according to the association rule can be facilitated.
Alternatively, the verification rule may include rules of greater than, less than, equal to, non-null, and the like.
For example, a verification task of "verifying whether or not the name data input by the user is the correct user name" may be performed using "equal" rule; as another example, a "non-null" rule may be utilized to perform a verification task of whether the name entered by the user is on a blacklist.
Optionally, the verification rule management library may include a category name of each verification rule and an association relationship with a data category of the data to be verified. The category names may specifically be self-entered values, such as conforming rules, inclusion rules, etc.
Optionally, the verification rule management library may include an association relationship between each verification rule and a verification task class of a data class of the data to be verified.
Optionally, the verification rule management library may further include a description field of each verification rule, where the description field may be a self-input value, and for example, the description field of the compliance rule may be "whether the input data matches the standard data".
Optionally, the category name and description field of each verification rule are set, so that the operator can conveniently recognize, understand and select.
Optionally, the verification rule management library may further include an enabling state of each verification rule. The above-described enabling states may include two states of enabling and disabling.
Specifically, the verification rules may change at different time periods. The temporarily inapplicable rule is set to be deactivated, and the rule in use is set to be activated, so that operators can conveniently and correctly select the rule.
In an optional embodiment of the present invention, the process of obtaining, by using the association application program interface, the association verification rule from the preset verification rule management library according to the data category includes:
and acquiring the associated verification rule from the verification rule management library according to the data category and the verification task category of the data category by using the associated application program interface.
Optionally, the process of obtaining the associated verification rule from the verification rule management library according to the data category and the verification task category of the data category may include obtaining a verification rule of the verification task category one and a verification rule of the verification task category two from the verification rule management library, respectively.
And step 103, performing verification according to the data to be verified of the associated verification rule by using the associated application program interface, and returning a verification result. The system development and edition raising work can be replaced by an operation configuration implementation mode on the basis of the step 101 and the step 102 when the data needing verification is newly added or the verification rule is adjusted, the overlong development period is not needed, the normal service is not influenced, and the universal verification rule can be applied to a plurality of service scenes, so that the development cost is reduced as a whole; in addition, verification rules which are originally hidden in each service application code can be abstracted out and centralized configuration management is carried out, so that the sedimentation and management of service logic are realized, and the management difficulty and cost are reduced through unified management and control.
In an optional embodiment of the present invention, the process of verifying the data to be verified according to the association verification rule by using the association application program interface includes:
and verifying the data to be verified according to standard data obtained from the local database and/or the third party database by using the associated application program interface.
In particular, the standard data may be stored in a local database or a third party database, and one or more standard data are used for each data to be verified, so that the associated application program interface is required to be used for acquiring the standard data from the local database and/or the third party database.
The data verification method is further described below, and may include the following steps as shown in fig. 2:
step 201, acquiring an associated application program interface from a preset application program interface management library according to the data type of the data to be verified, which is input by a user.
And 202, checking the data category based on a preset metadata management base by utilizing an associated application program interface to obtain the checked data category.
Optionally, the metadata management database may include a name definition, an attribute definition and an on state of the data to be verified corresponding to each metadata.
Specifically, the name definition of the data to be verified corresponding to each metadata may include a name of a data category of each data to be verified, and may include a chinese name and/or an english name. For example, for the category of names, the text name "and the english name" may be defined. Specifically, the english names need to be checked for uniqueness, and the english names should be managed according to standard specifications.
Specifically, the name definition of the data to be verified corresponding to each metadata may further include a description of a data class of each data to be verified, and the operator may identify and select the data class of each data to be verified.
Specifically, the attribute definition of the data to be verified corresponding to each metadata includes an attribute of the data to be verified corresponding to the metadata. For example, for the verification data "identification card number", the attribute may be defined as "number and length of 18".
Specifically, the on state of the verification data corresponding to each metadata may include an enabling state and a disabling state. At different time periods, the data that needs to be verified may change. The starting state of the data category which is not required to be checked temporarily is set to be deactivated, and the starting state of the data category which is required to be checked currently is set to be activated, so that the correct selection of operators can be facilitated.
In an optional embodiment of the present invention, the process of verifying the data category based on the metadata management database using the associated application program interface includes: determining metadata extraction rules of data to be verified according to the data types; extracting metadata of the data to be verified from the data to be verified according to metadata extraction rules; and checking the data category according to whether the standard metadata corresponding to the data category stored in the metadata management database is consistent with the metadata of the data to be checked.
In practical application, if the data to be verified is an identification card number input by a user, the data type and the length of the identification card number can be extracted as metadata of the data to be verified, and then whether the identification card number input by the user is really the identification card number is verified according to whether the standard metadata of the identification card number, namely the number and the length of 18, are consistent with the extracted data type and the length.
And 203, acquiring the association verification rule from the verification rule management library according to the verified data category by using an association application program interface.
And 204, checking the data to be checked according to the association checking rule by using the association application program interface, and returning a checking result.
The embodiment of the invention can ensure that the data to be verified input by the user accords with the data category input by the user. For example, when the user inputs the identification card number, the user inputs 18 digits instead of the 17 digits or inputs the telephone number wrongly, so that the user is prevented from finding the input error after the subsequent verification step is performed, and verification efficiency is improved.
The data verification method is further described below, and may include the following steps as shown in fig. 3:
step 301: creating an application programming interface management library, a metadata management library and a verification rule management library according to the types of the data to be verified, and associating each type of the data to be verified with one or more application programming interfaces in the application programming interface management library, one metadata in the metadata management library and one or more verification rules in the verification rule management library.
Specifically, the category of the data to be verified may be associated with the corresponding application programming interface and the corresponding verification rule according to the association mode selected by the operator from the drop-down boxes of the visual interface, for example, when the operator selects one application program interface from the drop-down boxes of the application program interfaces of the visual interface for the category of the data "name", and selects one verification rule from the drop-down boxes of the verification rules of the visual interface, the name is associated with the application program interface and the verification rule.
Therefore, operators can directly configure the verification rules, high-dependency development is avoided, and updating of the configuration rules under the condition of no stopping service is supported.
In an alternative embodiment of the present invention, the application programming interface manager and the verification rule manager are created according to the category of the data to be verified.
Optionally, the process of creating the application programming interface management library, the metadata management library and the verification rule management library according to the category of the data to be verified includes: creating an application programming interface management library and a verification rule management library according to the category of the data to be verified and the category of the verification task, and associating each verification task category of each category of the data to be verified with one application programming interface in the application programming interface management library and one verification rule in the verification rule management library.
Optionally, the process of creating the application programming interface management library, the metadata management library and the verification rule management library according to the category of the data to be verified includes: and associating a plurality of verification task categories of the data to be verified or the categories of the data to be verified with one verification rule.
Optionally, the process of creating the application programming interface management library, the metadata management library and the verification rule management library according to the category of the data to be verified includes: a plurality of said application programming interfaces are associated with one of said verification rules.
Step 302, obtaining the associated application program interface from the application program interface management library according to the data category of the data to be verified, which is input by the user
And step 303, utilizing the associated application program interface, and checking the data category based on the metadata management database to obtain the checked data category.
And 304, acquiring the association verification rule from the verification rule management library according to the verified data category by using an association application program interface.
And 305, performing verification according to the verification data to be verified according to the association verification rule by using the association application program interface, and returning a verification result.
And 306, updating the application programming interface management library, the metadata management library and the verification rule management library according to the change of the category of the data to be verified and/or according to the change of the verification task.
Alternatively, the above-mentioned change of the category of the data to be checked may include adding and deleting the category of the data to be checked, for example, adding and deleting the check of the age of the user.
Optionally, the change of the verification task may include a change of a verification rule, and specifically includes a new addition, an update and a deletion of the verification rule.
The embodiment of the invention can realize the decoupling of the process and the service of newly adding the data needing verification or adjusting the verification rule by creating the application programming interface management library, the metadata management library and the verification rule management library, and can flexibly expand the programming interface management library, the metadata management library and the verification rule management library, so that the more powerful the system functions are; and the universal rule can be applied to other business scenes, repeated development can be reduced, and quality and efficiency are improved.
Fig. 4 is a block diagram of a data verification apparatus according to an embodiment of the present invention, where the apparatus is adapted to perform the data verification method according to the embodiment of the present invention. As shown in fig. 4, the apparatus may specifically include:
the associated application program obtaining module 401 is configured to obtain an associated application program interface from a preset application program interface management library according to a data category of data to be verified, which is input by a user;
the association verification rule obtaining module 402 is configured to obtain association verification rules from a preset verification rule management library according to data types by using an association application program interface; and
the verification module 403 is configured to perform verification according to the verification data to be verified according to the association verification rule by using the association application program interface, and return a verification result.
The embodiment of the invention can replace the system development and edition raising work by an operation configuration implementation mode when the data needing verification is newly added or the verification rule is adjusted, does not need an overlong development period, does not influence normal business, and can be applied to a plurality of business scenes by a general verification rule, thereby integrally reducing the development cost; in addition, verification rules which are originally hidden in each service application code can be abstracted out and centralized configuration management is carried out, so that the sedimentation and management of service logic are realized, and the management difficulty and cost are reduced through unified management and control.
Optionally, the above-mentioned associated application program obtaining module 401 may be specifically configured to obtain the associated application program programming interface from the application program programming interface management library according to the data class and the verification task class of the data class.
Optionally, the association verification rule obtaining module 402 is specifically configured to obtain, using the association application program interface, an association verification rule from the verification rule management library according to the data category and the verification task category of the data category.
Optionally, the verification module 403 can be specifically configured to verify the data to be verified according to standard data obtained from the local database and/or the third party database by using the associated application program interface.
Optionally, the data verification device of the present invention further includes: and the data category verification module is used for verifying the data category based on a preset metadata management library by utilizing the associated application program interface to obtain a verified data category.
Optionally, the data type verification module may be specifically configured to determine a metadata extraction rule of the data to be verified according to the data type;
extracting metadata of the data to be verified from the data to be verified according to metadata extraction rules; and
and checking the data category according to whether the standard metadata corresponding to the data category stored in the metadata management database is consistent with the metadata of the data to be checked.
In an alternative embodiment of the present invention, the data verification device of the present invention further includes: and the management library creation module is used for creating an application programming interface management library, a metadata management library and a verification rule management library according to the types of the data to be verified, and associating each type of the data to be verified with one or more application programming interfaces in the application programming interface management library, one metadata in the metadata management library and one or more verification rules in the verification rule management library.
Optionally, the management library creating module may be specifically configured to create an application programming interface management library and a verification rule management library according to the category of the data to be verified and the category of the verification task, and associate each verification task category of the category of each data to be verified with one application programming interface in the application programming interface management library and one verification rule in the verification rule management library.
Optionally, the data verification device of the present invention further includes: and the updating module is used for updating the application programming interface management library, the metadata management library and the verification rule management library according to the change of the category of the data to be verified and/or according to the change of the verification task.
The embodiment of the invention also provides a verification system which comprises an application programming interface management library, a metadata management library, a verification rule management library and a data verification device, wherein the data verification device is used for executing the data verification method provided in any embodiment of the invention.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working process of the functional module described above may refer to the corresponding process in the foregoing method embodiment, and will not be described herein.
The embodiment of the invention also provides electronic equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the data verification method provided by any embodiment when executing the program.
The embodiment of the invention also provides a computer readable medium, on which a computer program is stored, the program, when executed by a processor, implementing the data verification method provided in any of the above embodiments.
Referring now to FIG. 5, there is illustrated a schematic diagram of a computer system 500 suitable for use in implementing an electronic device of an embodiment of the present invention. The electronic device shown in fig. 5 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 5, the computer system 500 includes a Central Processing Unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage section 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, ROM 502, and RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
The following components are connected to the I/O interface 505: an input section 506 including a keyboard, a mouse, and the like; an output portion 507 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage portion 508 including a hard disk and the like; and a communication section 509 including a network interface card such as a LAN card, a modem, or the like. The communication section 509 performs communication processing via a network such as the internet. The drive 510 is also connected to the I/O interface 505 as needed. A removable medium 511 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 510 as needed so that a computer program read therefrom is mounted into the storage section 508 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 509, and/or installed from the removable media 511. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 501.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules and/or units involved in the embodiments of the present invention may be implemented in software, or may be implemented in hardware. The described modules and/or units may also be provided in a processor, e.g., may be described as: a processor includes an association application acquisition module, an association verification rule acquisition module, and a verification module. The names of these modules do not constitute a limitation on the module itself in some cases.
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the device, the related application program interfaces are obtained from a preset application program interface management library according to the data types of the data to be verified, which are input by a user; acquiring an association verification rule from a preset verification rule management library according to the data category by using the association application program interface; and verifying the data to be verified according to the association verification rule by using the association application program interface, and returning a verification result.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method of data verification, comprising:
acquiring an associated application program interface from a preset application program interface management library according to the data type of the data to be verified, which is input by a user;
acquiring an association verification rule from a preset verification rule management library according to the data category by using the association application program interface; and
and carrying out verification according to the data to be verified by using the associated application program interface according to the associated verification rule, and returning a verification result.
2. The data verification method according to claim 1, further comprising: before the associated application program interface is utilized to acquire the associated verification rule from a preset verification rule management library according to the data category,
verifying the data category based on a preset metadata management library by utilizing the associated application program interface to obtain the verified data category;
the process of acquiring the association verification rule from the preset verification rule management library according to the data category by using the association application program interface comprises the following steps:
and acquiring an associated verification rule from a verification rule management library according to the data category passing the verification by using the associated application program interface.
3. The data verification method according to claim 2, further comprising: before the data category of the data to be verified, which is input by the user, is obtained from a preset application programming interface management library,
creating the application programming interface management library, the metadata management library and the verification rule management library according to the types of the data to be verified, and associating each type of the data to be verified with one or more application programming interfaces in the application programming interface management library, one metadata in the metadata management library and one or more verification rules in the verification rule management library.
4. The method for verifying data as defined in claim 1, wherein,
the process of acquiring the associated application program interface from the preset application program interface management library according to the data category of the data to be verified, which is input by the user, comprises the following steps:
acquiring the associated application programming interface from the application programming interface management library according to the data category and the verification task category of the data category;
the process of acquiring the association verification rule from the preset verification rule management library according to the data category by using the association application program interface comprises the following steps:
and acquiring the associated verification rule from a verification rule management library according to the data category and the verification task category of the data category by using the associated application program interface.
5. The data verification method according to claim 1, wherein the process of verifying the data to be verified according to the association verification rule using the association application program interface includes:
and verifying the data to be verified according to standard data obtained from a local database and/or a third party database by using the associated application program interface.
6. The data verification method according to claim 2, wherein the process of verifying the data category based on a preset metadata management library by using the associated application program interface to obtain the verified data category includes:
determining metadata extraction rules of the data to be verified according to the data category;
extracting metadata of the data to be verified from the data to be verified according to the metadata extraction rule; and
and checking the data category according to whether the standard metadata corresponding to the data category stored in the metadata management library is consistent with the metadata of the data to be checked.
7. A data verification method according to claim 3, wherein the process of creating the application programming interface management library, the metadata management library, and the verification rule management library according to the category of the data to be verified comprises:
and creating the application programming interface management library and the verification rule management library according to the category of the data to be verified and the verification task category, and associating each verification task category of the category of each data to be verified with one application programming interface in the application programming interface management library and one verification rule in the verification rule management library.
8. A data verification method according to claim 3, further comprising:
and updating the application programming interface management library, the metadata management library and the verification rule management library according to the change of the category of the data to be verified and/or according to the change of the verification task.
9. A data verification apparatus, comprising:
the associated application program acquisition module is used for acquiring an associated application program interface from a preset application program interface management library according to the data type of the data to be verified, which is input by a user;
the association verification rule acquisition module is used for acquiring association verification rules from a preset verification rule management library according to the data category by utilizing the association application program interface; and
and the verification module is used for verifying the data to be verified according to the association verification rule by using the association application program interface and returning a verification result.
10. A data verification system, comprising:
an application programming interface management library, a metadata management library, a verification rule management library and a data verification device,
the data verification apparatus is configured to perform the data verification method according to any one of claims 1 to 8.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the data verification method of any one of claims 1 to 8 when the program is executed by the processor.
12. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a data verification method as claimed in any one of claims 1 to 8.
CN202310834908.1A 2023-07-07 2023-07-07 Data verification method and device, electronic equipment and storage medium Pending CN116820633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310834908.1A CN116820633A (en) 2023-07-07 2023-07-07 Data verification method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310834908.1A CN116820633A (en) 2023-07-07 2023-07-07 Data verification method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116820633A true CN116820633A (en) 2023-09-29

Family

ID=88123984

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310834908.1A Pending CN116820633A (en) 2023-07-07 2023-07-07 Data verification method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116820633A (en)

Similar Documents

Publication Publication Date Title
WO2019140828A1 (en) Electronic apparatus, method for querying logs in distributed system, and storage medium
CN109558525B (en) Test data set generation method, device, equipment and storage medium
CN111813804B (en) Data query method and device, electronic equipment and storage medium
CN110555030A (en) SQL statement processing method and device
CN108958744B (en) Deployment method, device, medium and electronic equipment of big data distributed cluster
CN110428319B (en) Data comparison platform, method, equipment and storage medium
TW201439792A (en) System and method for accessing database
CN111125064B (en) Method and device for generating database schema definition statement
CN113626223A (en) Interface calling method and device
CN113971037A (en) Application processing method and device, electronic equipment and storage medium
CN113282591B (en) Authority filtering method, authority filtering device, computer equipment and storage medium
CN111445319A (en) Voucher generation method and device, computer equipment and storage medium
CN112765102B (en) File system management method and device
CN113792274A (en) Information management method, management system and storage medium
CN108694172B (en) Information output method and device
CN117707837A (en) Interface parameter verification method, device, equipment and readable storage medium
CN109683942B (en) Script management method, script management device, script management medium and electronic equipment
CN108959952B (en) Data platform authority control method, device and equipment
CN116820633A (en) Data verification method and device, electronic equipment and storage medium
CN112579165A (en) Batch operation execution method and device, readable medium and electronic equipment
CN112417012A (en) Data processing method and system
CN113535221A (en) Method and device for managing application version
CN113626409B (en) Test data processing method, device, equipment and storage medium
CN115357604B (en) Data query method and device
CN109656519B (en) Method and device for automatically accessing service data

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