CN112231727A - Data processing method and device, electronic equipment, server and storage medium - Google Patents

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

Info

Publication number
CN112231727A
CN112231727A CN202011119520.6A CN202011119520A CN112231727A CN 112231727 A CN112231727 A CN 112231727A CN 202011119520 A CN202011119520 A CN 202011119520A CN 112231727 A CN112231727 A CN 112231727A
Authority
CN
China
Prior art keywords
data
data processing
template
processed
command
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011119520.6A
Other languages
Chinese (zh)
Inventor
刘纯彰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011119520.6A priority Critical patent/CN112231727A/en
Publication of CN112231727A publication Critical patent/CN112231727A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/606Protecting data by securing the transmission between two devices or processes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24561Intermediate data storage techniques for performance improvement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/254Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Abstract

The disclosure relates to a data processing method, a data processing device, an electronic device, a server and a storage medium. The method comprises the following steps: receiving a data request, wherein the data request comprises a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command; acquiring data to be processed corresponding to the data storage address and acquiring a data processing template corresponding to the template identifier; and executing the data processing command contained in the corresponding data processing template to process the data to be processed. Therefore, the information amount carried in the data request can be reduced, and meanwhile, specific command information of data processing is not directly carried in the data request, so that information exposure is avoided.

Description

Data processing method and device, electronic equipment, server and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data processing method and apparatus, an electronic device, a server, and a storage medium.
Background
In various object storage scenarios provided by various manufacturers at present, when a user downloads or accesses data, a data request may be sent to a server, where the data request includes a data storage address url (Uniform Resource Locator), a data processing command, and related command parameters, and a manner of concatenating the data processing command and the command parameters by url is usually adopted, for example, a string of characters is carried in the data request: url process is data processing command 1, command parameter 1/data processing command 2, command parameter 2. After receiving the data request, the server acquires url and data processing commands 1 and 2, acquires the original data according to the url and executes the data processing commands 1 and 2 to realize data processing on the original data, and returns the processed data to the user.
However, the above method is prone to cause the problem of leakage of operation commands during the transmission of data requests.
Disclosure of Invention
The present disclosure provides a data processing method, an apparatus, an electronic device, a server, and a storage medium, so as to at least solve the technical problem of leakage of an operation command in a data request transmission process in the related art. The technical scheme of the disclosure is as follows:
in a first aspect, a data processing method is provided, including:
receiving a data request; the data request comprises a data storage address of the data to be processed and a template identifier of the data processing template; the data processing template comprises at least one data processing command;
acquiring data to be processed corresponding to the data storage address and acquiring a data processing template corresponding to the template identifier;
and executing the data processing command contained in the corresponding data processing template to process the data to be processed.
In one possible implementation, the data processing template further includes first type parameter information;
the executing the data processing command contained in the corresponding data processing template to process the data to be processed includes:
acquiring a data processing command contained in the corresponding data processing template;
acquiring first type parameter information corresponding to the data processing command from the data processing template;
and executing a corresponding data processing command according to the first type parameter information, and processing the data to be processed.
In a possible implementation manner, the data request further includes second type parameter information, where the second type parameter information is parameter information corresponding to a user account of a client that sends the data request;
the processing the data to be processed by using the data processing command included in the corresponding data processing template includes:
acquiring a data processing command contained in the corresponding data processing template;
acquiring second type parameter information corresponding to the data processing command from the data request;
and executing a corresponding data processing command according to the second type parameter information, and correspondingly processing the data to be processed.
In one possible implementation manner, the second type of parameter information includes account identification information of the user account; the executing a corresponding data processing command according to the second type parameter information, and performing corresponding processing on the data to be processed, including at least one of the following:
executing a corresponding data processing command according to the account identification information, and adding the account identification information in the data to be processed;
and executing a data processing command corresponding to the account preference information according to the account preference information corresponding to the account identification information, and performing corresponding processing on the data to be processed based on the account preference information.
In a possible implementation manner, between obtaining the data to be processed and the corresponding data processing template and executing the data processing command included in the corresponding data processing template, the method further includes:
inquiring a preset cache space; the cache space is used for caching the historical data processing results corresponding to the data processing templates;
if the cache space contains target cache data, returning the target cache data to a client side sending the data request; and the target cache data is a data processing result obtained by executing the corresponding data processing template to process the data to be processed.
In one possible implementation, the method further includes:
and if the cache space does not contain the target cache data, executing a data processing command contained in the corresponding data processing template, and processing the data to be processed.
In one possible implementation, the data processing commands in the data processing template include at least one of the following:
a first type data processing command configured by a client;
a second type data processing command preset by the server;
the method further comprises the following steps:
acquiring the first type data processing command and/or the second type data processing command;
and generating the data processing template based on the first type of data processing command and/or the second type of data processing command.
In a second aspect, a data processing method is provided, the method comprising:
acquiring a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command;
generating a data request; the data request comprises the data storage address and the template identification;
sending the data request; and the data request is used for indicating to acquire the data to be processed corresponding to the data storage address and the data processing template corresponding to the template identification, executing a data processing command contained in the corresponding data processing template and processing the data to be processed.
In one possible implementation, the data processing commands in the data processing template include at least one of the following:
a first type data processing command configured by a client;
a second type data processing command preset by the server;
the method further comprises the following steps:
acquiring the first type data processing command;
and sending the first type of data processing command to a server, wherein the server is used for generating the data processing template based on the first type of data processing command and/or the second type of data processing command.
In a third aspect, a data processing apparatus is provided, the apparatus comprising:
the request information acquisition module is configured to execute receiving of a data request, wherein the data request comprises a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command;
the data and template acquisition module is configured to execute acquisition of to-be-processed data corresponding to the data storage address and acquisition of a data processing template corresponding to the template identifier;
and the data processing module is configured to execute the data processing command contained in the corresponding data processing template and process the data to be processed.
In a possible implementation manner, the data processing template further includes first type parameter information; the data processing module is configured to perform:
acquiring a data processing command contained in the corresponding data processing template;
acquiring first type parameter information corresponding to the data processing command from the data processing template;
and executing a corresponding data processing command according to the first type parameter information, and processing the data to be processed.
In a possible implementation manner, the data request further includes second type parameter information, where the second type parameter information is parameter information corresponding to a user account of a client that sends the data request;
the data processing module is further configured to perform:
acquiring a data processing command contained in the corresponding data processing template;
acquiring second type parameter information corresponding to the data processing command from the data request;
and executing a corresponding data processing command according to the second type parameter information, and correspondingly processing the data to be processed.
In one possible implementation manner, the second type of parameter information includes account identification information of the user account;
the data processing module further configured to perform at least one of:
executing a corresponding data processing command according to the account identification information, and adding the account identification information in the data to be processed;
and executing a data processing command corresponding to the account preference information according to the account preference information corresponding to the account identification information, and performing corresponding processing on the data to be processed based on the account preference information.
In one possible implementation, the method further includes:
the cache query module is configured to execute query of a preset cache space; the cache space is used for caching the historical data processing results corresponding to the data processing templates;
the data processing module is further configured to execute, if the cache space contains target cache data, acquiring the target cache data as a processing result corresponding to the data request, and returning the processing result to the client of the data request;
and the target cache data is a historical data processing result obtained by processing the data to be processed by adopting the corresponding data processing template.
In one possible implementation, the data processing module is further configured to perform: and if the cache space does not contain the target cache data, executing a data processing command contained in the corresponding data processing template, and processing the data to be processed.
In one possible implementation, the data processing commands in the data processing template include at least one of the following:
a first type data processing command configured by a client;
a second type data processing command preset by the server;
the device further comprises:
the command acquisition module is configured to execute acquisition of the first type of data processing command and/or the second type of data processing command;
a template generation module configured to execute the data processing template generated based on the first type of data processing command and/or the second type of data processing command.
In a fourth aspect, there is provided a data processing apparatus, the apparatus comprising:
the information acquisition module is configured to execute the acquisition of a data storage address of the data to be processed and a template identifier of the data processing template; the data processing template comprises at least one data processing command;
a request generation module configured to perform a generate data request; the data request comprises the data storage address and the template identification;
a request sending module configured to perform sending the data request; and the data request is used for indicating to acquire the data to be processed corresponding to the data storage address and the data processing template corresponding to the template identification, executing a data processing command contained in the corresponding data processing template and processing the data to be processed.
In one possible implementation, the data processing commands in the data processing template include at least one of the following:
a first type data processing command configured by a client;
a second type data processing command preset by the server;
the device further comprises:
the command configuration module is configured to execute the first type data processing command;
the command sending module is configured to execute sending of the first type of data processing command to a server, and the server is used for generating the data processing template based on the first type of data processing command and/or the second type of data processing command.
In a fifth aspect, an electronic device is provided, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method as described in any of the embodiments of the first aspect.
In a sixth aspect, a server is provided, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method according to any embodiment of the second aspect.
In a seventh aspect, a storage medium is provided, and instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method according to any one of the embodiments of the first aspect.
In an eighth aspect, a storage medium is provided, wherein instructions of the storage medium, when executed by a processor of a server, enable the server to perform the data processing method according to any one of the embodiments of the second aspect.
In a ninth aspect, there is provided a computer program product comprising a computer program stored on a readable storage medium, from which at least one processor of an apparatus reads and executes the computer program, to cause the apparatus to perform the data processing method described in any one of the embodiments of the first or second aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
based on the data processing template, when the client needs to consume data (including but not limited to access data and download data), the data request sent to the server only needs to carry a data storage address and a template identifier, after the server receives the request, the server obtains original data to be processed through the data storage address, obtains a corresponding data processing template through the template identifier, processes the data to be processed by adopting a data processing command contained in the data processing template, and returns the processed data to the client. Therefore, a more complex data processing command can be preset in the data processing template to perform more complex data processing on the data to be processed, the information amount carried in the data request can be reduced, the time overhead of generating, transmitting and analyzing the data request is reduced, and the real-time scene of the data is met; meanwhile, specific command information of data processing is not directly carried in the data request, and related information exposure can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a diagram illustrating an application environment for a method of data processing, according to an exemplary embodiment.
Fig. 2 is a diagram illustrating an application environment of a data processing method according to another exemplary embodiment.
FIG. 3 is a flow chart illustrating a method of data processing according to an exemplary embodiment.
Fig. 4 is a flow chart illustrating a method of data processing according to another exemplary embodiment.
Fig. 5 is a flowchart illustrating a data processing method according to yet another exemplary embodiment.
FIG. 6 is a block diagram illustrating a data processing apparatus according to an example embodiment.
Fig. 7 is a block diagram illustrating a data processing apparatus according to another exemplary embodiment.
Fig. 8 is an internal block diagram of an electronic device shown in accordance with an example embodiment.
Fig. 9 is an internal structure diagram of an electronic device according to another exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The data processing method provided by the present disclosure may be applied to the application environment shown in fig. 1. Wherein the electronic device 110 interacts with the server 120 over a network. The electronic device 110 has an application installed therein, which may be a community-type application, and after a user registers an account through the application and logs in, the user may upload content data or account data to a server, and simultaneously may access or download corresponding service data through the application, including but not limited to viewing avatar information uploaded before the current account is logged in through the application, or downloading content information data uploaded before the user or another account.
As a more specific example, as shown in fig. 2, the data processing method provided by the present disclosure may be applied to an application environment, and may further include a database and a template library, where the database is used to store raw data (including but not limited to picture, video, text, audio, and other types of data) of a user account uploaded by a client, and the template library is used to store one or more pre-configured data processing templates, where the data processing templates include several data processing commands, and the data processing templates may be used to quickly obtain the multiple data processing commands included in the data processing templates. The client sends the original data to the server, and the server stores the original data in the database and returns the url of the original data (in this disclosure, the url of the original data is the storage address of the original data in the database) to the client. Further, when the client or other clients need to access or download the original data, in response to a request instruction of a user, a url b is generated based on the url of the original data and the template identifier of the data processing template selected by the user, a data request including the url b is generated, and the data request including the url b is sent to the server. On one side of the server, a data storage address and a template identifier can be obtained based on the url b included in the data request, the database is accessed based on the data storage address to obtain the data to be processed, the template library is accessed based on the template identifier to obtain a corresponding data processing template, and then the data to be processed is processed by adopting a data processing command included in the corresponding data processing template.
As an example, with continued reference to fig. 2, on the server side, a data request of a client may be sent to a gateway system, the data request may be parsed by the gateway system, a data storage address and a template identifier included in the data request may be obtained, raw data (hereinafter also referred to as data to be processed) may be obtained from a database according to the data storage address, and the template identifier may be sent to a template parsing system; the template analysis system can acquire a corresponding data processing template from the template library according to the template identifier, analyze the data processing template to obtain a data processing command and send the data processing command to the gateway system; the gateway system is also used for sending the data processing command and the data to be processed to a command execution system; and the command execution system is used for executing the data processing command obtained by analyzing the data processing template aiming at the data to be processed to obtain processed data. One or more of the template analysis system, the gateway system, and the command execution system may be a hardware module or a software module provided in a server, or may be a hardware module or a software module provided in another device other than the server, and the another device communicates with the server through a network. When the command execution system is a hardware module or a software module set in other equipment, the command execution system also returns the processed data to the gateway system, and the server is also used for receiving the processed data transmitted by the gateway system.
The electronic device 110 may be, but is not limited to, various personal computers, notebook computers, smart phones, and tablet computers, and the server 120 may be, but is not limited to, implemented by an independent server or a server cluster composed of a plurality of servers.
Fig. 3 is a flow chart illustrating a data processing method that may be applied to a server according to an example embodiment. As shown in fig. 3, the method includes the following steps.
Step 301, receiving a data request, wherein the data request comprises a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command.
The data storage address of the data to be processed may be understood as a storage address of the data to be processed in the database, and the template identifier may be understood as information, such as a template ID, capable of uniquely determining the corresponding data processing template from the plurality of data processing templates. The data processing command in the data processing template may be a data processing command preset by the server, or a data processing command pre-configured for the user account of the client, where the type of the data processing command includes, but is not limited to, an add, a delete, a change, and the like.
In the present disclosure, the client may send the data request, and the server receives the data request and obtains a data storage address and a template identifier of the data to be processed from the data request. The user of the client can select data as the data to be processed, and can select one or more data processing templates from a plurality of data processing templates according to the data to be processed. Correspondingly, at the client, a data storage address corresponding to the data to be processed is obtained, template identifications of one or more data processing templates selected by the user are obtained, and corresponding data requests are generated and sent to the server. The server can obtain the data storage address of the currently requested data of the client and the template identification of the data processing template for processing the data based on the data request of the client.
Step 302, obtaining the data to be processed corresponding to the data storage address, and obtaining the data processing template corresponding to the template identifier.
As an exemplary embodiment, as described above, the raw data uploaded by the client is stored in the database, the data processing template is stored in the template library, and the database and the template library may be respectively disposed in a network node, such as a cloud network node, accessible by a request receiving end (e.g., a server) of the data request. The request receiving end (for example, a server) can obtain the data to be processed corresponding to the data storage address and obtain the data processing template corresponding to the template identifier by querying the database and the template library.
Step 303, executing the data processing command included in the corresponding data processing template, and processing the data to be processed.
As an exemplary embodiment, a request receiving end (e.g., a server) of a data request may obtain a corresponding data processing template from a template library through a template parsing system, and parse the data processing template to obtain a data processing command; and then the data processing command obtained by analyzing the data processing template can be executed through the command execution system, so that the processed data is obtained.
By the data processing method of the embodiment, based on the pre-configured data processing template, when the client needs to consume data (including but not limited to access data and download data), the data request sent to the server only needs to carry the data storage address and the template identifier, after the server receives the request, the server obtains the original data to be processed through the data storage address, obtains the corresponding data processing template through the template identifier, processes the data to be processed by adopting the data processing command contained in the data processing template, and returns the processed data to the client. Therefore, a more complex data processing command can be preset in the data processing template to perform more complex data processing on the data to be processed, the information amount carried in the data request can be reduced, the time overhead of generating, transmitting and analyzing the data request is reduced, and the real-time scene of the data is met; meanwhile, specific command information of data processing is not directly carried in the data request, and related information exposure can be avoided.
As an embodiment, the data processing template may further include first type parameter information in addition to the data processing command, where the first type parameter information may be parameter information configured in advance for the data processing command, and thus may also be understood as static parameter information. The corresponding static parameters may be different for different data processing commands.
Based on this, the specific data processing manner in step 303 may include:
acquiring a data processing command contained in the corresponding data processing template;
acquiring first type parameter information corresponding to the data processing command from the data processing template;
and executing a corresponding data processing command according to the first type parameter information, and processing the data to be processed.
It should be noted that the first type parameter information corresponding to the data processing command in the data processing template may be one or more, for example, if one data processing command is a clipping command, and the command includes two parameters, namely, a clipping mode and a clipping size, then two pieces of first type parameter information are obtained from the template (clipping mode: centered, clipping size: 90 × 90).
Through the embodiment, because the data processing command and the static parameter information corresponding to the data processing command are both contained in the data processing template, when the client consumes data (including but not limited to access data and download data), only the template identifier needs to be carried in the data request, and specific data processing command and static parameter information do not need to be carried, so that the data volume in the data request sent by the client is not long, and in addition, the leakage of specific command information or parameter information can be prevented.
As an embodiment, the data request may further include second-type parameter information in addition to the data storage address and the template identifier, where the second-type parameter information is parameter information corresponding to a user account of a client that sent the data request, and therefore the second-type parameter information may also be understood as dynamic parameter information. The corresponding dynamic parameter information may be different or the same for different user accounts.
Based on this, the specific data processing manner in step 303 may further include:
acquiring a data processing command contained in the corresponding data processing template;
acquiring second type parameter information corresponding to the data processing command from the data request;
and executing a corresponding data processing command according to the second type parameter information, and correspondingly processing the data to be processed.
As a specific example, the second type of parameter information may include account identification information of a user account of the client, such as at least one of an account name and an account ID; the executing the corresponding data processing command according to the second type parameter information to perform corresponding processing on the data to be processed may specifically include:
and executing a corresponding data processing command according to the account identification information, and adding the account identification information in the data to be processed. For example, a data processing command for inserting a watermark is executed according to the account identification information, and a watermark is added to the data to be processed, wherein the watermark includes at least one of an account name and an account ID.
Or executing a data processing command corresponding to the account preference information according to the account preference information corresponding to the account identification information, and processing the to-be-processed data processing based on the account preference information. For example, the data to be processed is user avatar data, account identification information is obtained from the data request, account preference information corresponding to the account identification, such as image style preference information of an art style, a nostalgic style, a commander style and the like, or special effect preference information of a beauty chart, a magic table and the like, is inquired and obtained from a corresponding business system according to the account identification information, and correspondingly, the user avatar data to be processed is processed into a style corresponding to the image style preference information of the account, or a special effect corresponding to the special effect preference information of the account is added to the user avatar data to be processed. The business system can determine account preference information corresponding to the user account based on previous image operation information and/or image browsing information of the user account.
It should be noted that the second type parameter information corresponding to the data processing command in the data processing template may be one or more, for example, if one data processing command is an insert command, and the command includes two parameters, i.e., an insert content and an insert position corresponding to the insert content, then two pieces of second type parameter information (e.g., account ID, lower right corner) are obtained from the data request.
Through the embodiment, when the client consumes data (including but not limited to access data and download data), the dynamic parameter information (i.e. the second type of parameter information) for executing the data processing command can be set individually, and the data request sent to the server includes the data storage address, the template identifier and the dynamic parameter information, and the server can acquire the dynamic parameter information to execute the corresponding data processing command, thereby obtaining different data processing effects for different users; the sent data request does not need to carry a specific data processing command, the complexity of generating and analyzing the data request is reduced, the data volume in the data request sent by the client is not longer, and in addition, the leakage of specific command information can be prevented.
In addition, the data processing command may also correspond to the first type parameter information and the second type parameter information at the same time, for example, a data processing command is a clipping command, where the command includes two parameters, a clipping manner and a clipping size, where the clipping manner may be configured to correspond to the first type parameter information, the clipping size may be configured to correspond to the second type parameter information, the first type parameter information corresponding to the clipping manner may be obtained from the data processing template (e.g., centered clipping), and the second type parameter information corresponding to the clipping size may be obtained from the data request (e.g., the display screen size corresponding to the requesting client). Different data processing commands can be configured according to different scenes to support complex data requirements under multiple scenes.
As an exemplary scenario, when receiving requests of different clients for user avatar data of user accounts, the server needs to scale the user avatars of all the user accounts by 3 times equally and cut the user avatars into 90 × 90 pictures in the middle, output the pictures in a jpeg format, and print watermarks including respective user account IDs for the different user accounts.
In the scene, the data processing template includes data processing commands for scaling, center clipping, watermarking and format conversion of the user avatar, wherein the scaled data processing command corresponds to a scaling mode parameter C1, the center clipped data processing command corresponds to a clipping mode parameter C2 and a clipping size parameter C3, the format converted data processing command corresponds to an output format parameter C4, and the watermarked data processing command corresponds to a user account ID parameter S1. The data processing template also comprises static parameter information: the scaling mode parameter C1 is equal scaling 3 times, the cropping mode parameter C2 is centered cropping, the cropping size parameter C3 is 90, and the output format parameter C4 is jpeg. The data request sent by the client also comprises dynamic parameter information: specific information of the user account ID parameter S1, for example, S1 ═ XX 0011.
After receiving the data request from the client, the server parses the data request to obtain a data storage address, a template identifier, and dynamic parameter information, obtains data to be processed corresponding to the user account (i.e., user avatar data in this example) according to the data storage address, and obtains a corresponding data processing template from a template library according to the template identifier, where the data processing template includes data processing commands for scaling, centering and cutting, adding a watermark, and performing format conversion on the user avatar.
Further, the server obtains the data processing commands of scaling, center clipping, watermarking and format conversion from the data processing template, and obtains corresponding static parameter information from the data processing template, where the static parameter information obtained from the data processing template in this example is: the scaling mode parameter C1 is scaled by 3 times, the clipping mode parameter C2 is centered, the clipping size parameter C3 is 90 × 90, and the output format parameter C4 is jpeg, and corresponding dynamic parameter information, i.e., the user account ID parameter S1 is XX0011 in this example, may also be obtained from the data request.
And then, according to the static parameter information and the dynamic parameter information, executing the data processing command acquired from the data processing template, and performing data processing on the user head portrait corresponding to the user account.
And finally, the server returns the processed data to the client, namely the user head portrait obtained after scaling, cutting, adding the watermark and format conversion is returned to the client.
Because the data processing command and the static parameter information corresponding to the data processing command are both contained in the data processing template, when the client consumes data (including but not limited to access data and download data), the dynamic parameter information can be set individually, and the data request sent to the server contains the data storage address, the template identifier and the dynamic parameter information set by the user, and does not need to contain specific data processing command and static parameter information, thereby not causing the data volume in the data request sent by the client to be longer, and reducing the time overhead of data request generation, transmission and analysis; in addition, the leakage of specific commands and static parameter information can be prevented.
As an embodiment, after obtaining the data to be processed and the template identifier in step 302, the method may further include the steps of:
inquiring a preset cache space; the cache space is used for caching the historical data processing results corresponding to the data processing templates; if the cache space contains target cache data, acquiring the target cache data as a processing result corresponding to the data request, and returning the processing result to the client; and the target cache data is a data processing result obtained by processing the data to be processed by adopting the corresponding data processing template.
In addition, the method can further comprise the following steps: and if the cache space does not contain the target cache data, executing a data processing command contained in the corresponding data processing template, processing the data to be processed, and returning the processed data to the client.
In addition, after the step of processing the data to be processed by using the data processing command included in the corresponding data processing template is executed, the data processing result obtained by the execution may be added to the cache space, and the association relationship between the data processing result and the corresponding data processing template and the data storage address may be established. In preparation for subsequent receipt of the client to consume the same data.
Through the embodiment, based on a cache mechanism, the server side does not need to repeatedly execute the same processing process of the same data, and the processing magnitude of the server side can be greatly reduced.
In addition, the data processing commands in the data processing template of the present disclosure include at least one of the following: a first type data processing command configured by a client; a second type data processing command preset by the server; as an embodiment, the method further comprises:
acquiring a first type data processing command configured by the client and/or acquiring a second type data processing command preset by the server; and generating the data processing template based on the first type of data processing command and/or the second type of data processing command, and storing the data processing template to a preset template library.
In the present disclosure, the first type of data processing command may be a data processing command configured through a template configuration page preset by the client; the second type of data processing command may be a data processing command preset in the server at the server building stage for generating a data processing template, or a data processing command migrated to the server through upgrade data for generating or updating the data processing template when the server is upgraded. The types of the first type data processing command and the second type data processing command are not limited, and may include one or more types of data processing commands of adding (or inserting), modifying, and deleting.
The client generates the data processing template based on the first type of data processing command and/or the second type of data processing command, and stores the data processing template in a preset template library, which may specifically include:
1) a client acquires a template configuration instruction; the template configuration instruction can be generated by a template configuration option preset by a user trigger client;
2) inquiring whether a first type of data processing command configured by the client is acquired and inquiring whether a command identifier of a second type of data processing command configured by the client is acquired;
the client user can configure the first type of data processing command based on the template configuration page of the client, and can select the command identifier of the second type of data processing command based on the template configuration page.
3) As a situation, if a first-class data processing command configured by a client is queried and a command identifier of a second-class data processing command configured by the client is also queried, the client acquires the first-class data processing command and requests a server to acquire the second-class data processing command corresponding to the command identifier;
further, the client generates a data processing template according to the acquired first-class data processing command and the acquired second-class data processing command, generates a corresponding template identifier for the data processing template, is used for uniquely identifying the data processing template, and stores the data processing template and the corresponding template identifier thereof into a preset template library.
4) As another situation, if the locally configured first-type data processing command is queried and the command identifier of the locally configured second-type data processing command is not queried, that is, the client locally configures only the first-type data processing command and does not select the command identifier of the second-type data processing command, the client obtains the locally configured first-type data processing command without requesting the server to obtain the corresponding second-type data processing command;
further, the client generates a data processing template based on the first type of data processing command, generates a corresponding template identifier for the data processing template, is used for uniquely identifying the data processing template, and stores the data processing template and the corresponding template identifier into a preset template library.
5) As another situation, if the locally configured first-class data processing command is not queried, querying a command identifier of the locally configured second-class data processing command, that is, a command representation that the client user only configures the second-class data processing command based on the template configuration page is not configured with the first-class data processing command, the client requests the server to acquire the second-class data processing command corresponding to the command identifier;
further, the client generates a data processing template according to the acquired second-class data processing command, generates a corresponding template identifier for the data processing template, is used for uniquely identifying the data processing template, and stores the data processing template and the corresponding template identifier into a preset template library.
Based on the data processing command, the client can flexibly configure the data processing command to meet different requirements of different users, meanwhile, the server can uniformly configure the data processing command, and the client does not need to send the data processing command to the server, so that the configuration efficiency is improved.
Fig. 4 is a flowchart illustrating a data processing method, as shown in fig. 4, for use in a client-server interactive system, according to an exemplary embodiment, including the following steps.
And step 401, uploading original data of the user account by the client.
Step 402, a server receives original data of a user account uploaded by a client, and stores the original data to a corresponding database.
Step 403, the server returns the data storage address of the original data to the client.
Step 404, the client sends a data request, where the data request includes a data storage address of the data to be processed and a template identifier of the data processing template.
Step 405, receiving a data request of a client, and acquiring the data storage address and the template identifier from the data request. And acquiring the data to be processed corresponding to the data storage address and acquiring a data processing template corresponding to the template identifier.
As an embodiment, the server may query a cloud database, and obtain to-be-processed data corresponding to the data storage address from the cloud database; the cloud database is used for storing various original data uploaded by the client.
In addition, the server can inquire a preset cloud template library and acquire a data processing template corresponding to the template identifier from the cloud template library; the cloud template base is used for storing at least one data processing template.
Step 406, the server queries a preset cache space; the cache space is used for caching the historical data processing results corresponding to the data processing templates;
step 407, if the cache space contains target cache data, acquiring the target cache data as a processing result corresponding to the data request, and returning the processing result to the client.
Step 408, if the cache space does not contain the target cache data, executing a data processing command contained in the corresponding data processing template, processing the data to be processed, and returning a processing result to the client.
After determining that the cache space does not contain the target cache data, the server can determine a parameter to be assigned contained in a data processing command to be executed currently, and acquire first type parameter information and/or second type parameter information corresponding to the parameter to be assigned; the first type parameter information is parameter information configured in the data processing template, and the second type parameter information is parameter information carried in the data request and corresponding to a user account of the client; and then, according to the first type parameter information and/or the second type parameter information, executing a corresponding data processing command to process the data to be processed.
Through the embodiment, more complex data processing can be performed on the data to be processed, the information amount carried in the request of the client can be reduced, the data requested by the client is prevented from being overlong, meanwhile, specific information for data processing is not directly carried in the request, and information exposure can also be avoided; in addition, based on a cache mechanism, for the same processing process of the same data, the server side does not need to execute repeatedly, and the processing magnitude of the server side can be reduced.
According to another exemplary embodiment, a flow chart of a data processing method applied to a data request end, for example, a client end, is shown, as shown in fig. 5, where the method includes:
s501, acquiring a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command.
The user can select the data to be consumed and the data processing template to be adopted through the corresponding operation interface of the client, and the client automatically acquires the data storage address corresponding to the data selected by the user and automatically acquires the template identification corresponding to the data processing template selected by the user.
S502, generating a data request; the data request comprises the data storage address and the template identification.
As one example, in the generated data request, the template identification may be added after the data storage address.
S503, sending the data request; and the data request is used for indicating to acquire the data to be processed corresponding to the data storage address, acquiring the data processing template corresponding to the template identifier, executing a data processing command contained in the corresponding data processing template, and processing the data to be processed.
Wherein, the client can send the data request to a request receiving end (such as a server); and the data request is used for indicating the request receiving end to acquire the data to be processed corresponding to the data storage address, acquiring the data processing template corresponding to the template identification, executing the data processing command contained in the corresponding data processing template, and processing the data to be processed.
Through the embodiment, a user does not need to set a specific data processing command in real time when consuming data, the specific data processing command cannot be directly carried in the data request information sent to the server, the data request is prevented from being overlong, and meanwhile, related data such as the specific data processing command can be prevented from being leaked in the network transmission process.
As an embodiment, the method further comprises: the method comprises the steps of obtaining a first type data processing command configured by a client side, and sending the first type data processing command to a server. The server is used for generating the data processing template based on the first type of data processing command and/or the second type of data processing command.
The generating, by the server, the data processing template based on the first type of data processing command and/or the second type of data processing command may specifically include:
1) the server acquires a template configuration instruction; the template configuration instruction may be sent by the client, or automatically triggered when the server is started for the first time, or acquired from the upgrade data when the server is upgraded.
2) Inquiring whether a first type of data processing command sent by a client is received or not and inquiring whether a preset second type of data processing command is stored in a server or not; the first type of data processing command, the second type of data processing command and the configuration thereof may refer to the description of the above embodiments.
3) As a situation, if a first type of data processing command sent by the client is queried and a second type of data processing command is also queried, the server generates a data processing template according to the first type of data processing command and the second type of data processing command, generates a corresponding template identifier for the data processing template, is used for uniquely identifying the data processing template, and stores the data processing template and the corresponding template identifier thereof in a preset template library.
4) As another situation, if the first type of data processing command sent by the client is queried and the second type of data processing command is not queried, the server generates a data processing template based on the first type of data processing command, generates a corresponding template identifier for the data processing template, and is used for uniquely identifying the data processing template and storing the data processing template and the corresponding template identifier thereof into a preset template library.
5) As another situation, if the first type of data processing command sent by the client is not queried, and the second type of data processing command is queried, the server generates a data processing template based on the second type of data processing command, generates a corresponding template identifier for the data processing template, and stores the data processing template and the corresponding template identifier thereof in a preset template library.
By the embodiment, different clients can flexibly configure corresponding data processing commands to meet personalized data processing requirements of different user accounts; meanwhile, the server side can uniformly configure the data processing command, and the data processing command sent to the server by the client side is not needed, so that the configuration efficiency is improved.
As an embodiment, the method further comprises: and the client sending the data request receives a data processing result returned by the server.
It should be understood that, although the steps in the above-described flowcharts are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
Fig. 6 is a block diagram illustrating a data processing apparatus 500 of a server according to an example embodiment. Referring to fig. 6, the apparatus 500 includes:
a request information obtaining module 501 configured to execute receiving a data request, where the data request includes a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command;
a data and template obtaining module 502 configured to perform obtaining to-be-processed data corresponding to the data storage address and obtaining a data processing template corresponding to the template identifier;
the data processing module 503 is configured to execute the data processing command included in the corresponding data processing template, and process the data to be processed.
As an embodiment, the data processing template further includes first type parameter information, where the first type parameter information is parameter information preconfigured for the data processing command;
the data processing module 503 is further configured to perform:
acquiring a data processing command contained in the corresponding data processing template;
acquiring first type parameter information corresponding to the data processing command from the data processing template;
and executing a corresponding data processing command according to the first type parameter information, and processing the data to be processed.
As an embodiment, the data request further includes second type parameter information, where the second type parameter information is parameter information corresponding to a user account of the client;
the data processing module 503 is further configured to perform:
acquiring a data processing command contained in the corresponding data processing template;
acquiring second type parameter information corresponding to the data processing command from the data request;
and executing a corresponding data processing command according to the second type parameter information, and correspondingly processing the data to be processed.
As an embodiment, the second type parameter information includes account identification information of a user account of the client; the data processing module 503 is further configured to perform at least one of:
executing a corresponding data processing command according to the account identification information, and adding the account identification information in the data to be processed;
and executing a data processing command corresponding to the account preference information according to the account preference information corresponding to the account identification information, and performing corresponding processing on the data to be processed based on the account preference information.
As an embodiment, the data processing apparatus 500 may further include: and the result returning module is configured to return the data processing result to the client.
As an embodiment, the data processing apparatus 500 may further include:
the cache query module is configured to execute query of a preset cache space; the cache space is used for caching the historical data processing results corresponding to the data processing templates; correspondingly, the data processing module 503 is further configured to execute, if the cache space includes target cache data, acquiring the target cache data as a processing result corresponding to the data request, and returning the processing result to the client; the target cache data is a historical data processing result obtained by processing the data to be processed by adopting the data processing template.
As an embodiment, the data processing module 503 is further configured to execute, if the cache space does not contain the target cache data, a step of processing the data to be processed by using a data processing command contained in the corresponding data processing template, and return the processed data to the client.
As an embodiment, the data processing commands in the data processing template include at least one of the following:
a first type data processing command configured by a client;
a second type data processing command preset by the server;
the apparatus 500 further comprises:
the command acquisition module is configured to execute a first type of data processing command for acquiring client configuration and/or a second type of data processing command preset by the server;
and the template generating module is configured to execute the data processing template generated based on the first type of data processing command and/or the second type of data processing command.
Fig. 7 is a block diagram illustrating a data processing apparatus 600 of a client according to an example embodiment. Referring to fig. 7, the apparatus 600 includes:
an information obtaining module 601 configured to perform obtaining of a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command;
a request generation module 602 configured to perform generating a data request; the data request comprises the data storage address and the template identifier;
a request sending module 603 configured to perform sending the data request; the data request is used for triggering a request receiving end to acquire the data to be processed corresponding to the data storage address and acquire a data processing template corresponding to the template identification; and executing the data processing command contained in the corresponding data processing template to process the data to be processed.
As an embodiment, the data processing commands in the data processing template include at least one of the following:
a first type data processing command configured by a client;
a second type data processing command preset by the server;
the apparatus 600 may further comprise:
the command configuration module is configured to execute a first type of data processing command for acquiring the client configuration;
and the command sending module is configured to execute sending of the first type of data processing command to the server, and the server is further used for generating the data processing template based on the first type of data processing command and/or the second type of data processing command.
The apparatus 600 may further comprise: and the result receiving module is configured to execute the data processing result returned by the receiving server.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram illustrating an apparatus 700 for data processing according to an example embodiment. For example, device 700 may be a server. Referring to fig. 8, device 700 includes a processing component 720 that further includes one or more processors, and memory resources, represented by memory 722, for storing instructions, such as applications, that are executable by processing component 720. The application programs stored in memory 722 may include one or more modules that each correspond to a set of instructions. Further, the processing component 720 is configured to execute instructions to perform the data processing methods described above.
The device 700 may also include a power component 724 configured to perform power management for the device 700, a wired or wireless network interface 726 configured to connect the device 700 to a network, and an input/output (I/O) interface 728. The device 700 may operate based on an operating system stored in memory 722, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
In an exemplary embodiment, a storage medium comprising instructions, such as memory 722 comprising instructions, executable by a processor of device 700 to perform the above-described method is also provided. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 9 is a block diagram illustrating an apparatus 800 for data processing in accordance with an example embodiment. For example, the device 800 may be a terminal device, a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and so forth.
Referring to fig. 9, device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communications component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile storage devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to the various components of the device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Communications component 816 is configured to facilitate communications between device 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, a carrier network, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), field programmable gate arrays (FP7A), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A method of data processing, the method comprising:
receiving a data request; the data request comprises a data storage address of the data to be processed and a template identifier of the data processing template; the data processing template comprises at least one data processing command;
acquiring data to be processed corresponding to the data storage address and acquiring a data processing template corresponding to the template identifier;
and executing the data processing command contained in the corresponding data processing template to process the data to be processed.
2. The method of claim 1, wherein the data processing template further contains first type parameter information;
the executing the data processing command contained in the corresponding data processing template to process the data to be processed includes:
acquiring a data processing command contained in the corresponding data processing template;
acquiring first type parameter information corresponding to the data processing command from the data processing template;
and executing a corresponding data processing command according to the first type parameter information, and processing the data to be processed.
3. The method according to claim 1, wherein the data request further includes second type parameter information, and the second type parameter information is parameter information corresponding to a user account of a client sending the data request;
the processing the data to be processed by using the data processing command included in the corresponding data processing template includes:
acquiring a data processing command contained in the corresponding data processing template;
acquiring second type parameter information corresponding to the data processing command from the data request;
and executing a corresponding data processing command according to the second type parameter information, and correspondingly processing the data to be processed.
4. A method of data processing, the method comprising:
acquiring a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command;
generating a data request; the data request comprises the data storage address and the template identification;
sending the data request; and the data request is used for indicating to acquire the data to be processed corresponding to the data storage address and the data processing template corresponding to the template identification, executing a data processing command contained in the corresponding data processing template and processing the data to be processed.
5. A data processing apparatus, characterized in that the apparatus comprises:
the request information acquisition module is configured to execute receiving of a data request, wherein the data request comprises a data storage address of data to be processed and a template identifier of a data processing template; the data processing template comprises at least one data processing command;
the data and template acquisition module is configured to execute acquisition of to-be-processed data corresponding to the data storage address and acquisition of a data processing template corresponding to the template identifier;
and the data processing module is configured to execute the data processing command contained in the corresponding data processing template and process the data to be processed.
6. A data processing apparatus, characterized in that the apparatus comprises:
the information acquisition module is configured to execute the acquisition of a data storage address of the data to be processed and a template identifier of the data processing template; the data processing template comprises at least one data processing command;
a request generation module configured to perform a generate data request; the data request comprises the data storage address and the template identification;
a request sending module configured to perform sending the data request; and the data request is used for indicating to acquire the data to be processed corresponding to the data storage address and the data processing template corresponding to the template identification, executing a data processing command contained in the corresponding data processing template and processing the data to be processed.
7. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method of any one of claims 1 to 3.
8. A server, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data processing method of claim 4.
9. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the data processing method of any one of claims 1 to 3.
10. A storage medium in which instructions, when executed by a processor of a server, enable the server to perform the data processing method of claim 4.
CN202011119520.6A 2020-10-19 2020-10-19 Data processing method and device, electronic equipment, server and storage medium Pending CN112231727A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011119520.6A CN112231727A (en) 2020-10-19 2020-10-19 Data processing method and device, electronic equipment, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011119520.6A CN112231727A (en) 2020-10-19 2020-10-19 Data processing method and device, electronic equipment, server and storage medium

Publications (1)

Publication Number Publication Date
CN112231727A true CN112231727A (en) 2021-01-15

Family

ID=74117486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011119520.6A Pending CN112231727A (en) 2020-10-19 2020-10-19 Data processing method and device, electronic equipment, server and storage medium

Country Status (1)

Country Link
CN (1) CN112231727A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559813A (en) * 2021-01-29 2021-03-26 广州技象科技有限公司 Internet of things gateway data processing method and device based on instruction association pushing
CN112988726A (en) * 2021-03-24 2021-06-18 北京百度网讯科技有限公司 Data management method and device, computer equipment and storage medium
CN114221995A (en) * 2021-11-11 2022-03-22 中国建设银行股份有限公司 Service calling method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101925045A (en) * 2009-06-17 2010-12-22 中兴通讯股份有限公司 Method and system for providing user service data
CN105718540A (en) * 2016-01-18 2016-06-29 北京京东尚科信息技术有限公司 Data loading method and apparatus
CN108153812A (en) * 2017-11-24 2018-06-12 广州高清视信数码科技股份有限公司 Method, apparatus, computer equipment and the storage medium of data communication
CN108804140A (en) * 2018-06-15 2018-11-13 中国建设银行股份有限公司 A kind of batch instruction analytic method, device and equipment
CN109254752A (en) * 2018-09-25 2019-01-22 Oppo广东移动通信有限公司 3D sound effect treatment method and Related product
CN110351342A (en) * 2019-06-20 2019-10-18 平安科技(深圳)有限公司 Service order processing method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101925045A (en) * 2009-06-17 2010-12-22 中兴通讯股份有限公司 Method and system for providing user service data
CN105718540A (en) * 2016-01-18 2016-06-29 北京京东尚科信息技术有限公司 Data loading method and apparatus
CN108153812A (en) * 2017-11-24 2018-06-12 广州高清视信数码科技股份有限公司 Method, apparatus, computer equipment and the storage medium of data communication
CN108804140A (en) * 2018-06-15 2018-11-13 中国建设银行股份有限公司 A kind of batch instruction analytic method, device and equipment
CN109254752A (en) * 2018-09-25 2019-01-22 Oppo广东移动通信有限公司 3D sound effect treatment method and Related product
CN110351342A (en) * 2019-06-20 2019-10-18 平安科技(深圳)有限公司 Service order processing method, device, computer equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559813A (en) * 2021-01-29 2021-03-26 广州技象科技有限公司 Internet of things gateway data processing method and device based on instruction association pushing
CN112988726A (en) * 2021-03-24 2021-06-18 北京百度网讯科技有限公司 Data management method and device, computer equipment and storage medium
CN112988726B (en) * 2021-03-24 2024-03-01 北京百度网讯科技有限公司 Method, device, computer equipment and storage medium for data management
CN114221995A (en) * 2021-11-11 2022-03-22 中国建设银行股份有限公司 Service calling method and device and electronic equipment
CN114221995B (en) * 2021-11-11 2024-04-09 中国建设银行股份有限公司 Service calling method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN112003893B (en) Resource downloading method and device
CN112231727A (en) Data processing method and device, electronic equipment, server and storage medium
US9602656B2 (en) Method, apparatus and system for providing caller identification
CN113099262B (en) Information display method and device, electronic equipment and storage medium
CN106547547B (en) data acquisition method and device
CN112367554B (en) Message interaction method and device, electronic equipment and storage medium
US20190026859A1 (en) System and method for processing image information
CN107220059B (en) Application interface display method and device
EP4084482A1 (en) Stream pull method and device for live stream
CN111338971B (en) Application testing method and device, electronic equipment and storage medium
CN109033393A (en) Paster processing method, device, storage medium and electronic equipment
CN112616053B (en) Transcoding method and device for live video and electronic equipment
CN109976872B (en) Data processing method and device, electronic equipment and storage medium
CN112333238A (en) Data processing method, device, equipment and storage medium
CN109245992B (en) Request processing method and device, electronic equipment and storage medium
CN116112332A (en) Page display method, device and system, electronic equipment and storage medium
CN110908814A (en) Message processing method and device, electronic equipment and storage medium
CN110764847A (en) User information processing method and device, electronic equipment and storage medium
CN106354532B (en) Application account information processing method and device
CN105827854B (en) Operation processing method and device
CN114924769A (en) Component updating method and device, electronic equipment and storage medium
CN114268802A (en) Virtual space display method and device, electronic equipment and storage medium
CN113965768A (en) Live broadcast room information display method and device, electronic equipment and server
CN107181670B (en) Picture processing method and device and storage medium
CN112230982A (en) Material processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination