Data processing method, data processing system, electronic device and readable storage medium
By disassembling interface documents in the resource management system to obtain resource configuration information, and enabling terminals and servers to work together, the problem of increased complexity in the data processing system is solved, and efficient reuse of resource configuration information and control of application programming interfaces are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- BEIJING DIDI INFINITY TECH & DEV CO LTD
- Filing Date
- 2024-12-09
- Publication Date
- 2026-06-09
Smart Images

Figure CN122173701A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and more specifically to a data processing method, a data processing system, an electronic device, and a readable storage medium. Background Technology
[0002] With the continuous development of internet technology, data processing systems can provide users with a wide variety of resources available on the internet. However, as the types of resources continue to grow, the number of application programming interfaces (APIs) that connect to data processing systems is also increasing, making these systems increasingly complex. Summary of the Invention
[0003] In view of this, embodiments of the present invention provide a data processing method, a data processing system, an electronic device, and a readable storage medium to improve the reuse rate of resource configuration information, reduce the growth rate of application programming interfaces, and thus limit the complexity of the data processing system.
[0004] In a first aspect, embodiments of the present invention provide a data processing method applicable to a terminal, the method comprising:
[0005] The corresponding resource query method is determined based on the resource query request for the target resource;
[0006] The configuration acquisition request is determined based on the first type of parameters carried in the resource query method, wherein the first type of parameters includes the resource identifier and resource type of the target resource;
[0007] Send the configuration retrieval request to the server;
[0008] The server receives the target resource configuration information corresponding to the configuration acquisition request sent by the server. The target resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource.
[0009] The target resource configuration information is executed to obtain the corresponding first execution result, which includes the target resource.
[0010] Secondly, embodiments of the present invention provide a data processing method applicable to a server, the method comprising:
[0011] In response to receiving a configuration retrieval request sent by the terminal, the first type of parameters carried in the configuration retrieval request are obtained, the first type of parameters including the resource identifier and resource type of the target resource;
[0012] According to the first type of parameters, the resource management system queries the target resource configuration information corresponding to the configuration acquisition request. The target resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource. The resource management system stores resource configuration information of multiple resources, and the resource configuration information is obtained by decomposing the interface document.
[0013] Send the target resource configuration information to the terminal.
[0014] Thirdly, embodiments of the present invention provide a data processing method, the method comprising:
[0015] The corresponding resource query method is determined based on the resource query request for the target resource;
[0016] The configuration acquisition request is determined based on the first type of parameters carried in the resource query method, wherein the first type of parameters includes the resource identifier and resource type of the target resource;
[0017] Send the configuration retrieval request to the server;
[0018] In response to receiving a configuration retrieval request from a terminal, the first type of parameters carried in the configuration retrieval request are retrieved;
[0019] Based on the first type of parameters, query the target resource configuration information corresponding to the configuration acquisition request in the resource management system. The target resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource.
[0020] Send the target resource configuration information to the terminal;
[0021] Receive the target resource configuration information corresponding to the configuration acquisition request sent by the server;
[0022] The resource configuration information is executed to obtain the corresponding first execution result, which includes the target resource.
[0023] Fourthly, embodiments of the present invention provide a data processing system, the system comprising:
[0024] The resource management system is configured to manage the resource configuration information of multiple resources, and the resource configuration information is obtained by decomposing the interface document.
[0025] A terminal is configured to determine a corresponding resource query method based on a resource query request for a target resource, determine a configuration acquisition request based on a first type of parameters carried in the resource query method (the first type of parameters including the resource identifier and resource type of the target resource), send the configuration acquisition request to a server, receive resource configuration information corresponding to the configuration acquisition request sent by the server (the resource configuration information including first configuration information, which is the interface configuration information corresponding to the target resource), execute the resource configuration information, and obtain a corresponding first execution result, the first execution result including the target resource; and
[0026] The server is configured to respond to a configuration retrieval request sent by a terminal, retrieve a first type of parameter carried in the configuration retrieval request, query the resource configuration information corresponding to the configuration retrieval request in the resource management system according to the first type of parameter, the resource configuration information including first configuration information, and send the resource configuration information to the terminal.
[0027] Fifthly, embodiments of the present invention provide a data processing apparatus suitable for a terminal, the apparatus comprising:
[0028] The method determination unit is used to determine the corresponding resource query method based on the resource query request for the target resource;
[0029] The request determination unit is used to determine the configuration acquisition request based on the first type of parameters carried in the resource query method, wherein the first type of parameters includes the resource identifier and resource type of the target resource;
[0030] A request sending unit is used to send the configuration acquisition request to the server;
[0031] An information receiving unit is used to receive resource configuration information corresponding to the configuration acquisition request sent by the server. The resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource.
[0032] The configuration execution unit is used to execute the resource configuration information and obtain the corresponding first execution result, wherein the first execution result includes the target resource.
[0033] Sixthly, embodiments of the present invention provide a data processing apparatus suitable for a server, the apparatus comprising:
[0034] The request receiving unit is configured to, in response to receiving a configuration acquisition request sent by the terminal, acquire a first type of parameter carried in the configuration acquisition request, wherein the first type of parameter includes the resource identifier and resource type of the target resource;
[0035] An information query unit is used to query the resource configuration information corresponding to the configuration acquisition request in the resource management system according to the first type of parameters. The resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource.
[0036] The information sending unit is used to send the resource configuration information to the terminal.
[0037] In a seventh aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the method as described in any one of the first to third aspects.
[0038] Eighthly, embodiments of the present invention provide an electronic device including a memory and a processor, the memory being used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of the first to third aspects.
[0039] In a ninth aspect, embodiments of the present invention provide a computer program product including a computer program / instructions that are executed by a processor to implement the method as described in any one of the first to third aspects.
[0040] In this embodiment of the invention, after determining the resource query method corresponding to the resource query request, the terminal determines and sends a configuration acquisition request to the server based on the parameters carried in the resource query method. The server queries resource configuration information in the resource management system based on the parameters and returns the resource configuration information to the terminal, enabling the terminal to execute the received resource configuration information and obtain a first execution result including the target resource. In this embodiment of the invention, the resource configuration information in the resource management system is obtained by decomposing the interface document. Therefore, the first execution result of the resource can be obtained based on the parameters carried in the resource query method, including the resource identifier and resource type. This improves the reusability of resource configuration information, reduces the growth rate of the application programming interface, and thus limits the complexity of the data processing system. Attached Figure Description
[0041] The above and other objects, features and advantages of the present invention will become clearer from the following description of embodiments of the invention with reference to the accompanying drawings, in which:
[0042] Figure 1 This is a schematic diagram of the system architecture according to an embodiment of the present invention;
[0043] Figure 2 This is an interactive schematic diagram of an embodiment of the present invention;
[0044] Figure 3This is a flowchart of the data processing method according to an embodiment of the present invention;
[0045] Figure 4 This is a schematic diagram illustrating the configuration of a form page according to an embodiment of the present invention;
[0046] Figure 5 This is a flowchart of the data processing method of this invention on the terminal side;
[0047] Figure 6 This is a flowchart of the data processing method of this invention on the terminal side;
[0048] Figure 7 This is a schematic diagram of a data processing device according to an embodiment of the present invention;
[0049] Figure 8 This is a schematic diagram of a data processing device according to an embodiment of the present invention;
[0050] Figure 9 This is a schematic diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0051] The present application is described below based on embodiments, but it is not limited to these embodiments. In the detailed description of the present application below, certain specific details are described in detail. Those skilled in the art can fully understand the present application without these details. To avoid obscuring the substance of the present application, well-known methods, processes, flows, elements, and circuits are not described in detail.
[0052] Furthermore, those skilled in the art should understand that the accompanying drawings provided herein are for illustrative purposes only and are not necessarily drawn to scale.
[0053] Unless the context explicitly requires it, words such as "including" or "contains" throughout the application should be interpreted as including rather than exclusive or exhaustive; that is, meaning "including but not limited to".
[0054] In the description of this application, it should be understood that the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0055] The solutions described in this specification and embodiments, if involving the processing of personal information, will be processed only under the premise of having a legal basis (such as obtaining the consent of the personal information subject, or being necessary for the performance of a contract), and will only be processed within the scope stipulated or agreed upon. A user's refusal to process personal information beyond what is necessary for basic functions will not affect the user's use of basic functions.
[0056] With the continuous development of internet technology, data processing systems can provide users with a wide variety of resources available online. Taking a ride-hailing platform's data processing system as an example, users can query order data through the ride-hailing application. However, as the types of services increase, so do the types of resources. For example, order data can be further divided into paid orders, unpaid orders, canceled orders, dedicated vehicle orders, and carpooling orders. This leads to a continuous increase in the number of application programming interfaces (APIs) accessing the data processing system, further increasing its complexity. The complexity of a data processing system affects data response speed and the complexity of its management and maintenance; therefore, mitigating the complexity of data processing systems is essential.
[0057] The embodiments of the present invention are mainly described using the data processing system of a ride-hailing platform as an example. It should be understood that the embodiments are not limited thereto. Existing data processing systems that can support the corresponding functions or data processing systems that can support the corresponding functions with future technological development are all within the protection scope of the embodiments of the present invention.
[0058] To address the aforementioned issues, embodiments of the present invention propose a data processing method, a data processing system, an electronic device, and a readable storage medium to improve the reuse rate of resource configuration information and reduce the growth rate of application programming interfaces, thereby limiting the complexity of the data processing system.
[0059] Figure 1 This is a schematic diagram of the system architecture according to an embodiment of the present invention. Figure 1 The system architecture shown includes a terminal 11, a server 12, and a resource management system 13.
[0060] In this embodiment of the invention, terminal 11 is a user terminal, which can be a smart terminal, such as a laptop computer, tablet computer, smart wearable device (including smartwatch, smart helmet, etc.), smartphone, smart TV, in-vehicle computer, etc.
[0061] The server 12 in this embodiment of the invention can be a single server or a server group. The server group can be centralized or distributed. In some embodiments, the server 12 can access information and / or data stored in the terminal 11, the resource management system 13, the database, or any combination thereof via a network; in other embodiments, the server 12 can be implemented on a cloud platform, such as a private cloud, public cloud, hybrid cloud, community cloud, inter-cloud, multi-cloud, or any combination thereof.
[0062] The resource management system 13 in this embodiment of the invention can be a database management system (DMS) or other management systems that can achieve similar functions. It is mainly used to store and manage the resource configuration information of various resources, such as performing operations such as adding, deleting, modifying and querying the configuration resource information.
[0063] Figure 2 This is an interactive schematic diagram of an embodiment of the present invention. For example... Figure 2 As shown, in this embodiment, the resource manager 20 can upload an API (Application Programming Interface) document 22, i.e., an interface document, to the resource management system 13 through a resource management device (not shown in the figure). After receiving the API document 22, the resource management module 131 of the resource management system 13 can decompose the API document 22 to obtain the resource configuration information of the target resource.
[0064] Specifically, after inputting the API document 22, the resource management module 131 can read various parameters in the interface document and identify the execution parameters required when executing the API, including the API's corresponding pre-dependency parameters, request method, request parameters, response format, Uniform Resource Identifier (URL), authorization information, content type, such as JSON (JavaScript Object Notation), XML (Extensible Markup Language), and error handling, i.e. how to respond when encountering errors, as the API's configuration information, i.e., interface configuration information. Then, it can identify the API's output parameter parsing path (used to parse the output parameters into corresponding files, paths, names or extensions, and output inline variables that can be used as output names in other tools), conversion script, data type, and other information as the field configuration information, i.e., field configuration information. Finally, it can store the interface configuration information and field configuration information in the resource storage module 132 of the resource management system 13.
[0065] Depending on actual needs, the resource management module 131 can extract resource configuration information from the API document 22 in various ways, such as using programming languages like Python, Java, JavaScript, or DSL (Domain-specific Language) to write scripts for extracting resource configuration information from the interface document; using Extract Transform Load (ETL) tools like Talend, Apache Nifi, or Pentaho to extract resource configuration information from the API document 22; or using data stream processing frameworks like Apache Kafka or Apache Flink to extract resource configuration information from the API document 22. This embodiment does not impose any limitations.
[0066] Therefore, in this embodiment of the invention, the user system 21 can integrate a software development kit (SDK) into the client of terminal 11, so that the client of terminal 11 can determine the corresponding resource query method according to the resource query request for the target resource received by terminal 11, and determine the configuration acquisition request 23 according to the first type of parameters carried in the resource query method, wherein the first type of parameters includes the resource identifier and resource type of the target resource, and then send the configuration acquisition request 23 to server 12. After receiving the configuration acquisition request for the target resource, server 12 can obtain the first type of parameters carried in the configuration acquisition request, and query the target resource configuration information 24 corresponding to the configuration acquisition request 23 in the resource management system 13, specifically the resource storage module 132, according to the first type of parameters. The target resource configuration information 24 includes the configuration information of the application programming interface (API) corresponding to the target resource (hereinafter also known as the interface configuration information), i.e., the first configuration information, and then send the target resource configuration information 24 to terminal 11. After receiving the target resource configuration information 24, terminal 11 executes the target resource configuration information 24 and obtains the corresponding first execution result 25, wherein the first execution result 25 includes the target resource.
[0067] In this embodiment of the invention, after determining the resource query method corresponding to the resource query request, the terminal determines and sends a configuration acquisition request to the server based on the parameters carried in the resource query method. The server queries resource configuration information in the resource management system based on the parameters and returns the resource configuration information to the terminal, enabling the terminal to execute the received resource configuration information and obtain a first execution result including the target resource. In this embodiment of the invention, the resource configuration information in the resource management system is obtained by decomposing the interface document. Therefore, the first execution result of the resource can be obtained based on the parameters carried in the resource query method, including the resource identifier and resource type. This improves the reusability of resource configuration information, reduces the growth rate of the application programming interface, and thus limits the complexity of the data processing system.
[0068] The following describes the method through examples. Figure 3 This is a flowchart of a data processing method according to an embodiment of the present invention. Figure 3 As shown, the method in this embodiment includes the following steps:
[0069] Step S100: Determine the corresponding resource query method based on the resource query request for the target resource.
[0070] In practical applications, software development kits are integrated into the client of the terminal so that the client can implement specific functions or services by calling the interfaces provided by the software development kit. Therefore, in this step, when the user control terminal performs a resource query operation, the client can receive the resource query request and determine the resource query method corresponding to the resource query request.
[0071] For example, the software development kit provides methods for "pay," which are used to handle payment requests. When a user initiates a payment request through the application, the client determines from the software development kit that the method corresponding to the payment request is the "pay" method.
[0072] Step S200: Determine the configuration acquisition request based on the first type of parameters carried in the resource query method.
[0073] After determining the resource query method corresponding to the resource query request for the target resource, the client will pass the first type of parameters carried in the resource query request to the software development kit. Therefore, in this step, the software development kit can call the resource query method and determine the configuration acquisition request based on the first type of parameters carried in the resource query method.
[0074] In this embodiment, the first type of parameters may include the resource identifier and resource type of the target resource. The resource identifier can be a unique identifier for the resource in the data processing system, such as ride order details (including specified parameters in the order details), historical ride orders, etc. The resource type can be an application programming interface (API) or a dynamic field, where a dynamic field is a field dynamically generated based on the results returned by the API call, the data processing protocol (such as Groovy scripts or DSL), and the first type of parameters.
[0075] Depending on actual needs, the first type of parameters may also include other parameters, such as the request method for resource query requests, such as get, post, put, delete, etc., and the parameter type of the first type of parameters, such as query parameters, form parameters, JSON parameters, etc. This embodiment does not impose any restrictions.
[0076] Optionally, the terminal can perform a validity check on the first type of parameters, such as whether the first type of parameters are missing or whether the first type of parameters are genuine. After the first type of parameters pass the validity check, the terminal can determine the configuration acquisition request based on the first type of parameters.
[0077] Step S300: Send a configuration retrieval request to the server.
[0078] After determining the configuration retrieval request, the terminal can send the configuration retrieval request to the server through various existing communication protocols, such as HTTP (Hypertext Transfer Protocol).
[0079] Step S400: In response to receiving a configuration retrieval request from the terminal, the first type of parameters carried in the configuration retrieval request are retrieved.
[0080] After receiving the configuration retrieval request from the client, in this step, the server can parse the configuration retrieval request and extract the first type of parameters carried in the configuration retrieval request.
[0081] Step S500: Based on the first type of parameters, query the configuration in the resource management system to obtain the target resource configuration information corresponding to the request.
[0082] In this step, the server can query the resource management system based on the first type of parameters to obtain the resource configuration information of the target resource corresponding to the request. In this embodiment, the target resource configuration information may at least include the first configuration information, that is, the interface configuration information corresponding to the target resource.
[0083] If the target resource's resource type is an application programming interface (API), the server can query the interface configuration information in the resource management system based on the target resource's resource identifier and resource type. If the target resource's resource type is a dynamic field, the server can query the corresponding field configuration information, i.e., the second configuration information, in the resource management system based on the target resource's resource identifier. The second field information includes the target resource's source information and the resource identifier associated with the dynamic resource. If the target resource's source information indicates that the source of the target resource is an application programming interface, the server can query the first configuration information in the resource management system based on the resource identifier.
[0084] In practical applications, the execution of resource configuration information often requires meeting conditions related to software, hardware, network, and security. The terminal needs to execute corresponding prerequisite parameters to satisfy these conditions. Therefore, in this embodiment, the first configuration information may also include the prerequisite parameters corresponding to the interface configuration information. The server can query the field configuration information of each prerequisite parameter in the resource management system, i.e., the third configuration information, based on the first and third configuration information, and determine the target resource configuration information accordingly.
[0085] Optionally, after extracting the first type of parameters, the server may also perform a validity check on the first type of parameters, and after the first type of parameters passes the validity check, query the configuration in the resource management system to obtain the target resource configuration information corresponding to the request based on the first type of parameters.
[0086] Step S600: Send target resource configuration information to the terminal.
[0087] In this step, the server can send target resource configuration information to the client through a predefined communication protocol.
[0088] Step S700: Receive the target resource configuration information corresponding to the configuration acquisition request sent by the server.
[0089] In this step, the client can invoke the software development kit to receive the target resource configuration information sent by the server through a predetermined communication protocol.
[0090] Step S800: Execute the target resource configuration information and obtain the corresponding first execution result.
[0091] In this step, the client can invoke the software development kit (SDK) to execute the target resource configuration information in the existing manner, thereby obtaining the first execution result, including the target resource. After obtaining the first execution result, the SSD will return the result to the client, allowing the user to view the target resource through the client.
[0092] Specifically, the client can invoke the software development kit (SDK) to obtain the second type of parameters carried in the resource query request, generate context information based on the second type of parameters, and then execute the target resource configuration information according to the context information to obtain the first execution result. The second type of parameters are the query parameters in the resource query request. For example, if the target resource is the order details of a ride-hailing order, the query parameter could be the order identifier of that ride-hailing order; if the target resource is a historical ride-hailing order, the query parameter could be the account identifier corresponding to the historical ride-hailing order, the user's contact number, etc.
[0093] Optionally, the client can verify the target resource configuration information, including circular dependency verification between the first configuration information, the second configuration information and the third configuration information, as well as the correctness verification of the first configuration information, the second configuration information and the third configuration information. If the first configuration information, the second configuration information and the third configuration information pass the circular dependency verification, it means that the execution of the third configuration information does not depend on the execution result of the first configuration information and / or the second configuration information. Therefore, after the first configuration information and the third configuration information pass the circular dependency verification and the first configuration information and the third configuration information pass the correctness verification, the client can call the software development kit to generate context information.
[0094] Optionally, if the target resource configuration information includes third configuration information, the client can also call the software development kit to execute the third configuration information and execute the first configuration information based on the execution result of the third configuration information.
[0095] In one possible scenario, if the acquisition of the target resource also depends on the response results of other application programming interfaces (APIs), the client can also call the software development kit (SDK) to determine the interface type of the API that the target resource depends on based on the target resource configuration information, and determine the corresponding interface request for the target resource, i.e., the API request, based on the interface type. Then, the client sends an API request to the target interface based on the interface type. After receiving the response result returned by the target interface, the client executes the target resource configuration information based on the response result of the target interface to obtain the first execution result.
[0096] Figure 4 This is a schematic diagram illustrating the configuration of a form page according to an embodiment of the present invention. For example... Figure 4As shown, resource management provider 40 can send API documentation to resource management system 41. Resource management system 41 can register APIs based on the API documentation, configure API execution parameters based on resource identifiers, and then configure parameter parsing paths and conversion scripts as Field configuration information based on API identifiers. The Field identifier and API execution parameters are then used as the API configuration information. Optionally, resource management system 41 can also send Field configuration information to resource server 42 so that resource server 42 can cache the Field configuration information. Resource management system 41 can also send Field configuration information to form management system 44. Form server 43 in the data processing system uses the form identifier and initialization parameters of the target form (i.e., the target resource) in the configuration retrieval request sent by resource SDK 45 as input parameters for the form rendering module, and sends the Field identifier of the target form to the form design module of form management system 44. Form design module of form management system 44 designs the form based on the Field identifier of the target form, binds the form model placeholder to the Field identifier, obtains the form model, and then returns the form model to the form rendering module of form server 43. The form rendering module takes the Field identifier 401 and initialization parameters as input to the resource configuration acquisition module of resource SDK 45. The resource configuration acquisition module retrieves the Field configuration information 402 and the dependent API configuration information 403 from resource server 42 based on the Field identifier as the target resource configuration information, and sends these two sets of information to the configuration execution module. After executing the target resource configuration information, the configuration execution module returns the Field key-value pairs to the form rendering module of form server 43 for processing. Thus, the form rendering module returns the first execution result, including the Field key-value pairs of the target form, to client 46.
[0097] In this embodiment of the invention, the server only needs to define the pre-dependency parameters, URLs, and other information of the application programming interface for each resource. The server can then obtain the corresponding resource configuration information based on the resource identifier and resource type of the target resource provided by the terminal, so that the terminal can obtain the execution result by executing the resource configuration information.
[0098] In one alternative implementation, this embodiment may further include the following steps:
[0099] Step S900: Send the interface document to the resource management system.
[0100] In this embodiment, the user can act as both a resource user and a resource manager. Therefore, in one optional implementation of this embodiment, the user can send an interface document to the resource management system via a terminal, so that the resource management system, upon receiving the interface document, can decompose the interface document to determine the resource configuration information and manage the resource configuration information.
[0101] In this embodiment of the invention, after determining the resource query method corresponding to the resource query request, the terminal determines and sends a configuration acquisition request to the server based on the parameters carried in the resource query method. The server queries resource configuration information in the resource management system based on the parameters and returns the resource configuration information to the terminal, enabling the terminal to execute the received resource configuration information and obtain a first execution result including the target resource. In this embodiment of the invention, the resource configuration information in the resource management system is obtained by decomposing the interface document. Therefore, the first execution result of the resource can be obtained based on the parameters carried in the resource query method, including the resource identifier and resource type. This improves the reusability of resource configuration information, reduces the growth rate of the application programming interface, and thus limits the complexity of the data processing system.
[0102] Figure 5 This is a flowchart of the data processing method on the terminal side according to an embodiment of the present invention. For example... Figure 5 As shown, the method in this embodiment includes the following steps on the terminal side:
[0103] Step S100: Determine the corresponding resource query method based on the resource query request for the target resource.
[0104] Step S200: Determine the configuration acquisition request based on the first type of parameters carried in the resource query method.
[0105] Step S300: Send a configuration retrieval request to the server.
[0106] Step S700: Receive the target resource configuration information corresponding to the configuration acquisition request sent by the server.
[0107] Step S800: Execute the target resource configuration information and obtain the corresponding first execution result.
[0108] In this embodiment of the invention, after determining the resource query method corresponding to the resource query request, the terminal determines and sends a configuration acquisition request to the server based on the parameters carried in the resource query method, and then executes the resource configuration information sent by the server to obtain a first execution result including the target resource. In this embodiment of the invention, the resource configuration information in the resource management system is obtained by decomposing the interface document. Therefore, the first execution result of the resource can be obtained based on the parameters carried in the resource query method, including the resource identifier and resource type, thereby improving the reuse rate of resource configuration information, reducing the growth rate of the application programming interface, and limiting the complexity of the data processing system.
[0109] Figure 6 This is a flowchart of the data processing method on the terminal side according to an embodiment of the present invention. For example... Figure 6 As shown, the method in this embodiment includes the following steps on the terminal side:
[0110] Step S400: In response to receiving a configuration retrieval request from the terminal, the first type of parameters carried in the configuration retrieval request are retrieved.
[0111] Step S500: Based on the first type of parameters, query the configuration in the resource management system to obtain the target resource configuration information corresponding to the request.
[0112] Step S600: Send target resource configuration information to the terminal.
[0113] In this embodiment of the invention, after receiving a configuration retrieval request from a terminal, the server queries resource configuration information in the resource management system based on parameters carried in the request, including the resource identifier and resource type of the target resource. The server then returns this resource configuration information to the terminal, enabling the terminal to execute the received resource configuration information and obtain a first execution result, including the target resource. In this embodiment, the resource configuration information in the resource management system is obtained by decomposing the interface documentation. Therefore, the first execution result of the resource can be obtained based on the parameters carried in the resource query method, including the resource identifier and resource type. This improves the reusability of resource configuration information, reduces the growth rate of the application programming interface, and thus limits the complexity of the data processing system.
[0114] Figure 7 This is a schematic diagram of a data processing device according to an embodiment of the present invention, applicable to a terminal. Figure 7 As shown, the data processing apparatus of this embodiment includes a method determination unit 701, a request determination unit 702, a request sending unit 703, an information receiving unit 704, and a configuration execution unit 705.
[0115] The method determination unit 701 is used to determine the corresponding resource query method based on the resource query request for the target resource; the request determination unit 702 is used to determine the configuration acquisition request based on the first type of parameters carried in the resource query method, the first type of parameters including the resource identifier and resource type of the target resource; the request sending unit 703 is used to send the configuration acquisition request to the server; the information receiving unit 704 is used to receive the resource configuration information corresponding to the configuration acquisition request sent by the server, the resource configuration information including first configuration information, the first configuration information being the interface configuration information corresponding to the target resource; and the configuration execution unit 705 is used to execute the resource configuration information and obtain the corresponding first execution result, the first execution result including the target resource.
[0116] In this embodiment of the invention, after determining the resource query method corresponding to the resource query request, the terminal determines and sends a configuration acquisition request to the server based on the parameters carried in the resource query method, and then executes the resource configuration information sent by the server to obtain a first execution result including the target resource. In this embodiment of the invention, the resource configuration information in the resource management system is obtained by decomposing the interface document. Therefore, the first execution result of the resource can be obtained based on the parameters carried in the resource query method, including the resource identifier and resource type, thereby improving the reuse rate of resource configuration information, reducing the growth rate of the application programming interface, and limiting the complexity of the data processing system.
[0117] Figure 8 This is a schematic diagram of a data processing apparatus according to an embodiment of the present invention, applicable to a server. Figure 8 As shown, the data processing device in this embodiment includes a request receiving unit 801, an information querying unit 802, and an information sending unit 803.
[0118] The request receiving unit 801 is configured to, in response to receiving a configuration acquisition request sent by a terminal, acquire a first type of parameter carried in the configuration acquisition request, the first type of parameter including the resource identifier and resource type of the target resource; the information query unit 802 is configured to query the resource configuration information corresponding to the configuration acquisition request in the resource management system according to the first type of parameter, the resource configuration information including first configuration information, the first configuration information being the interface configuration information corresponding to the target resource; and the information sending unit 803 is configured to send the resource configuration information to the terminal.
[0119] In this embodiment of the invention, after receiving a configuration retrieval request from a terminal, the server queries resource configuration information in the resource management system based on parameters carried in the request, including the resource identifier and resource type of the target resource. The server then returns this resource configuration information to the terminal, enabling the terminal to execute the received resource configuration information and obtain a first execution result, including the target resource. In this embodiment, the resource configuration information in the resource management system is obtained by decomposing the interface documentation. Therefore, the first execution result of the resource can be obtained based on the parameters carried in the resource query method, including the resource identifier and resource type. This improves the reusability of resource configuration information, reduces the growth rate of the application programming interface, and thus limits the complexity of the data processing system.
[0120] Figure 9 This is a schematic diagram of an electronic device according to an embodiment of the present invention. (For example...) Figure 9 As shown, electronic device 9 is a general-purpose data processing device, which includes a general-purpose computer hardware structure, including at least a processor 901 and a memory 902. The processor 901 and memory 902 are connected via a bus 903. The memory 902 is adapted to store instructions or programs executable by the processor 901. The processor 901 can be a standalone microprocessor or a collection of one or more microprocessors. Thus, the processor 901 executes the instructions stored in the memory 902, thereby performing the method flow of the embodiments of the present invention as described above to process data and control other devices. The bus 903 connects the aforementioned components together, and also connects the aforementioned components to a display controller 904, a display device, and an input / output (I / O) device 905. The input / output (I / O) device 905 can be a mouse, keyboard, modem, network interface, touch input device, motion-sensing input device, printer, and other devices known in the art. Typically, the input / output device 905 is connected to the system via an input / output (I / O) controller 906.
[0121] Those skilled in the art will understand that embodiments of this application can be provided as methods, apparatus (devices), or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0122] This application is described with reference to flowchart illustrations of methods, apparatus (devices), and computer program products according to embodiments of this application. It should be understood that each step in the flowchart can be implemented by computer program instructions.
[0123] These computer program instructions may be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction means, the implementation process of which is described in the instruction means. Figure 1 The function specified in one or more processes.
[0124] These computer program instructions may also be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, produce instructions for implementing processes. Figure 1 A device for a function specified in one or more processes.
[0125] Another embodiment of the present invention relates to a non-volatile storage medium for storing a computer-readable program for use by a computer to execute some or all of the above-described method embodiments.
[0126] That is, those skilled in the art will understand that all or part of the steps in the methods of the above embodiments can be implemented by a program specifying the relevant hardware. This program is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0127] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. For those skilled in the art, the present invention can be modified and varied in various ways. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principle of the present invention should be included within the scope of protection of the present invention.
Claims
1. A data processing method, applicable to a terminal, characterized in that, The method includes: The corresponding resource query method is determined based on the resource query request for the target resource; The configuration acquisition request is determined based on the first type of parameters carried in the resource query method, wherein the first type of parameters includes the resource identifier and resource type of the target resource; Send the configuration retrieval request to the server; The server receives the target resource configuration information corresponding to the configuration acquisition request sent by the server. The target resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource. The target resource configuration information is executed to obtain the corresponding first execution result, which includes the target resource.
2. The method according to claim 1, characterized in that, The step of executing the target resource configuration information and obtaining the corresponding first execution result includes: Context information is generated based on the second type of parameters carried in the resource query request; The target resource configuration information is executed based on the context information to obtain the first execution result.
3. The method according to claim 1, characterized in that, The target resource configuration information also includes third configuration information, which is the field configuration information of the target resource's prerequisite dependency parameters; The step of executing the target resource configuration information and obtaining the corresponding first execution result includes: Execute the third configuration information; The first configuration information is executed based on the second execution result of the third configuration information.
4. The method according to claim 1, characterized in that, The step of executing the target resource configuration information and obtaining the corresponding first execution result includes: The interface type of the application programming interface that the target resource depends on is determined based on the target resource configuration information; Determine the interface request corresponding to the target resource based on the interface type; Send the interface request to the target interface according to the interface type; Receive the response result returned by the target interface; Based on the response result, the target resource configuration information is executed to obtain the first execution result.
5. The method according to claim 1, characterized in that, The method further includes: Send an interface document to the resource management system so that the resource management system can decompose the interface document, determine the resource configuration information, and manage the resource configuration information.
6. A data processing method, applicable to a server, characterized in that, The method includes: In response to receiving a configuration retrieval request sent by the terminal, the first type of parameters carried in the configuration retrieval request are obtained, the first type of parameters including the resource identifier and resource type of the target resource; According to the first type of parameters, the resource management system queries the target resource configuration information corresponding to the configuration acquisition request. The target resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource. The resource management system stores resource configuration information of multiple resources, and the resource configuration information is obtained by decomposing the interface document. Send the target resource configuration information to the terminal.
7. The method according to claim 6, characterized in that, The step of querying the target resource configuration information corresponding to the configuration acquisition request in the resource management system based on the first type of parameters includes: In response to the resource type being an application programming interface, the first configuration information is queried in the resource management system based on the resource identifier and the resource type.
8. The method according to claim 6, characterized in that, The step of querying the target resource configuration information corresponding to the configuration acquisition request in the resource management system based on the first type of parameters includes: In response to the resource type being a dynamic field, a second configuration information is queried in the resource management system based on the resource identifier. The second configuration information is the field configuration information corresponding to the target resource, and includes the source information of the target resource and the resource identifier associated with the dynamic field. In response to the source information indicating that the source of the target resource is an application programming interface, the first configuration information is queried in the resource management system based on the resource identifier.
9. The method according to claim 7 or 8, characterized in that, The target resource configuration information also includes third configuration information, which is the field configuration information of the target resource's prerequisite dependency parameters; The step of querying the target resource configuration information corresponding to the configuration acquisition request in the resource management system based on the first type of parameters includes: In response to the first configuration information including the prerequisite dependency parameters corresponding to the target resource, the corresponding third configuration information is queried in the resource management system.
10. A data processing method, characterized in that, The method includes: The corresponding resource query method is determined based on the resource query request for the target resource; The configuration acquisition request is determined based on the first type of parameters carried in the resource query method, wherein the first type of parameters includes the resource identifier and resource type of the target resource; Send the configuration retrieval request to the server; In response to receiving a configuration retrieval request from a terminal, the first type of parameters carried in the configuration retrieval request are retrieved; Based on the first type of parameters, query the target resource configuration information corresponding to the configuration acquisition request in the resource management system. The target resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource. Send the target resource configuration information to the terminal; Receive the target resource configuration information corresponding to the configuration acquisition request sent by the server; The resource configuration information is executed to obtain the corresponding first execution result, which includes the target resource.
11. A data processing system, characterized in that, The system includes: The resource management system is configured to manage the resource configuration information of multiple resources, and the resource configuration information is obtained by decomposing the interface document. A terminal is configured to determine a corresponding resource query method based on a resource query request for a target resource, determine a configuration acquisition request based on a first type of parameters carried in the resource query method (the first type of parameters including the resource identifier and resource type of the target resource), send the configuration acquisition request to a server, receive resource configuration information corresponding to the configuration acquisition request sent by the server (the resource configuration information including first configuration information, which is the interface configuration information corresponding to the target resource), execute the resource configuration information, and obtain a corresponding first execution result, the first execution result including the target resource; and The server is configured to respond to a configuration retrieval request sent by a terminal, retrieve a first type of parameter carried in the configuration retrieval request, query the resource configuration information corresponding to the configuration retrieval request in the resource management system according to the first type of parameter, the resource configuration information including first configuration information, and send the resource configuration information to the terminal.
12. A data processing apparatus, suitable for a terminal, characterized in that, The device includes: The method determination unit is used to determine the corresponding resource query method based on the resource query request for the target resource; The request determination unit is used to determine the configuration acquisition request based on the first type of parameters carried in the resource query method, wherein the first type of parameters includes the resource identifier and resource type of the target resource; A request sending unit is used to send the configuration acquisition request to the server; An information receiving unit is used to receive resource configuration information corresponding to the configuration acquisition request sent by the server. The resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource. The configuration execution unit is used to execute the resource configuration information and obtain the corresponding first execution result, wherein the first execution result includes the target resource.
13. A data processing apparatus, suitable for a server, characterized in that, The device includes: The request receiving unit is configured to, in response to receiving a configuration acquisition request sent by the terminal, acquire a first type of parameter carried in the configuration acquisition request, wherein the first type of parameter includes the resource identifier and resource type of the target resource; An information query unit is used to query the resource configuration information corresponding to the configuration acquisition request in the resource management system according to the first type of parameters. The resource configuration information includes first configuration information, which is the interface configuration information corresponding to the target resource. The information sending unit is used to send the resource configuration information to the terminal.
14. A computer-readable storage medium storing computer program instructions thereon, characterized in that, The computer program instructions, when executed by a processor, implement the method as described in any one of claims 1-10.
15. An electronic device comprising a memory and a processor, characterized in that, The memory is used to store one or more computer program instructions, wherein the one or more computer program instructions are executed by the processor to implement the method as described in any one of claims 1-10.
16. A computer program product comprising a computer program / instructions, characterized in that, The computer program / instructions are executed by the processor to implement the method as described in any one of claims 1-10.