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

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

Info

Publication number
CN115242872B
CN115242872B CN202210738703.9A CN202210738703A CN115242872B CN 115242872 B CN115242872 B CN 115242872B CN 202210738703 A CN202210738703 A CN 202210738703A CN 115242872 B CN115242872 B CN 115242872B
Authority
CN
China
Prior art keywords
request
channel terminal
response
parameters
field
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.)
Active
Application number
CN202210738703.9A
Other languages
Chinese (zh)
Other versions
CN115242872A (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.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202210738703.9A priority Critical patent/CN115242872B/en
Publication of CN115242872A publication Critical patent/CN115242872A/en
Application granted granted Critical
Publication of CN115242872B publication Critical patent/CN115242872B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Abstract

The embodiment of the invention discloses a data processing method, a device, computer equipment and a readable storage medium, wherein the method comprises the steps of receiving a request of a channel terminal for accessing a target interface and acquiring request parameters of the request; configuring a field of the request parameter to generate a request message of the channel terminal; obtaining a corresponding response message according to the request message; configuring a target field in the response message to obtain response parameters of the channel terminal; and according to the response parameters, obtaining corresponding response data and returning the response data to the channel terminal. By configuring the request parameters and the response parameters, the safety and the compliance of data output during interface multiplexing are ensured, and the minimum output of the channel terminal is met.

Description

Data processing method, device, computer equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, a data processing device, a computer device, and a readable storage medium.
Background
Along with the rapid development of computer technology, in order to meet the requirements of different external objects on services such as financial insurance, a plurality of related service platforms provide service interfaces facing the external objects, and meanwhile, along with the continuous evolution of the characteristics of service data, mass, complexity and scene diversification become data development normals, so that the number of service interfaces for processing data is correspondingly increased, and corresponding calling interface codes are generally required to be written for different interfaces, so that the system is more complex.
At present, in the prior art, the same interface is used for supporting a plurality of channel terminals by using the product management, but in business services such as financial insurance, the control is more and more strict in the aspect of information security of externally output data, and the safety and compliance of data output are difficult to ensure in the process of multiplexing the interfaces by using the product management.
Therefore, how to ensure the security and compliance of data output during interface multiplexing is a technical problem to be solved at present.
Disclosure of Invention
In view of the problems in the prior art, the present invention provides a data processing method, apparatus, computer device, and readable storage medium.
In order to achieve the above object, the technical scheme adopted by the embodiment of the invention is as follows:
in a first aspect, an embodiment of the present invention provides a data processing method, where the method includes:
receiving a request of a channel terminal for accessing a target interface, and acquiring request parameters of the request;
configuring a field of the request parameter to generate a request message of the channel terminal;
obtaining a corresponding response message according to the request message;
configuring a target field in the response message to obtain response parameters of the channel terminal;
and according to the response parameters, obtaining corresponding response data and returning the response data to the channel terminal.
In one embodiment, the receiving the request of the channel terminal to access the target interface, obtaining the request parameter of the request includes:
receiving requests of a plurality of channel terminals for accessing to a target interface;
determining the current corresponding parallel processing amount according to the state information in the request;
judging whether the parallel processing amount exceeds a maximum processing threshold value;
and if the parallel processing amount does not exceed the maximum processing threshold, processing the request to acquire request parameters corresponding to each channel terminal.
In one embodiment, after receiving the requests of accessing the target interfaces from the plurality of channel terminals, the method further includes:
labeling priorities of a plurality of requests based on a pre-configured priority policy;
and determining the execution sequence of the requests according to the priority.
In one embodiment, the field for configuring the request parameter generates a request packet of the channel terminal, including:
decrypting the field of the request parameter to obtain a decrypted field;
and mapping the fields of the request parameters and the decryption fields to generate a request message of the channel terminal.
In one embodiment, the configuring the target field in the response message to obtain the output parameter of the channel terminal includes:
determining the target field corresponding to the channel terminal according to all the fields in the response message;
encrypting and/or masking the target field to obtain an encrypted and/or masked field;
and mapping the target field and the encryption and/or mask field of the channel terminal to obtain the output parameters of the channel terminal.
In one embodiment, the method further comprises:
judging whether a preset configuration template set contains a configuration template matched with the request or not;
if the configuration template set does not contain the configuration template matched with the request, generating a corresponding configuration template according to the request parameter and the response parameter;
and adding the generated configuration template into the configuration template set.
In one embodiment, after determining whether the preset configuration template set includes the configuration template matched with the request, the method further includes:
if the configuration template set contains a configuration template matched with the request, acquiring a request identifier corresponding to the request;
searching the configuration template set according to the request identification, and determining a configuration template matched with the request.
In a second aspect, an embodiment of the present invention provides a data processing apparatus, including:
the receiving module is used for receiving a request of the channel terminal for accessing the target interface and acquiring request parameters of the request;
the first configuration module is used for configuring the fields of the request parameters and generating a request message of the channel terminal;
the acquisition module is used for acquiring a corresponding response message according to the request message;
the second configuration module is used for configuring a target field in the response message to obtain output parameters of the channel terminal;
and the response module is used for acquiring corresponding response data according to the output parameters and returning the response data to the channel terminal.
In a third aspect, an embodiment of the present invention provides a computer apparatus, including: a processor and a memory, said memory storing a computer program, said processor executing said computer program to cause said computer device to perform said one data processing method.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having a computer program stored thereon, which when executed by a processor performs the data processing method.
Compared with the prior art, the invention provides a data processing method, a data processing device, computer equipment and a readable storage medium, wherein the method obtains request parameters of a request by receiving the request of a channel terminal for accessing a target interface; configuring a field of the request parameter to generate a request message of the channel terminal; obtaining a corresponding response message according to the request message; configuring a target field in the response message to obtain response parameters of the channel terminal; and according to the response parameters, obtaining corresponding response data and returning the response data to the channel terminal. By configuring the request parameters and the response parameters of the channel terminal, the technical problem that the safety and the compliance of data output are difficult to ensure in the prior art is solved, the minimum output of the channel terminal is met, and the safety and the compliance of data output are ensured in the interface multiplexing process.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope of the present invention. Like elements are numbered alike in the various figures.
FIG. 1 is a schematic flow chart of a data processing method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of acquiring request parameters according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a configuration response message provided by an embodiment of the present invention;
fig. 4 is a block diagram showing a data processing apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present invention, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the invention.
Example 1
Referring to fig. 1, a data processing method provided in an embodiment of the present invention includes:
s110: and receiving a request of the channel terminal for accessing the target interface, and acquiring request parameters of the request.
The channel terminal can be a client, and the target interface can be a financial service interface or an insurance service interface. It should be understood that the target interface can provide a configuration capability, where the configuration capability refers to being able to support a configuration interface address, a request mode, a request parameter, and the like. By configuring the service interfaces, when each channel terminal requests the access interface, the interfaces do not need to be configured one by one, so that the request efficiency is effectively improved.
S120: and configuring a field of the request parameter to generate a request message of the channel terminal.
It should be understood that the request parameters are the data that the channel terminal brings to the server when sending the request, and the request message is composed of a request line, a request header and a request body; and configuring each request parameter to obtain a totally new corresponding request message, thereby improving the reusability of the interface.
S130: and obtaining a corresponding response message according to the request message.
It is to be understood that the response message is composed of a response row, a response head and a response body; when a request message is received, responding actions are carried out aiming at the request message, so that a corresponding response message is generated; compared with the request message, the response message has one more response status code, and the response status code is used for informing the channel terminal of the processing result of the request, wherein the processing result can comprise processing, processing completion, processing failure and the like. The corresponding response message is obtained through the request message, so that convenience is provided for subsequent configuration.
S140: and configuring a target field in the response message to obtain response parameters of the channel terminal.
Before the response parameters are returned to the channel terminals, the target fields in the response message are configured, specifically, when each channel terminal requests the target interface, the fields needed to be used may not be the same, and by configuring the target fields corresponding to each channel terminal, the output of each channel terminal can be minimized, wherein minimizing the output means only keeping, collecting and using the minimum actions, which is mainly in view of safety.
S150: and according to the response parameters, obtaining corresponding response data and returning the response data to the channel terminal.
In the data processing method, a request of accessing a channel terminal to a target interface is received, and request parameters of the request are obtained; configuring a field of the request parameter to generate a request message of the channel terminal; obtaining a corresponding response message according to the request message; configuring a target field in the response message to obtain response parameters of the channel terminal; and according to the response parameters, obtaining corresponding response data and returning the response data to the channel terminal. By configuring the request parameters and the response parameters of the channel terminal, the technical problem that the safety and the compliance of data output are difficult to ensure in the prior art is solved, the minimum output of the channel terminal is met, and the safety and the compliance of data output are ensured in the interface multiplexing process.
In one embodiment, referring to fig. 2, the step of receiving a request from a channel terminal to access a target interface and obtaining a request parameter of the request specifically includes the following steps:
s111: receiving requests of a plurality of channel terminals for accessing to a target interface;
s112: determining the current corresponding parallel processing amount according to the state information in the request;
s113: judging whether the parallel processing amount exceeds a maximum processing threshold value;
s114: and if the parallel processing amount does not exceed the maximum processing threshold, processing the request to acquire request parameters corresponding to each channel terminal.
Specifically, corresponding parallel processing amounts are determined according to state information in the request. The request comprises state information, wherein the state information is information for recording various states related to the client. The state information may be matched according to a preset time interval, and it is to be understood that when the request time in the state information is within the preset time interval, the number of requests received in this time interval is taken as the corresponding parallel throughput.
Further, a maximum processing threshold value is preset, wherein the maximum processing threshold value represents the maximum number of requests which can be processed by the interface in a certain time interval; when the parallel processing amount exceeds the maximum processing threshold, the request amount in the preset time interval is indicated to exceed the maximum processing capacity of the server; when the parallel processing amount does not exceed the maximum processing threshold, all requests in the parallel processing amount are processed, so that request parameters corresponding to all the requests are obtained; by processing the requests in parallel, processing time can be saved.
In one embodiment, after receiving the requests of accessing the target interfaces from the plurality of channel terminals, the method further includes:
labeling priorities of a plurality of requests based on a pre-configured priority policy;
and determining the execution sequence of the requests according to the priority.
Specifically, if the priorities of the plurality of requests are different, the request with the higher priority is preferentially responded; and if the priorities are the same, responding according to the weight proportion of the request. Further, if the priority needs to be adjusted, the data of the priority policy is directly modified, and the code is not required to be modified or the service is not required to be restarted, so that the application scene is enlarged.
In one embodiment, the step of configuring the field of the request parameter to generate the request message of the channel terminal includes:
decrypting the field of the request parameter to obtain a decrypted field;
and mapping the fields of the request parameters and the decryption fields to generate a request message of the channel terminal.
Illustratively, field A of the request parameters is decrypted and then mapped to B, and field A of the request parameters is mapped to C, each request parameter corresponding to a channel terminal. The field of the request parameter is mapped to generate the request message of the channel terminal, so that the safety of the request process is improved to a certain extent.
In one embodiment, referring to fig. 3, the step of configuring a target field in the response message to obtain the output parameter of the channel terminal specifically includes:
s141: determining the target field corresponding to the channel terminal according to all the fields in the response message;
s142: encrypting and/or masking the target field to obtain an encrypted and/or masked field;
s143: and mapping the target field and the encryption and/or mask field of the channel terminal to obtain the output parameters of the channel terminal.
In the request process, only 10 fields in the response message are needed, and the 10 fields are used as target fields corresponding to the channel terminals.
Further, the target field is mapped to the true apodization a, the target field is encrypted and then mapped to the true apodization b, and the target field mask is then mapped to the true apodization c. It should be understood that the target field may be supported to perform operations such as encryption and masking by using multiple encryption modes, so as to filter and obtain the output parameters corresponding to the target field.
Specifically, the interface can support a plurality of channel terminals to request access at the same time, and the output response data are inconsistent when different channel terminals are accessed to the same interface through the field mapping of the request parameters and the response parameters of each channel terminal, so that the minimum output of each channel terminal is satisfied; repeated development of different channel terminals when interfaces are requested is avoided, so that the request process of the different channel terminals can realize centralized management and maintenance, and development efficiency is improved.
In one embodiment, the data processing method further comprises:
judging whether a preset configuration template set contains a configuration template matched with the request or not;
if the configuration template set does not contain the configuration template matched with the request, generating a corresponding configuration template according to the request parameter and the response parameter;
and adding the generated configuration template into the configuration template set.
It should be understood that the configuration template refers to a template for acquiring a configuration mode of response data; the configuration templates can be pre-configured configuration files or database tables, and the configuration template set is a set formed by summarizing the configuration templates. Specifically, after the requirements of the request parameters and the response parameters are changed, the corresponding configuration templates can be directly modified, and the updated configuration templates replace the original configuration templates.
The channel terminal generates a configuration file according to the corresponding request parameters and response parameters after sending an access request, judges whether the configuration file is in a preset configuration template set, if not, stores the configuration file and adds the configuration file into the configuration template set, so that when the channel terminal has an access requirement again, the corresponding configuration file does not need to be repeatedly generated, and only the corresponding configuration file needs to be found out from the configuration template set for use, thereby effectively improving the efficiency of responding to the access request of the channel terminal.
In one embodiment, after determining whether the preset configuration template set includes a configuration template matching the request, the method further includes:
if the configuration template set contains a configuration template matched with the request, acquiring a request identifier corresponding to the request;
searching the configuration template set according to the request identification, and determining a configuration template matched with the request.
It is to be understood that when each channel terminal accesses a request, a unique identifier is added to the request as a request identifier, wherein the request identifier and the configuration template are in one-to-one correspondence. And matching the request identifier with the configuration templates in the configuration template set so as to determine the configuration template corresponding to the request identifier.
Specifically, whether the configuration template set is updated or not can be detected at preset time intervals; if yes, acquiring an updated configuration template set, and taking the updated configuration template set as a configuration template set; specifically, if the number of configuration templates in the two configuration template sets is consistent, it may be determined that no update occurs in the configuration template set; if the number of the configuration templates in the two configuration template sets is inconsistent, it can be determined that the configuration template set is updated, and the updated configuration template set can be used as the current configuration template set.
The configuration templates are centrally managed in the configuration template set, so that the request of calling the interface can be responded quickly and conveniently, the whole program is light, and development time is saved in the continuous upgrading and iterative requirement development.
Example 2
With reference to fig. 4, fig. 4 is a block diagram of a data processing apparatus according to an embodiment of the present invention. The data processing apparatus 100 includes: the system comprises a receiving module 110, a first configuration module 120, an acquisition module 130, a second configuration module 140 and a response module 150.
The receiving module 110 is configured to receive a request from a channel terminal to access a target interface, and obtain a request parameter of the request;
the first configuration module 120 is configured to configure the fields of the request parameters, and generate a request message of the channel terminal;
an obtaining module 130, configured to obtain a corresponding response message according to the request message;
the second configuration module 140 is configured to configure a target field in the response message to obtain an output parameter of the channel terminal;
and the response module 150 is configured to obtain corresponding response data according to the output parameter, and return the response data to the channel terminal.
In one embodiment, the receiving module 110 includes:
a receiving sub-module, configured to receive requests of a plurality of channel terminals for accessing to a target interface;
a determining submodule, configured to determine a current corresponding parallel throughput according to state information in the request;
the judging submodule is used for judging whether the parallel processing quantity exceeds a maximum processing threshold value or not;
and the processing sub-module is used for processing the request to acquire the request parameters corresponding to each channel terminal if the parallel processing amount does not exceed the maximum processing threshold.
Optionally, the receiving module 110 further includes:
the labeling sub-module is used for labeling the priorities of a plurality of requests based on a pre-configured priority strategy;
and the sequencing sub-module is used for determining the execution sequence of the requests according to the priority.
Optionally, the first configuration module 120 includes:
the decryption sub-module is used for decrypting the field of the request parameter to obtain a decrypted field;
and the first generation sub-module is used for mapping the fields of the request parameters and the decryption fields to generate a request message of the channel terminal.
Optionally, the second configuration module 140 includes:
a selecting sub-module, configured to determine, according to all the fields in the response message, the target field corresponding to the channel terminal;
the encryption submodule is used for encrypting and/or masking the target field to obtain an encrypted and/or masked field;
and the second generation submodule is used for mapping the target field and the encryption and/or mask field of the channel terminal to obtain the output parameters of the channel terminal.
Optionally, the data processing apparatus 100 includes:
the judging module is used for judging whether a preset configuration template set contains a configuration template matched with the request or not;
the template generation module is used for generating a corresponding configuration template according to the request parameter and the response parameter if the configuration template matched with the request is not contained in the configuration template set;
and the collection module adds the generated configuration template into the configuration template collection.
Further, the data processing apparatus 100 further includes:
the identifier generation module is used for acquiring a request identifier corresponding to the request if the configuration template set contains a configuration template matched with the request;
and the determining module searches the configuration template set according to the request identifier and determines a configuration template matched with the request.
The data processing apparatus provided in the embodiment of the present application can implement each process of the data processing method in the embodiment of the method of fig. 1, and in order to avoid repetition, a description is omitted here.
According to the data processing device provided by the embodiment of the application, a request of a channel terminal for accessing a target interface is received, and request parameters of the request are obtained; configuring a field of the request parameter to generate a request message of the channel terminal; obtaining a corresponding response message according to the request message; configuring a target field in the response message to obtain response parameters of the channel terminal; and according to the response parameters, obtaining corresponding response data and returning the response data to the channel terminal. By configuring the request parameters and the response parameters of the channel terminal, the safety and the compliance of data output are ensured in the interface multiplexing process, and the minimum output of the channel terminal is met.
The embodiment of the invention also provides a computer device, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program realizes the data processing method in the embodiment 1 when the computer program is executed by the processor.
In one embodiment, the computer device is a device capable of automatically performing numerical calculations and/or information processing in accordance with instructions set or stored in advance. Computer devices include at least, but are not limited to: the memory, processor, network interface may be communicatively linked to each other via a system bus. Wherein: the memory includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. It should be understood that not all of the illustrated components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the data processing method stored in the memory may be divided into one or more program modules and executed by one or more processors to accomplish the present invention.
The embodiment of the present invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the data processing method described in embodiment 1.
In one embodiment, the computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device.
In other embodiments, the computer readable storage medium may also be an external storage device to the computer device. Of course, the computer-readable storage medium may also include both internal storage units of a computer device and external storage devices. It should be appreciated that computer-readable storage media are typically used to store an operating system and various types of application software installed on a computer device. Furthermore, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output. Any particular values in all examples shown and described herein are to be construed as merely illustrative and not a limitation, and thus other examples of exemplary embodiments may have different values.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in 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.
In addition, functional modules or units in various embodiments of the invention may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention.

Claims (9)

1. A method of data processing, comprising:
receiving a request of a channel terminal for accessing a target interface, and acquiring request parameters of the request;
configuring a field of the request parameter to generate a request message of the channel terminal;
obtaining a corresponding response message according to the request message;
determining a target field corresponding to the channel terminal according to all the fields in the response message;
encrypting and/or masking the target field to obtain an encrypted and/or masked field;
mapping the target field and the encryption and/or mask field of the channel terminal to obtain response parameters of the channel terminal;
before the response parameters are returned to the channel terminals, configuring target fields in the response message according to each channel terminal;
the target interface supports a plurality of channel terminals to request access at the same time, and the output response data are inconsistent when different channel terminals are accessed to the same interface through the field mapping of the request parameters and the response parameters of each channel terminal;
and according to the response parameters, obtaining corresponding response data and returning the response data to the channel terminal.
2. The data processing method according to claim 1, wherein the receiving the request of the channel terminal to access the target interface, obtaining the request parameter of the request, includes:
receiving requests of a plurality of channel terminals for accessing to a target interface;
determining the current corresponding parallel processing amount according to the state information in the request;
judging whether the parallel processing amount exceeds a maximum processing threshold value;
and if the parallel processing amount does not exceed the maximum processing threshold, processing the request to acquire request parameters corresponding to each channel terminal.
3. The method for processing data according to claim 2, further comprising, after said receiving a request for access to a target interface from a plurality of said channel terminals:
labeling priorities of a plurality of requests based on a pre-configured priority policy;
and determining the execution sequence of the requests according to the priority.
4. The method for processing data according to claim 1, wherein the configuring the field of the request parameter generates the request message of the channel terminal, including:
decrypting the field of the request parameter to obtain a decrypted field;
and mapping the fields of the request parameters and the decryption fields to generate a request message of the channel terminal.
5. The data processing method of claim 1, wherein the method further comprises:
judging whether a preset configuration template set contains a configuration template matched with the request or not;
if the configuration template set does not contain the configuration template matched with the request, generating a corresponding configuration template according to the request parameter and the response parameter;
and adding the generated configuration template into the configuration template set.
6. The method according to claim 5, wherein after determining whether the preset configuration template set includes a configuration template matching the request, further comprising:
if the configuration template set contains a configuration template matched with the request, acquiring a request identifier corresponding to the request;
searching the configuration template set according to the request identification, and determining a configuration template matched with the request.
7. A data processing apparatus, comprising:
the receiving module is used for receiving a request of the channel terminal for accessing the target interface and acquiring request parameters of the request;
the first configuration module is used for configuring the fields of the request parameters and generating a request message of the channel terminal;
the acquisition module is used for acquiring a corresponding response message according to the request message;
the second configuration module is used for determining a target field corresponding to the channel terminal according to all the fields in the response message;
encrypting and/or masking the target field to obtain an encrypted and/or masked field;
mapping the target field and the encryption and/or mask field of the channel terminal to obtain response parameters of the channel terminal;
before the response parameters are returned to the channel terminals, configuring target fields in the response message according to each channel terminal;
the target interface supports a plurality of channel terminals to request access at the same time, and the output response data are inconsistent when different channel terminals are accessed to the same interface through the field mapping of the request parameters and the response parameters of each channel terminal;
and the response module is used for acquiring corresponding response data according to the response parameters and returning the response data to the channel terminal.
8. A computer device comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the data processing method of any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, implements the data processing method according to any one of claims 1 to 6.
CN202210738703.9A 2022-06-24 2022-06-24 Data processing method, device, computer equipment and readable storage medium Active CN115242872B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210738703.9A CN115242872B (en) 2022-06-24 2022-06-24 Data processing method, device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210738703.9A CN115242872B (en) 2022-06-24 2022-06-24 Data processing method, device, computer equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115242872A CN115242872A (en) 2022-10-25
CN115242872B true CN115242872B (en) 2024-02-02

Family

ID=83671048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210738703.9A Active CN115242872B (en) 2022-06-24 2022-06-24 Data processing method, device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115242872B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115801914B (en) * 2022-11-29 2024-04-30 重庆长安汽车股份有限公司 Multi-protocol network data exchange method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109947994A (en) * 2018-08-10 2019-06-28 北京京东金融科技控股有限公司 Processing method, device, medium and the electronic equipment of payment process
CN110191160A (en) * 2019-05-10 2019-08-30 深圳前海微众银行股份有限公司 A kind of concurrency control method and device
CN110363542A (en) * 2019-07-15 2019-10-22 江苏满运软件科技有限公司 Construction method, device, storage medium and the electronic equipment of customer service system
CN113284586A (en) * 2021-05-24 2021-08-20 康键信息技术(深圳)有限公司 Medical service processing method, device, equipment and storage medium
CN113377369A (en) * 2021-05-17 2021-09-10 广州有信科技有限公司 Universal method and device for interfacing third-party service system and terminal equipment
CN113708957A (en) * 2021-08-03 2021-11-26 中移(杭州)信息技术有限公司 Configuration method, terminal device and medium for server BMC
CN113885959A (en) * 2021-09-30 2022-01-04 平安银行股份有限公司 Data processing method, device, equipment and medium based on interface configuration

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344183A (en) * 2018-01-30 2019-02-15 深圳壹账通智能科技有限公司 Data interactive method, device, computer equipment and storage medium
CN109947994A (en) * 2018-08-10 2019-06-28 北京京东金融科技控股有限公司 Processing method, device, medium and the electronic equipment of payment process
CN110191160A (en) * 2019-05-10 2019-08-30 深圳前海微众银行股份有限公司 A kind of concurrency control method and device
CN110363542A (en) * 2019-07-15 2019-10-22 江苏满运软件科技有限公司 Construction method, device, storage medium and the electronic equipment of customer service system
CN113377369A (en) * 2021-05-17 2021-09-10 广州有信科技有限公司 Universal method and device for interfacing third-party service system and terminal equipment
CN113284586A (en) * 2021-05-24 2021-08-20 康键信息技术(深圳)有限公司 Medical service processing method, device, equipment and storage medium
CN113708957A (en) * 2021-08-03 2021-11-26 中移(杭州)信息技术有限公司 Configuration method, terminal device and medium for server BMC
CN113885959A (en) * 2021-09-30 2022-01-04 平安银行股份有限公司 Data processing method, device, equipment and medium based on interface configuration

Also Published As

Publication number Publication date
CN115242872A (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN111869178B (en) Near real-time IP user mapping method and system
CN111915019A (en) Federal learning method, system, computer device, and storage medium
CN110222535B (en) Processing device, method and storage medium for block chain configuration file
CN108924258B (en) Background information pushing method and device, computer equipment and storage medium
CN111815454B (en) Data uplink method and device, electronic equipment and storage medium
CN110908812B (en) Service data processing method, device, readable storage medium and computer equipment
CN111988419A (en) File uploading method, file downloading method, file uploading device, file downloading device, computer equipment and storage medium
CN111177776A (en) Multi-tenant data isolation method and system
CN111371772A (en) Intelligent gateway current limiting method and system based on redis and computer equipment
CN115242872B (en) Data processing method, device, computer equipment and readable storage medium
CN112486915B (en) Data storage method and device
CN111865691A (en) Alarm file distribution method, device, equipment and medium based on artificial intelligence
CN113434293A (en) Method and apparatus for processing repeat request, storage medium, and electronic apparatus
US11474809B2 (en) Upgrades based on analytics from multiple sources
CN111489156A (en) Transaction method based on block chain, electronic device and readable storage medium
CN112685077A (en) Data modification method, system, computer device and computer readable storage medium
CN107422991B (en) Storage strategy management system
CN110059081A (en) Data output method, device and the computer equipment shown based on data
CN114513469A (en) Traffic shaping method and device for distributed system and storage medium
CN111131198B (en) Updating method and device for network security policy configuration
CN113420241A (en) Page access method and device, electronic equipment and storage medium
CN111324654A (en) Interface calling method, system, computer device and computer readable storage medium
CN111708795B (en) Object identification generation method, object identification updating device, computer equipment and medium
CN113852919B (en) Method and device for generating early warning message, storage medium and electronic device
CN111162988B (en) Message distribution method and system

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