CN117056102A - Data calling method, system, computer equipment and readable storage medium - Google Patents
Data calling method, system, computer equipment and readable storage medium Download PDFInfo
- Publication number
- CN117056102A CN117056102A CN202311041397.4A CN202311041397A CN117056102A CN 117056102 A CN117056102 A CN 117056102A CN 202311041397 A CN202311041397 A CN 202311041397A CN 117056102 A CN117056102 A CN 117056102A
- Authority
- CN
- China
- Prior art keywords
- data
- calling
- sub
- call
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000010586 diagram Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 11
- 238000003491 array Methods 0.000 description 8
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/543—User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/54—Indexing scheme relating to G06F9/54
- G06F2209/541—Client-server
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application provides a data calling method, a system, computer equipment and a readable storage medium, wherein a user side acquires a plurality of data calling sub-requests input by a user; the user combines a plurality of data calling sub-requests according to the hierarchical relation of every two target calling data to obtain a data calling request; the server side calls out the target call data indicated to be acquired by each data call sub-request from the storage position carried in each data call sub-request; the server uses the calling program carried in the data calling sub-request to send the target calling data indicated to be obtained by the data calling sub-request to the user terminal through the calling interface carried in the data calling sub-request; and the user terminal combines the target call data according to the hierarchical relationship of every two target call data to obtain target data. By adopting the method, the communication load between the user side and the server side when the data is called is reduced, and the effectiveness and the efficiency when the data is called are improved.
Description
Technical Field
The present application relates to the field of computer data processing, and in particular, to a data calling method, a system, a computer device, and a readable storage medium.
Background
In the prior art, when a user side requests a plurality of data from a server side, the user side often needs to send the data request to the server side for a plurality of times, so that the communication between the user side and the server side is too frequent due to the excessive times of sending the request to the server side by the user side, and the communication load between the user side and the server side is increased when the data is called. Meanwhile, because multiple requests are required to be transmitted between the user terminal and the server terminal, the situation that partial requests are lost due to unstable communication caused by overload of communication is likely to occur, so that the server terminal cannot receive all data requests sent by the user terminal, and therefore the user terminal cannot call all data required by the user terminal from the server terminal, and the effectiveness and efficiency of data call are reduced.
Disclosure of Invention
In view of the above, an object of the present application is to provide a data calling method, system, computer device and readable storage medium, so as to reduce the communication load between a user terminal and a server terminal when data call is performed, and improve the effectiveness and efficiency when data call is performed.
In a first aspect, an embodiment of the present application provides a data calling method, which is applied to a data calling system, where the system includes a user side and a server side, and the user side and the server side can communicate with each other, and the method includes:
the user side obtains a plurality of data calling sub-requests input by the user, wherein different data calling sub-requests indicate to obtain different target calling data, and each data calling sub-request carries a storage position, a calling program and a calling interface of the target calling data which are respectively indicated to be obtained in the server side;
the user side combines a plurality of data calling sub-requests according to the hierarchical relation of each two target calling data to obtain a data calling request and sends the data calling request to the server side;
the server traverses each data calling sub-request in the data calling requests, and invokes the target calling data indicated to be acquired by each data calling sub-request from a storage position carried in each data calling sub-request;
for the target call data indicated to be acquired by each data call sub-request, the server sends the target call data indicated to be acquired by the data call sub-request to the user side through a call interface carried in the data call sub-request by utilizing a call program carried in the data call sub-request;
and the user terminal combines the received target call data according to the hierarchical relationship of every two target call data to obtain target data.
Optionally, the hierarchical relationship is a parent-child relationship.
Optionally, the user terminal combines a plurality of data call sub-requests to obtain a data call request according to the hierarchical relationship of each two target call data, including:
the user side obtains the hierarchical relation of every two target call data;
and the user side sequentially arranges the father-level sub-requests and the son-level sub-requests in every two data calling sub-requests to obtain the data calling requests, wherein for every two data calling sub-requests, the father-level sub-request in the two data calling sub-requests is the data calling sub-request with the indicated acquired target calling data as the father-level calling data, and the son-level sub-request in the two data calling sub-requests is the data calling sub-request with the indicated acquired target calling data as the son-level calling data.
Optionally, the user side combines the target call data received by the user side according to the hierarchical relationship of each two target call data to obtain target data, including:
the user side sequentially arranges father-level call data and son-level call data in every two received target call data to obtain the target data;
or the user side constructs a tree diagram according to the father-level call data and the son-level call data in each two target call data received by the user side, and determines the tree diagram as the target data.
In a second aspect, an embodiment of the present application provides a data calling system, where the system includes a user side and a server side, where the user side and the server side can communicate;
the user side is used for acquiring a plurality of data calling sub-requests input by a user, wherein different data calling sub-requests indicate to acquire different target calling data, and each data calling sub-request carries a storage position, a calling program and a calling interface of the target calling data which are respectively indicated to be acquired in the server side;
the user side is used for combining a plurality of data calling sub-requests according to the hierarchical relation of each two target calling data to obtain a data calling request and sending the data calling request to the server side;
the server side is used for traversing each data calling sub-request in the data calling requests and calling out the target calling data indicated to be acquired by each data calling sub-request from the storage position carried in each data calling sub-request;
the server side is used for sending the target call data indicated to be obtained by the data call sub-request to the user side through a call interface carried in the data call sub-request by using a call program carried in the data call sub-request;
and the user side is used for combining the received target call data according to the hierarchical relationship of each two target call data to obtain target data.
Optionally, the hierarchical relationship is a parent-child relationship.
Optionally, when the user side is configured to combine the plurality of data call sub-requests to obtain a data call request according to the hierarchical relationship of each two target call data, the method is specifically configured to:
acquiring the hierarchical relation of every two target call data;
and sequentially arranging parent-level sub-requests and child-level sub-requests in every two data calling sub-requests to obtain the data calling requests, wherein for every two data calling sub-requests, the parent-level sub-requests in the two data calling sub-requests are data calling sub-requests with the indicated acquired target calling data being parent-level calling data, and the child-level sub-requests in the two data calling sub-requests are data calling sub-requests with the indicated acquired target calling data being child-level calling data.
Optionally, when the user side is configured to combine the target call data received by the user side according to the hierarchical relationship between every two target call data to obtain target data, the method is specifically configured to:
sequentially arranging the father-level call data and the son-level call data in each two received target call data to obtain the target data;
or constructing a tree diagram according to the received parent-level call data and child-level call data in each two target call data, and determining the tree diagram as the target data.
In a third aspect, an embodiment of the present application provides a computer apparatus, including: a processor, a memory and a bus, the memory storing machine readable instructions executable by the processor, the processor and the memory in communication via the bus when the computer device is running, the machine readable instructions when executed by the processor performing the steps of the data invoking method as described in any of the alternative embodiments of the first aspect above.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the data recall method described in any of the alternative embodiments of the first aspect described above.
The technical scheme provided by the application comprises the following beneficial effects:
the method comprises the steps that a plurality of data calling sub-requests input by a user are combined according to the hierarchical relation of target calling data indicated by every two data calling sub-requests through a user side to obtain a data calling request, and the data calling request is sent to a server side; then the server side calls the target call data according to the call information carried in each data call sub-request and returns the call information to the user side; then, combining the target call data by the user side according to the hierarchical relationship to obtain final call data; by adopting the method, the user side can realize the calling of a plurality of data without sending the data request to the server side for a plurality of times, so that the communication load between the user side and the server side when the data is called is reduced, and the effectiveness and the efficiency when the data is called are improved.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a data calling method according to a first embodiment of the present application;
fig. 2 is a schematic structural diagram of a data calling system according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to a third embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. The components of the embodiments of the present application generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the application, as presented in the figures, is not intended to limit the scope of the application, as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present application.
Example 1
For the convenience of understanding the present application, the following describes the first embodiment of the present application in detail with reference to the flowchart of the first embodiment of the present application shown in fig. 1.
Referring to fig. 1, fig. 1 shows a flowchart of a data calling method according to an embodiment of the present application, where the data calling method is applied to a data calling system, the system includes a user side and a server side, the user side and the server side can communicate, and the method includes steps S101 to S105:
s101: the user side obtains a plurality of data calling sub-requests input by the user, wherein different data calling sub-requests indicate to obtain different target calling data, and each data calling sub-request carries a storage position, a calling program and a calling interface of the target calling data which are respectively indicated to be obtained in the server side.
Specifically, when a user needs to call a plurality of target call data, a data call sub-request corresponding to each target call data is input through a user side, each data call sub-request includes a service name identifier (indicating a storage position of the target call data in the server side), a uniform resource identifier (indicating a call interface of the target call data in the server side) and a body parameter (indicating a call program of the target call data in the server side), the service name identifier, the uniform resource identifier and the body parameter included in each data call sub-request are packaged to obtain a set of json arrays embedded in the data call sub-request corresponding to each data call sub-request, so that each data call sub-request can carry a storage position (resolving the service name identifier) of the target call data respectively indicated to be obtained, a call program (resolving the body parameter) and a call interface (resolving the uniform resource identifier).
The above analysis of body parameters includes the following steps: step one, replacing a placeholder in a body parameter with a return value; step two, replacing the reference content of the return value in the body parameter; step three, judging whether the replaced rest of contents in the body parameters refer to the current return value or not so as to determine whether multi-core parallel execution can be performed or not; and step four, if the multi-core parallel execution is possible, packaging all calling programs indicated by the body parameters after the replacement of the reference content to obtain the calling program for data call, and if the multi-core parallel execution is not possible, taking each calling program indicated by the body parameters after the replacement of the reference content as the calling program for data call.
S102: and the user terminal combines a plurality of data calling sub-requests according to the hierarchical relation of each two target calling data to obtain a data calling request and sends the data calling request to the server terminal.
Specifically, in the database of the user side, a hierarchical relationship between all data calling sub-requests available for the user to input is prestored, and the plurality of data calling sub-requests input by the user are one or more of all data calling sub-requests available for the user to input. After the user side obtains a plurality of data calling sub-requests input by the user, the user side inquires the hierarchical relation of each two target calling data from the database, and then combines the data calling sub-requests corresponding to each target calling data into a whole, namely the data calling request, according to the hierarchical relation of each two target calling data.
After the user side obtains the data call request, the data call request is integrally sent to the server side, and before sending, in order to improve the safety of data transmission, the data call request can be encrypted by using a preset encryption algorithm, and then the encrypted data call request is sent to the server side.
S103: the server traverses each data calling sub-request in the data calling requests, and invokes the target calling data indicated to be acquired by each data calling sub-request from the storage position carried in each data calling sub-request.
Specifically, after receiving the data call request, the server decrypts the encrypted data call request by using a preset decryption algorithm if the data call request is an encrypted request, and directly traverses each data call sub-request in the data call request if the data call request is not encrypted. Based on the fact that each data calling sub-request carries a group of json arrays, storage positions indicated by the json arrays in each data calling sub-request can be obtained according to the json arrays in each data calling sub-request, and then the server calls out different target calling data from different storage positions.
S104: and for the target call data indicated to be acquired by each data call sub-request, the server sends the target call data indicated to be acquired by the data call sub-request to the user side through a call interface carried in the data call sub-request by utilizing a call program carried in the data call sub-request.
Specifically, based on the fact that each data call sub-request carries a group of json arrays, a calling program and a calling interface indicated by the json arrays in each data call sub-request can be obtained according to the json arrays in each data call sub-request, and then for each data call sub-request, the server sends target call data indicated to be obtained by the data call sub-request to the user side through the calling interface indicated by the json arrays in the data call sub-request.
S105: and the user terminal combines the received target call data according to the hierarchical relationship of every two target call data to obtain target data.
Specifically, when the server sends a plurality of target call data to the user terminal, the sending sequence is not limited, so that the obtained plurality of target call data may be disordered, and when the user terminal receives the plurality of target call data, the target call data received by the user terminal are combined according to the hierarchical relationship of every two target call data in the database to obtain the target data, thereby completing the call of the data.
In addition, after step S103, that is, after the server side calls out the target call data indicated to be acquired by each data call sub-request, the method further includes: the server generates a plurality of content codes according to each target call data; the server side compiles a plurality of content codes to obtain data to be called; and the server side sends the data to be called to the user side, so that the data is called.
In one possible implementation, the hierarchical relationship is a parent-child relationship.
In a possible implementation manner, the user terminal combines a plurality of data call sub-requests to obtain a data call request according to the hierarchical relationship of each two target call data, and the method includes:
the user side obtains the hierarchical relation of every two target call data; and the user side sequentially arranges the father-level sub-requests and the son-level sub-requests in every two data calling sub-requests to obtain the data calling requests, wherein for every two data calling sub-requests, the father-level sub-request in the two data calling sub-requests is the data calling sub-request with the indicated acquired target calling data as the father-level calling data, and the son-level sub-request in the two data calling sub-requests is the data calling sub-request with the indicated acquired target calling data as the son-level calling data.
Specifically, for example, the target call data includes first data, second data and third data, the first data is target call data obtained by the first request, the second data is target call data obtained by the second request, and the third data is target call data obtained by the third call request. And if the hierarchical relationship among the first data, the second data and the third data is that the first data is a parent level of the third data and the third data is a parent level of the second data, the first request, the second request and the third request are used as data calling requests in a combination form of 'the first request-the third request-the second request'.
In a possible implementation manner, the combining, by the user side, the target call data received by the user side according to the hierarchical relationship between every two target call data to obtain target data includes:
and the user side sequentially arranges parent-level call data and child-level call data in every two received target call data to obtain the target data.
Specifically, for example, the destination call data received by the user terminal includes fourth data, fifth data and sixth data, and based on that the order of the received destination call data received by the user terminal is random (for example, the sixth data is received first, then the fifth data is received, and finally the fourth data is received), in order to obtain the destination data having a hierarchical relationship, the user terminal combines the fourth data, the fifth data and the sixth data into a form of "fourth data-fifth data-sixth data" according to the fact that the fourth data preconfigured in the database is the parent of the fifth data and the fifth data is the parent of the sixth data.
Or the user side constructs a tree diagram according to the father-level call data and the son-level call data in each two target call data received by the user side, and determines the tree diagram as the target data.
Specifically, the user side takes father-level call data in every two target call data received by the user side as father-level nodes, takes son-level call data as son-level nodes to construct a tree diagram and performs visual display, so that the user can obtain all target call data which the user wants to call, and meanwhile, the hierarchical relation between each target call data can be known more clearly.
Example two
Referring to fig. 2, fig. 2 shows a schematic structural diagram of a data call system according to a second embodiment of the present application, where the system includes a user terminal 201 and a server terminal 202, and the user terminal and the server terminal are capable of communicating with each other:
the user side is used for acquiring a plurality of data calling sub-requests input by a user, wherein different data calling sub-requests indicate to acquire different target calling data, and each data calling sub-request carries a storage position, a calling program and a calling interface of the target calling data which are respectively indicated to be acquired in the server side;
the user side is used for combining a plurality of data calling sub-requests according to the hierarchical relation of each two target calling data to obtain a data calling request and sending the data calling request to the server side;
the server side is used for traversing each data calling sub-request in the data calling requests and calling out the target calling data indicated to be acquired by each data calling sub-request from the storage position carried in each data calling sub-request;
the server side is used for sending the target call data indicated to be obtained by the data call sub-request to the user side through a call interface carried in the data call sub-request by using a call program carried in the data call sub-request;
and the user side is used for combining the received target call data according to the hierarchical relationship of each two target call data to obtain target data.
In one possible implementation, the hierarchical relationship is a parent-child relationship.
In a possible implementation manner, when the user side is configured to combine the plurality of data call sub-requests according to the hierarchical relationship of each two target call data to obtain a data call request, the method is specifically used for:
acquiring the hierarchical relation of every two target call data;
and sequentially arranging parent-level sub-requests and child-level sub-requests in every two data calling sub-requests to obtain the data calling requests, wherein for every two data calling sub-requests, the parent-level sub-requests in the two data calling sub-requests are data calling sub-requests with the indicated acquired target calling data being parent-level calling data, and the child-level sub-requests in the two data calling sub-requests are data calling sub-requests with the indicated acquired target calling data being child-level calling data.
In a possible implementation manner, when the user side is configured to combine the target call data received by the user side according to the hierarchical relationship between every two target call data to obtain target data, the method is specifically configured to:
sequentially arranging the father-level call data and the son-level call data in each two received target call data to obtain the target data;
or constructing a tree diagram according to the received parent-level call data and child-level call data in each two target call data, and determining the tree diagram as the target data.
Example III
Based on the same application concept, referring to fig. 3, fig. 3 shows a schematic structural diagram of a computer device provided in a third embodiment of the present application, where, as shown in fig. 3, a computer device 300 provided in the third embodiment of the present application includes:
a processor 301, a memory 302 and a bus 303, said memory 302 storing machine readable instructions executable by said processor 301, said processor 301 and said memory 302 communicating via said bus 303 when said computer device 300 is running, said machine readable instructions being executed by said processor 301 to perform the steps of a data recall method as described in the first embodiment above.
Example IV
Based on the same application concept, the embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of a data calling method in any of the foregoing embodiments are executed.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system and apparatus may refer to corresponding procedures in the foregoing method embodiments, which are not described herein again.
The computer program product for performing data call provided by the embodiment of the present application includes a computer readable storage medium storing program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment and will not be described herein.
The data calling system provided by the embodiment of the application can be specific hardware on the equipment or software or firmware installed on the equipment. The system provided by the embodiment of the present application has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment portion is not mentioned. It will be clear to those skilled in the art that, for convenience and brevity, the specific operation of the system, apparatus and unit described above may refer to the corresponding process in the above method embodiment, which is not described in detail herein.
In the embodiments provided herein, it should be understood that the disclosed systems and methods may be implemented in other ways. The system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions in actual implementation, and e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments provided in the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It should be noted that: like reference numerals and letters in the following figures denote like items, and thus once an item is defined in one figure, no further definition or explanation of it is required in the following figures, and furthermore, the terms "first," "second," "third," etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above examples are only specific embodiments of the present application, and are not intended to limit the scope of the present application, but it should be understood by those skilled in the art that the present application is not limited thereto, and that the present application is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the corresponding technical solutions. Are intended to be encompassed within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A data calling method, which is applied to a data calling system, wherein the system comprises a user side and a server side, the user side and the server side can communicate, and the method comprises the following steps:
the user side obtains a plurality of data calling sub-requests input by the user, wherein different data calling sub-requests indicate to obtain different target calling data, and each data calling sub-request carries a storage position, a calling program and a calling interface of the target calling data which are respectively indicated to be obtained in the server side;
the user side combines a plurality of data calling sub-requests according to the hierarchical relation of each two target calling data to obtain a data calling request and sends the data calling request to the server side;
the server traverses each data calling sub-request in the data calling requests, and invokes the target calling data indicated to be acquired by each data calling sub-request from a storage position carried in each data calling sub-request;
for the target call data indicated to be acquired by each data call sub-request, the server sends the target call data indicated to be acquired by the data call sub-request to the user side through a call interface carried in the data call sub-request by utilizing a call program carried in the data call sub-request;
and the user terminal combines the received target call data according to the hierarchical relationship of every two target call data to obtain target data.
2. The method of claim 1, wherein the hierarchical relationship is a parent-child relationship.
3. The method according to claim 2, wherein the combining, by the user side, the plurality of data call sub-requests according to the hierarchical relationship of each two target call data to obtain the data call request includes:
the user side obtains the hierarchical relation of every two target call data;
and the user side sequentially arranges the father-level sub-requests and the son-level sub-requests in every two data calling sub-requests to obtain the data calling requests, wherein for every two data calling sub-requests, the father-level sub-request in the two data calling sub-requests is the data calling sub-request with the indicated acquired target calling data as the father-level calling data, and the son-level sub-request in the two data calling sub-requests is the data calling sub-request with the indicated acquired target calling data as the son-level calling data.
4. The method of claim 2, wherein the combining the target call data received by the user terminal according to the hierarchical relationship between each two target call data to obtain target data includes:
the user side sequentially arranges father-level call data and son-level call data in every two received target call data to obtain the target data;
or the user side constructs a tree diagram according to the father-level call data and the son-level call data in each two target call data received by the user side, and determines the tree diagram as the target data.
5. The data calling system is characterized by comprising a user side and a service side, wherein the user side and the service side can communicate;
the user side is used for acquiring a plurality of data calling sub-requests input by a user, wherein different data calling sub-requests indicate to acquire different target calling data, and each data calling sub-request carries a storage position, a calling program and a calling interface of the target calling data which are respectively indicated to be acquired in the server side;
the user side is used for combining a plurality of data calling sub-requests according to the hierarchical relation of each two target calling data to obtain a data calling request and sending the data calling request to the server side;
the server side is used for traversing each data calling sub-request in the data calling requests and calling out the target calling data indicated to be acquired by each data calling sub-request from the storage position carried in each data calling sub-request;
the server side is used for sending the target call data indicated to be obtained by the data call sub-request to the user side through a call interface carried in the data call sub-request by using a call program carried in the data call sub-request;
and the user side is used for combining the received target call data according to the hierarchical relationship of each two target call data to obtain target data.
6. The system of claim 5, wherein the hierarchical relationship is a parent-child relationship.
7. The system of claim 6, wherein the client is configured to, when configured to combine the plurality of data call sub-requests according to a hierarchical relationship between each two target call data to obtain a data call request, specifically:
acquiring the hierarchical relation of every two target call data;
and sequentially arranging parent-level sub-requests and child-level sub-requests in every two data calling sub-requests to obtain the data calling requests, wherein for every two data calling sub-requests, the parent-level sub-requests in the two data calling sub-requests are data calling sub-requests with the indicated acquired target calling data being parent-level calling data, and the child-level sub-requests in the two data calling sub-requests are data calling sub-requests with the indicated acquired target calling data being child-level calling data.
8. The system of claim 6, wherein the client is configured to, when configured to combine the target call data received by the client according to the hierarchical relationship between each two target call data to obtain the target data, specifically:
sequentially arranging the father-level call data and the son-level call data in each two received target call data to obtain the target data;
or constructing a tree diagram according to the received parent-level call data and child-level call data in each two target call data, and determining the tree diagram as the target data.
9. A computer device, comprising: a processor, a memory and a bus, said memory storing machine readable instructions executable by said processor, said processor and said memory communicating via said bus when said computer device is running, said machine readable instructions when executed by said processor performing the steps of the data invoking method as claimed in any of claims 1 to 4.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the data invoking method according to any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311041397.4A CN117056102B (en) | 2023-08-17 | 2023-08-17 | Data calling method, system, computer equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311041397.4A CN117056102B (en) | 2023-08-17 | 2023-08-17 | Data calling method, system, computer equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN117056102A true CN117056102A (en) | 2023-11-14 |
CN117056102B CN117056102B (en) | 2024-04-09 |
Family
ID=88662258
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311041397.4A Active CN117056102B (en) | 2023-08-17 | 2023-08-17 | Data calling method, system, computer equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117056102B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143352A (en) * | 2019-11-28 | 2020-05-12 | 泰康保险集团股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111858496A (en) * | 2020-07-27 | 2020-10-30 | 北京大道云行科技有限公司 | Metadata retrieval method and device, storage medium and electronic equipment |
WO2021056739A1 (en) * | 2019-09-25 | 2021-04-01 | 平安科技(深圳)有限公司 | Performance analysis method, device, computer apparatus and storage medium |
CN112866177A (en) * | 2019-11-26 | 2021-05-28 | 浙江大搜车软件技术有限公司 | Method, device, storage medium and computer equipment for processing service call request |
-
2023
- 2023-08-17 CN CN202311041397.4A patent/CN117056102B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021056739A1 (en) * | 2019-09-25 | 2021-04-01 | 平安科技(深圳)有限公司 | Performance analysis method, device, computer apparatus and storage medium |
CN112866177A (en) * | 2019-11-26 | 2021-05-28 | 浙江大搜车软件技术有限公司 | Method, device, storage medium and computer equipment for processing service call request |
CN111143352A (en) * | 2019-11-28 | 2020-05-12 | 泰康保险集团股份有限公司 | Data processing method and device, electronic equipment and storage medium |
CN111858496A (en) * | 2020-07-27 | 2020-10-30 | 北京大道云行科技有限公司 | Metadata retrieval method and device, storage medium and electronic equipment |
Non-Patent Citations (1)
Title |
---|
熊耀: "RESTful Web服务在云平台下的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》, vol. 2018, no. 10 * |
Also Published As
Publication number | Publication date |
---|---|
CN117056102B (en) | 2024-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105791341B (en) | Application release processing method, device and system | |
US20200177391A1 (en) | Sending cross-chain authenticatable messages | |
US8069224B2 (en) | Method, equipment and system for resource acquisition | |
CN108173774B (en) | Client upgrading method and system | |
CN110134889B (en) | Short link generation method and device and server | |
CN108958949B (en) | Calling method and system of application program | |
CN115516840B (en) | Information processing method, device, system, medium, chip and program product | |
CN108377247B (en) | Message pushing method and device | |
CN110377440B (en) | Information processing method and device | |
CN105072139A (en) | Recommendation method and recommendation device | |
CN110795741A (en) | Method and device for carrying out security processing on data | |
CN110740464A (en) | NF service discovery method and device | |
CN114780982A (en) | Flow business circulation method, device and system | |
CN117056102B (en) | Data calling method, system, computer equipment and readable storage medium | |
CN109471713B (en) | Method and device for inquiring information | |
CN109842554B (en) | Routing method, device, equipment and storage medium of equipment service | |
CN116302602A (en) | Message transmission method and device for mixed development of router protogenesis | |
US20210216389A1 (en) | Automatic repairs via communications with peer devices across multiple networks | |
US20140047014A1 (en) | Network access system | |
CN112839108B (en) | Connection establishment method, device, equipment, data network and storage medium | |
CN112487261B (en) | Data acquisition method and device, electronic equipment and medium | |
CN110827079B (en) | Order following processing method, device and storage medium | |
CN109688204B (en) | File downloading method, node and terminal based on NDN (named data networking) | |
CN112579473A (en) | Test system, test method, computer equipment and storage medium | |
CN111818038A (en) | Network data acquisition and identification method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |