CN116739805A - Data processing method and device, electronic equipment and computer readable storage medium - Google Patents

Data processing method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN116739805A
CN116739805A CN202310583958.7A CN202310583958A CN116739805A CN 116739805 A CN116739805 A CN 116739805A CN 202310583958 A CN202310583958 A CN 202310583958A CN 116739805 A CN116739805 A CN 116739805A
Authority
CN
China
Prior art keywords
interface
data
wrapper
target
identifier
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
CN202310583958.7A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310583958.7A priority Critical patent/CN116739805A/en
Publication of CN116739805A publication Critical patent/CN116739805A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/12Accounting
    • G06Q40/125Finance or payroll
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure provides a data processing method and apparatus, an electronic device, and a computer-readable storage medium, which can be applied to the fields of computer technology, data processing technology, and finance. The data processing method comprises the following steps: in response to receiving a data processing request, determining interface information according to service type identifiers in the data processing request, wherein the interface information comprises M interface identifiers and association relation information between the M interface identifiers, and M is a positive integer greater than 1; determining wrapper information according to the interface information, wherein the wrapper information comprises wrapper identifications corresponding to the M interface identifications respectively; acquiring data to be processed corresponding to the M interface identifiers according to the M interface identifiers and the wrapper identifiers corresponding to the M interface identifiers respectively; and determining a data processing result according to the association relation information and the data to be processed corresponding to the M interface identifiers.

Description

