WO2022126966A1 - 接口参数校验与转换方法、装置、设备及存储介质 - Google Patents

接口参数校验与转换方法、装置、设备及存储介质 Download PDF

Info

Publication number
WO2022126966A1
WO2022126966A1 PCT/CN2021/090208 CN2021090208W WO2022126966A1 WO 2022126966 A1 WO2022126966 A1 WO 2022126966A1 CN 2021090208 W CN2021090208 W CN 2021090208W WO 2022126966 A1 WO2022126966 A1 WO 2022126966A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
preset
verification
output
interface
Prior art date
Application number
PCT/CN2021/090208
Other languages
English (en)
French (fr)
Inventor
郑晗
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2022126966A1 publication Critical patent/WO2022126966A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • the present application relates to the field of traversal query, and in particular, to a method, apparatus, device and storage medium for checking and converting interface parameters.
  • a service provider has a set of standards, and peripheral systems need to be connected in accordance with the standards, but certain differences are allowed.
  • the main purpose of the present application is to solve the problems of high code redundancy and low interface docking verification efficiency.
  • a first aspect of the present application provides an interface parameter verification and conversion method, comprising: receiving a target interface access request, and obtaining a plurality of service parameters, interface identifiers, and service codes from the target interface access request. and product type; according to the preset input parameter identifier, preset output parameter identifier, the interface identifier, the service code and the product type to generate the input parameter tag identifier to be matched and the output parameter tag identifier to be matched , and retrieve the in-memory database according to the tag identifier of the input parameter to be matched to obtain the query result; determine whether the query result is a null value, and when the query result is not a null value, determine that the query result is an input parameter Extensibility markup language configuration information; parse the input parameter extensibility markup language configuration information to obtain the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter, and each preset incoming parameter
  • the verification rules for each preset parameter include mandatory
  • Validation rules according to the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter, and the verification rule of each preset incoming parameter, the rule verification is performed on each business parameter, and each service parameter is obtained.
  • the verification results corresponding to the plurality of business parameters when the verification results corresponding to the plurality of business parameters are all verified, the memory database is retrieved based on the tag identifier of the output parameter to be matched, and the output parameter can be expanded.
  • Scalable markup language configuration information generate target parameter data based on the output parameter extensibility markup language configuration information, and send the target parameter data to the target terminal.
  • a second aspect of the present application provides an interface parameter verification and conversion device, including a memory, a processor, and computer-readable instructions stored on the memory and executable on the processor, and the processor executes the
  • the following steps are implemented: receiving a target interface access request, obtaining a plurality of service parameters, interface identifiers, service codes and product types from the target interface access request;
  • the output parameter identifier, the interface identifier, the service code and the product type generate a tag identifier of the input parameter to be matched and the tag identifier of the output parameter to be matched, and retrieve the memory according to the tag identifier of the input parameter to be matched database to obtain the query result; determine whether the query result is a null value, and when the query result is not a null value, determine that the query result is the input parameter extensibility markup language configuration information; parse the input parameter extensibility Markup language configuration information, get the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter,
  • a third aspect of the present application provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are executed on a computer, the computer performs the following steps: receiving a target interface access request , obtain a plurality of service parameters, interface identifiers, service codes and product types from the target interface access request; according to the preset input parameter identifier, preset output parameter identifier, the interface identifier, the service code Generate input parameter label identifiers to be matched and output parameter label identifiers to be matched with the product type, and retrieve the in-memory database according to the input parameter label identifiers to be matched to obtain a query result; determine whether the query result is a null value , when the query result is not a null value, determine that the query result is the input parameter extensibility markup language configuration information; parse the input parameter extensibility markup language configuration information to obtain the information of each preset incoming parameter Parameter name, parameter type of each preset incoming parameter
  • the verification rule for each preset parameter includes the mandatory parameter verification rule, the minimum length verification rule, the maximum Length verification rules, numerical precision verification rules, regular expression verification rules, and preset function verification rules; according to the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter, and the The verification rules of the preset incoming parameters are used to perform rule verification on each service parameter, and a verification result corresponding to each service parameter is obtained; when the verification results corresponding to the plurality of service parameters are all verifications passed, Retrieve the in-memory database based on the tag identifier of the output parameter to be matched, obtain output parameter extensibility markup language configuration information, generate target output parameter data based on the output parameter extensibility markup language configuration information, and convert the target The parameter data is sent to the target terminal.
  • a fourth aspect of the present application provides an interface parameter verification and conversion device, comprising: an acquisition module, configured to receive a target interface access request, and acquire a plurality of service parameters, interface identifiers, and service codes from the target interface access request and product type; the retrieval module is used to generate the input parameter label identifier to be matched and the to-be-matched input parameter label identifier according to the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type Output parameter label identifiers, and search the memory database according to the input parameter label identifiers to be matched to obtain query results; a judgment module is used to judge whether the query results are null, and when the query results are not null , determine that the query result is input parameter extensibility markup language configuration information; a parsing module is used to parse the input parameter extensibility markup language configuration information, and obtain the parameter name of each preset incoming parameter, each preset parameter name Set the parameter type of the incoming
  • the verification rule for each preset parameter includes the mandatory parameter verification rule, the minimum length verification rule, the maximum length verification rule, and the numerical value.
  • the generating module Preset the verification rules of the incoming parameters to perform rule verification on each business parameter, and obtain a verification result corresponding to each business parameter; the generating module, when the verification results corresponding to the plurality of business parameters are all verifications
  • the in-memory database is retrieved based on the tag identifier of the output parameter to be matched to obtain output parameter extensibility markup language configuration information, and target output parameter data is generated based on the output parameter extensibility markup language configuration information, and send the target outgoing parameter data to the target terminal.
  • a target interface access request is received, and a plurality of service parameters, interface identifiers, service codes and product types are obtained from the target interface access request; according to preset input parameter identifiers, preset output parameters
  • the identifier, the interface identifier, the service code, and the product type generate a tag identifier of an input parameter to be matched and an identifier of an output parameter tag to be matched, and retrieve a memory database according to the tag identifier of the input parameter to be matched, Obtain a query result; determine whether the query result is a null value, and when the query result is not a null value, determine that the query result is input parameter extensibility markup language configuration information; parse the input parameter extensibility markup Language configuration information, obtain the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter, and the verification rule of each preset incoming parameter.
  • the verification rule of each preset parameter includes the required Pass parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, regular expression verification rules and preset function verification rules; according to the parameter name, The parameter type of each preset incoming parameter and the verification rule of each preset incoming parameter are subjected to rule verification for each business parameter, and the verification result corresponding to each business parameter is obtained; when the plurality of business parameters When the corresponding verification results are that all verifications pass, the memory database is retrieved based on the tag identifier of the output parameter to be matched, and the configuration information of the output parameter extensibility markup language is obtained, and based on the output parameter extensibility markup language The configuration information generates target outgoing data, and sends the target outgoing data to the target terminal.
  • the identifier of the input parameter to be matched and the identifier of the output parameter to be matched are generated by using the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type.
  • the matching input parameter tag identifier and the to-be-matched output parameter tag identifier respectively determine the input parameter extensibility markup language configuration information and the output parameter extensibility markup language configuration information; respectively according to the input parameter extensibility markup language configuration information and the output parameter
  • the extensible markup language configuration information carries out parameter rules and generates target output data, which reduces the redundancy of the logic judgment code and improves the efficiency of interface connection.
  • FIG. 1 is a schematic diagram of an embodiment of an interface parameter verification and conversion method in an embodiment of the present application
  • FIG. 2 is a schematic diagram of another embodiment of the interface parameter verification and conversion method in the embodiment of the present application.
  • FIG. 3 is a schematic diagram of an embodiment of an interface parameter verification and conversion device in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another embodiment of the interface parameter verification and conversion device in the embodiment of the present application.
  • FIG. 5 is a schematic diagram of an embodiment of an interface parameter verification and conversion device in an embodiment of the present application.
  • Embodiments of the present application provide an interface parameter verification and conversion method, device, device, and storage medium, which are used to perform parameter rules according to input parameter extensibility markup language configuration information and output parameter extensibility markup language configuration information and generate Target output parameter data, reduce the redundancy of logic judgment code, and improve the efficiency of interface connection.
  • an embodiment of the interface parameter verification and conversion method in the embodiment of the present application includes:
  • the plurality of service parameters are parameters to be verified in the target interface access request, including parameter names and parameter values, and the parameter values can be preset according to actual requirements.
  • the server performs parameter-by-parameter verification on multiple business parameters. Further, the server determines the verification rules for each business parameter according to the interface identifier, business code and product type. The verification rules corresponding to multiple business parameters of the same interface are pre- It is encapsulated according to the preset data format and stored in the memory database.
  • the preset data format is the XML data format of the extensible markup language.
  • the memory database can use the remote service dictionary redis or the storage map map, and can also use other data structures. There is no specific limitation here.
  • target output data is stored in the blockchain database, which is not specifically limited here.
  • the execution body of the present application may be an interface parameter verification and conversion device, and may also be a terminal or a server, which is not specifically limited here.
  • the embodiments of the present application take the server as an execution subject as an example for description.
  • the tag identifier of the input parameter to be matched Generate the tag identifier of the input parameter to be matched and the tag identifier of the output parameter to be matched according to the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type, and generate the tag identifier of the input parameter to be matched according to the input parameter tag to be matched.
  • the identifier retrieves the in-memory database to get the query result.
  • the interface identifier is used to describe different interface information
  • the business code is used to describe the business module called by the interface
  • the product type is used to indicate different product iteration types.
  • the server combines and concatenates the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type, obtains the unique identifier of the input parameter and the unique identifier of the output parameter, and uses The unique identifier of the input parameter and the unique identifier of the output parameter are respectively set as the label identifier of the input parameter to be matched and the label identifier of the output parameter to be matched, wherein the label identifier of the input parameter to be matched is used to indicate the content of the Extensible Markup Language XML file.
  • the server splices the identifier of the input parameter tag to be matched by splicing the interface identifier, service code and product type, which ensures the uniqueness and ordering of the identifier of the input parameter tag to be matched.
  • the null value can be an empty string, or 0, or other types of values, which are not specifically limited here. If the query result is a null value, the server generates prompt information and sends the prompt information to the target terminal; if the query result is not a null value, the server determines that the query result is the input parameter extensibility markup language configuration information, wherein the input parameter The extensibility markup language configuration information is XML-structured data pre-set and stored in an in-memory database. Therefore, the server does not need to judge the correctness of the data format of the input parameter extensibility markup language configuration information.
  • the verification rules for preset parameters include mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, regular expression verification rules, and preset function verification rules.
  • the input parameter extensibility markup language configuration information includes multiple field field elements, which are used to indicate the custom data part, and the number of fields thereof is the same as the number of multiple business parameters.
  • the mandatory parameter check rule is used to indicate that the parameter value corresponding to each service parameter cannot be a null value.
  • the minimum length check rule and the maximum length check rule are respectively used to indicate the string length range of the parameter value corresponding to each service parameter.
  • the regular expression verification rule is used to verify the parameter value of each business parameter by using a regular expression
  • the preset function verification rule is used to instruct the parameter value of each business parameter to be verified according to the preset function. test.
  • the server reads the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter, and the verification rule of each preset incoming parameter from the input parameter extensibility markup language configuration information .
  • the memory database is retrieved based on the tag identifier of the output parameter to be matched, and the configuration information of the output parameter extensibility markup language is obtained, based on the output parameter extensibility markup
  • the language configuration information generates target output data, and sends the target output data to the target terminal.
  • the server performs logical processing on the way the parameter function is input, and finally uses the return value of the function as the target output data.
  • the server obtains the output parameter extensibility markup language configuration information corresponding to the tag identifier of the output parameter to be matched from the memory database;
  • the extensible markup language configuration information is used for data generation and data encapsulation to obtain the target parameter data.
  • the server converts the data type of the interface parameter value, or the server generates random data according to the parameter type, and the server desensitizes sensitive data. processing etc.
  • the output parameter extensibility markup language configuration information is used to indicate the original name of the output parameter, the target name of the output parameter, the output parameter value, the output parameter conversion function, and the data type of the output parameter value returned by the server for the target interface access request.
  • the identifier of the input parameter to be matched and the identifier of the output parameter to be matched are generated by using the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type.
  • the matching input parameter tag identifier and the to-be-matched output parameter tag identifier respectively determine the input parameter extensibility markup language configuration information and the output parameter extensibility markup language configuration information; respectively according to the input parameter extensibility markup language configuration information and the output parameter
  • the extensible markup language configuration information carries out parameter rules and generates target output data, which reduces the redundancy of the logic judgment code and improves the efficiency of interface connection.
  • FIG. 2 another embodiment of the interface parameter verification and conversion method in the embodiment of the present application includes:
  • 201 Receive a target interface access request, and acquire multiple service parameters, interface identifiers, service codes, and product types from the target interface access request.
  • the target interface access request includes multiple service parameters, interface identifiers, service codes and product types.
  • the server receives the target interface access request, parses the parameters of the target interface access request, and obtains the parameters to be verified, the interface identifier, the service code, and the product type. Further, when the parameter names of the parameter to be verified, the interface identifier, the service code and the product type are respectively consistent with the preset parameter names, the server judges the parameters of the parameter to be verified, the interface identifier, the service code and the product type respectively. Whether the value is a null value, when the parameter values of the parameter to be verified, the interface identifier, the service code and the product type are not null, the server determines that the verification parameter is successful.
  • the preset parameter names may be pre-stored in a preset file or a preset data table, and mapped and stored with the interface identifier (eg, interface address) of the target interface access request.
  • the server obtains the target decryption interface from the preset configuration file according to the interface identifier, and calls the target decryption interface to decrypt the parameters to be verified, and obtains the decryption result.
  • the decryption result is not a null value, it reads from the decryption result.
  • the server can obtain the preset decryption key from the cache, and decrypt the parameter to be verified (which is an encrypted character string) according to the preset decryption algorithm and the preset decryption key to obtain a decryption result.
  • the preset parameter sequence may be the sequence of interface identifiers, service codes, product types, and preset input parameter identifiers/preset output parameter identifiers, or may be other sequences, which are not specifically limited here. That is, the server sets the preset input parameter identifier and the preset output parameter identifier as a prefix or a suffix. For example, the preset input parameter identifier is inner, the preset output parameter identifier is outer, the interface identifier interfaceId is "LoanAppl", the service code bankCode is "AVICTC”, and the product type productType is "1".
  • the preset symbol may be "_” or other symbols, which are not specifically limited here.
  • the server uses the preset function to perform string concatenation according to the preset parameter sequence, and obtains the input parameter label identifier to be matched as "inner_LoanAppl_AVICTC_1", which is to be matched.
  • the output parameter label identifier is "outer_LoanAppl_AVICTC_1".
  • the identifier of the input parameter to be matched generated by the server is "LoanAppl_AVICTC_1_inner”
  • the identifier of the output parameter to be matched is "LoanAppl_AVICTC_1_outer”.
  • the preset function may be the string splicing function join(), or may be other functions, which are not specifically limited here.
  • the tag identifiers of the input parameters to be matched are in one-to-one correspondence with the query results, and the query results may be empty values or data in XML format. Understandably, the server stores data through an in-memory database, which improves data reading efficiency.
  • step 204 The execution process of step 204 is similar to that of step 103, and details are not repeated here.
  • the verification rules for preset parameters include mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, regular expression verification rules, and preset function verification rules.
  • the verification rules corresponding to each preset incoming parameter are mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, regular expression verification rules and preset function verification rules. Any one or a combination of any of the above is not specifically limited here.
  • the server determines the architecture schema type corresponding to the input parameter extensibility markup language configuration information, parses the input parameter extensibility markup language configuration information according to the data structure of the schema type, and obtains the document object model tree node data; the server traverses and reads Document Object Model tree node data, get the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter, and the verification rule of each preset incoming parameter, the value of each preset incoming parameter
  • the verification rules include mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, regular expression verification rules, and preset function verification rules.
  • the server checks each parameter in sequence according to the mandatory parameter verification rules, the minimum length verification rules, the maximum length verification rules, the numerical precision verification rules, the regular expression verification rules and the preset function verification rules.
  • Parameter verification is performed on business parameters. For example, if the server sets the preset function verification rule to have a high priority, the server first executes the verification logic corresponding to the preset function verification rule, and if the verification fails, the server reports an error. The server sets the regular expression verification rule to have a low priority, and the server executes the regular expression verification rule after the preset function verification rule is verified. If the verification fails, the server reports an error.
  • the server checks the mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, and numerical precision verification rules corresponding to each preset incoming parameter in descending order of preset verification priorities.
  • Validation rules, regular expression validation rules and preset function validation rules are used to sort the rules to obtain the sorted validation rules for each preset incoming parameter; the server is based on the parameter name of each preset incoming parameter, the The parameter type of the preset incoming parameters and the sorted verification rules of each preset incoming parameter are sequentially checked for each business parameter, and the verification result corresponding to each business parameter is obtained; if at least one business parameter corresponds to If the verification result is not the preset value, the server determines that the parameter verification fails, generates warning information according to the preset template, and sends the warning information to the target terminal; if the verification result corresponding to each service parameter is the default value , the server determines that the verification results corresponding to the plurality of service parameters are all verifications passed.
  • the verification results corresponding to the multiple service parameters are all verified, retrieve the in-memory database based on the tag identifier of the output parameter to be matched, obtain the configuration information of the output parameter extensibility markup language, and mark the extensibility based on the output parameter.
  • the language configuration information generates target output data, and sends the target output data to the target terminal.
  • the server can also generate an output parameter template in advance.
  • the server forms differentiated output parameter data by configuring XML.
  • the server names the parameter SYSTEM_SERIAL and finally converts it to the parameter name applNo.
  • the server can not only verify the input parameters of the interface, but also convert and configure the output parameters. That is, when the core code logic is fixed, for multiple third-party interfaces with differences, the server needs to configure multiple XML configurations, and the parameters are sent to each third-party interface, so that the third-party interface can be assembled and converted according to the corresponding XML. , which can control the structure and variable names of the final outgoing parameters.
  • the server searches the in-memory database based on the tag identifier of the output parameter to be matched, obtains the configuration information of the output parameter extensibility markup language, and evaluates the output parameter.
  • the extensibility markup language configuration information is parsed to obtain a plurality of preset output parameters, and each preset output parameter includes the original name of the output parameter, the target name of the output parameter, the default value of the output parameter, the output parameter conversion function and the output parameter type;
  • the server sets the output parameter target name of each preset output parameter and the output parameter default value of each preset output parameter to the value of each preset output parameter.
  • Interface output parameter data when the output parameter conversion function of each preset output parameter is not null, the server sends the original output parameter name of each preset output parameter, the output parameter target name of each preset output parameter, and each preset output parameter
  • the output parameter type of the preset output parameter is set to the input parameter corresponding to the output parameter conversion function of each preset output parameter, obtain the interface output parameter value output by the output parameter conversion function of each preset output parameter, and set the preset output parameter
  • the parameter name of the output parameter and the output parameter value of the output interface are set as the interface output parameter data of each preset output parameter; the server performs data encapsulation on the interface parameter data corresponding to the multiple preset output parameters to obtain the target output parameter data, and send the target output data to the target terminal, so that the target terminal parses and displays the target output data.
  • the server records the target interface access request, multiple business parameters, and the verification result corresponding to each business parameter in the preset operation log; the server regularly performs data analysis on the preset operation log to obtain an interface verification report, and Send the interface verification report to the target terminal.
  • the identifier of the input parameter to be matched and the identifier of the output parameter to be matched are generated by using the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type.
  • the matching input parameter tag identifier and the to-be-matched output parameter tag identifier respectively determine the input parameter extensibility markup language configuration information and the output parameter extensibility markup language configuration information; respectively according to the input parameter extensibility markup language configuration information and the output parameter
  • the extensible markup language configuration information carries out parameter rules and generates target output data, which reduces the redundancy of the logic judgment code and improves the efficiency of interface connection.
  • the interface parameter verification and conversion method in the embodiment of the present application has been described above, and the interface parameter verification and conversion device in the embodiment of the present application is described below. Referring to FIG. 3, the interface parameter verification and conversion device in the embodiment of the present application is described.
  • An example of includes:
  • an obtaining module 301 configured to receive a target interface access request, and obtain a plurality of service parameters, interface identifiers, service codes and product types from the target interface access request;
  • the retrieval module 302 is configured to generate the label identifier of the input parameter to be matched and the label identifier of the output parameter to be matched according to the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type, and according to the to-be-matched input parameter label identifier Match the input parameter tag identifier to retrieve the in-memory database and get the query result;
  • the judgment module 303 is used to judge whether the query result is a null value, and when the query result is not a null value, determine that the query result is the input parameter extensibility markup language configuration information;
  • the parsing module 304 is used to parse the input parameter extensibility markup language configuration information to obtain the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter and the verification of each preset incoming parameter Rules, the verification rules for each preset parameter include mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, regular expression verification rules and preset function verification rules ;
  • the verification module 305 is configured to perform rule verification on each service parameter according to the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter and the verification rule of each preset incoming parameter , to obtain the verification result corresponding to each service parameter;
  • the generating module 306 is configured to retrieve the in-memory database based on the tag identifier of the output parameter to be matched when the verification results corresponding to the plurality of service parameters are all passed, and obtain the output parameter extensibility markup language configuration information, based on the output parameter
  • the extensibility markup language configuration information generates target parameter data, and sends the target parameter data to the target terminal.
  • target output data is stored in the blockchain database, which is not specifically limited here.
  • the identifier of the input parameter to be matched and the identifier of the output parameter to be matched are generated by using the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type.
  • the matching input parameter tag identifier and the to-be-matched output parameter tag identifier respectively determine the input parameter extensibility markup language configuration information and the output parameter extensibility markup language configuration information; respectively according to the input parameter extensibility markup language configuration information and the output parameter
  • the extensible markup language configuration information carries out parameter rules and generates target output data, which reduces the redundancy of the logic judgment code and improves the efficiency of interface connection.
  • FIG. 4 another embodiment of the interface parameter verification and conversion device in the embodiment of the present application includes:
  • an obtaining module 301 configured to receive a target interface access request, and obtain a plurality of service parameters, interface identifiers, service codes and product types from the target interface access request;
  • the retrieval module 302 is configured to generate the label identifier of the input parameter to be matched and the label identifier of the output parameter to be matched according to the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type, and according to the to-be-matched input parameter label identifier Match the input parameter tag identifier to retrieve the in-memory database and get the query result;
  • the judgment module 303 is used to judge whether the query result is a null value, and when the query result is not a null value, determine that the query result is the input parameter extensibility markup language configuration information;
  • the parsing module 304 is used to parse the input parameter extensibility markup language configuration information to obtain the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter and the verification of each preset incoming parameter Rules, the verification rules for each preset parameter include mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, regular expression verification rules and preset function verification rules ;
  • the verification module 305 is configured to perform rule verification on each service parameter according to the parameter name of each preset incoming parameter, the parameter type of each preset incoming parameter and the verification rule of each preset incoming parameter , to obtain the verification result corresponding to each service parameter;
  • the generating module 306 is configured to retrieve the in-memory database based on the tag identifier of the output parameter to be matched when the verification results corresponding to the plurality of service parameters are all passed, and obtain the output parameter extensibility markup language configuration information, based on the output parameter
  • the extensibility markup language configuration information generates target parameter data, and sends the target parameter data to the target terminal.
  • the obtaining module 301 can also be specifically used for:
  • Receive the target interface access request analyze the parameters of the target interface access request, and obtain the parameters to be verified, interface identifier, service code and product type; obtain the target decryption interface from the preset configuration file according to the interface identifier, and call the target decryption
  • the interface decrypts the parameters to be verified, and obtains the decryption result.
  • the decryption result is not null, it reads multiple service parameters from the decryption result.
  • the retrieval module 302 can also be specifically used for:
  • the preset input parameter identifier and the preset output parameter identifier are respectively combined with the interface identifier, service code and product type according to the preset parameter sequence, and the input parameter label identifier to be matched and the to-be-matched label identifier are obtained.
  • Output parameter label identifier set the input parameter label identifier to be matched as the target key, query the in-memory database to obtain the target value according to the target key, and set the target value as the query result.
  • the parsing module 304 can also be specifically used for:
  • the verification rule of each preset incoming parameter includes the mandatory Parameter check rules, minimum length check rules, maximum length check rules, numerical precision check rules, regular expression check rules and preset function check rules.
  • the verification module 305 can also be specifically used for:
  • the mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, and regular expressions corresponding to each preset incoming parameter are checked. Sorting the rules based on the formula verification rules and the preset function verification rules to obtain the sorted verification rules for each preset incoming parameter; based on the parameter name of each preset incoming parameter, the The parameter type and the sorted verification rules of each preset incoming parameter perform rule verification on each business parameter in turn, and obtain the verification result corresponding to each business parameter; if the verification result corresponding to at least one business parameter is not If the preset value is set, it is determined that the parameter verification fails, and warning information is generated according to the preset template, and the warning information is sent to the target terminal; if the verification result corresponding to each service parameter is the preset value, multiple service parameters are determined. The corresponding verification results are all verifications passed.
  • the generating module 306 can also be specifically used for:
  • the memory database is retrieved based on the tag identifier of the output parameter to be matched, the configuration information of the output parameter extensibility markup language is obtained, and the output parameter extensibility markup language configuration information is obtained.
  • each preset output parameter includes the original name of the output parameter, the target name of the output parameter, the default value of the output parameter, the output parameter conversion function and the output parameter type;
  • the output parameter conversion function of the output parameter is a null value
  • the output parameter target name of each preset output parameter and the output parameter default value of each preset output parameter are set as the interface output parameter data of each preset output parameter;
  • the output parameter conversion function of each preset output parameter is not null, the original output parameter name of each preset output parameter, the output parameter target name of each preset output parameter, and the output parameter of each preset output parameter Set the type to the incoming parameter corresponding to the output parameter conversion function of each preset output parameter, obtain the interface output parameter value output by the output parameter conversion function of each preset output parameter, and compare the output parameter name of the preset output parameter with the The output parameter value of the interface is set as the interface parameter data of each preset output parameter; the interface parameter data corresponding to the multiple preset output parameters are
  • the interface parameter verification and conversion device further includes:
  • the recording module 307 is used to record the target interface access request, a plurality of service parameters and the verification result corresponding to each service parameter in the preset operation log; the analysis module 308 is used to periodically perform data analysis on the preset operation log, Obtain the interface verification report, and send the interface verification report to the target terminal.
  • the identifier of the input parameter to be matched and the identifier of the output parameter to be matched are generated by using the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type.
  • the matching input parameter tag identifier and the to-be-matched output parameter tag identifier respectively determine the input parameter extensibility markup language configuration information and the output parameter extensibility markup language configuration information; respectively according to the input parameter extensibility markup language configuration information and the output parameter
  • the extensible markup language configuration information carries out parameter rules and generates target output data, which reduces the redundancy of logic judgment code and improves the efficiency of interface connection.
  • the interface parameter verification and conversion device 500 may have relatively large differences due to different configurations or performances, and may include one or more than one Central processing units (CPU) 510 (eg, one or more processors) and memory 520, one or more storage media 530 (eg, one or more mass storage devices) that store application programs 533 or data 532.
  • CPU Central processing units
  • the memory 520 and the storage medium 530 may be short-term storage or persistent storage.
  • the program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the interface parameter verification and conversion device 500 .
  • the processor 510 may be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the interface parameter verification and conversion device 500 .
  • the interface parameter verification and conversion device 500 may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and/or, one or more operating systems 531, For example Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • operating systems 531 For example Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • FIG. 5 does not constitute a limitation on the interface parameter verification and conversion device, and may include more or less components than those shown in the figure, or a combination of certain components may be included. some components, or a different arrangement of components.
  • the present application also provides a computer-readable storage medium.
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium.
  • the computer-readable storage medium may also be a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium, and when the instructions are executed on the computer, the computer is made to perform the following steps:
  • the input parameter tag identifier to be matched and the output parameter tag identifier to be matched are generated according to the preset input parameter identifier, the preset output parameter identifier, the interface identifier, the service code and the product type, and according to the The tag identifier of the input parameter to be matched is described to retrieve the in-memory database to obtain the query result;
  • the verification rules for preset parameters include mandatory parameter verification rules, minimum length verification rules, maximum length verification rules, numerical precision verification rules, regular expression verification rules, and preset function verification rules;
  • the rule verification is performed on each business parameter, and the corresponding business parameter is obtained. the verification result;
  • the memory database is retrieved based on the tag identifier of the output parameter to be matched, and the configuration information of the output parameter extensibility markup language is obtained.
  • the output parameter extensibility markup language configuration information generates target parameter data, and sends the target parameter data to the target terminal.
  • the present application also provides an interface parameter verification and conversion device, the interface parameter verification and conversion device includes a memory and a processor, and instructions are stored in the memory, and when the instructions are executed by the processor, the processor executes the above The steps of the interface parameter verification and conversion method in the embodiment.
  • the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function, and the like; The data created by the use of the node, etc.
  • the blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

