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

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

Info

Publication number
CN114115648A
CN114115648A CN202111386438.4A CN202111386438A CN114115648A CN 114115648 A CN114115648 A CN 114115648A CN 202111386438 A CN202111386438 A CN 202111386438A CN 114115648 A CN114115648 A CN 114115648A
Authority
CN
China
Prior art keywords
request
data
target
current
processing
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
CN202111386438.4A
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.)
Suzhou Qinyou Network Technology Co ltd
Original Assignee
Suzhou Qinyou Network 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 Suzhou Qinyou Network Technology Co ltd filed Critical Suzhou Qinyou Network Technology Co ltd
Priority to CN202111386438.4A priority Critical patent/CN114115648A/en
Publication of CN114115648A publication Critical patent/CN114115648A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0483Interaction with page-structured environments, e.g. book metaphor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for processing a data request, wherein the method comprises the following steps: when a user is detected to trigger a target dragging component in a data display page, generating a current service request corresponding to the target dragging component; judging whether a target data request exists in a pre-generated request file or not; and if so, processing the target data request, creating a current data request according to the current service request after the target data request is processed, and processing the current data request. The technical scheme of the embodiment of the invention can avoid the problem that the data source is frequently accessed when a plurality of dragging components consistent with the data source are simultaneously triggered by a user, and improve the response performance of a processing system and the processing efficiency of the data request.

Description

Data request processing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a data request processing method, a data request processing device, data request processing equipment and a storage medium.
Background
With the continuous development of computer networks, most social activities of users can be performed through the computer networks, for example, the users can read data in a data source through a dragging component in a data display page. However, when a user operates a dragging component in a data display page, a situation that a certain dragging component is triggered by multiple users at the same time may occur, which causes problems that a data source is frequently accessed and the response performance of a system is low.
In the existing method, in order to avoid simultaneous initiation of multiple data requests, a program developer usually uses an anti-shake function to process a calling method so as to prevent the same dragging component from initiating multiple requests simultaneously; or after detecting that the drag component initiates the request, the request is not allowed to be requested again before the request is completed, and specifically, a program developer can set temporary variable processing in the code according to requirements.
However, in the existing methods, the situation that multiple dragging components correspond to the same data source and are simultaneously triggered by a user is not considered, that is, the problems that when multiple dragging components consistent with the data source are simultaneously triggered by the user, the data source is frequently accessed and the system response performance is low cannot be solved in the existing methods.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, a device, and a storage medium for processing a data request, which can avoid a problem that a data source is frequently accessed when multiple dragging components consistent with the data source are simultaneously triggered by a user, and improve response performance of a processing system and processing efficiency of the data request.
In a first aspect, an embodiment of the present invention provides a method for processing a data request, where the method includes:
when a user is detected to trigger a target dragging component in a data display page, generating a current service request corresponding to the target dragging component;
judging whether a target data request exists in a pre-generated request file; the target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page;
and if so, processing the target data request, creating a current data request according to the current service request after the target data request is processed, and processing the current data request.
In a second aspect, an embodiment of the present invention further provides a device for processing a data request, where the device includes:
the service request generation module is used for generating a current service request corresponding to a target dragging component when detecting that a user triggers the target dragging component in a data display page;
the request judging module is used for judging whether a target data request exists in a pre-generated request file; the target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page;
and the request processing module is used for processing the target data request when the target data request exists in the pre-generated request file, creating a current data request according to the current service request after the processing of the target data request is finished, and processing the current data request.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement a method for processing a data request provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the storage medium stores a computer program, and the computer program, when executed by a processor, implements a method for processing a data request according to any embodiment of the present invention.
According to the technical scheme of the embodiment of the invention, when a target dragging component is triggered in a data display page by a user, a current service request corresponding to the target dragging component is generated, and whether a target data request exists in a pre-generated request file is judged; if so, processing the target data request, creating a current data request according to the current service request after the processing of the target data request is finished, and processing the current data request; if not, the current data request is created according to the current service request, and the current data request is processed, so that the problem that the data source is frequently accessed when a plurality of dragging components consistent with the data source are triggered by a user at the same time can be avoided, and the response performance of a processing system and the processing efficiency of the data request are improved.
Drawings
FIG. 1 is a flow chart of a method for processing a data request according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for processing a data request according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a method for processing a data request according to a third embodiment of the present invention;
fig. 4 is a block diagram of a data request processing apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device in the fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a data request processing method according to an embodiment of the present invention, where the present embodiment is applicable to a case of processing a data request associated with a dragging component in a data display page, and the method may be executed by a data request processing apparatus, where the apparatus may be implemented by software and/or hardware, and may be generally integrated in a terminal or a server having a data processing function, and specifically includes the following steps:
step 110, when detecting that a user triggers a target dragging component in a data display page, generating a current service request corresponding to the target dragging component.
In this embodiment, the data display page may be an application page for displaying various service data, and the dragging component may include a pull-up component, a pull-down component, and the like. When it is detected that a user performs a click operation on a target dragging component in the data display page, it may be determined that the user triggers the target dragging component, and a current service request corresponding to the target dragging component is generated.
In a specific embodiment, before detecting that a user triggers a target dragging component in a data display page, a data source query table may be constructed according to a mapping relationship between each dragging component and a corresponding data source in the data display page. After detecting that a user triggers a target dragging component in a data display page, acquiring a data source corresponding to the target dragging component according to the data source query table, and generating a current service request corresponding to the target dragging component according to the data source corresponding to the target dragging component.
Step 120, determining whether a target data request exists in the pre-generated request file, if yes, executing step 130, and if no, executing step 140.
The target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page.
In this step, the data source corresponding to the current service request may be compared with the data source corresponding to each data request of the request file, and if a data source corresponding to a certain data request exists in the request file and is consistent with the data source corresponding to the current service request, it is determined that a target data request exists in the request file.
Step 130, processing the target data request, creating a current data request according to the current service request after the processing of the target data request is completed, and processing the current data request.
In this embodiment, if the pre-generated request file includes the target data request, it may be considered that before the user triggers the target dragging component, other dragging components in the data display page are also triggered by the user, and a data source corresponding to the dragging component is consistent with a data source corresponding to the target dragging component, in this case, an existing data request (that is, the target data request) in the request file is preferentially executed, and after the processing of the target data request is completed, a current data request is created according to the current service request, and the current data request is processed.
In a specific embodiment, optionally, the current service request may be converted into a current data request according to a preset identifier, so as to complete creation of the current data request.
The method has the advantages that the problem that the data source is frequently accessed when a plurality of dragging components consistent with the data source are simultaneously triggered by a user can be avoided, and therefore the response performance of the processing system can be improved; secondly, by distinguishing the service request from the data request, the processing unit can conveniently confirm which requests can be processed and which requests cannot be processed, so that the processing efficiency of the data request and the effectiveness of the request processing result can be improved.
Step 140, creating a current data request according to the current service request, and processing the current data request.
In this embodiment, if the pre-generated request file does not include the target data request, a current data request may be created according to the current service request, and the current data request may be processed.
According to the technical scheme of the embodiment of the invention, when a target dragging component is triggered in a data display page by a user, a current service request corresponding to the target dragging component is generated, and whether a target data request exists in a pre-generated request file is judged; if so, processing the target data request, creating a current data request according to the current service request after the processing of the target data request is finished, and processing the current data request; if not, the current data request is created according to the current service request, and the current data request is processed, so that the problem that the data source is frequently accessed when a plurality of dragging components consistent with the data source are triggered by a user at the same time can be avoided, and the response performance of a processing system and the processing efficiency of the data request are improved.
Example two
This embodiment is a further refinement of the above embodiment, and the same or corresponding terms as those of the above embodiment are explained, and this embodiment is not described again. Fig. 2 is a flowchart of a processing method of a data request provided in the second embodiment, in this embodiment, the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, as shown in fig. 2, the method provided in this embodiment may further include:
step 210, when detecting that a user triggers a target dragging component in a data display page, generating a current service request corresponding to the target dragging component.
Step 220, determining whether a target data request exists in the pre-generated request file, if yes, executing step 230, and if no, executing step 240.
Step 230, processing the target data request, after the processing of the target data request is completed, creating a current data request corresponding to the target dragging component according to the data source associated with the current service request, and processing the current data request.
In this step, optionally, a current data request corresponding to the target dragging component may be created according to a data source associated with the current service request and a preset request identifier, and the current data request is processed.
In an implementation manner of this embodiment, creating, according to a data source associated with the current service request, a current data request corresponding to the target dragging component includes: acquiring a request path and request parameters corresponding to the data source according to the data source associated with the current service request; generating a request identifier corresponding to the target dragging component according to the request path and the request parameters; and creating a current data request corresponding to the target dragging component according to the request identifier.
In a specific embodiment, the request path corresponding to the data source may include a resource path, a resource name, and the like; the request parameter may include dynamic resource pre-loading parameter information, such as a dynamic resource obtaining address, a dynamic resource obtaining method, a dynamic resource returning method, and the like. The Resource obtaining address may be stored in a Uniform Resource Locator (URL) format.
In this embodiment, after a request path and request parameters corresponding to a current service request are acquired, the request path and the request parameters may be converted into a request identifier corresponding to the target dragging component according to a preset identifier, and a current data request corresponding to the target dragging component is created according to the request identifier.
The advantage of such setting is that the processing unit can conveniently and quickly acquire the data source corresponding to the target dragging component according to the request path and the request parameter in the current data request, and further, the processing efficiency of the data request can be improved.
In a specific embodiment, generating a request identifier corresponding to the target dragging component according to the request path and the request parameter includes: and coding the request path and the request parameters in a preset coding mode to obtain a request identifier corresponding to the target dragging component.
The preset encoding manner may be an encoding manner in which binary data (base64) is represented based on 64 printable characters. The advantage of such setting is that the request path and the request parameters are encoded by the base64, which can reduce the memory occupied by the request identifier and reduce the consumption of the resource server; the character string coded by the base64 is more suitable for transmission of different platforms and different languages.
Step 240, creating a current data request corresponding to the target dragging component according to the data source associated with the current service request, and processing the current data request.
According to the technical scheme of the embodiment of the invention, when a target dragging component is triggered in a data display page by a user, a current service request corresponding to the target dragging component is generated, whether a target data request exists in a pre-generated request file is judged, if yes, the target data request is processed, after the target data request is processed, a current data request corresponding to the target dragging component is created according to a data source associated with the current service request, and the current data request is processed; if not, according to the data source associated with the current service request, a current data request corresponding to the target dragging component is created, and the current data request is processed, so that the problem that the data source is frequently accessed when a plurality of dragging components consistent with the data source are simultaneously triggered by a user can be avoided, and the response performance of a processing system and the processing efficiency of the data request are improved.
EXAMPLE III
This embodiment is a further refinement of the above embodiment, and the same or corresponding terms as those of the above embodiment are explained, and this embodiment is not described again. Fig. 3 is a flowchart of a processing method for a data request provided in a third embodiment, in this embodiment, the technical solution of this embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, as shown in fig. 3, the method provided in this embodiment may further include:
and 310, packaging the unprocessed data requests corresponding to all the dragging components in the data display page through a preset module loader to obtain a request file.
In this embodiment, optionally, the module loader may be a JavaScript-based module loader (require. The unprocessed data requests corresponding to all the dragging components are encapsulated by the module loader, so that the processing unit can directly acquire the data requests to be processed from the request file, the time for acquiring the data requests by the processing unit can be saved, and the processing efficiency of the data requests can be improved.
And step 320, generating a current service request corresponding to a target dragging component when detecting that a user triggers the target dragging component in a data display page.
Step 330, determining whether the request file has a target data request, if yes, executing step 340, and if not, executing step 350 and step 360.
Step 340, processing the target data request, after the processing of the target data request is completed, creating a current data request corresponding to the target dragging component according to the data source associated with the current service request, and processing the current data request.
Step 350, creating a current data request corresponding to the target dragging component according to the data source associated with the current service request;
and 360, encapsulating the current data request and a plurality of unprocessed data requests prestored in the request file through the module loader to obtain a new request file, and processing the current data request.
In this embodiment, after the current data request corresponding to the target dragging component is created, the current data request and a plurality of unprocessed data requests pre-stored in the request file are further encapsulated by the module loader, so as to obtain a new request file. This has the advantage that it facilitates the processing unit to obtain the current data request directly from the new request file, thereby improving the efficiency of processing the current data request.
In an implementation manner of this embodiment, after processing the current data request, the method further includes: if a new service request is generated in the subsequent process, comparing a data source corresponding to the new service request with a data source corresponding to each data request in the new request file; and finishing the processing of the new service request according to the comparison result.
In a specific embodiment, after the current data request is processed, if it is detected in a subsequent process that a user triggers any dragging component in a data display page, a new service request corresponding to the dragging component is generated, and a data source corresponding to the new service request is compared with a data source corresponding to each data request in the new request file. And if a data request with a data source consistent with the data source corresponding to the new service request exists in the new request file, preferentially executing the existing data request, creating the corresponding data request according to the new service request after the data request is processed, and processing the data request.
According to the technical scheme, unprocessed data requests corresponding to all dragging components in a data display page are packaged through a preset module loader to obtain a request file, when a target dragging component is triggered by a user in the data display page, a current service request corresponding to the target dragging component is generated, whether the request file has the target data request or not is judged, if yes, the target data request is processed, after the target data request is processed, the current data request corresponding to the target dragging component is created according to a data source related to the current service request, and the current data request is processed; if not, a current data request corresponding to the target dragging component is created according to a data source associated with the current service request, the current data request and a plurality of unprocessed data requests pre-stored in the request file are packaged through the module loader to obtain a new request file, and the current data request is processed by the technical means, so that the problem that the data source is frequently accessed when a plurality of dragging components consistent with the data source are triggered by a user at the same time can be avoided, and the response performance of a processing system and the processing efficiency of the data request are improved.
Example four
Fig. 4 is a block diagram of a data request processing apparatus according to a fourth embodiment of the present invention, where the apparatus includes: a service request generating module 410, a request judging module 420 and a request processing module 430.
The service request generating module 410 is configured to generate a current service request corresponding to a target dragging component when it is detected that a user triggers the target dragging component in a data display page;
a request judging module 420, configured to judge whether a target data request exists in a pre-generated request file; the target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page;
the request processing module 430 is configured to, when a target data request exists in a pre-generated request file, process the target data request, create a current data request according to the current service request after the target data request is processed, and process the current data request.
According to the technical scheme of the embodiment of the invention, when a target dragging component is triggered in a data display page by a user, a current service request corresponding to the target dragging component is generated, and whether a target data request exists in a pre-generated request file is judged; if so, processing the target data request, creating a current data request according to the current service request after the processing of the target data request is finished, and processing the current data request; if not, the current data request is created according to the current service request, and the current data request is processed, so that the problem that the data source is frequently accessed when a plurality of dragging components consistent with the data source are triggered by a user at the same time can be avoided, and the response performance of a processing system and the processing efficiency of the data request are improved.
On the basis of the foregoing embodiments, the request processing module 430 may further include:
a data request encapsulation unit, configured to encapsulate, by the module loader, the current data request and multiple unprocessed data requests pre-stored in the request file to obtain a new request file;
the data source comparison unit is used for comparing the data source corresponding to the new service request with the data source corresponding to each data request in the new request file if the new service request is generated in the subsequent process;
and the service request processing unit is used for finishing the processing of the new service request according to the comparison result.
The apparatus for processing the data request may further include:
a request creating module, configured to create a current data request corresponding to the target dragging component according to a data source associated with the current service request;
and the request file generation module is used for packaging the unprocessed data requests corresponding to all the dragging components in the data display page through a preset module loader to obtain the request file.
The request creation module may further include:
a request parameter obtaining unit, configured to obtain a request path and a request parameter corresponding to a data source according to the data source associated with the current service request;
a request identifier generating unit, configured to generate a request identifier corresponding to the target dragging component according to the request path and the request parameter;
a data request creating unit, configured to create, according to the request identifier, a current data request corresponding to the target dragging component;
and the coding unit is used for coding the request path and the request parameters through a preset coding mode to obtain a request identifier corresponding to the target dragging component.
The data request processing device provided by the embodiment of the invention can execute the data request processing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a computer apparatus according to a fifth embodiment of the present invention, as shown in fig. 5, the computer apparatus includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processors 510 in the computer device may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, the memory 520, the input device 530 and the output device 540 in the computer apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5. The memory 520 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to a data request processing method in any embodiment of the present invention (for example, the service request generating module 410, the request determining module 420, and the request processing module 430 in a data request processing apparatus). The processor 510 executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the memory 520, namely, implements a data request processing method as described above. That is, the program when executed by the processor implements:
when a user is detected to trigger a target dragging component in a data display page, generating a current service request corresponding to the target dragging component;
judging whether a target data request exists in a pre-generated request file; the target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page;
and if so, processing the target data request, creating a current data request according to the current service request after the target data request is processed, and processing the current data request.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to a computer device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus, and may include a keyboard and a mouse, etc. The output device 540 may include a display device such as a display screen.
EXAMPLE six
The sixth embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method according to any embodiment of the present invention. Of course, the embodiment of the present invention provides a computer-readable storage medium, which can perform related operations in a data request processing method provided in any embodiment of the present invention. That is, the program when executed by the processor implements:
when a user is detected to trigger a target dragging component in a data display page, generating a current service request corresponding to the target dragging component;
judging whether a target data request exists in a pre-generated request file; the target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page;
and if so, processing the target data request, creating a current data request according to the current service request after the target data request is processed, and processing the current data request.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the above embodiment of the data request processing apparatus, the included units and modules are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for processing a data request, the method comprising:
when a user is detected to trigger a target dragging component in a data display page, generating a current service request corresponding to the target dragging component;
judging whether a target data request exists in a pre-generated request file; the target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page;
and if so, processing the target data request, creating a current data request according to the current service request after the target data request is processed, and processing the current data request.
2. The method of claim 1, wherein creating a current data request based on the current service request comprises:
and creating a current data request corresponding to the target dragging component according to the data source associated with the current service request.
3. The method of claim 2, wherein creating a current data request corresponding to the target drag component according to a data source associated with the current service request comprises:
acquiring a request path and request parameters corresponding to the data source according to the data source associated with the current service request;
generating a request identifier corresponding to the target dragging component according to the request path and the request parameters;
and creating a current data request corresponding to the target dragging component according to the request identifier.
4. The method of claim 1, wherein before generating a current service request corresponding to a target dragging component when it is detected that a target dragging component is triggered by a user in a data display page, the method further comprises:
packaging unprocessed data requests corresponding to all dragging components in the data display page through a preset module loader to obtain the request file;
after creating the current data request according to the current service request, the method further comprises the following steps:
and packaging the current data request and a plurality of unprocessed data requests prestored in the request file through the module loader to obtain a new request file.
5. The method of claim 4, after creating a current data request according to the current service request and processing the current data request, further comprising:
if a new service request is generated in the subsequent process, comparing a data source corresponding to the new service request with a data source corresponding to each data request in the new request file;
and finishing the processing of the new service request according to the comparison result.
6. The method of claim 3, wherein generating a request identifier corresponding to the target dragging component according to the request path and the request parameter comprises:
and coding the request path and the request parameters in a preset coding mode to obtain a request identifier corresponding to the target dragging component.
7. An apparatus for processing a data request, the apparatus comprising:
the service request generation module is used for generating a current service request corresponding to a target dragging component when detecting that a user triggers the target dragging component in a data display page;
the request judging module is used for judging whether a target data request exists in a pre-generated request file; the target data source corresponding to the target data request is consistent with the data source corresponding to the current service request; the request file is used for storing unprocessed data requests corresponding to all dragging components in the data display page;
and the request processing module is used for processing the target data request when the target data request exists in the pre-generated request file, creating a current data request according to the current service request after the processing of the target data request is finished, and processing the current data request.
8. The apparatus of claim 7, wherein the apparatus comprises:
and the request creating module is used for creating a current data request corresponding to the target dragging component according to the data source associated with the current service request.
9. A computer device, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs when executed by the one or more processors cause the one or more processors to perform a method of processing a data request as recited in any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method of processing a data request according to any one of claims 1 to 6.
CN202111386438.4A 2021-11-22 2021-11-22 Data request processing method, device, equipment and storage medium Pending CN114115648A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111386438.4A CN114115648A (en) 2021-11-22 2021-11-22 Data request processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111386438.4A CN114115648A (en) 2021-11-22 2021-11-22 Data request processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114115648A true CN114115648A (en) 2022-03-01

Family

ID=80439097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111386438.4A Pending CN114115648A (en) 2021-11-22 2021-11-22 Data request processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114115648A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100202442A1 (en) * 1999-05-05 2010-08-12 William Allan Telephony and data network services at a telephone
CN106528156A (en) * 2016-11-10 2017-03-22 腾讯科技(深圳)有限公司 Page data processing method and device
CN109062550A (en) * 2018-07-27 2018-12-21 北京京东金融科技控股有限公司 Page makeup method and system, user terminal, server and readable storage medium storing program for executing
CN109189841A (en) * 2018-07-24 2019-01-11 中国电力科学研究院有限公司 A kind of multi-data source access method and system
CN111857659A (en) * 2020-06-30 2020-10-30 太极计算机股份有限公司 Data visualization design platform for dragging heterogeneous data source

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100202442A1 (en) * 1999-05-05 2010-08-12 William Allan Telephony and data network services at a telephone
CN106528156A (en) * 2016-11-10 2017-03-22 腾讯科技(深圳)有限公司 Page data processing method and device
CN109189841A (en) * 2018-07-24 2019-01-11 中国电力科学研究院有限公司 A kind of multi-data source access method and system
CN109062550A (en) * 2018-07-27 2018-12-21 北京京东金融科技控股有限公司 Page makeup method and system, user terminal, server and readable storage medium storing program for executing
CN111857659A (en) * 2020-06-30 2020-10-30 太极计算机股份有限公司 Data visualization design platform for dragging heterogeneous data source

Similar Documents

Publication Publication Date Title
CN110263275B (en) Method and device for accessing webpage, mobile terminal and storage medium
JP2019520624A (en) Page component dynamic layout
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN108536492B (en) Method, device, equipment and storage medium for acquiring attribute information of live broadcast room
CN109343983B (en) Information interaction method, device, equipment and storage medium between function modules
CN110895471A (en) Installation package generation method, device, medium and electronic equipment
CN113448756B (en) Inter-process communication system and method and computing device
CN111124544A (en) Interface display method and device, electronic equipment and storage medium
CN110795181A (en) Application program interface display method and device based on skip protocol and electronic equipment
CN115309470B (en) Method, device, equipment and storage medium for loading widget
CN110990008B (en) Page updating method and device, storage medium and electronic equipment
CN112528619A (en) Page template file generation method and device, electronic equipment and storage medium
CN109388388B (en) Information interaction method, device, equipment and storage medium between function modules
CN111680247B (en) Local calling method, device and equipment of webpage character strings and storage medium
CN108345683A (en) Webpage display process, device, terminal and storage medium
CN108153745B (en) Application data calling method and application development system
CN112579997A (en) User permission configuration method and device, computer equipment and storage medium
CN114115648A (en) Data request processing method, device, equipment and storage medium
CN113726855B (en) Service aggregation method, device, electronic equipment and computer-readable storage medium
CN114547422A (en) Method and device for preventing repeated clicking of page elements
CN115914219A (en) Task request processing method, device and system, readable storage medium and electronic equipment
CN112565472B (en) Static resource processing method and device
CN110659526B (en) Document processing method and device and electronic equipment
CN110825477A (en) Method, device and equipment for loading graphical interface and storage medium
US11017032B1 (en) Document recovery utilizing serialized data

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