CN114513552A - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114513552A
CN114513552A CN202210010090.7A CN202210010090A CN114513552A CN 114513552 A CN114513552 A CN 114513552A CN 202210010090 A CN202210010090 A CN 202210010090A CN 114513552 A CN114513552 A CN 114513552A
Authority
CN
China
Prior art keywords
message
message format
format
preset template
data
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.)
Granted
Application number
CN202210010090.7A
Other languages
Chinese (zh)
Other versions
CN114513552B (en
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.)
CITIC Aibank Corp Ltd
Original Assignee
CITIC Aibank Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CITIC Aibank Corp Ltd filed Critical CITIC Aibank Corp Ltd
Priority to CN202210010090.7A priority Critical patent/CN114513552B/en
Publication of CN114513552A publication Critical patent/CN114513552A/en
Application granted granted Critical
Publication of CN114513552B publication Critical patent/CN114513552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The disclosure provides a data processing method, a data processing device, an electronic device and a storage medium. Acquiring a first message format and first message content corresponding to the first message format included in first message data by responding to the received first message data; in response to detecting that the first message format comprises a format field corresponding to a first preset template message format, replacing the format field in the first message format, which is the same as the first preset template message format, with a first preset template reference identifier to obtain a first intermediate message format; performing message format conversion according to the first intermediate message format and the first preset template message format to obtain a second message format; determining second message data according to the second message format and the first message content; by using the template, the workload of converting the whole first message format is reduced, and the message conversion efficiency is improved.

Description

Data processing method, device, equipment and storage medium
Technical Field
The present application relates to data processing technologies, and in particular, to a data processing method, apparatus, device, and storage medium.
Background
In the network data transmission process, there is usually a difference in the format of the packet between the source node and the destination node, so that packet conversion is usually required during data transmission.
In the conventional message conversion, the message format of the message data needs to be completely converted, the conversion workload is large, and the message data conversion efficiency is low.
Disclosure of Invention
The embodiment of the disclosure provides a data processing method, a data processing device, data processing equipment and a storage medium.
In a first aspect, the present disclosure provides a data processing method, including:
responding to received first message data, and acquiring a first message format included in the first message data and first message content corresponding to the first message format;
in response to detecting that the first message format comprises a format field corresponding to a first preset template message format, replacing the format field in the first message format, which is the same as the first preset template message format, with a first preset template reference identifier to obtain a first intermediate message format;
performing message format conversion according to the first intermediate message format and the first preset template message format to obtain a second message format;
and determining second message data according to the second message format and the first message content.
In some optional embodiments, the method further comprises:
in response to detecting that the first message format does not include a format field corresponding to the first preset template message format, acquiring a standard identification of the first message data;
determining a second preset template message format according to the standard identification mark;
replacing the first message format with the second preset template message format;
performing message format conversion according to the second preset template message format to obtain a third message format;
and determining third message data according to the third message format and the first message content.
In some optional embodiments, the performing packet format conversion according to the first intermediate packet format and the first preset template packet format includes:
performing message format conversion on the first preset template message format to obtain a first converted template message format;
and replacing the first preset template reference identifier with the first converted template message format.
In some optional embodiments, before replacing the first preset template reference identifier with the first converted template packet format, the performing packet format conversion according to the first intermediate packet format and the first preset template packet format further includes:
and converting the format fields except the first preset template reference identifier in the first intermediate message format into message formats.
In some optional embodiments, the determining second packet data according to the second packet format and the first packet content includes:
and assigning the second message format according to the first message content to obtain the second message data.
In some optional embodiments, the determining third packet data according to the third packet format and the first packet content includes:
and assigning the third message format according to the first message content to obtain the third message data.
In a second aspect, the present disclosure provides a data processing apparatus comprising:
the data acquisition unit is configured to respond to the reception of first message data, and acquire a first message format included in the first message data and first message content corresponding to the first message format;
the template processing unit is configured to replace a format field, which is identical to a first preset template message format, in the first message format with a first preset template reference identifier to obtain a first intermediate message format in response to detecting that the first message format comprises a format field corresponding to the first preset template message format;
the conversion unit is configured to perform message format conversion according to the first intermediate message format and the first preset template message format to obtain a second message format;
and the assignment unit is configured to determine second message data according to the second message format and the first message content.
In some optional embodiments, the apparatus further comprises:
a specification obtaining unit configured to obtain a specification identification of the first packet data in response to detecting that the first packet format does not include a format field corresponding to the first preset template packet format;
the standard processing unit is configured to determine a second preset template message format according to the standard identification mark, and replace the first message format with the second preset template message format;
the conversion unit is further configured to perform message format conversion according to the second preset template message format to obtain a third message format;
the assignment unit is further configured to determine third packet data according to the third packet format and the first packet content.
In some optional embodiments, the conversion unit is further configured to:
performing message format conversion on the first preset template message format to obtain a first converted template message format;
and replacing the first preset template reference identifier with the first converted template message format.
In some optional embodiments, the conversion unit is further configured to:
and converting the format fields except the first preset template reference identifier in the first intermediate message format into message formats.
In some optional embodiments, the assignment unit is further configured to:
and assigning the second message format according to the first message content to obtain the second message data.
In some optional embodiments, the assignment unit is further configured to:
and assigning the third message format according to the first message content to obtain the third message data.
In a third aspect, the present disclosure provides an electronic device comprising:
one or more processors;
storage means having one or more programs stored thereon which, when executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of the embodiments of the first aspect.
In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by one or more processors, implements the method according to any one of the embodiments of the first aspect.
In response to receiving first message data, the data processing method, the data processing apparatus, the electronic device, and the storage medium according to the embodiments of the present disclosure obtain a first message format included in the first message data and first message content corresponding to the first message format; in response to detecting that the first message format comprises a format field corresponding to a first preset template message format, replacing the format field in the first message format, which is the same as the first preset template message format, with a first preset template reference identifier to obtain a first intermediate message format; performing message format conversion according to the first intermediate message format and the first preset template message format to obtain a second message format; determining second message data according to the second message format and the first message content; by using the reference template, the format field in the first message format, which is the same as the first preset template message format, is replaced by the first preset template reference identifier, and the first preset template message format is converted during message format conversion without repeatedly converting the format field in the first message format, which is the same as the first preset template message format, so that the workload of converting the first message format as a whole is reduced, and the message conversion efficiency is improved.
Drawings
The drawings illustrate generally, by way of example, but not by way of limitation, various embodiments discussed herein.
FIG. 1 is an exemplary system architecture diagram in which one embodiment according to the present disclosure may be applied;
FIG. 2 is a schematic flow chart diagram illustrating one embodiment of a data processing method according to the present disclosure;
FIG. 3 is an exploded flow diagram of one embodiment of step 204 of the data processing method shown in FIG. 2;
FIG. 4 is an exploded flow diagram of one embodiment of step 204 of the data processing method shown in FIG. 2;
FIG. 5 is a schematic block diagram of one embodiment of a data processing apparatus according to the present disclosure;
FIG. 6 is a schematic block diagram of a computer system suitable for use with a terminal device or server implementing embodiments of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the data processing method or data processing apparatus of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a message interaction application, a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal apparatuses 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting sound collection and/or video collection, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion Picture Experts compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, motion Picture Experts compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like. When the terminal apparatuses 101, 102, 103 are software, they can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, such as a background server providing support for the messaging interaction class application displayed on the terminal device 101, 102, 103. The background server may analyze and perform other processing on the received first packet data, and feed back a processing result (for example, a first packet format included in the first packet data and first packet content corresponding to the first packet format, and the like) to the terminal device.
The server 105 may be hardware or software. When the server 105 is hardware, it may be implemented as a distributed server cluster composed of a plurality of servers, or may be implemented as a single server. When the server 105 is software, it may be implemented as multiple pieces of software or software modules (e.g., to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that, in some cases, the data processing method provided by the present disclosure may be executed by the server 105, the terminal devices 101, 102, and 103, or by both the server 105 and the terminal devices 101, 102, and 103. Accordingly, the data processing apparatus may be provided in the server 105, may be provided in the terminal devices 101, 102, 103, may be partially provided in the server 105, and may be partially provided in the terminal devices 101, 102, 103. And accordingly system architecture 100 may include only server 105, or only terminal devices 101, 102, 103, or may include terminal devices 101, 102, 103, network 104 and server 105. The present disclosure is not limited thereto.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a data processing method according to the present disclosure is shown. The data processing method comprises the following steps:
step 201, in response to receiving the first message data, obtaining a first message format included in the first message data and a first message content corresponding to the first message format.
In this embodiment of the present disclosure, the first packet data may be packet data sent by the source node to the target node. Here, the source node and the destination node may include a request drop server of a transmission protocol, for example, the first message data may be an incoming call request and/or an outgoing call request sent by the request drop server to the service side, or the first data may also be an incoming call response and/or an outgoing call response sent by the service side to the request drop server.
Message data (message) is a data unit exchanged and transmitted in the network, i.e. a data block to be sent by a node at a time. In the embodiment of the present disclosure, the message data may include a message format and a message content corresponding to the message format, where the message format is composed of format fields, and the message content corresponds to the format fields of the message format to form the message data. For example, as shown in table 1, "name, password, and withdrawal amount" in the first column of table 1 corresponds to the message format and the format field of the message format of table 1, "Zhangsan, 123456, and 10000" in the second column of table 1 corresponds to the message content of table 1, and the two together constitute the message data of table 1.
Name (I) Zhangsan
Cipher code 123456
Sum of money drawn 10000
TABLE 1
The current file formats of the mainstream message formats include JSON (JavaScript Object Notation) and XML (Extensible Markup Language). In the present disclosure, the message format types may include an incoming call request, an incoming call response, an outgoing call request, and an outgoing call response.
The execution main body of the data processing method can analyze the first message data to obtain the first message format and the first message content corresponding to the first message format after receiving the first message data sent by the source node to the target node.
Step 202, detecting whether the first message format includes a format field corresponding to the first preset template message format. If the detection result is yes, go to step 203; if the detection result is negative, go to step 204.
The embodiment of the present disclosure does not specifically limit the detection manner for detecting whether the first message format includes the format field corresponding to the first preset template message format. In some optional embodiments, the executing body compares the first preset template message format with the format field of the first message format, and determines whether the first message format includes the format field corresponding to the first preset template message format according to the comparison result.
Step 203, in response to detecting that the first packet format includes a format field corresponding to the first preset template packet format, replacing the format field in the first packet format that is the same as the first preset template packet format with a first preset template reference identifier, so as to obtain a first intermediate packet format.
In some optional embodiments, the first packet format includes at least two format fields that are identical to the first preset template packet format, and correspondingly, the first intermediate packet format includes at least two first preset template reference identifiers. It can be understood that, in the step 203, the format field in the first message format that is the same as the first preset template message format is extracted, and the first preset template reference identifier is reserved, so that simplification of the first message format is realized, and the workload of subsequent message format conversion is reduced.
Step 204, performing message format conversion according to the first intermediate message format and the first preset template message format to obtain a second message format.
Here, the second packet format is a packet format that can be received by the destination node, and correspondingly, the first packet format is a packet format sent by the source node.
In some optional embodiments, the first intermediate packet format is full template reference, that is, all format fields in the first intermediate packet format are replaced with the first preset template reference identifier. Correspondingly, in some alternative embodiments, as shown in fig. 3, the message format conversion according to the first intermediate message format and the first preset template message format may include the following steps 301 and 302. Wherein:
step 301, performing message format conversion on the first preset template message format to obtain a first converted template message format.
In some optional embodiments, the first preset template message format is preset in the execution main body of the data processing method, and correspondingly, the first preset template message format may be subjected to message format conversion in advance to obtain a first converted message format, and the first converted message format is correspondingly stored in the execution main body of the data processing method, so that the execution main body of the data processing method only accesses the first converted template message format corresponding to the first preset template message format during message format conversion, and the conversion workload during the message format conversion process is further reduced.
Step 302, replacing the first preset template reference identifier with the first converted template message format.
Therefore, the second message format can be obtained by replacing the first preset template reference identifier with the first converted template message format.
In some optional embodiments, the first intermediate packet format is a partial template reference, that is, the first intermediate packet format includes a format field except for the first preset template reference identifier. Correspondingly, in some alternative embodiments, as shown in fig. 4, the message format conversion according to the first intermediate message format and the first preset template message format may include the following steps 401 to 403. Wherein:
step 401, performing message format conversion on the first preset template message format to obtain a first converted template message format.
Step 402, performing message format conversion on format fields except the first preset template reference identifier in the first intermediate message format.
Step 403, replacing the first preset template reference identifier with the first converted template message format.
It can be seen that the first preset template reference identifier is used as an identifier, no processing is required in the message format conversion process, and after the format fields in the first intermediate message format except for the first preset template reference identifier are subjected to message format conversion, the first preset template reference identifier is replaced by the first converted template message format, so that the second message format can be obtained.
It can be understood that, in some practical application scenarios, format fields and contents that are not present in the preset template may be generated in the first packet data sent by the source node according to an actual packet generation process, and for the packet format of this portion, packet format conversion is also required.
Step 205, determining second message data according to the second message format and the first message content.
In some optional embodiments, determining the second packet data according to the second packet format and the first packet content may include: and assigning the second message format according to the first message content to obtain second message data.
It can be understood that the format field in the second message format corresponds to the format field in the first message format, and therefore, the second message format can be assigned according to the correspondence between the content of the first message and the format of the first message, so as to obtain the second message data.
Step 206, in response to detecting that the first packet format does not include a format field corresponding to the first preset template packet format, obtaining a canonical identification of the first packet data.
Here, the standard identification of the first message data is used to identify a preset second preset template message format. In the embodiment of the present disclosure, a form of the canonical identification is not specifically limited, and the canonical identification of the first packet data may be capable of representing a corresponding relationship between the source node and the target node, where the canonical identification may be address information (e.g., an IP address and an MAC address) of the source node and the target node, and may also be a device name and a device identification code of the source node.
In the embodiment of the disclosure, the specification identification mark represents that the source node and the target node conform to a preset specification.
And step 207, determining a second preset template message format according to the standard identification mark.
In some optional embodiments, the second preset template message format corresponding to the specification identifier may be prestored in the execution main body of the data processing method. When the executing entity of the data processing method executes step 207, a pre-stored second preset template message format may be determined according to the standard identifier.
And step 208, replacing the first message format with a second preset template message format.
In some optional embodiments, for a case that a first packet format in first packet data sent by a source node to a target node is not matched with a first preset template packet format, the first packet format may be replaced by a second preset template packet format corresponding to a preset specification. In the embodiment of the present disclosure, the second preset template message format includes at least part of format fields in the first message format.
Step 209, performing message format conversion according to the second preset template message format to obtain a third message format.
In some optional embodiments, the second preset template message format is preset in the execution main body of the data processing method, and correspondingly, the first preset template message format may be subjected to message format conversion in advance to obtain a third message format, and the third message format is correspondingly stored in the execution main body of the data processing method, so that the execution main body of the data processing method only accesses the third message format corresponding to the second preset template message format during message format conversion, and the conversion workload during the message format conversion process is further reduced.
Here, the third packet format is a packet format that the destination node can receive.
Step 210, determining third message data according to the third message format and the first message content.
In some optional embodiments, determining the third packet data according to the third packet format and the first packet content may include: and assigning the third message format according to the first message content to obtain third message data.
It can be understood that the format field in the third packet format corresponds to the format field in the second preset template packet format, and the format field in the third packet format corresponds to at least part of the format field in the first packet format, so that the third packet format can be assigned according to the corresponding relationship between the first packet content and the first packet format to obtain the third packet data.
With the continuous development of enterprises, the number of butt-joint partners is increased, and meanwhile, the definition and description of service parameters are greatly different between enterprises, between service systems and between service systems. The complexity, diversity and continuity of the service lead to the continuous increase of the number of the interfaces, the message fields of the interfaces are increased, and the management difficulty and workload of the interfaces are increased gradually. Moreover, the operational risk due to poor interface management is increasing. The financial service platform adopts the data processing method disclosed by the invention, and is combined with a set of configurable platform which realizes rapid access of a partner by arranging a bridge between interfaces as an execution main body of the data processing method.
Because the number of the butt-jointed partners is large, the interface parameters defined by each partner are not uniform, if the mode of adapting the old interface is adopted, the service interface needs to be continuously developed and perfected, when the interface parameters or the hierarchical structure are changed, the system needs to be correspondingly modified, and the expansibility is not strong. Therefore, by adopting the message template field mapping, the reconstruction of the intra-line service system interface can be reduced, the incoming template field is used for carrying out the relation mapping, the partner access can be quickly responded, and a large amount of repeated development work is reduced.
The realization mode can reduce the system development cost for the newly accessed partner system, and can realize the service docking requirement only by foreground configuration.
According to the embodiment of the disclosure, by applying templates, field repeated definition configuration is reduced, and message format conversion is not required to be repeatedly performed on the format field with the same format as the first preset template message format, so that repeated configuration of fields with the same scene is reduced, the probability of configuration errors is reduced, the workload of message data conversion is reduced, and the system efficiency of message data conversion is improved.
With further reference to fig. 5, as an implementation of the above data processing method, an embodiment of the present disclosure provides a data processing apparatus 500, which corresponds to the method embodiment shown in fig. 2, and which may be specifically applied to various electronic devices.
As shown in fig. 5, the data processing apparatus 500 of the present embodiment may include: a data acquisition unit 501, a template processing unit 502, a conversion unit 503, and an assignment unit 504. The data obtaining unit 501 is configured to, in response to receiving first message data, obtain a first message format included in the first message data and first message content corresponding to the first message format; a template processing unit 502 configured to, in response to detecting that the first packet format includes a format field corresponding to a first preset template packet format, replace a format field in the first packet format that is the same as the first preset template packet format with a first preset template reference identifier, resulting in a first intermediate packet format; a conversion unit 503, configured to perform message format conversion according to the first intermediate message format and the first preset template message format, so as to obtain a second message format; the assigning unit 504 is configured to determine second message data according to the second message format and the first message content.
In some optional embodiments, as shown in fig. 5, the data processing apparatus 500 further includes: a specification acquisition unit 505 and a specification processing unit 506. Wherein: a specification obtaining unit 505 configured to obtain a specification identification of the first message data in response to detecting that the first message format does not include a format field corresponding to a first preset template message format; a specification processing unit 506 configured to determine a second preset template message format according to the specification identification, and replace the first message format with the second preset template message format; the conversion unit 503 is further configured to perform message format conversion according to a second preset template message format, so as to obtain a third message format; the assigning unit 504 is further configured to determine third message data according to the third message format and the first message content.
In some optional embodiments, the conversion unit 503 is further configured to:
performing message format conversion on the first preset template message format to obtain a first converted template message format;
and replacing the first preset template reference identifier with the first converted template message format.
In some optional embodiments, the conversion unit 503 is further configured to:
and performing message format conversion on format fields except the first preset template reference identifier in the first intermediate message format.
In some optional embodiments, the assignment unit 504 is further configured to:
and assigning the second message format according to the first message content to obtain second message data.
In some optional embodiments, the assignment unit 504 is further configured to:
and assigning the third message format according to the first message content to obtain third message data.
It should be noted that details of implementation and technical effects of each unit in the data processing apparatus provided in the embodiments of the present disclosure may refer to descriptions of other embodiments in the present disclosure, and are not described herein again.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use as a server in implementing embodiments of the present disclosure. The computer system 600 shown in fig. 6 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present disclosure.
As shown in fig. 6, computer system 600 may include a processing device (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage device 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the computer system 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the computer system 600 to communicate with other devices, wireless or wired, to exchange data. While fig. 6 illustrates a computer system 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present 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. In contrast, in the present disclosure, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to implement the data processing method as shown in the embodiment shown in fig. 2 and its optional embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The name of the unit does not in some cases constitute a limitation on the unit itself, and for example, the data acquisition unit may also be described as a "unit that acquires, in response to receiving the first packet data, the first packet format included in the first packet data and the first packet content corresponding to the first packet format".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. A method of data processing, comprising:
responding to received first message data, and acquiring a first message format included in the first message data and first message content corresponding to the first message format;
in response to detecting that the first message format comprises a format field corresponding to a first preset template message format, replacing the format field in the first message format, which is the same as the first preset template message format, with a first preset template reference identifier to obtain a first intermediate message format;
performing message format conversion according to the first intermediate message format and the first preset template message format to obtain a second message format;
and determining second message data according to the second message format and the first message content.
2. The method of claim 1, wherein the method further comprises:
in response to detecting that the first message format does not include a format field corresponding to the first preset template message format, acquiring a standard identification mark of the first message data;
determining a second preset template message format according to the standard identification mark;
replacing the first message format with the second preset template message format;
performing message format conversion according to the second preset template message format to obtain a third message format;
and determining third message data according to the third message format and the first message content.
3. The method of claim 1, wherein said message format converting according to said first intermediate message format and said first pre-defined template message format comprises:
performing message format conversion on the first preset template message format to obtain a first converted template message format;
and replacing the first preset template reference identifier with the first converted template message format.
4. The method of claim 3, wherein said message format converting according to said first intermediate message format and said first pre-set template message format before said replacing said first pre-set template reference identifier with said first converted template message format, further comprises:
and converting the format fields except the first preset template reference identifier in the first intermediate message format into message formats.
5. The method of claim 1, wherein said determining second message data based on said second message format and said first message content comprises:
and assigning the second message format according to the first message content to obtain the second message data.
6. The method of claim 2, wherein said determining third packet data based on said third packet format and said first packet content comprises:
and assigning the third message format according to the first message content to obtain the third message data.
7. A data processing apparatus comprising:
the data acquisition unit is configured to respond to the reception of first message data, and acquire a first message format included in the first message data and first message content corresponding to the first message format;
the template processing unit is configured to replace a format field, which is identical to a first preset template message format, in the first message format with a first preset template reference identifier to obtain a first intermediate message format in response to detecting that the first message format comprises a format field corresponding to the first preset template message format;
the conversion unit is configured to perform message format conversion according to the first intermediate message format and the first preset template message format to obtain a second message format;
and the assignment unit is configured to determine second message data according to the second message format and the first message content.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a specification obtaining unit configured to obtain a specification identification of the first packet data in response to detecting that the first packet format does not include a format field corresponding to the first preset template packet format;
the standard processing unit is configured to determine a second preset template message format according to the standard identification mark, and replace the first message format with the second preset template message format;
the conversion unit is further configured to perform message format conversion according to the second preset template message format to obtain a third message format;
the assignment unit is further configured to determine third packet data according to the third packet format and the first packet content.
9. An electronic device, comprising:
one or more processors;
storage having one or more programs stored thereon that, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by one or more processors, implements the method of any one of claims 1-6.
CN202210010090.7A 2022-01-06 2022-01-06 Data processing method, device, equipment and storage medium Active CN114513552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210010090.7A CN114513552B (en) 2022-01-06 2022-01-06 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210010090.7A CN114513552B (en) 2022-01-06 2022-01-06 Data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114513552A true CN114513552A (en) 2022-05-17
CN114513552B CN114513552B (en) 2024-04-02

Family

ID=81549173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210010090.7A Active CN114513552B (en) 2022-01-06 2022-01-06 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114513552B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942750A (en) * 2022-05-19 2022-08-26 北京金堤科技有限公司 Method and device for processing field of external interface
CN117499504A (en) * 2023-12-29 2024-02-02 万联易达物流科技有限公司 Message format conversion method and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103093001A (en) * 2013-02-27 2013-05-08 人民搜索网络股份公司 Microblog data analysis method and device
CN103389991A (en) * 2012-05-09 2013-11-13 阿里巴巴集团控股有限公司 Data interaction method, data interaction device, data conversion method and data conversion device
US20140114929A1 (en) * 2012-10-23 2014-04-24 Ip Reservoir, Llc Method and Apparatus for Accelerated Format Translation of Data in a Delimited Data Format
CN104639507A (en) * 2013-11-13 2015-05-20 中国科学院声学研究所 Loading protocol packet data transmission method and system among heterogeneous networks
US9507762B1 (en) * 2015-11-19 2016-11-29 International Business Machines Corporation Converting portions of documents between structured and unstructured data formats to improve computing efficiency and schema flexibility
CN106815267A (en) * 2015-12-01 2017-06-09 中兴通讯股份有限公司 Date storage method and device
CN107256206A (en) * 2017-05-24 2017-10-17 北京京东尚科信息技术有限公司 The method and apparatus of character stream format conversion
CN110728122A (en) * 2019-10-12 2020-01-24 京东数字科技控股有限公司 Table generation method and device
CN112035480A (en) * 2020-08-31 2020-12-04 中国平安财产保险股份有限公司 Data table management method, device, equipment and storage medium
CN112104634A (en) * 2020-09-08 2020-12-18 中国电力科学研究院有限公司 Data message processing method, system, equipment and readable storage medium
CN112464619A (en) * 2021-01-25 2021-03-09 平安国际智慧城市科技股份有限公司 Big data processing method, device and equipment and computer readable storage medium
CN113836126A (en) * 2021-09-22 2021-12-24 上海妙一生物科技有限公司 Data cleaning method, device, equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103389991A (en) * 2012-05-09 2013-11-13 阿里巴巴集团控股有限公司 Data interaction method, data interaction device, data conversion method and data conversion device
US20140114929A1 (en) * 2012-10-23 2014-04-24 Ip Reservoir, Llc Method and Apparatus for Accelerated Format Translation of Data in a Delimited Data Format
CN103093001A (en) * 2013-02-27 2013-05-08 人民搜索网络股份公司 Microblog data analysis method and device
CN104639507A (en) * 2013-11-13 2015-05-20 中国科学院声学研究所 Loading protocol packet data transmission method and system among heterogeneous networks
US9507762B1 (en) * 2015-11-19 2016-11-29 International Business Machines Corporation Converting portions of documents between structured and unstructured data formats to improve computing efficiency and schema flexibility
CN106815267A (en) * 2015-12-01 2017-06-09 中兴通讯股份有限公司 Date storage method and device
CN107256206A (en) * 2017-05-24 2017-10-17 北京京东尚科信息技术有限公司 The method and apparatus of character stream format conversion
CN110728122A (en) * 2019-10-12 2020-01-24 京东数字科技控股有限公司 Table generation method and device
CN112035480A (en) * 2020-08-31 2020-12-04 中国平安财产保险股份有限公司 Data table management method, device, equipment and storage medium
CN112104634A (en) * 2020-09-08 2020-12-18 中国电力科学研究院有限公司 Data message processing method, system, equipment and readable storage medium
CN112464619A (en) * 2021-01-25 2021-03-09 平安国际智慧城市科技股份有限公司 Big data processing method, device and equipment and computer readable storage medium
CN113836126A (en) * 2021-09-22 2021-12-24 上海妙一生物科技有限公司 Data cleaning method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114942750A (en) * 2022-05-19 2022-08-26 北京金堤科技有限公司 Method and device for processing field of external interface
CN117499504A (en) * 2023-12-29 2024-02-02 万联易达物流科技有限公司 Message format conversion method and system
CN117499504B (en) * 2023-12-29 2024-03-22 万联易达物流科技有限公司 Message format conversion method and system

Also Published As

Publication number Publication date
CN114513552B (en) 2024-04-02

Similar Documents

Publication Publication Date Title
CN114513552B (en) Data processing method, device, equipment and storage medium
CN111460129B (en) Method, device, electronic equipment and storage medium for generating identification
CN110300165B (en) Method, device and equipment for calling functional program and storage medium
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN113076153B (en) Interface calling method and device
CN112152879B (en) Network quality determination method, device, electronic equipment and readable storage medium
CN113313623A (en) Watermark information display method, watermark information display device, electronic equipment and computer readable medium
CN112256372A (en) Information processing method and device and electronic equipment
CN115102992B (en) Data publishing method and device, electronic equipment and computer readable medium
CN111626802A (en) Method and apparatus for processing information
CN112257039B (en) Identity attribute adding method and device and electronic equipment
CN114979256A (en) Message pushing method and device, electronic equipment and computer readable medium
CN113486749A (en) Image data collection method, device, electronic equipment and computer readable medium
CN111367592B (en) Information processing method and device
CN112732457A (en) Image transmission method, image transmission device, electronic equipment and computer readable medium
CN114979128A (en) Cross-region communication method and device and electronic equipment
CN113326060A (en) Service request processing method, device and system and service configuration method and device
CN111414161A (en) Method, device, medium and electronic equipment for generating ID L file
CN113407229A (en) Method and device for generating offline script
CN112311833B (en) Data updating method and device
US10516767B2 (en) Unifying realtime and static data for presenting over a web service
CN114253520B (en) Interface code generation method and device
CN114513548B (en) Directional call information processing method and device
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium
CN111314457B (en) Method and device for setting virtual private cloud

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
GR01 Patent grant
GR01 Patent grant