一种接口参数校验与转换方法、装置、设备及存储介质,涉及大数据技术领域,用于提高接口对接效率。接口参数校验与转换方法包括:从目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;获取待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符查询输入参数可扩展性标记语言配置信息;根据输入参数可扩展性标记语言配置信息确定每个预设传入参数的参数名称、参数类型和校验规则;根据参数名称、参数类型和校验规则对每个业务参数进行规则校验;基于待匹配输出参数标签标识符生成目标出参数据。还涉及区块链技术,目标出参数据可存储于区块链节点中。

Description

接口参数校验与转换方法、装置、设备及存储介质
本申请要求于2020年12月15日提交中国专利局、申请号为202011472836.3、发明名称为“接口参数校验与转换方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。
技术领域
本申请涉及遍历查询领域,尤其涉及一种接口参数校验与转换方法、装置、设备及存储介质。
背景技术
现有的各类接口对接的方案中,一般都是开发通过编码方式处理入参验证、出参的类型转换、码值转换等工作。虽然这样能够最大自由化的进行开发工作,但是在特殊场景下,这种方式是低效并且不易于维护的。
比如,服务提供方有一整套标准,外围系统需要按照标准接入,但是允许存在一定的差异化。发明人意识到,在这种场景下,如果每次接口对接按照现有接口开发的方式处理,就会存在大量的条件判断和重复代码,导致代码冗余性高,并且接口对接校验效率低的问题。
发明内容
本申请的主要目的在于解决代码冗余性高,并且接口对接校验效率低的问题。
为实现上述目的,本申请第一方面提供了一种接口参数校验与转换方法,包括:接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
本申请第二方面提供了一种接口参数校验与转换设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;根据每 个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
本申请第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
本申请第四方面提供了一种接口参数校验与转换装置,包括:获取模块,用于接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;检索模块,用于根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;判断模块,用于判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;解析模块,用于解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;校验模块,用于根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;生成模块,当所述多个业务参数分别对应的校验结果为全部校验通过时,用于基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
本申请提供的技术方案中,接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;解析所述输入参数可扩展性标记语言 配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。本申请实施例中,通过预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符和待匹配输出参数标签标识符分别确定输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息;分别根据输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息进行参数规则并生成目标出参数据,降低了逻辑判断代码的冗余性,提高了接口对接效率。
附图说明
图1为本申请实施例中接口参数校验与转换方法的一个实施例示意图;
图2为本申请实施例中接口参数校验与转换方法的另一个实施例示意图;
图3为本申请实施例中接口参数校验与转换装置的一个实施例示意图;
图4为本申请实施例中接口参数校验与转换装置的另一个实施例示意图;
图5为本申请实施例中接口参数校验与转换设备的一个实施例示意图。
具体实施方式
本申请实施例提供了一种接口参数校验与转换方法、装置、设备及存储介质,用于根据输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息进行参数规则并生成目标出参数据,降低逻辑判断代码的冗余性,提高接口对接效率。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
为便于理解,下面对本申请实施例的具体流程进行描述,请参阅图1,本申请实施例中接口参数校验与转换方法的一个实施例包括:
101、接收目标接口访问请求,从目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型。
其中,多个业务参数为目标接口访问请求中待校验的参数,包括参数名称和参数值,参数值可以按照实际需求进行预先设置。服务器对多个业务参数进行逐个参数校验,进一步地,服务器按照接口标识符、业务编码和产品类型确定每个业务参数的校验规则,相同接口的多个业务参数分别对应的校验规则预先按照预设数据格式进行封装,并存储于内存数据库中,其中,预设数据格式为可扩展标记语言XML数据格式,内存数据库可以采用远程服务字典redis或者存储映射map,还可以采用其他数据结构,具体此处不做限定。
进一步地,将目标出参数据存储于区块链数据库中,具体此处不做限定。
可以理解的是,本申请的执行主体可以为接口参数校验与转换装置,还可以是终端或 者服务器,具体此处不做限定。本申请实施例以服务器为执行主体为例进行说明。
102、根据预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符检索内存数据库,得到查询结果。
其中,接口标识符用于描述不同的接口信息,业务编码用于描述该接口调用的业务模块,产品类型则用于指示不同的产品迭代类型。具体的,服务器将预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型进行字符串组合与拼接,得到输入参数唯一标识符和输出参数唯一标识符,并将输入参数唯一标识符和输出参数唯一标识符分别设置为待匹配输入参数标签标识符和待匹配输出参数标签标识符,其中,待匹配输入参数标签标识符用于指示可扩展标记语言XML文件内容中的文本段标签值。服务器通过接口标识符、业务编码和产品类型拼接成待匹配输入参数标签标识符,确保了待匹配输入参数标签标识符的唯一性和有序性。
103、判断查询结果是否为空值,当查询结果不为空值时,确定查询结果为输入参数可扩展性标记语言配置信息。
其中,空值可以为空字符串,也可以为0,还可以为其他类型的数值,具体此处不做限定。若查询结果为空值,则服务器生成提示信息,并将提示信息发送至目标终端;若查询结果不为空值,则服务器确定查询结果为输入参数可扩展性标记语言配置信息,其中,输入参数可扩展性标记语言配置信息为预先设置并存储在内存数据库中的XML结构的数据。因而服务器不需要再对该输入参数可扩展性标记语言配置信息进行数据格式正确性判断。
104、解析输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则。
其中,输入参数可扩展性标记语言配置信息包括多个领域field元素,用于指示自定义数据部分,其field数量与多个业务参数的数量相同。必传参数校验规则用于指示每个业务参数对应的参数值不能为空值,最小长度校验规则和最大长度校验规则分别用于指示每个业务参数对应的参数值的字符串长度范围,正则表达式校验规则用于采用正则表达式方式对每个业务参数的参数值进行校验,预设函数校验规则用于指示按照预设的函数对每个业务参数的参数值进行校验。进一步地,服务器从输入参数可扩展性标记语言配置信息中读取每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则。
105、根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果。
具体的,服务器按照必传参数校验规则对每个业务参数进行参数必传性校验。例如,当输入参数可扩展性标记语言配置信息中的接口interface结构中包括required=“true”时,服务器根据每个预设传入参数的参数名称查找多个业务参数,当多个业务参数中不存在预设传入参数的参数名称时,服务器生成提示信息,提示信息用于指示对应接口的必传字段为空错误。进一步地,服务器还可以对每个业务参数分别进行参数类型校验、最小长度校验规则、最大长度校验规则、正则表达式校验规则和预设函数校验规则,得到每个业务参数对应的校验结果。
106、当多个业务参数分别对应的校验结果为全部校验通过时,基于待匹配输出参数标签标识符检索内存数据库,得到输出参数可扩展性标记语言配置信息,基于输出参数可扩 展性标记语言配置信息生成目标出参数据,并将目标出参数据发送至目标终端。
也就是,服务器对参数函数入参的方式进行逻辑处理,最终将函数返回值作为目标出参数据。当多个业务参数分别对应的校验结果为全部校验通过时,服务器从内存数据库中,获取与待匹配输出参数标签标识符对应的输出参数可扩展性标记语言配置信息;服务器基于输出参数可扩展性标记语言配置信息进行数据生成与数据封装,得到目标出参数据,例如,服务器将接口出参值进行数据类型转换,或者服务器按照出参类型生成随机数据,以及服务器对敏感数据进行脱敏处理等。
需要说明的是,输出参数可扩展性标记语言配置信息用于指示服务器针对目标接口访问请求返回的输出参数原始名、输出参数目标名、输出参数值、输出参数转换函数以及输出参数值的数据类型。
本申请实施例中,通过预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符和待匹配输出参数标签标识符分别确定输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息;分别根据输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息进行参数规则并生成目标出参数据,降低了逻辑判断代码的冗余性,提高了接口对接效率。
请参阅图2,本申请实施例中接口参数校验与转换方法的另一个实施例包括:
201、接收目标接口访问请求,从目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型。
其中,目标接口访问请求包括多个业务参数、接口标识符、业务编码和产品类型。可选的,服务器接收目标接口访问请求,对目标接口访问请求进行参数解析,得到待校验参数、接口标识符、业务编码和产品类型。进一步地,当待校验参数、接口标识符、业务编码和产品类型的参数名分别与预设的参数名称一致时,服务器分别判断待校验参数、接口标识符、业务编码和产品类型的参数值是否为空值,当待校验参数、接口标识符、业务编码和产品类型的参数值均不为空值时,服务器确定校验参数成功。其中,预设的参数名称可以预先存储在预设文件或者预设数据表中,并与目标接口访问请求的接口标识(例如,接口地址)进行映射存储。
然后,服务器按照接口标识符从预设配置文件中获取目标解密接口,并调用目标解密接口对待校验参数进行解密处理,得到解密结果,当解密结果不为空值时,从解密结果中读取多个业务参数。进一步地,服务器可以从缓存中获取预设的解密密钥,并根据预设解密算法和预设的解密密钥对待校验参数(为已加密的字符串)进行解密,得到解密结果。
202、基于预设符号对预设输入参数标识符和预设输出参数标识符分别与接口标识符、业务编码和产品类型按照预设参数顺序进行字符串拼接,得到待匹配输入参数标签标识符和待匹配输出参数标签标识符。
其中,预设参数顺序可以为接口标识符、业务编码、产品类型和预设输入参数标识符/预设输出参数标识符的先后顺序,也可以为其他顺序,具体此处不做限定。也就是,服务器将预设输入参数标识符和预设输出参数标识符设置为前缀或者后缀。例如,预设输入参数标识符为inner,预设输出参数标识符为outer,接口标识符interfaceId为“LoanAppl”、业务编码bankCode为“AVICTC”和产品类型productType为“1”。预设符号可以为“_”,也可以为其他符号,具体此处不做限定。当预设输入参数标识符和预设输出参数标识符均为前缀时,那么服务器采用预设函数按照预设参数顺序进行字符串拼接,得到待匹配输入参数标签标识符为“inner_LoanAppl_AVICTC_1”,待匹配输出参数标签标识符为“outer_LoanAppl_AVICTC_1”。当预设输入参数标识符和预设输出参数标识符均为后缀时, 服务器生成的待匹配输入参数标签标识符为“LoanAppl_AVICTC_1_inner”,待匹配输出参数标签标识符为“LoanAppl_AVICTC_1_outer”,提高了待匹配输入参数标签标识符和待匹配输出参数标签标识符的安全性。其中,预设函数可以为字符串拼接函数join(),也可以为其他函数,具体此处不做限定。
203、将待匹配输入参数标签标识符设置为目标键,按照目标键从内存数据库中查询得到目标值,并将目标值设置为查询结果。
其中,待匹配输入参数标签标识符与查询结果一一对应,查询结果可以为空值,也可以为XML格式的数据。可以理解的是,服务器通过内存数据库存储数据,提高了数据读取效率。
204、判断查询结果是否为空值,当查询结果不为空值时,确定查询结果为输入参数可扩展性标记语言配置信息。
该步骤204与步骤103的执行过程相似,具体此处不再赘述。
205、解析输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则。
例如,服务器采用required=“true”表示必传参数校验规则,服务器采用minLength=1表示最小长度校验规则,服务器采用maxLength=20表示最大长度校验规则,服务器采用regularExp=“^d{8}$”表示正则表达式校验规则,其中,“^d{8}$”用于指示日期只能为8位数字;服务器采用customValidate=“xxxx”表示预设函数校验规则。可以理解的是,每个预设传入参数对应的校验规则为必传参数校验规则、最小长度校验规则、最大长度校验规则、正则表达式校验规则和预设函数校验规则中任意一项或者任意几项的组合,具体此处不做限定。
可选的,服务器确定输入参数可扩展性标记语言配置信息对应的架构schema类型,根据schema类型的数据结构解析输入参数可扩展性标记语言配置信息,得到文档对象模型树节点数据;服务器遍历读取文档对象模型树节点数据,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设传入参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则。
206、根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果。
需要说明的是,服务器按照必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则依序对每个业务参数进行参数校验。例如,服务器设置预设函数校验规则的优先级高,服务器先执行预设函数校验规则对应的校验逻辑,如果校验不通过,则服务器报错。服务器设置正则表达式校验规则优先级低,则服务器在预设函数校验规则校验通过后才执行正则表达式校验规则,如果校验不通过,则服务器报错。
可选的,服务器按照预设校验优先级从高到低的顺序对每个预设传入参数对应的必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则进行规则排序,得到每个预设传入参数的已排序校验规则;服务器基于每个预设传入参数的参数名称、每个预设传入参数的参数类型、每个预设传入参数的已排序校验规则依次对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;若至少一个业务参数对应的校验结果不为预设值,则服务器确定参数校验未通过, 按照预设模板生成警示信息,并向目标终端发送警示信息;若每个业务参数对应的校验结果均为预设值,则服务器确定多个业务参数分别对应的校验结果为全部校验通过。
207、当多个业务参数分别对应的校验结果为全部校验通过时,基于待匹配输出参数标签标识符检索内存数据库,得到输出参数可扩展性标记语言配置信息,基于输出参数可扩展性标记语言配置信息生成目标出参数据,并将目标出参数据发送至目标终端。
需要说明的是,服务器还可以预先生成一份输出参数模板,当服务器对接多个第三方接口时,服务器通过配置XML,形成差异化的出参数据。例如,服务器将参数名为SYSTEM_SERIAL,终转换为出参参数名applNo。服务器不仅可以对接口入参的校验,同时可以对出参进行转换配置。也就是,当核心代码逻辑固定时,对于存在差异的多个第三方接口,则服务器需要配置多份XML配置,参数发给每个第三方接口,以使得第三方接口根据对应的XML组装及转换,可以控制最终外发参数的结构和变量名。
可选的,当多个业务参数分别对应的校验结果为全部校验通过时,服务器基于待匹配输出参数标签标识符检索内存数据库,得到输出参数可扩展性标记语言配置信息,并对输出参数可扩展性标记语言配置信息进行数据解析,得到多个预设输出参数,每个预设输出参数包括输出参数原始名、输出参数目标名、输出参数默认值、输出参数转换函数和输出参数类型;当每个预设输出参数的输出参数转换函数为空值时,服务器将每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数默认值设置为每个预设输出参数的接口出参数据;当每个预设输出参数的出参转换函数不为空值时,服务器将每个预设输出参数的输出参数原始名、每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数类型设置为每个预设输出参数的输出参数转换函数对应的传入参数,获取每个预设输出参数的输出参数转换函数输出的接口出参值,并将预设输出参数的出参名称和输出的接口出参值设置为每个预设输出参数的接口出参数据;服务器对多个预设输出参数分别对应的接口出参数据进行数据封装,得到目标出参数据,并将目标出参数据发送至目标终端,以使得目标终端解析并展示目标出参数据。
进一步地,服务器将目标接口访问请求、多个业务参数和每个业务参数对应的校验结果记录至预设操作日志中;服务器定时对预设操作日志进行数据分析,得到接口校验报表,并将接口校验报表发送至目标终端。
本申请实施例中,通过预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符和待匹配输出参数标签标识符分别确定输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息;分别根据输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息进行参数规则并生成目标出参数据,降低了逻辑判断代码的冗余性,提高了接口对接效率。
上面对本申请实施例中接口参数校验与转换方法进行了描述,下面对本申请实施例中接口参数校验与转换装置进行描述,请参阅图3,本申请实施例中接口参数校验与转换装置的一个实施例包括:
获取模块301,用于接收目标接口访问请求,从目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;
检索模块302,用于根据预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符检索内存数据库,得到查询结果;
判断模块303,用于判断查询结果是否为空值,当查询结果不为空值时,确定查询结果为输入参数可扩展性标记语言配置信息;
解析模块304,用于解析输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;
校验模块305,用于根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
生成模块306,当多个业务参数分别对应的校验结果为全部校验通过时,用于基于待匹配输出参数标签标识符检索内存数据库,得到输出参数可扩展性标记语言配置信息,基于输出参数可扩展性标记语言配置信息生成目标出参数据,并将目标出参数据发送至目标终端。
进一步地,将目标出参数据存储于区块链数据库中,具体此处不做限定。
本申请实施例中,通过预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符和待匹配输出参数标签标识符分别确定输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息;分别根据输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息进行参数规则并生成目标出参数据,降低了逻辑判断代码的冗余性,提高了接口对接效率。
请参阅图4,本申请实施例中接口参数校验与转换装置的另一个实施例包括:
获取模块301,用于接收目标接口访问请求,从目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;
检索模块302,用于根据预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符检索内存数据库,得到查询结果;
判断模块303,用于判断查询结果是否为空值,当查询结果不为空值时,确定查询结果为输入参数可扩展性标记语言配置信息;
解析模块304,用于解析输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;
校验模块305,用于根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
生成模块306,当多个业务参数分别对应的校验结果为全部校验通过时,用于基于待匹配输出参数标签标识符检索内存数据库,得到输出参数可扩展性标记语言配置信息,基于输出参数可扩展性标记语言配置信息生成目标出参数据,并将目标出参数据发送至目标终端。
可选的,获取模块301还可以具体用于:
接收目标接口访问请求,对目标接口访问请求进行参数解析,得到待校验参数、接口标识符、业务编码和产品类型;按照接口标识符从预设配置文件中获取目标解密接口,并调用目标解密接口对待校验参数进行解密处理,得到解密结果,当解密结果不为空值时,从解密结果中读取多个业务参数。
可选的,检索模块302还可以具体用于:
基于预设符号对预设输入参数标识符和预设输出参数标识符分别与接口标识符、业务编码和产品类型按照预设参数顺序进行字符串拼接,得到待匹配输入参数标签标识符和待匹配输出参数标签标识符;将待匹配输入参数标签标识符设置为目标键,按照目标键从内存数据库中查询得到目标值,并将目标值设置为查询结果。
可选的,解析模块304还可以具体用于:
确定输入参数可扩展性标记语言配置信息对应的架构schema类型,根据schema类型的数据结构解析输入参数可扩展性标记语言配置信息,得到文档对象模型树节点数据;遍历读取文档对象模型树节点数据,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设传入参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则。
可选的,校验模块305还可以具体用于:
按照预设校验优先级从高到低的顺序对每个预设传入参数对应的必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则进行规则排序,得到每个预设传入参数的已排序校验规则;基于每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的已排序校验规则依次对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;若至少一个业务参数对应的校验结果不为预设值,则确定参数校验未通过,按照预设模板生成警示信息,并向目标终端发送警示信息;若每个业务参数对应的校验结果均为预设值,则确定多个业务参数分别对应的校验结果为全部校验通过。
可选的,生成模块306还可以具体用于:
当多个业务参数分别对应的校验结果为全部校验通过时,基于待匹配输出参数标签标识符检索内存数据库,得到输出参数可扩展性标记语言配置信息,并对输出参数可扩展性标记语言配置信息进行数据解析,得到多个预设输出参数,每个预设输出参数包括输出参数原始名、输出参数目标名、输出参数默认值、输出参数转换函数和输出参数类型;当每个预设输出参数的输出参数转换函数为空值时,将每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数默认值设置为每个预设输出参数的接口出参数据;当每个预设输出参数的出参转换函数不为空值时,将每个预设输出参数的输出参数原始名、每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数类型设置为每个预设输出参数的输出参数转换函数对应的传入参数,获取每个预设输出参数的输出参数转换函数输出的接口出参值,并将预设输出参数的出参名称和输出的接口出参值设置为每个预设输出参数的接口出参数据;对多个预设输出参数分别对应的接口出参数据进行数据封装,得到目标出参数据,并将目标出参数据发送至目标终端,以使得目标终端解析并展示目标出参数据。
可选的,接口参数校验与转换装置还包括:
记录模块307,用于将目标接口访问请求、多个业务参数和每个业务参数对应的校验结果记录至预设操作日志中;分析模块308,用于定时对预设操作日志进行数据分析,得到接口校验报表,并将接口校验报表发送至目标终端。
本申请实施例中,通过预设输入参数标识符、预设输出参数标识符、接口标识符、业务编码和产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照待匹配输入参数标签标识符和待匹配输出参数标签标识符分别确定输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息;分别根据输入参数可扩展性标记语言配置信息和输出参数可扩展性标记语言配置信息进行参数规则并生成目标出参数据,降 低了逻辑判断代码的冗余性,提高了接口对接效率。
上面图3和图4从模块化的角度对本申请实施例中的接口参数校验与转换装置进行详细描述,下面从硬件处理的角度对本申请实施例中接口参数校验与转换设备进行详细描述。
图5是本申请实施例提供的一种接口参数校验与转换设备的结构示意图,该接口参数校验与转换设备500可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)510(例如,一个或一个以上处理器)和存储器520,一个或一个以上存储应用程序533或数据532的存储介质530(例如一个或一个以上海量存储设备)。其中,存储器520和存储介质530可以是短暂存储或持久存储。存储在存储介质530的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对接口参数校验与转换设备500中的一系列指令操作。更进一步地,处理器510可以设置为与存储介质530通信,在接口参数校验与转换设备500上执行存储介质530中的一系列指令操作。
接口参数校验与转换设备500还可以包括一个或一个以上电源540,一个或一个以上有线或无线网络接口550,一个或一个以上输入输出接口560,和/或,一个或一个以上操作系统531,例如Windows Serve,Mac OS X,Unix,Linux,FreeBSD等等。本领域技术人员可以理解,图5示出的接口参数校验与转换设备结构并不构成对接口参数校验与转换设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
本申请还提供一种计算机可读存储介质,该计算机可读存储介质可以为非易失性计算机可读存储介质,该计算机可读存储介质也可以为易失性计算机可读存储介质,所述计算机可读存储介质中存储有指令,当所述指令在计算机上运行时,使得计算机执行如下步骤:
接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;
根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;
判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;
解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;
根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
本申请还提供一种接口参数校验与转换设备,所述接口参数校验与转换设备包括存储器和处理器,存储器中存储有指令,所述指令被处理器执行时,使得处理器执行上述各实施例中的所述接口参数校验与转换方法的步骤。
进一步地,所述计算机可读存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种接口参数校验与转换方法,其中,包括:
    接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;
    根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;
    判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;
    解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;
    根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
    当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
  2. 根据权利要求1所述的接口参数校验与转换方法,其中,所述接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型,包括:
    接收目标接口访问请求,对所述目标接口访问请求进行参数解析,得到待校验参数、接口标识符、业务编码和产品类型;
    按照所述接口标识符从预设配置文件中获取目标解密接口,并调用所述目标解密接口对所述待校验参数进行解密处理,得到解密结果,当所述解密结果不为空值时,从所述解密结果中读取多个业务参数。
  3. 根据权利要求1所述的接口参数校验与转换方法,其中,所述根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果,包括:
    基于预设符号对预设输入参数标识符和预设输出参数标识符分别与所述接口标识符、所述业务编码和所述产品类型按照预设参数顺序进行字符串拼接,得到待匹配输入参数标签标识符和待匹配输出参数标签标识符;
    将所述待匹配输入参数标签标识符设置为目标键,按照所述目标键从内存数据库中查询得到目标值,并将所述目标值设置为查询结果。
  4. 根据权利要求1所述的接口参数校验与转换方法,其中,所述解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则,包括:
    确定所述输入参数可扩展性标记语言配置信息对应的架构schema类型,根据所述schema类型的数据结构解析所述输入参数可扩展性标记语言配置信息,得到文档对象模型 树节点数据;
    遍历读取所述文档对象模型树节点数据,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设传入参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则。
  5. 根据权利要求1所述的接口参数校验与转换方法,其中,所述根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果,包括:
    按照预设校验优先级从高到低的顺序对每个预设传入参数对应的必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则进行规则排序,得到每个预设传入参数的已排序校验规则;
    基于每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的已排序校验规则依次对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
    若至少一个业务参数对应的校验结果不为预设值,则确定参数校验未通过,按照预设模板生成警示信息,并向目标终端发送所述警示信息;
    若每个业务参数对应的校验结果均为预设值,则确定所述多个业务参数分别对应的校验结果为全部校验通过。
  6. 根据权利要求1所述的接口参数校验与转换方法,其中,所述当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端,包括:
    当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,并对所述输出参数可扩展性标记语言配置信息进行数据解析,得到多个预设输出参数,每个预设输出参数包括输出参数原始名、输出参数目标名、输出参数默认值、输出参数转换函数和输出参数类型;
    当每个预设输出参数的输出参数转换函数为空值时,将每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数默认值设置为每个预设输出参数的接口出参数据;
    当每个预设输出参数的出参转换函数不为空值时,将每个预设输出参数的输出参数原始名、每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数类型设置为每个预设输出参数的输出参数转换函数对应的传入参数,获取每个预设输出参数的输出参数转换函数输出的接口出参值,并将预设输出参数的出参名称和输出的接口出参值设置为每个预设输出参数的接口出参数据;
    对多个预设输出参数分别对应的接口出参数据进行数据封装,得到目标出参数据,并将所述目标出参数据发送至目标终端,以使得所述目标终端解析并展示所述目标出参数据。
  7. 根据权利要求1-6中任意一项所述的接口参数校验与转换方法,其中,在所述当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端之后,所述接口参数校验与转换方法还包括:
    将所述目标接口访问请求、所述多个业务参数和每个业务参数对应的校验结果记录至预设操作日志中;
    定时对预设操作日志进行数据分析,得到接口校验报表,并将所述接口校验报表发送至所述目标终端。
  8. 一种接口参数校验与转换设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:
    接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;
    根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;
    判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;
    解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;
    根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
    当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
  9. 根据权利要求8所述的接口参数校验与转换设备,所述处理器执行所述计算机程序时还实现以下步骤:
    接收目标接口访问请求,对所述目标接口访问请求进行参数解析,得到待校验参数、接口标识符、业务编码和产品类型;
    按照所述接口标识符从预设配置文件中获取目标解密接口,并调用所述目标解密接口对所述待校验参数进行解密处理,得到解密结果,当所述解密结果不为空值时,从所述解密结果中读取多个业务参数。
  10. 根据权利要求8所述的接口参数校验与转换设备,所述处理器执行所述计算机程序时还实现以下步骤:
    基于预设符号对预设输入参数标识符和预设输出参数标识符分别与所述接口标识符、所述业务编码和所述产品类型按照预设参数顺序进行字符串拼接,得到待匹配输入参数标签标识符和待匹配输出参数标签标识符;
    将所述待匹配输入参数标签标识符设置为目标键,按照所述目标键从内存数据库中查询得到目标值,并将所述目标值设置为查询结果。
  11. 根据权利要求8所述的接口参数校验与转换设备,所述处理器执行所述计算机程序时还实现以下步骤:
    确定所述输入参数可扩展性标记语言配置信息对应的架构schema类型,根据所述schema类型的数据结构解析所述输入参数可扩展性标记语言配置信息,得到文档对象模型树节点数据;
    遍历读取所述文档对象模型树节点数据,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设传入参数的校验规则包 括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则。
  12. 根据权利要求8所述的接口参数校验与转换设备,所述处理器执行所述计算机程序时还实现以下步骤:
    按照预设校验优先级从高到低的顺序对每个预设传入参数对应的必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则进行规则排序,得到每个预设传入参数的已排序校验规则;
    基于每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的已排序校验规则依次对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
    若至少一个业务参数对应的校验结果不为预设值,则确定参数校验未通过,按照预设模板生成警示信息,并向目标终端发送所述警示信息;
    若每个业务参数对应的校验结果均为预设值,则确定所述多个业务参数分别对应的校验结果为全部校验通过。
  13. 根据权利要求8所述的接口参数校验与转换设备,所述处理器执行所述计算机程序时还实现以下步骤:
    当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,并对所述输出参数可扩展性标记语言配置信息进行数据解析,得到多个预设输出参数,每个预设输出参数包括输出参数原始名、输出参数目标名、输出参数默认值、输出参数转换函数和输出参数类型;
    当每个预设输出参数的输出参数转换函数为空值时,将每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数默认值设置为每个预设输出参数的接口出参数据;
    当每个预设输出参数的出参转换函数不为空值时,将每个预设输出参数的输出参数原始名、每个预设输出参数的输出参数目标名和每个预设输出参数的输出参数类型设置为每个预设输出参数的输出参数转换函数对应的传入参数,获取每个预设输出参数的输出参数转换函数输出的接口出参值,并将预设输出参数的出参名称和输出的接口出参值设置为每个预设输出参数的接口出参数据;
    对多个预设输出参数分别对应的接口出参数据进行数据封装,得到目标出参数据,并将所述目标出参数据发送至目标终端,以使得所述目标终端解析并展示所述目标出参数据。
  14. 根据权利要求8-13中任意一项所述的接口参数校验与转换设备,所述处理器执行所述计算机程序时还实现以下步骤:
    将所述目标接口访问请求、所述多个业务参数和每个业务参数对应的校验结果记录至预设操作日志中;
    定时对预设操作日志进行数据分析,得到接口校验报表,并将所述接口校验报表发送至所述目标终端。
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:
    接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;
    根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;
    判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;
    解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;
    根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
    当所述多个业务参数分别对应的校验结果为全部校验通过时,基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
  16. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:
    接收目标接口访问请求,对所述目标接口访问请求进行参数解析,得到待校验参数、接口标识符、业务编码和产品类型;
    按照所述接口标识符从预设配置文件中获取目标解密接口,并调用所述目标解密接口对所述待校验参数进行解密处理,得到解密结果,当所述解密结果不为空值时,从所述解密结果中读取多个业务参数。
  17. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:
    基于预设符号对预设输入参数标识符和预设输出参数标识符分别与所述接口标识符、所述业务编码和所述产品类型按照预设参数顺序进行字符串拼接,得到待匹配输入参数标签标识符和待匹配输出参数标签标识符;
    将所述待匹配输入参数标签标识符设置为目标键,按照所述目标键从内存数据库中查询得到目标值,并将所述目标值设置为查询结果。
  18. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行时,使得计算机还执行以下步骤:
    确定所述输入参数可扩展性标记语言配置信息对应的架构schema类型,根据所述schema类型的数据结构解析所述输入参数可扩展性标记语言配置信息,得到文档对象模型树节点数据;
    遍历读取所述文档对象模型树节点数据,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设传入参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则。
  19. 根据权利要求15所述的计算机可读存储介质,当所述计算机指令在计算机上运行执行以下步骤时,使得计算机还执行以下步骤:
    按照预设校验优先级从高到低的顺序对每个预设传入参数对应的必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则进行规则排序,得到每个预设传入参数的已排序校验规则;
    基于每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的已排序校验规则依次对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
    若至少一个业务参数对应的校验结果不为预设值,则确定参数校验未通过,按照预设模板生成警示信息,并向目标终端发送所述警示信息;
    若每个业务参数对应的校验结果均为预设值,则确定所述多个业务参数分别对应的校验结果为全部校验通过。
  20. 一种接口参数校验与转换装置,其中,所述接口参数校验与转换装置包括:
    获取模块,用于接收目标接口访问请求,从所述目标接口访问请求中获取多个业务参数、接口标识符、业务编码和产品类型;
    检索模块,用于根据预设输入参数标识符、预设输出参数标识符、所述接口标识符、所述业务编码和所述产品类型生成待匹配输入参数标签标识符和待匹配输出参数标签标识符,并按照所述待匹配输入参数标签标识符检索内存数据库,得到查询结果;
    判断模块,用于判断所述查询结果是否为空值,当所述查询结果不为空值时,确定所述查询结果为输入参数可扩展性标记语言配置信息;
    解析模块,用于解析所述输入参数可扩展性标记语言配置信息,得到每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则,每个预设参数的校验规则包括必传参数校验规则、最小长度校验规则、最大长度校验规则、数值精度校验规则、正则表达式校验规则和预设函数校验规则;
    校验模块,用于根据每个预设传入参数的参数名称、每个预设传入参数的参数类型和每个预设传入参数的校验规则对每个业务参数进行规则校验,得到每个业务参数对应的校验结果;
    生成模块,当所述多个业务参数分别对应的校验结果为全部校验通过时,用于基于所述待匹配输出参数标签标识符检索所述内存数据库,得到输出参数可扩展性标记语言配置信息,基于所述输出参数可扩展性标记语言配置信息生成目标出参数据,并将所述目标出参数据发送至目标终端。