Data processing method and device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the fields of computer technology, data processing technology, and finance, and more particularly, to a data processing method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
Background
With the development of computer technology, how to process massive data generated by user behaviors is a problem to be solved.
The data processing of mass data can be realized through data auditing. The data auditing can refer to operations such as checking and cleaning the data in the data transmission process.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: because the data table and the fields related to the user behavior are complex, the accuracy and the integrity of the data auditing result cannot be ensured.
Disclosure of Invention
In view of this, the present disclosure provides a data processing method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
According to one aspect of the present disclosure, there is provided a data processing method including:
in response to receiving a data processing request, determining interface information according to service type identifiers in the data processing request, wherein the interface information comprises M interface identifiers and association relation information among the M interface identifiers, and M is a positive integer greater than 1;
determining wrapper information according to the interface information, wherein the wrapper information comprises wrapper identifications corresponding to the M interface identifications respectively;
Acquiring data to be processed corresponding to each of the M interface identifiers according to the M interface identifiers and the wrapper identifiers corresponding to each of the M interface identifiers; and
and determining a data processing result according to the association relation information and the data to be processed corresponding to the M interface identifiers.
According to an embodiment of the present disclosure, the determining, according to the association information and the data to be processed corresponding to each of the M interface identifiers, a data processing result includes:
processing the data to be processed corresponding to each of the M interface identifiers by using a wrapper corresponding to each of the M wrapper identifiers according to the association relation information to obtain target data corresponding to each of the M interface identifiers; and
and determining the data processing result according to the target data corresponding to each of the M interface identifiers.
According to an embodiment of the present disclosure, when M is greater than 1 and less than or equal to M, according to the association information, processing, by using a wrapper corresponding to each of the M wrapper identifiers, data to be processed corresponding to each of the M interface identifiers, to obtain target data corresponding to each of the M interface identifiers includes:
According to the association relation information, determining an mth-1 target interface identifier and an mth target interface identifier, wherein M is a positive integer and is smaller than or equal to M-1;
according to the m-1 target interface identifier, determining an m-1 target wrapper identifier and m-1 target data to be processed;
according to the mth target interface identifier, determining an mth target wrapper identifier and mth target data to be processed; processing the m-1 target data to be processed by using a wrapper corresponding to the m-1 target wrapper identifier to obtain m-1 target data; and
and processing the (m-1) th target data and the (m) th target data to be processed by using a wrapper corresponding to the (m) th target wrapper identifier to obtain the (m) th target data.
According to an embodiment of the present disclosure, in the case where m=1, the above method further includes:
determining the mth target interface identifier;
determining the mth target wrapper identifier and the mth target to-be-processed data according to the mth target interface identifier; and
and processing the mth target data to be processed by using a wrapper corresponding to the mth target wrapper identifier to obtain the mth target data.
According to an embodiment of the present disclosure, the processing the m-1 th target data to be processed by using the wrapper corresponding to the m-1 th target wrapper identifier, to obtain the m-1 st target data includes:
performing data format verification on the m-1 target data to be processed to obtain a data format verification result; and
and under the condition that the data format verification result represents that the m-1 target data to be processed passes the data format verification, carrying out data standardization processing on the m-1 target data to be processed to obtain the m-1 target data.
According to an embodiment of the present disclosure, the obtaining, according to the M interface identifiers and the wrapper identifiers corresponding to the M interface identifiers, the data to be processed corresponding to the M interface identifiers includes:
processing source interfaces corresponding to the M interface identifiers by using packagers corresponding to the M packager identifiers respectively to obtain target interfaces corresponding to the M interface identifiers respectively; and
and acquiring data to be processed corresponding to each of the M interface identifiers by utilizing the target interfaces corresponding to each of the M interface identifiers.
According to an embodiment of the present disclosure, the obtaining, by using the target interfaces corresponding to the M interface identifiers, the data to be processed corresponding to the M interface identifiers includes:
determining address information corresponding to the interface identifier according to the interface identifier; and
and acquiring the data to be processed corresponding to the interface identifier based on the address information by utilizing the target interface corresponding to the interface identifier.
According to an embodiment of the present disclosure, the determining, in response to receiving a data processing request, interface information according to a service type identifier in the data processing request includes:
determining the similarity between each preset service type identifier in the at least one preset service type identifier and the service type identifier according to at least one preset service type identifier and the service type identifier in the preset mapping relation; and
and determining at least one preset interface identifier corresponding to the preset service type identifier in the preset mapping relation as the interface identifier in response to the similarity being greater than or equal to a preset threshold.
According to an embodiment of the present disclosure, the preset mapping relationship includes at least one key value relationship, the key value relationship includes key information and value information, the key information includes the preset service type identifier, and the value information includes the at least one preset interface identifier corresponding to the preset service type identifier.
According to an embodiment of the present disclosure, the above data processing method further includes:
in response to receiving a wrapper creation instruction, determining a target object corresponding to a new service type identifier in the wrapper creation instruction according to the new service type identifier; and
and creating a wrapper corresponding to the newly added service type identifier according to the target object.
According to another aspect of the present disclosure, there is provided a data processing apparatus comprising:
the first determining module is used for determining interface information according to the service type identifiers in the data processing request in response to the received data processing request, wherein the interface information comprises M interface identifiers and association relation information among the M interface identifiers, and M is a positive integer greater than 1;
the second determining module is used for determining wrapper information according to the interface information, wherein the wrapper information comprises wrapper identifiers corresponding to the M interface identifiers respectively;
the acquisition module is used for acquiring data to be processed corresponding to each of the M interface identifiers according to the M interface identifiers and the wrapper identifiers corresponding to each of the M interface identifiers; and
And the third determining module is used for determining a data processing result according to the association relation information and the data to be processed corresponding to the M interface identifiers.
According to another aspect of the present disclosure, there is provided an electronic device including:
one or more processors;
a memory for storing one or more instructions,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to implement a method as described in the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising computer executable instructions which, when executed, are adapted to carry out the method as described in the present disclosure.
According to the embodiment of the disclosure, since the wrapper information is determined according to the interface information, and the interface information is determined according to the service type identifier in the data processing request, the correspondence among the service type identifier, the interface identifier and the wrapper identifier can be ensured. On the basis, as the data processing result is determined according to the association relation information and the data to be processed corresponding to the M interface identifiers, the data to be processed is acquired according to the interface identifier and the wrapper identifier corresponding to the interface identifier, the writing and maintenance processes of the data processing codes can be simplified by wrapping the data processing and checking logic in different wrappers, the maintainability and the readability of the data processing codes can be reduced by separating the data processing and checking logic, the technical problems that the accuracy and the integrity of the data hooking result cannot be guaranteed due to the fact that a data table and fields related to user behaviors are complex in the related art are avoided, and the efficiency and the accuracy of the data processing are improved.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent from the following description of embodiments thereof with reference to the accompanying drawings in which:
FIG. 1 schematically illustrates a system architecture to which a data processing method may be applied, according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a data processing method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates an example schematic diagram of a process of determining interface information from a traffic type identification in a data processing request in response to receiving the data processing request, according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates an example schematic diagram of a process of acquiring data to be processed corresponding to each of M interface identifications according to M interface identifications and wrapper identifications corresponding to each of M interface identifications according to an embodiment of the present disclosure;
fig. 5 schematically illustrates an example schematic diagram of a process of determining a data processing result according to association relationship information and data to be processed corresponding to M interface identifiers, respectively, according to an embodiment of the present disclosure;
fig. 6 schematically illustrates an example schematic diagram of a process of determining a data processing result according to association relationship information and data to be processed corresponding to M interface identifications, respectively, according to another embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a data processing apparatus according to an embodiment of the present disclosure; and
fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a data processing method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related personal information of the user all conform to the regulations of related laws and regulations, necessary security measures are taken, and the public order harmony is not violated.
In the technical scheme of the disclosure, the authorization or consent of the user is obtained before the personal information of the user is obtained or acquired.
For example, in a process based on checking account fees among financial institutions and double-track operation under a platform of a host machine, different user behavior lists are usually related to due to the fact that fields in the user behavior lists related to the charging or checking fees are complicated and due to the fact that the charging or checking fees are in various preferential conditions of different transactions.
Because the user behavior data table and the fields related to the user behavior are complex, the accuracy and the integrity of the data auditing result cannot be ensured.
In order to at least partially solve the technical problems in the related art, the present disclosure provides a data processing method and apparatus, an electronic device, and a computer-readable storage medium, which can be applied to the fields of computer technology, data processing technology, and finance. The data processing method comprises the following steps: in response to receiving a data processing request, determining interface information according to service type identifiers in the data processing request, wherein the interface information comprises M interface identifiers and association relation information between the M interface identifiers, and M is a positive integer greater than 1; determining wrapper information according to the interface information, wherein the wrapper information comprises wrapper identifications corresponding to the M interface identifications respectively; acquiring data to be processed corresponding to the M interface identifiers according to the M interface identifiers and the wrapper identifiers corresponding to the M interface identifiers respectively; and determining a data processing result according to the association relation information and the data to be processed corresponding to the M interface identifiers.
It should be noted that the data processing method and apparatus provided in the embodiments of the present disclosure may be used in the fields of computer technology, data processing technology, and finance, for example, in the field of data auditing technology. The data processing method and device provided by the embodiment of the disclosure can also be applied to any field except the fields of computer technology, data processing technology and finance, such as the technical field of a wrapper. The application fields of the data processing method and the data processing device provided by the embodiment of the disclosure are not limited.
Fig. 1 schematically illustrates a system architecture to which a data processing method may be applied according to an embodiment of the present disclosure. It should be noted that fig. 1 is only an example of a system architecture to which embodiments of the present disclosure may be applied to assist those skilled in the art in understanding the technical content of the present disclosure, but does not mean that embodiments of the present disclosure may not be used in other devices, systems, environments, or scenarios.
As shown in fig. 1, a system architecture 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the data processing method provided in the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the data processing apparatus provided by the embodiments of the present disclosure may be generally provided in the server 105. The data processing method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the data processing apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
Alternatively, the data processing method provided by the embodiment of the present disclosure may also be performed by the first terminal device 101, the second terminal device 102, or the third terminal device 103, or may also be performed by other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103. Accordingly, the data processing apparatus provided by the embodiments of the present disclosure may also be provided in the first terminal device 101, the second terminal device 102, or the third terminal device 103, or in other terminal devices different from the first terminal device 101, the second terminal device 102, or the third terminal device 103.
It should be understood that the number of first, second or third terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of first, second or third terminal devices, networks and servers, as desired for implementation.
It should be noted that the sequence numbers of the respective operations in the following methods are merely representative of the operations for the purpose of description, and should not be construed as representing the order of execution of the respective operations. The method need not be performed in the exact order shown unless explicitly stated.
Fig. 2 schematically illustrates a flow chart of a data processing method according to an embodiment of the present disclosure.
As shown in fig. 2, the data processing method 200 includes operations S210 to S240.
In response to receiving the data processing request, interface information is determined according to the service type identifier in the data processing request, where the interface information includes M interface identifiers and association relationship information between the M interface identifiers, and M is a positive integer greater than 1.
In operation S220, wrapper information is determined according to the interface information, wherein the wrapper information includes wrapper identifications corresponding to the M interface identifications, respectively.
In operation S230, the data to be processed corresponding to each of the M interface identifiers is obtained according to the M interface identifiers and the wrapper identifiers corresponding to each of the M interface identifiers.
In operation S240, a data processing result is determined according to the association relationship information and the data to be processed corresponding to each of the M interface identifiers.
According to the embodiment of the disclosure, the data processing method can be applied to data auditing. Data auditing can refer to checking, cleaning and other operations on data in the data transmission process so as to ensure the accuracy and the integrity of the data.
According to the embodiment of the disclosure, the code for generating the data processing request can be written in the script in advance, and the client can run the script to generate the data processing request message in response to detecting the data processing operation initiated by the user. For example, a user may enter a service type identification during initiation of a data processing operation. The client can run the script and generate a data processing request message according to the service type identifier. The client can send the data processing request message to the server, so that the server can process the data to be processed corresponding to the data processing operation according to the data processing request message, and a data processing result is obtained.
According to embodiments of the present disclosure, a traffic type identification may be used to characterize a traffic type of data to be processed corresponding to a data processing operation. The interface identification may be used to characterize different interfaces. The first preset mapping relationship may include at least one first key value relationship. The first key-value relation may include first key information and first value information. The first key information may include a preset service type identifier. The first value information may include at least one preset interface identifier corresponding to a preset service type identifier.
According to an embodiment of the present disclosure, after receiving a data processing request, a similarity of a traffic type identifier between a traffic type identifier in the data processing request and at least one preset traffic type identifier may be determined. And in response to the similarity of the service type identifiers being greater than or equal to a first predetermined threshold, determining at least one preset interface identifier corresponding to the preset service type identifier as M interface identifiers. The association information may be used to characterize the association between the M interface identifications.
According to embodiments of the present disclosure, interface identification may be used to characterize different wrappers. The wrapper may be used to dynamically add additional business functions to the object without modifying the structure of the object. The second preset mapping relationship includes at least one second key value relationship. The second key-value relation may include second key information and second value information. The second key information may include a preset interface identification. The second value information may include at least one preset wrapper identification corresponding to the preset interface identification.
According to an embodiment of the present disclosure, after obtaining the M interface identifications, an interface identification similarity between each of the M interface identifications and at least one preset interface identification may be determined. In response to the interface identifier similarity being greater than or equal to a second predetermined threshold, at least one preset wrapper identifier corresponding to the preset interface identifier may be determined to be the wrapper identifier corresponding to the interface identifier.
According to the embodiment of the disclosure, after the interface information and the wrapper information are obtained, a source interface can be determined according to the target interface identifier in the M interface identifiers, a target wrapper is determined according to the target wrapper identifier in the M wrapper identifiers, and the source interface is processed by the target wrapper to obtain the target interface. On the basis, the target interface can be utilized to acquire the data to be processed corresponding to the target interface identification.
According to the embodiment of the disclosure, after the data to be processed corresponding to each of the M interface identifiers is obtained, the target data to be processed may be determined according to the target interface identifier of the M interface identifiers, the target wrapper may be determined according to the target wrapper identifier of the M wrapper identifiers, and the plurality of target wrappers may be applied to the data set according to a specific order, so as to implement a function of data auditing.
According to the embodiment of the disclosure, the target data is obtained by processing the target data to be processed by using the target wrapper. For example, a wrapper representing product offer conditions may be applied first, then a wrapper representing an integrated offer, and finally a wrapper representing a difference comparison. On this basis, the data processing result can be determined according to the target data corresponding to each interface identifier.
According to the embodiment of the disclosure, since the wrapper information is determined according to the interface information, and the interface information is determined according to the service type identifier in the data processing request, the correspondence among the service type identifier, the interface identifier and the wrapper identifier can be ensured. On the basis, as the data processing result is determined according to the association relation information and the data to be processed corresponding to the M interface identifiers, the data to be processed is acquired according to the interface identifier and the wrapper identifier corresponding to the interface identifier, the writing and maintenance processes of the data processing codes can be simplified by wrapping the data processing and checking logic in different wrappers, the maintainability and the readability of the data processing codes can be reduced by separating the data processing and checking logic, the technical problems that the accuracy and the integrity of the data hooking result cannot be guaranteed due to the fact that a data table and fields related to user behaviors are complex in the related art are avoided, and the efficiency and the accuracy of the data processing are improved.
A data processing method 200 according to an embodiment of the present invention is further described below with reference to fig. 3-6.
According to an embodiment of the present disclosure, the data processing method provided by the present disclosure is implemented based on a wrapper mode. Wrapper modes may include at least one of the following roles: abstract component roles, concrete component roles, decorative roles, and concrete decorative roles. An abstract component role may refer to an object that is given an abstract interface and has been normalized to accept additional responsibility. The specific component roles may refer to defined classes that are to receive additional responsibility, and different classes may be defined according to different business audit rules. The ornamental role may refer to an instance that holds a build object and defines an interface that is consistent with the abstract build interface. A specific ornamental role may refer to being responsible for adding additional responsibility to a component object.
In accordance with embodiments of the present disclosure, in wrapper mode, abstract component classes, concrete component classes, abstract wrapper classes, and concrete wrapper classes may be defined. Abstract component class abstract component classes may be used to perform the following methods: acquiring the size of a data set, acquiring data of a specified index in the data set, converting the data set into a character string, and the like. The concrete component class can inherit from the abstract component class and implement its method, representing the actual data set.
According to embodiments of the present disclosure, an abstract wrapper class may represent a wrapper of a data set, inherit from an abstract component class, and hold references to the abstract component class, as well as attributes representing the wrapper state, which may include, for example, whether to enable, wrapper name, and the like. A concrete wrapper class may represent an actual data set wrapper inheriting from an abstract wrapper class and implementing the method thereof, e.g., a concrete wrapper class may implement a wrapper representing an ordering for ordering a data set. In addition, in a specific wrapper class, a parent class method can be called in the method to acquire an original data set, then the data set is modified or processed, and finally the processed data set is returned.
According to the embodiment of the disclosure, in the data auditing process, the data auditing flow can be simplified through a wrapper mode, the interface identifier corresponding to the service type identifier is determined in advance according to different service type identifiers, the wrapper identifier corresponding to the interface identifier is determined, and the workload of total field auditing under different scenes is reduced by nesting a plurality of wrapper classes into an original class. In addition, the method and the device for the wrapper class can realize enhancement of functions, for example, can enhance processing of data under the condition that a plurality of preferential packages are superposed in a charging scene, so that inheritance relation of cost can be replaced by combination of the wrapper class, data checking involving a plurality of data tables is realized, errors caused by excessive fields in checking different data tables are avoided, and further data processing efficiency can be improved.
According to an embodiment of the present disclosure, operation S210 may include the following operations.
And determining the similarity between each preset service type identifier and each service type identifier in the at least one preset service type identifier according to the at least one preset service type identifier and the service type identifier in the preset mapping relation. And determining at least one preset interface identifier corresponding to the preset service type identifier in the preset mapping relation as an interface identifier in response to the similarity being greater than or equal to a preset threshold.
According to an embodiment of the present disclosure, the preset mapping relationship may include at least one key-value relationship. The key-value relationship may include key information and value information. The key information may include a preset service type identification. The value information may include at least one preset interface identifier corresponding to the preset service type identifier.
According to the embodiment of the present disclosure, the preset threshold may be set according to an actual service requirement, which is not limited herein. For example, the preset threshold may be set to 0.95.
According to embodiments of the present disclosure, a preset traffic type identification may be used to characterize different traffic types. The preset interface identification may be used to characterize different interfaces. Different data interfaces and different wrappers may be defined according to different traffic types. The preset mapping relationship may include, for example, a preset service type identifier a-preset interface identifier a1, a preset service type identifier B-preset interface identifiers B1 and B2, and a preset service type identifier C-preset interface identifiers C1, C2 and C3. The traffic type may include at least one of: cross-border money transfer, intra-system money transfer, and cross-line money transfer, among others.
According to the embodiment of the disclosure, since the interface identifier is determined according to at least one preset interface identifier corresponding to the preset service type identifier in the preset mapping relationship in response to the similarity being greater than or equal to the preset threshold, and the similarity is determined according to at least one preset service type identifier and the service type identifier in the preset mapping relationship, the interface corresponding to the service type identifier can be automatically determined according to the service type identifier, which is beneficial to improving the efficiency of subsequent information processing.
Fig. 3 schematically illustrates an example schematic diagram of a process of determining interface information according to a traffic type identification in a data processing request in response to receiving the data processing request according to an embodiment of the present disclosure.
As shown in fig. 3, in 300, a similarity 303 between each of at least one preset service type identifier 301 and a service type identifier 302 may be determined according to at least one preset service type identifier 301 and a service type identifier 302 in a preset mapping relationship. After obtaining the similarity 303, operation S310 may be performed.
In operation S310, the similarity is greater than or equal to a preset threshold? If so, at least one preset interface identifier corresponding to the preset service type identifier 301 in the preset mapping relationship may be determined as the interface identifier 304. If not, the flow may end.
According to an embodiment of the present disclosure, operation S230 may include the following operations.
And processing the source interfaces corresponding to the M interface identifiers by utilizing the wrappers corresponding to the M wrapper identifiers respectively to obtain target interfaces corresponding to the M interface identifiers. And acquiring the data to be processed corresponding to each of the M interface identifiers by utilizing the target interfaces corresponding to each of the M interface identifiers.
According to the embodiment of the disclosure, after the interface information and the wrapper information are obtained, a source interface corresponding to the target interface identifier may be determined according to the target interface identifier in the M interface identifiers, a target wrapper corresponding to the target wrapper identifier may be determined according to the target wrapper identifier in the M wrapper identifiers, and the source interface corresponding to the target interface identifier may be processed by using the target wrapper corresponding to the target wrapper identifier to obtain the target interface corresponding to the target interface identifier. On the basis, the target interface corresponding to the target interface identifier can be utilized to acquire the data to be processed corresponding to the target interface identifier.
According to the embodiment of the disclosure, the processing logic and the checking logic of the data are packaged in different wrappers, so that the writing and maintenance of codes can be simplified, and the audit taking program is prevented from being created for audit taking scenes corresponding to different service type identifiers, thereby enabling the back-end codes of the data processing to be lighter.
According to an embodiment of the present disclosure, acquiring the data to be processed corresponding to each of the M interface identifications using the target interface corresponding to each of the M interface identifications may include the following operations.
And determining address information corresponding to the interface identifier according to the interface identifier. And acquiring the data to be processed corresponding to the interface identifier based on the address information by utilizing the target interface corresponding to the interface identifier.
According to an embodiment of the present disclosure, address information corresponding to an interface identifier is determined according to the interface identifier. The address information may be used to characterize the address of the data to be processed corresponding to the interface identification. The address information may include an internet protocol address (Internet Protocol Address, IP). After the address information is obtained, the target interface corresponding to the interface identifier can be utilized, and the data to be processed corresponding to the interface identifier can be obtained according to the address information. The data to be processed may include all data tables required for the data set, each field in the data tables, and special operations and attributes required for checking the fields.
According to the embodiment of the disclosure, as the data to be processed is acquired based on the address information by using the target interface, the target interface is obtained by processing the source interface corresponding to the interface identifier by using the wrapper corresponding to the wrapper identifier, thereby realizing automatic acquisition of the data to be processed and further improving the efficiency of data processing.
Fig. 4 schematically illustrates an example schematic diagram of a process of acquiring data to be processed corresponding to M interface identifiers according to M interface identifiers and wrapper identifiers corresponding to the M interface identifiers, respectively, according to an embodiment of the disclosure.
As shown in fig. 4, in 400, a source interface 403 may be determined from an interface identifier 401 and a wrapper 404 may be determined from a wrapper identifier 402.
The source interface 403 corresponding to the interface identifier 401 is processed by the wrapper 404 corresponding to the wrapper identifier 402, and the target interface 405 corresponding to the interface identifier 401 is obtained. From the interface identifier 401, address information 406 corresponding to the interface identifier 401 is determined. With the target interface 405 corresponding to the interface identifier 401, the data to be processed 407 corresponding to the interface identifier 401 is acquired based on the address information 406.
According to an embodiment of the present disclosure, operation S240 may include the following operations.
And processing the data to be processed corresponding to each of the M interface identifiers by utilizing the wrappers corresponding to each of the M wrapper identifiers according to the association relation information to obtain target data corresponding to each of the M interface identifiers. And determining a data processing result according to the target data corresponding to each of the M interface identifiers.
According to the embodiments of the present disclosure, a specific method for processing data to be processed by the wrapper may be set according to actual service requirements, which is not limited herein. For example, the wrapper may be used to perform a data format verification process and a data normalization process. And carrying out data format verification processing on the data to be processed corresponding to the interface identifier to obtain a data format verification result. And under the condition that the data format verification result represents that the data to be processed corresponding to the interface identifier passes the data format verification, the data to be processed corresponding to the interface identifier can be subjected to data standardization processing to obtain target data corresponding to the interface identifier.
According to an embodiment of the present disclosure, in the case where m=1, processing, according to the association relationship information, to-be-processed data corresponding to each of the M interface identifiers by using a wrapper corresponding to each of the M wrapper identifiers, to obtain target data corresponding to each of the M interface identifiers may include the following operations.
And determining the mth target interface identification. And determining the mth target wrapper identifier and the mth target to-be-processed data according to the mth target interface identifier. And processing the mth target data to be processed by using a wrapper corresponding to the mth target wrapper identifier to obtain mth target data.
According to the embodiment of the disclosure, since the mth-1 target interface identifier corresponding to the mth target interface identifier does not exist in the case of m=1, the mth target interface identifier can be directly determined, and the mth target wrapper identifier and the mth target data to be processed can be determined according to the mth target interface identifier.
According to embodiments of the present disclosure, the mth target wrapper may be determined from the mth target wrapper identification. And carrying out data format verification processing on the data to be processed of the mth target by using the mth target wrapper to obtain a data format verification result. And under the condition that the data format verification result represents that the mth target to-be-processed data passes the data format verification, data standardization processing can be carried out on the mth target to-be-processed data, so that the mth target data is obtained.
Fig. 5 schematically illustrates an example schematic diagram of a process of determining a data processing result according to association relationship information and data to be processed corresponding to M interface identifiers, respectively, according to an embodiment of the present disclosure.
As shown in fig. 5, in 500, a target interface identification 502 may be determined among M interface identifications 501. From the target interface identification 502, a target wrapper identification 503 and target pending data 504 are determined. A wrapper 505 corresponding to the target wrapper identification 503 is determined. The wrapper 505 is used to perform data format verification on the target to-be-processed data 504, and a data format verification result 506 is obtained. After obtaining the data format check result 506, operation S510 may be performed.
In operation S510, the data format verification result characterizes that the target data to be processed passes the data format verification? If so, the wrapper 505 may be used to perform data normalization processing on the target to-be-processed data 504 to obtain target data 507. The data processing results 508 may be determined from the target data 507 corresponding to the target interface identification 502. If not, the flow may end.
According to the embodiment of the disclosure, when M is greater than 1 and less than or equal to M, according to the association relationship information, processing the data to be processed corresponding to each of the M interface identifiers by using the wrappers corresponding to each of the M wrapper identifiers, and obtaining the target data corresponding to each of the M interface identifiers may include the following operations.
And determining an mth-1 target interface identifier and an mth target interface identifier according to the association relation information, wherein M is a positive integer and is smaller than or equal to M-1. And determining the mth-1 target wrapper identifier and the mth-1 target to-be-processed data according to the mth-1 target interface identifier. And determining the mth target wrapper identifier and the mth target to-be-processed data according to the mth target interface identifier. And processing the m-1 target data to be processed by using a wrapper corresponding to the m-1 target wrapper identifier to obtain the m-1 target data. And processing the (m-1) th target data and the (m) th target data to be processed by using a wrapper corresponding to the (m) th target wrapper identifier to obtain the (m) th target data.
According to the embodiment of the disclosure, since the M-1 th target interface identifier corresponding to the M-1 th target interface identifier exists in the case that M is more than 1 and less than or equal to M, the M-1 th target interface identifier and the M-1 th target interface identifier can be determined according to the association relationship information. Each wrapper may be configured to process and verify the target data to be processed and pass the processed data to the next wrapper.
According to embodiments of the present disclosure, the m-1 th target wrapper may be determined from the m-1 st target wrapper identification. And carrying out data format verification processing on the m-1 target data to be processed by using the m-1 target wrapper to obtain a data format verification result. Under the condition that the data format verification result represents that the m-1 target to-be-processed data passes the data format verification, the data standardization processing can be carried out on the m-1 target to-be-processed data, so that the m-1 target data is obtained.
According to embodiments of the present disclosure, the mth target wrapper may be determined from the mth target wrapper identification. And carrying out data format verification processing on the (m-1) target data and the (m) target data to be processed by using the (m) target wrapper to obtain a data format verification result. And under the condition that the data format verification result represents that the m-1 target data and the m target data to be processed pass through the data format verification, the data standardization processing can be carried out on the m-1 target data and the m target data to be processed, so that the m target data is obtained.
According to an embodiment of the present disclosure, processing the m-1 th target data to be processed using a wrapper corresponding to the m-1 st target wrapper identification, obtaining the m-1 st target data may include the following operations.
And carrying out data format verification on the m-1 target data to be processed to obtain a data format verification result. And under the condition that the data format verification result represents that the m-1 target to-be-processed data passes the data format verification, carrying out data standardization processing on the m-1 target to-be-processed data to obtain the m-1 target data.
According to the embodiment of the present disclosure, the data format verification method may be set according to actual service requirements, which is not limited herein. For example, the data format verification method may include at least one of: regular expression verification method, type conversion verification method, length limit verification method, enumerated value verification method and special character verification method.
According to the embodiment of the disclosure, the data standardization processing method can be set according to actual service requirements, and is not limited herein. For example, the data normalization processing method may include at least one of: a Min-max normalization (Min-Max Normalization) method, a Z-score normalization (standard) method, a Decimal scale normalization (explanatory Scaling) method, and a dispersion normalization (Range Normalization) method.
According to the embodiment of the disclosure, after the target data corresponding to each of the M interface identifiers is obtained, the target data inconsistent after processing may be uniformly recorded. For example, the registration error module may be invoked using a record interface to record the processed inconsistent target data in the error table.
According to the embodiment of the disclosure, as the target data are obtained by sequentially processing the data to be processed corresponding to the interface identifier by using the wrapper corresponding to the wrapper identifier according to the association relation information, the one-to-one proofreading of each field in the data to be processed is avoided through the encapsulation of the wrapper, the data processing flow is simplified through stack type auditing, and the data processing efficiency is further improved. On the basis, the data processing result is determined according to the target data corresponding to the interface identifier, and the logic between different packagers is clear, so that the data processing and the data checking logic can be separated, the coupling property is reduced, the maintainability and the readability of the data processing code are improved, the occurrence of problems in the data processing process is reduced, and the accuracy of the data processing result is further improved.
Fig. 6 schematically illustrates an example schematic diagram of a process of determining a data processing result according to association relationship information and data to be processed corresponding to M interface identifications, respectively, according to another embodiment of the present disclosure.
As shown in fig. 6, in 600, an mth-1 target interface identification 602 and an mth target interface identification 603 may be determined according to the association relationship information 601. From the m-1 st target interface identifier 602, an m-1 st target wrapper identifier 604 and m-1 st target pending data 605 are determined. An m-1 st wrapper 506 corresponding to the m-1 st target wrapper identification 604 is determined.
And (3) performing data format verification on the m-1 target to-be-processed data 605 by using an m-1 wrapper 506 to obtain a data format verification result 607. After obtaining the data format check result 607, operation S610 may be performed.
In operation S610, the data format verification result characterizes that the (m-1) th target data to be processed passes the data format verification? If so, the m-1 th wrapper 506 may be used to perform data normalization on the m-1 st target data 605 to obtain the m-1 st target data 608. If not, the flow may end.
The mth target wrapper identification 609 and the mth target pending data 610 may be determined from the mth target interface identification 603. An mth wrapper 611 corresponding to the mth target wrapper identification 609 is determined.
The mth wrapper 611 is used to perform data format verification on the mth-1 target data 608 and the mth target data to be processed 610, so as to obtain a data format verification result 612. After the data format check result 612 is obtained, operation S620 may be performed.
In operation S620, the data format verification result characterizes that the (m-1) th target data and the (m) th target data to be processed pass the data format verification? If so, the mth wrapper 611 may be used to perform data normalization processing on the mth-1 target data 608 and the mth target to-be-processed data 610 to obtain the mth target data 613. The data processing result 614 is determined based on the mth target data 613 corresponding to the mth target interface identifier 603. If not, the flow may end.
The above-described data processing method 200 may further include the following operations according to embodiments of the present disclosure.
In response to receiving the wrapper creation instruction, determining a target object corresponding to the newly added service type identifier according to the newly added service type identifier in the wrapper creation instruction. And creating a wrapper corresponding to the newly added service type identifier according to the target object.
According to embodiments of the present disclosure, the added service type identifier may be used to characterize the added service type. The newly added service type may refer to a new function added on the basis of the original object. The added service type may include at least one of: deduction of commission fee points, product preference and the like. Corresponding wrapper instances may be created according to the type of target object and combined with the target object. Thereby achieving the purpose of expanding the behavior of the target object.
According to an embodiment of the present disclosure, a combining schema (Composite Pattern) handles complex hierarchical structure problems by combining multiple objects into a tree structure and recursively downloading operations. Wrapper mode (Decorator Pattern) multi-tiered extends the behavior of an object by nesting multiple wrapper objects and recursively downloading operations. Since both the composition schema and wrapper schema can be used to organize and extend the behavior of objects, they can cooperate with each other, such as using wrappers to extend the behavior of specific objects in a composition tree.
According to embodiments of the present disclosure, because the wrapper mode is implemented by combining nested wrapper objects, the creation of a large number of sub-classes is avoided, reducing the complexity of the data processing code. In addition, as the large classes of different audit scene behaviors can be split into a plurality of subclasses, a single responsibility principle is realized.
According to the embodiment of the disclosure, since the target object is determined according to the new service type identifier in the wrapper creation instruction in response to receiving the wrapper creation instruction, by creating the wrapper corresponding to the new service type identifier according to the target object, new data wrapper classes can be conveniently added, deleted and combined, and different data auditing functions are realized, so that the data auditing flow is expanded, and the expandability of the data processing flow is improved.
The above is only an exemplary embodiment, but is not limited thereto, and other data processing methods known in the art may be included as long as the efficiency and accuracy of data processing can be improved.
Fig. 7 schematically shows a block diagram of a data processing apparatus according to an embodiment of the present disclosure.
As shown in fig. 7, the data processing apparatus 700 may include a first determination module 710, a second determination module 720, an acquisition module 730, and a third determination module 740.
The first determining module 710 is configured to determine, in response to receiving the data processing request, interface information according to a service type identifier in the data processing request, where the interface information includes M interface identifiers and association relationship information between the M interface identifiers, and M is a positive integer greater than 1.
A second determining module 720, configured to determine wrapper information according to the interface information, where the wrapper information includes wrapper identifiers corresponding to the M interface identifiers.
And the acquiring module 730 is configured to acquire the data to be processed corresponding to each of the M interface identifiers according to the M interface identifiers and the wrapper identifiers corresponding to each of the M interface identifiers.
And a third determining module 740, configured to determine a data processing result according to the association relationship information and the data to be processed corresponding to each of the M interface identifiers.
According to an embodiment of the present disclosure, the third determination module 740 may include a first processing sub-module and a first determination sub-module.
And the first processing sub-module is used for processing the data to be processed corresponding to each of the M interface identifiers by utilizing the wrappers corresponding to each of the M wrapper identifiers according to the association relation information to obtain target data corresponding to each of the M interface identifiers.
And the first determining submodule is used for determining a data processing result according to the target data corresponding to the M interface identifiers.
According to an embodiment of the present disclosure, in case 1 < m+.m, the first processing sub-module may include a first determining unit, a second determining unit, a third determining unit, a first processing unit, and a second processing unit.
The first determining unit is used for determining an mth-1 target interface identifier and an mth target interface identifier according to the association relation information, wherein M is a positive integer and is smaller than or equal to M-1.
And the second determining unit is used for determining the mth-1 target wrapper identifier and the mth-1 target to-be-processed data according to the mth-1 target interface identifier.
And the third determining unit is used for determining the mth target wrapper identifier and the mth target to-be-processed data according to the mth target interface identifier.
The first processing unit is used for processing the m-1 target data to be processed by utilizing the wrapper corresponding to the m-1 target wrapper identifier to obtain the m-1 target data.
And the second processing unit is used for processing the (m-1) th target data and the (m) th target data to be processed by utilizing the wrapper corresponding to the (m) th target wrapper identifier to obtain the (m) th target data.
According to an embodiment of the present disclosure, in case of m=1, the first processing sub-module may further include a fourth determining unit, a fifth determining unit, and a third processing unit.
And the fourth determining unit is used for determining the mth target interface identifier.
And the fifth determining unit is used for determining the mth target wrapper identifier and the mth target to-be-processed data according to the mth target interface identifier.
And the third processing unit is used for processing the mth target data to be processed by utilizing the wrapper corresponding to the mth target wrapper identifier to obtain the mth target data.
According to an embodiment of the present disclosure, the first processing unit may include a verification sub-unit and a processing sub-unit.
And the verification subunit is used for carrying out data format verification on the m-1 target data to be processed to obtain a data format verification result.
And the processing subunit is used for carrying out data standardization processing on the m-1 target data to be processed under the condition that the data format verification result represents the m-1 target data to be processed to pass the data format verification, so as to obtain the m-1 target data.
According to an embodiment of the present disclosure, the acquisition module 730 may include a second processing sub-module and an acquisition sub-module.
And the second processing sub-module is used for processing the source interfaces corresponding to the M interface identifiers by utilizing the wrappers corresponding to the M wrapper identifiers respectively to obtain target interfaces corresponding to the M interface identifiers respectively.
And the acquisition sub-module is used for acquiring the data to be processed corresponding to the M interface identifiers by utilizing the target interfaces corresponding to the M interface identifiers.
According to an embodiment of the present disclosure, the acquisition sub-module may include a sixth determination unit and an acquisition unit.
And a sixth determining unit, configured to determine address information corresponding to the interface identifier according to the interface identifier.
And the acquisition unit is used for acquiring the data to be processed corresponding to the interface identifier based on the address information by utilizing the target interface corresponding to the interface identifier.
According to an embodiment of the present disclosure, the first determination module 710 may include a second determination sub-module and a third determination sub-module.
And the second determining submodule is used for determining the similarity between each preset service type identifier and the service type identifier in at least one preset service type identifier according to at least one preset service type identifier and the service type identifier in the preset mapping relation.
And the third determining submodule is used for determining at least one preset interface identifier corresponding to the preset service type identifier in the preset mapping relation as an interface identifier in response to the similarity being greater than or equal to a preset threshold value.
According to an embodiment of the present disclosure, the preset mapping relationship includes at least one key-value relationship, the key-value relationship includes key information including a preset service type identifier, and the value information includes at least one preset interface identifier corresponding to the preset service type identifier.
The data processing apparatus 700 may further include a fourth determination module and a creation module according to an embodiment of the present disclosure.
And the fourth determining module is used for determining a target object corresponding to the new service type identifier according to the new service type identifier in the wrapper creation instruction in response to receiving the wrapper creation instruction.
And the creating module is used for creating a wrapper corresponding to the newly added service type identifier according to the target object.
Any number of modules, sub-modules, units, sub-units, or at least some of the functionality of any number of the sub-units according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented as split into multiple modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or in any other reasonable manner of hardware or firmware that integrates or encapsulates the circuit, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be at least partially implemented as computer program modules, which when executed, may perform the corresponding functions.
For example, any of the first determination module 710, the second determination module 720, the acquisition module 730, and the third determination module 740 may be combined in one module/unit/sub-unit, or any of the modules/units/sub-units may be split into a plurality of modules/units/sub-units. Alternatively, at least some of the functionality of one or more of these modules/units/sub-units may be combined with at least some of the functionality of other modules/units/sub-units and implemented in one module/unit/sub-unit. According to embodiments of the present disclosure, at least one of the first determination module 710, the second determination module 720, the acquisition module 730, and the third determination module 740 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or in hardware or firmware, such as any other reasonable manner of integrating or packaging the circuitry, or in any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the first determination module 710, the second determination module 720, the acquisition module 730, and the third determination module 740 may be at least partially implemented as computer program modules, which when executed, may perform the respective functions.
It should be noted that, in the embodiments of the present disclosure, the data processing apparatus portion corresponds to the data processing method portion in the embodiments of the present disclosure, and the description of the data processing apparatus portion specifically refers to the data processing method portion and is not described herein.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a data processing method according to an embodiment of the disclosure. The electronic device shown in fig. 8 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 8, a computer electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 809 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the disclosure.
In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or the RAM 803. Note that the program may be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the present disclosure, the electronic device 800 may also include an input/output (I/O) interface 805, the input/output (I/O) interface 805 also being connected to the bus 804. The electronic device 800 may also include one or more of the following components connected to an input/output (I/O) interface 805: an input portion 806 including a keyboard, mouse, etc.; an output portion 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk or the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to an input/output (I/O) interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as needed so that a computer program read out therefrom is mounted into the storage section 808 as needed.
According to embodiments of the present disclosure, the method flow according to embodiments of the present disclosure may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable storage medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium. Examples may include, but are not limited to: 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), 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 disclosure, 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.
For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 802 and/or RAM 803 and/or one or more memories other than ROM 802 and RAM 803 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program comprising program code for performing the methods provided by the embodiments of the present disclosure, the program code for causing an electronic device to implement the data processing methods provided by the embodiments of the present disclosure when the computer program product is run on the electronic device.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or from a removable medium 811 via a communication portion 809. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
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 disclosure. 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. Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be combined in various combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (13)

1. A data processing method, comprising:
in response to receiving a data processing request, determining interface information according to service type identifiers in the data processing request, wherein the interface information comprises M interface identifiers and association relation information among the M interface identifiers, and M is a positive integer greater than 1;
determining wrapper information according to the interface information, wherein the wrapper information comprises wrapper identifications corresponding to the M interface identifications respectively;
acquiring data to be processed corresponding to each of the M interface identifiers according to the M interface identifiers and the wrapper identifiers corresponding to each of the M interface identifiers; and
And determining a data processing result according to the association relation information and the data to be processed corresponding to each of the M interface identifiers.
2. The method of claim 1, wherein the determining the data processing result according to the association information and the data to be processed corresponding to each of the M interface identifiers comprises:
according to the association relation information, utilizing wrappers corresponding to the M wrapper identifications respectively to process data to be processed corresponding to the M interface identifications respectively to obtain target data corresponding to the M interface identifications respectively; and
and determining the data processing result according to the target data corresponding to each of the M interface identifiers.
3. The method of claim 2, wherein, in the case that M is greater than 1 and less than or equal to M, the processing, according to the association information, the to-be-processed data corresponding to each of the M interface identifiers by using a wrapper corresponding to each of the M wrapper identifiers, to obtain the target data corresponding to each of the M interface identifiers includes:
according to the association relation information, determining an mth-1 target interface identifier and an mth target interface identifier, wherein M is a positive integer and is smaller than or equal to M-1;
According to the m-1 target interface identifier, determining an m-1 target wrapper identifier and m-1 target data to be processed;
according to the mth target interface identifier, determining an mth target wrapper identifier and mth target data to be processed;
processing the m-1 target data to be processed by using a wrapper corresponding to the m-1 target wrapper identifier to obtain m-1 target data; and
and processing the (m-1) th target data and the (m) th target data to be processed by using a wrapper corresponding to the (m) th target wrapper identifier to obtain the (m) th target data.
4. A method according to claim 3, wherein in case of m = 1, the method further comprises:
determining the mth target interface identifier;
according to the mth target interface identifier, determining the mth target wrapper identifier and the mth target to-be-processed data; and
and processing the mth target data to be processed by using a wrapper corresponding to the mth target wrapper identifier to obtain the mth target data.
5. A method according to claim 3, wherein said processing said m-1 th target data to be processed with a wrapper corresponding to said m-1 st target wrapper identification, to obtain m-1 st target data comprises:
Performing data format verification on the m-1 target data to be processed to obtain a data format verification result; and
and under the condition that the data format verification result represents that the m-1 target data to be processed passes the data format verification, carrying out data standardization processing on the m-1 target data to be processed to obtain the m-1 target data.
6. The method according to any one of claims 1 to 5, wherein the obtaining, according to the M interface identifiers and wrapper identifiers corresponding to the M interface identifiers, the data to be processed corresponding to the M interface identifiers includes:
processing source interfaces corresponding to the M interface identifiers by utilizing wrappers corresponding to the M wrapper identifiers respectively to obtain target interfaces corresponding to the M interface identifiers respectively; and
and acquiring data to be processed corresponding to each of the M interface identifiers by utilizing the target interfaces corresponding to each of the M interface identifiers.
7. The method of claim 6, wherein the obtaining, with the target interfaces corresponding to the M interface identifications respectively, the data to be processed corresponding to the M interface identifications respectively comprises:
Determining address information corresponding to the interface identifier according to the interface identifier; and
and acquiring data to be processed corresponding to the interface identifier based on the address information by utilizing a target interface corresponding to the interface identifier.
8. The method of any of claims 1 to 5, wherein the determining interface information from a traffic type identification in the data processing request in response to receiving the data processing request comprises:
determining the similarity between each preset service type identifier in at least one preset service type identifier and the service type identifier according to at least one preset service type identifier and the service type identifier in a preset mapping relation; and
determining at least one preset interface identifier corresponding to the preset service type identifier in the preset mapping relation as the interface identifier in response to the similarity being greater than or equal to a preset threshold;
the preset mapping relation comprises at least one key value relation, the key value relation comprises key information and value information, the key information comprises the preset service type identifier, and the value information comprises the at least one preset interface identifier corresponding to the preset service type identifier.
9. The method of any one of claims 1 to 5, further comprising:
in response to receiving a wrapper creation instruction, determining a target object corresponding to a new service type identifier according to the new service type identifier in the wrapper creation instruction; and
and creating a wrapper corresponding to the newly added service type identifier according to the target object.
10. A data processing apparatus comprising:
the first determining module is used for responding to a received data processing request and determining interface information according to service type identifiers in the data processing request, wherein the interface information comprises M interface identifiers and incidence relation information among the M interface identifiers, and M is a positive integer larger than 1;
the second determining module is used for determining wrapper information according to the interface information, wherein the wrapper information comprises wrapper identifications corresponding to the M interface identifications respectively;
the acquisition module is used for acquiring data to be processed corresponding to each of the M interface identifiers according to the M interface identifiers and the wrapper identifiers corresponding to each of the M interface identifiers; and
and the third determining module is used for determining a data processing result according to the association relation information and the data to be processed corresponding to the M interface identifiers.
11. An electronic device, comprising:
one or more processors;
a memory for storing one or more instructions,
wherein the one or more instructions, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1 to 9.
12. A computer readable storage medium having stored thereon executable instructions which when executed by a processor cause the processor to implement the method of any of claims 1 to 9.
13. A computer program product comprising computer executable instructions for implementing the method of any one of claims 1 to 9 when executed.
CN202310583958.7A 2023-05-23 2023-05-23 Data processing method and device, electronic equipment and computer readable storage medium Pending CN116739805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310583958.7A CN116739805A (en) 2023-05-23 2023-05-23 Data processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310583958.7A CN116739805A (en) 2023-05-23 2023-05-23 Data processing method and device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN116739805A true CN116739805A (en) 2023-09-12

Family

ID=87917791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310583958.7A Pending CN116739805A (en) 2023-05-23 2023-05-23 Data processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN116739805A (en)

Similar Documents

Publication Publication Date Title
WO2020233048A1 (en) Customized software generation method and system, and electronic device and storage medium
CN108804140B (en) Batch instruction analysis method, device and equipment
CN108920257B (en) Transaction processing method, device, equipment and storage medium
CN110020358B (en) Method and device for generating dynamic page
CN112667415B (en) Data calling method and device, readable storage medium and electronic equipment
CN115599386A (en) Code generation method, device, equipment and storage medium
CN111241180A (en) Information processing method, device, equipment and storage medium
CN113515271B (en) Service code generation method and device, electronic equipment and readable storage medium
CN116644122A (en) Data transaction processing method, device, computer equipment and storage medium
CN113535565B (en) Interface use case generation method, device, equipment and medium
CN112988604B (en) Object testing method, testing system, electronic device and readable storage medium
CN115146316A (en) Cross-system data access method, device, equipment and medium
CN116739805A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN114116509A (en) Program analysis method, program analysis device, electronic device, and storage medium
CN112783903B (en) Method and device for generating update log
CN111949259A (en) Risk decision configuration method, system, electronic equipment and storage medium
CN113032256A (en) Automatic test method, device, computer system and readable storage medium
CN111865726A (en) Service message testing method, device, computer system and storage medium
CN113448960A (en) Method and device for importing form file
CN113485770B (en) Method and device for determining service configuration data, electronic equipment and storage medium
CN116541029A (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN116225521A (en) Record delivery method, apparatus, device, medium, and program product
CN115309404A (en) File generation method and device, electronic equipment and storage medium
CN115421738A (en) Version deployment method and device, electronic equipment and storage medium
CN116089411A (en) Data checking method, device, equipment and storage medium

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