PCT/CN2021/090208 2020-12-15 2021-04-27 接口参数校验与转换方法、装置、设备及存储介质 WO2022126966A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011472836.3 2020-12-15
CN202011472836.3A CN112540923B (zh) 2020-12-15 2020-12-15 接口参数校验与转换方法、装置、设备及存储介质

Publications (1)

Publication Number Publication Date
WO2022126966A1 true WO2022126966A1 (zh) 2022-06-23

Family

ID=75018678

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/090208 WO2022126966A1 (zh) 2020-12-15 2021-04-27 接口参数校验与转换方法、装置、设备及存储介质

Country Status (2)

Country Link
CN (1) CN112540923B (zh)
WO (1) WO2022126966A1 (zh)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114996040A (zh) * 2022-08-04 2022-09-02 飞天诚信科技股份有限公司 一种服务接口调用方法及装置
CN115334145A (zh) * 2022-08-09 2022-11-11 中国建设银行股份有限公司 一种业务处理方法、装置、电子设备及存储介质
CN115794927A (zh) * 2023-01-29 2023-03-14 北京仁科互动网络技术有限公司 业务功能扩展方法和系统
CN116304225A (zh) * 2023-03-22 2023-06-23 联洋国融(上海)科技有限公司 一种基于mas系统的构件检索及评价方法
CN116860859A (zh) * 2023-09-01 2023-10-10 江西省信息中心(江西省电子政务网络管理中心 江西省信用中心 江西省大数据中心) 一种多源异构数据的接口创建方法、装置及电子设备
CN117893244A (zh) * 2024-03-15 2024-04-16 中国海洋大学 一种基于机器学习的海藻水热炭化应用综合管控系统
CN117893244B (zh) * 2024-03-15 2024-06-04 中国海洋大学 一种基于机器学习的海藻水热炭化应用综合管控系统

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112540923B (zh) * 2020-12-15 2022-03-25 平安科技(深圳)有限公司 接口参数校验与转换方法、装置、设备及存储介质
CN113222408A (zh) * 2021-05-12 2021-08-06 康键信息技术(深圳)有限公司 在线问诊业务监控方法、装置、设备及存储介质
CN113609014A (zh) * 2021-08-04 2021-11-05 深圳鼎盛电脑科技有限公司 一种接口字段校验方法、装置、存储介质及电子设备
CN113791762B (zh) * 2021-11-17 2022-03-25 浙江太美医疗科技股份有限公司 临床试验数据转换方法、装置、计算机设备和存储介质
CN115001628B (zh) * 2022-06-07 2024-02-27 北京百度网讯科技有限公司 数据编码的方法及装置、数据解码的方法及装置和数据结构
CN115145587A (zh) * 2022-07-22 2022-10-04 中国农业银行股份有限公司 一种产品参数校验方法、装置、电子设备及存储介质
CN114997111B (zh) * 2022-08-08 2023-01-10 太平金融科技服务(上海)有限公司深圳分公司 业务处理方法、装置、计算机设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7100153B1 (en) * 2000-07-06 2006-08-29 Microsoft Corporation Compiler generation of a late binding interface implementation
US20100198799A1 (en) * 2007-06-20 2010-08-05 Sanjeev Krishnan Method and Apparatus for Software Simulation
CN107579836A (zh) * 2016-07-04 2018-01-12 中兴通讯股份有限公司 一种参数校验方法和装置、以及网管服务器
CN110188038A (zh) * 2019-05-13 2019-08-30 青岛海尔科技有限公司 一种参数校验方法及装置、校验架构
CN112540923A (zh) * 2020-12-15 2021-03-23 平安科技(深圳)有限公司 接口参数校验与转换方法、装置、设备及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109766264A (zh) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 接口参数的校验方法、装置、计算机设备及存储介质
CN110389765B (zh) * 2019-07-24 2023-06-09 深圳市盟天科技有限公司 一种参数校验方法和参数校验系统
CN110674376A (zh) * 2019-09-09 2020-01-10 中国平安财产保险股份有限公司 接口参数校验方法、装置、设备及计算机可读存储介质
CN111158792B (zh) * 2020-01-02 2023-05-16 普元信息技术股份有限公司 分布式架构下实现动态可配置的服务参数校验处理系统及其方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7100153B1 (en) * 2000-07-06 2006-08-29 Microsoft Corporation Compiler generation of a late binding interface implementation
US20100198799A1 (en) * 2007-06-20 2010-08-05 Sanjeev Krishnan Method and Apparatus for Software Simulation
CN107579836A (zh) * 2016-07-04 2018-01-12 中兴通讯股份有限公司 一种参数校验方法和装置、以及网管服务器
CN110188038A (zh) * 2019-05-13 2019-08-30 青岛海尔科技有限公司 一种参数校验方法及装置、校验架构
CN112540923A (zh) * 2020-12-15 2021-03-23 平安科技(深圳)有限公司 接口参数校验与转换方法、装置、设备及存储介质

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114996040A (zh) * 2022-08-04 2022-09-02 飞天诚信科技股份有限公司 一种服务接口调用方法及装置
CN114996040B (zh) * 2022-08-04 2022-10-04 飞天诚信科技股份有限公司 一种服务接口调用方法及装置
CN115334145A (zh) * 2022-08-09 2022-11-11 中国建设银行股份有限公司 一种业务处理方法、装置、电子设备及存储介质
CN115334145B (zh) * 2022-08-09 2024-04-12 中国建设银行股份有限公司 一种业务处理方法、装置、电子设备及存储介质
CN115794927A (zh) * 2023-01-29 2023-03-14 北京仁科互动网络技术有限公司 业务功能扩展方法和系统
CN116304225A (zh) * 2023-03-22 2023-06-23 联洋国融(上海)科技有限公司 一种基于mas系统的构件检索及评价方法
CN116304225B (zh) * 2023-03-22 2024-05-17 联洋国融(上海)科技有限公司 一种基于mas系统的构件检索及评价方法
CN116860859A (zh) * 2023-09-01 2023-10-10 江西省信息中心(江西省电子政务网络管理中心 江西省信用中心 江西省大数据中心) 一种多源异构数据的接口创建方法、装置及电子设备
CN116860859B (zh) * 2023-09-01 2023-12-22 江西省信息中心(江西省电子政务网络管理中心 江西省信用中心 江西省大数据中心) 一种多源异构数据的接口创建方法、装置及电子设备
CN117893244A (zh) * 2024-03-15 2024-04-16 中国海洋大学 一种基于机器学习的海藻水热炭化应用综合管控系统
CN117893244B (zh) * 2024-03-15 2024-06-04 中国海洋大学 一种基于机器学习的海藻水热炭化应用综合管控系统

Also Published As

Publication number Publication date
CN112540923A (zh) 2021-03-23
CN112540923B (zh) 2022-03-25

Similar Documents

Publication Publication Date Title
WO2022126966A1 (zh) 接口参数校验与转换方法、装置、设备及存储介质
KR101755365B1 (ko) 레코드 포맷 정보의 관리
US8346737B2 (en) Encoding of hierarchically organized data for efficient storage and processing
KR101695277B1 (ko) 비정형 데이터의 정규화를 수행하도록 지원하는 방법 및 이를 이용한 컴퓨팅 장치
US20080208830A1 (en) Automated transformation of structured and unstructured content
US10275229B2 (en) Encoded data object notation persistence format
US6411963B1 (en) External system interface method and system
CN109165209B (zh) 数据库中对象类型的数据校验方法、装置、设备及介质
CN112905620A (zh) 数据查询方法及装置、电子设备、存储介质
JP5789236B2 (ja) 構造化文書分析方法、構造化文書分析プログラム、および構造化文書分析システム
EP3438818B1 (en) Method and device for compiling computer language
WO2002027486A1 (en) Methods and apparatus for generating unique identifiers for software components
CN114416776A (zh) 一种数据自定义查询统计方法
CN107943483B (zh) 一种iOS中数据正向解析方法
CN111711605A (zh) 一种用于物联网平台的数据协议主动解析方法
CN114268431B (zh) 浏览器证书转码方法及装置、计算设备、可读存储介质
Moussa et al. XML Schema-Based Minification for Communication of Security Information and Event Management (SIEM) Systems in Cloud Environments
US20040102999A1 (en) Validating an electronic transaction
CN117034320A (zh) 一种数据加密方法、装置、设备及计算机可读存储介质
CN117762570A (zh) 基于jpa的动态数据库脚本执行解析方法、系统及电子设备
CN116501753A (zh) 基于规则引擎的数据处理方法、装置及规则引擎系统
JP2022105474A (ja) Cveエントリを使用するネットワークデバイスの脆弱性を検証するための方法
CN117215930A (zh) 基于机器学习的契约推荐方法及装置、电子设备
CN117726393A (zh) 订单数据查询方法、装置、电子设备及存储介质
CN116070616A (zh) 基于正则表达式的数据解析范化机制

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21904905

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21904905

Country of ref document: EP

Kind code of ref document: A1