Data processing method and device, server and storage medium

By carrying a unified service name and resource name in the operation request, the server directly determines the processing function, solving the problem of high maintenance costs in the Restful architecture, simplifying API calls and reducing development costs.

CN115714818BActive Publication Date: 2025-10-10BEIJING XIAOMI MOBILE SOFTWARE CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110962912.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-20
Publication Date
2025-10-10
Estimated Expiration
2041-08-20

AI Technical Summary

Technical Problem

The existing RESTful architecture has high maintenance costs. The client needs to learn URLs with different parameter organization formats, and the server needs to write multiple controllers for parameter parsing and function calls, resulting in high development and maintenance costs.

Method used

The operation request carries a unified service name and resource name. The server determines the processing function based on these names, simplifies it into a combination of function names, and directly calls the corresponding processing function, avoiding the controller from parsing URL parameters.

Benefits of technology

It reduces the learning cost of the client and the development and maintenance cost of the server, improves the usability of the API, and simplifies the processing flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115714818B_ABST
    Figure CN115714818B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data processing method and device, a server and a storage medium. The method comprises: receiving an operation request for a network resource, and parsing a service name and a resource name carried in the operation request; wherein the service name represents a processing mode of the network resource, and the resource name represents a predetermined manner of obtaining the network resource; determining a processing function for responding to the operation request according to the service name and the resource name; executing the processing function and feeding back an execution result. Through the method, the development and maintenance costs can be effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of network communication, and particularly relates to a data processing method and device, a server and a storage medium. BACKGROUND

[0002] In an end-to-end communication mode, communication based on an http / https protocol is currently the most common way. Restful style is a very popular style in the http / https communication mode.

[0003] Rest (Representational State Transfer) is a software architecture style and design style, which provides a set of design principles and constraints, mainly for client and server interaction type software. Any request in the Rest specification corresponds to a network resource, which can be a piece of text, or audio / video / picture. These network resources can be expressed in the form of json / xml / html or binary. The operation on the resource (i.e. the state transition of the resource) is expressed through the method of http / https, such as GET corresponding to obtaining the resource, PUT corresponding to modifying the resource, POST corresponding to creating the resource, and DELET corresponding to deleting the resource. The software or architecture that meets the Rest specification is Restful.

[0004] There are many languages that have corresponding Web frameworks to support Restful, such as Gin of golang, Django of python, etc. However, the existing Restful architecture has the problem of high maintenance cost. SUMMARY

[0005] The present disclosure provides a data processing method and device, a server and a storage medium.

[0006] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, comprising:

[0007] receiving an operation request on a network resource, and parsing a service name and a resource name carried in the operation request; wherein the service name represents a processing mode of the network resource, and the resource name represents obtaining the network resource in a predetermined mode;

[0008] determining a processing function for responding to the operation request according to the service name and the resource name;

[0009] executing the processing function and feeding back an execution result.

[0010] In some embodiments, determining a processing function that responds to the operation request based on the service name and the resource name includes:

[0011] Determine the first part of the function name of the processing function according to the service name;

[0012] Determine the second part of the function name of the processing function from the resource name;

[0013] The first part and the second part are combined to obtain a function name of a processing function that responds to the operation request.

[0014] In some embodiments, determining the first part of the function name of the processing function according to the service name includes:

[0015] Determining a first identifier representing a predetermined processing method from the service name;

[0016] Determine the function name identifier corresponding to the first identifier from a preset mapping relationship;

[0017] The function name identifier is used as the first part of the function name of the processing function.

[0018] In some embodiments, the first portion is a prefix of the function name, and the second portion belongs to the portion of the function name after the prefix.

[0019] In some embodiments, the method further comprises:

[0020] If the first part of the function name of the processing function cannot be determined based on the service name, or the corresponding processing function cannot be called based on the function name obtained by combining the first part and the second part, a prompt message indicating that the operation request cannot be met is fed back.

[0021] In some embodiments, the method further comprises:

[0022] Parsing and obtaining description parameters of the network resource carried in the operation request;

[0023] The executing the processing function and feeding back the execution result includes:

[0024] The description parameters are used as input parameters of the processing function, and the execution result is fed back after the processing function is executed.

[0025] According to a second aspect of an embodiment of the present disclosure, there is provided a data processing apparatus, including:

[0026] a first parsing module configured to receive an operation request for a network resource and parse the operation request to obtain a service name and a resource name carried in the operation request; wherein the service name represents a processing method for the network resource, and the resource name represents obtaining the network resource in a predetermined manner;

[0027] a determination module configured to determine a processing function that responds to the operation request according to the service name and the resource name;

[0028] The execution module is configured to execute the processing function and feed back the execution result.

[0029] In some embodiments, the determination module is further configured to determine the first part of the function name of the processing function based on the service name; determine the second part of the function name of the processing function from the resource name; and combine the first part and the second part to obtain the function name of the processing function that responds to the operation request.

[0030] In some embodiments, the determination module is further configured to determine a first identifier representing a predetermined processing method from the service name; determine a function name identifier corresponding to the first identifier from a preset mapping relationship; and use the function name identifier as the first part of the function name of the processing function.

[0031] In some embodiments, the first portion is a prefix of the function name, and the second portion belongs to the portion of the function name after the prefix.

[0032] In some embodiments, the apparatus further comprises:

[0033] The prompt module is configured to feedback a prompt message that the operation request cannot be met if the first part of the function name of the processing function cannot be determined based on the service name, or the corresponding processing function cannot be called based on the function name obtained by combining the first part and the second part.

[0034] In some embodiments, the apparatus further comprises:

[0035] A second parsing module is configured to parse and obtain description parameters of the network resource carried in the operation request;

[0036] The execution module is configured to use the description parameters as input parameters of the processing function, and feed back the execution result after executing the processing function.

[0037] According to a third aspect of an embodiment of the present disclosure, a server is provided, including:

[0038] processor;

[0039] a memory for storing processor-executable instructions;

[0040] Wherein, the processor is configured to execute the data processing method as described in the first aspect above.

[0041] According to a fourth aspect of an embodiment of the present disclosure, there is provided a storage medium, including:

[0042] When the instructions in the storage medium are executed by the processor of the server, the server is enabled to execute the data processing method as described in the first aspect above.

[0043] The technical solutions provided by the embodiments of the present disclosure may have the following beneficial effects:

[0044] In the embodiment of the present disclosure, by uniformly carrying fixed field information such as the service name and resource name in the operation request, the server can directly determine the processing function that responds to the operation request based on the service name and resource name. On the one hand, the client does not need to worry about how to splice the parameters into a URL, and does not need to learn URLs with different parameter organization formats, thereby reducing the client's learning cost; on the other hand, for the server, the processing function can be determined based on the service name and resource name carried in the operation request. Organizing the Application Programming Interface (API) in this concise and unified way can make the API easier to use. In this way, there is no need to worry about how to write a controller to parse the parameters in the URL and then call the corresponding function, which can effectively reduce development and maintenance costs.

[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0047] Figure 1 This is a flow chart of a data processing method shown in an embodiment of the present disclosure.

[0048] Figure 2 This is an example of processing a network resource operation request in a Restful framework shown in an embodiment of the present disclosure. Figure 1 .

[0049] Figure 3 This is an example of processing a network resource operation request in a RESTful framework shown in an embodiment of the present disclosure. Figure 2 .

[0050] Figure 4 This is a schematic diagram of a data processing method shown in an embodiment of the present disclosure.

[0051] Figure 5 The figure shows a data processing device according to an exemplary embodiment.

[0052] Figure 6 The figure is a block diagram of a server device according to an exemplary embodiment. DETAILED DESCRIPTION

[0053] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.

[0054] Figure 1 This is a flow chart of a data processing method shown in an embodiment of the present disclosure. Figure 1 As shown, the data processing method includes the following steps:

[0055] S11. Receive an operation request for a network resource, and parse to obtain a service name and a resource name carried in the operation request; wherein the service name represents a processing method for the network resource, and the resource name represents obtaining the network resource in a predetermined manner;

[0056] S12. Determine a processing function that responds to the operation request according to the service name and the resource name;

[0057] S13: Execute the processing function and feed back the execution result.

[0058] In the embodiments of the present disclosure, the data processing method can be applied to a server including a middle-end server or a back-end server. The operation request for the network resource received by the server is initiated by the client. For example, the client receives a user's query request for a certain product, a payment request, or a video viewing request, and sends it to the server. The client can initiate the operation request for the network resource by operating a control or by voice, which is not limited in the embodiments of the present disclosure.

[0059] A request for a network resource operation may include a Uniform Resource Locator (URL). Every resource has a corresponding URL. Upon receiving the request, the server searches for a route that matches the URL. Once the route is found, it calls the corresponding controller to parse the parameters and finally invokes the specific business logic to process the request.

[0060] Figure 2 This is an example of processing a network resource operation request in a Restful framework shown in an embodiment of the present disclosure. Figure 1 ,like Figure 2 As shown, for different URL requests AF, upon receiving them, the server performs appropriate permission control. For example, because different users may have different access rights or operational permissions for the same resource, the server determines the permissions of the user initiating the current request. After determining the user's permissions, the server can also generate access logs to track user behavior. Furthermore, the server performs a routing lookup to determine which controller should handle the current URL request.

[0061] In this embodiment, the server has previously established a mapping relationship between different routing types and controllers, where different routing types may refer to different request types for network resources, such as product access, payment, settlement, etc. Different routing types may correspond to different parameter organization methods. Based on the above mapping relationship, after receiving the URL request, the server will parse the parameters to determine the routing type and call the corresponding controller to call the service function. Figure 2 As shown, for each URL request, the corresponding controller is determined from the controllers AN through routing lookup, and the corresponding function is called by the controller for processing.

[0062] From the above method, it can be seen that when using the existing Restful framework, the number of URLs will increase linearly with the increase in the number of resources, and the parameter organization methods of URLs of different routing types may be different, and the client's learning and use costs of URLs will increase accordingly; at the same time, the server needs to write a corresponding controller for each routing type, parse the parameters through the controller, and then call the corresponding service function. This is very costly to develop and maintain for systems such as data middle platforms that cover a large amount of data resources.

[0063] In this regard, the present disclosure proposes an optimization solution. In step S11, after the server receives the operation request for network resources sent by the client, it parses and obtains the service name representing the processing method for the network resources carried in the operation request, and obtains the resource name of the network resource in a predetermined manner.

[0064] It should be noted that, in the embodiment of the present disclosure, the server and the client have defined the format of the route in the URL in advance. The route contains at least two parameters: the service name and the resource name, forming a route in the form of domain / :serviceName / :resourceName, where domain is the domain name, serviceName is the service name, and resourceName is the resource name. Therefore, after receiving the operation request, the server can parse and obtain the service name and resource name carried in the operation request. Among them, the service name can be a descriptive verb phrase with a processing method, such as Get, Post, Put or Delete, which respectively means retrieving resources from the server, creating new resources, updating resources or deleting resources. The resource name can be a descriptive noun phrase with an acquisition method, such as userByName and usersByAge, which respectively mean obtaining user information by name and obtaining user information by age.

[0065] In addition, the operation request may also include other resource location parameters, such as a specific name or age, etc., which are placed in the body in the form of JSON.

[0066] In step S12, after resolving and obtaining the service name and resource name, the server determines the processing function that responds to the operation request based on the service name and resource name. In step S13, after executing the processing function, the execution result is fed back to the client. It should be noted that in the embodiments of the present disclosure, implementation instances of each processing function are pre-registered in the server.

[0067] Figure 3 This is an example of processing a network resource operation request in a RESTful framework shown in an embodiment of the present disclosure. Figure 2 ,like Figure 3 As shown, the present disclosure uses a concise and unified operation request format, so that the server can directly call the corresponding business logic processing function according to different resource requests of the user without the need for a controller.

[0068] contrast Figure 2 and Figure 3It can be understood that in the embodiments of the present disclosure, by uniformly carrying fixed field information such as the service name and resource name in the operation request, the server can directly determine the processing function that responds to the operation request based on the service name and resource name. On the one hand, the client does not need to worry about how to splice the parameters into a URL, and does not need to learn URLs with different parameter organization formats, thereby reducing the client's learning cost; on the other hand, for the server, the processing function can be determined based on the service name and resource name carried in the operation request. Organizing the Application Programming Interface (API) in this concise and unified way can make the API more user-friendly. In this way, there is no need to worry about how to write a controller to parse the parameters in the URL and then call the corresponding function, which can effectively reduce development and maintenance costs.

[0069] In one embodiment, determining a processing function that responds to the operation request based on the service name and the resource name includes:

[0070] Determine the first part of the function name of the processing function according to the service name;

[0071] Determine the second part of the function name of the processing function from the resource name;

[0072] The first part and the second part are combined to obtain a function name of a processing function that responds to the operation request.

[0073] In this embodiment, the server determines the first part of the function name of the processing function according to the service name, determines the second part of the function name of the processing function according to the resource name, and combines the first part and the second part to obtain the function name.

[0074] When combining the first part, in one embodiment, the first part is the prefix of the function name, and the second part belongs to the part after the prefix in the function name. Of course, the present disclosure is not limited to the above combination method, and the second part can also be used as the prefix of the function name.

[0075] In one embodiment, the server can directly extract a predetermined identification field from the service name as the first part of the function name of the processing function, wherein the predetermined identification field can be the aforementioned Get, Post, Put, or Delete.

[0076] In another embodiment, determining the first part of the function name of the processing function according to the service name includes:

[0077] Determining a first identifier representing a predetermined processing method from the service name;

[0078] Determine the function name identifier corresponding to the first identifier from a preset mapping relationship;

[0079] The function name identifier is used as the first part of the function name of the processing function.

[0080] In this embodiment, the first identifier representing the predetermined processing method can be the aforementioned Get, Post, Put or Delete. The corresponding relationship between the first identifier and the function name identifier can be stored in the preset mapping relationship of the present disclosure. The following Table 1 is a preset mapping relationship comparison table, as shown in Table 1:

[0081] Table 1 Preset mapping relationship comparison table

[0082] Request method Function name prefix Get Get Post Create Put Update Delete Delete

[0083] As can be seen from Table 1 above, based on the preset mapping relationship, the first identifier "Get," "Post," "Put," or "Delete" in the service name has a corresponding mapped function name, and the mapped function name identifier serves as the function name prefix. That is, in this embodiment, the first part determined based on the preset mapping relationship is the prefix of the function name, and the second part is the portion of the function name after the prefix.

[0084] It should be noted that a service name has a corresponding class or structure. The function name of this class is composed of the first part after the mapping and the second part determined by the resource name. For example, if the class name mapped by the service name is "GET" and the resource name is "users", the corresponding class method name is GetUsers.

[0085] In the embodiment of the present disclosure, when determining the second part of the function name of the processing function according to the resource name, a method similar to determining the first part of the function name according to the service name may also be adopted, which will not be described in detail here.

[0086] As mentioned above, the server registers the implementation instance of each processing function in advance. Therefore, after the function name is determined in the above manner, the corresponding instance can be called according to the function name. This method is a reflection call method, and the solution is simple and effective.

[0087] In one embodiment, the method further comprises:

[0088] If the first part of the function name of the processing function cannot be determined based on the service name, or the corresponding processing function cannot be called based on the function name obtained by combining the first part and the second part, a prompt message indicating that the operation request cannot be met is fed back.

[0089] In this embodiment, the first part cannot be determined according to the service name, that is, the corresponding class name cannot be found; the corresponding processing function cannot be called according to the function name obtained by combining the first part and the second part, that is, the function implementation under the class cannot be found, which indicates that the server cannot respond to the operation request on the network resource. At this time, the server feeds back prompt information that the operation request cannot be met to the client, so that the client can prompt the user.

[0090] It should be noted that the reason why the server cannot find the corresponding class name or cannot find the function implementation under the class can be that the server has not performed corresponding registration in advance.

[0091] In an embodiment, the method further includes:

[0092] The description parameter carried in the operation request is parsed;

[0093] The execution of the processing function and the feedback of the execution result include:

[0094] The description parameter is taken as an input parameter of the processing function, and the execution result is fed back after the processing function is executed.

[0095] In this embodiment, as described above, the operation request can further include other resource positioning parameters, such as specific names or ages, in the form of json in the body part. The other resource positioning parameters are the description parameters of the network resource. By taking the description parameter as an input parameter of the processing function, the execution result can be fed back after the processing function is executed.

[0096] Taking the operation request of obtaining user information as an example, if the operation request does not contain specific description parameters such as names or ages, the information of all users is fed back, and if the operation request carries information such as names or ages, the information of users meeting the name or age requirements is fed back.

[0097] Figure 4 is a data processing method principle diagram shown in an embodiment of the present disclosure, as shown in Figure 4 The URL routing part included in the operation request received by the server appears in a unified format, and the remaining some description parameters are placed in the body part. The server parses the routing parameter and the body part, and based on the instances of service A and service B registered in advance according to the serviceName and the resourceName in the URL and the URL method name (the serviceName and the URL method name have a preset mapping relationship), the function of the corresponding service can be dynamically called by reflection. This kind of way does not need the controller component in the traditional Restful Web framework, and thus the development and maintenance cost can be effectively reduced.

[0098] Figure 5 FIG. 1 is a diagram showing a data processing device according to an exemplary embodiment. Figure 5 , the device comprises:

[0099] The first parsing module 101 is configured to receive an operation request for a network resource and parse the operation request to obtain a service name and a resource name; wherein the service name represents a processing method for the network resource, and the resource name represents obtaining the network resource in a predetermined manner;

[0100] A determination module 102 is configured to determine a processing function that responds to the operation request based on the service name and the resource name;

[0101] The execution module 103 is configured to execute the processing function and feed back the execution result.

[0102] In some embodiments, the determination module 102 is further configured to determine the first part of the function name of the processing function based on the service name; determine the second part of the function name of the processing function from the resource name; and combine the first part and the second part to obtain the function name of the processing function that responds to the operation request.

[0103] In some embodiments, the determination module 102 is further configured to determine a first identifier representing a predetermined processing method from the service name; determine a function name identifier corresponding to the first identifier from a preset mapping relationship; and use the function name identifier as the first part of the function name of the processing function.

[0104] In some embodiments, the first portion is a prefix of the function name, and the second portion belongs to the portion of the function name after the prefix.

[0105] In some embodiments, the apparatus further comprises:

[0106] The prompt module 104 is configured to feedback a prompt message that the operation request cannot be met if the first part of the function name of the processing function cannot be determined based on the service name, or the corresponding processing function cannot be called based on the function name obtained by combining the first part and the second part.

[0107] In some embodiments, the apparatus further comprises:

[0108] A second parsing module 105 is configured to parse and obtain description parameters of the network resource carried in the operation request;

[0109] The execution module 103 is configured to use the description parameters as input parameters of the processing function, and feed back the execution result after executing the processing function.

[0110] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0111] Figure 6 FIG. 9 is a block diagram of a server device 900 according to an exemplary embodiment. Figure 6 Apparatus 900 includes a processing component 922, which further includes one or more processors, and memory resources represented by memory 932 for storing instructions, such as applications, that can be executed by processing component 922. The applications stored in memory 932 may include one or more modules, each corresponding to a set of instructions. Furthermore, processing component 922 is configured to execute the instructions to perform the above-described network configuration method.

[0112] The device 900 may also include a power supply component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input / output (I / O) interface 958. The device 900 may operate based on an operating system stored in the memory 932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0113] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 932 including instructions, which can be executed by the processing component 922 of the apparatus 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0114] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a terminal, enables the terminal to perform a data processing method, the method comprising:

[0115] Receive an operation request for a network resource, and parse to obtain a service name and a resource name carried in the operation request; wherein the service name represents a processing method for the network resource, and the resource name represents obtaining the network resource in a predetermined manner;

[0116] Determining a processing function for responding to the operation request according to the service name and the resource name;

[0117] Execute the processing function and feed back the execution result.

[0118] Other embodiments of the present disclosure will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0119] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A data processing method, characterized in that: The method comprises: Receive an operation request for a network resource, and parse to obtain a service name and a resource name carried in the operation request; wherein the service name represents a processing method for the network resource, the resource name represents obtaining the network resource in a predetermined manner, and the resource name is a descriptive noun phrase with an obtaining method; the operation request includes a uniform resource locator (URL), and routing parameters in the URL include the service name and the resource name; Determining a processing function that responds to the operation request according to the service name and the resource name; Execute the processing function and feed back the execution result; The step of determining a processing function for responding to the operation request according to the service name and the resource name includes: Determine the first part of the function name of the processing function according to the service name; Determine the second part of the function name of the processing function from the resource name; The first part and the second part are combined to obtain a function name of a processing function that responds to the operation request.

2. The method according to claim 1, characterized in that Determining the first part of the function name of the processing function according to the service name includes: Determining a first identifier representing a predetermined processing method from the service name; Determine the function name identifier corresponding to the first identifier from a preset mapping relationship; The function name identifier is used as the first part of the function name of the processing function.

3. The method according to claim 1, characterized in that The first part is a prefix of the function name, and the second part belongs to the part after the prefix in the function name.

4. The method according to claim 1, wherein The method further comprises: If the first part of the function name of the processing function cannot be determined based on the service name, or the corresponding processing function cannot be called based on the function name obtained by combining the first part and the second part, a prompt message indicating that the operation request cannot be met is fed back.

5. The method according to claim 1, wherein The method further comprises: Parsing and obtaining description parameters of the network resource carried in the operation request; The executing the processing function and feeding back the execution result includes: The description parameters are used as input parameters of the processing function, and the execution result is fed back after the processing function is executed.

6. A data processing device, characterized in that: The device comprises: a first parsing module configured to receive an operation request for a network resource and parse the operation request to obtain a service name and a resource name; wherein the service name represents a processing method for the network resource, the resource name represents obtaining the network resource in a predetermined manner, and the resource name is a descriptive noun phrase with an obtaining method; the operation request includes a uniform resource locator (URL), and routing parameters in the URL include the service name and the resource name; a determination module configured to determine a first portion of a function name of a processing function based on the service name; determine a second portion of the function name of the processing function from the resource name; and combine the first portion and the second portion to obtain a function name of the processing function that responds to the operation request; The execution module is configured to execute the processing function and feed back the execution result.

7. The device according to claim 6, characterized in that The determination module is further configured to determine a first identifier representing a predetermined processing method from the service name; determine a function name identifier corresponding to the first identifier from a preset mapping relationship; and use the function name identifier as the first part of the function name of the processing function.

8. The device according to claim 6, characterized in that The first part is a prefix of the function name, and the second part belongs to the part after the prefix in the function name.

9. The device according to claim 6, characterized in that The device further comprises: If the first part of the function name of the processing function cannot be determined based on the service name, or the corresponding processing function cannot be called based on the function name obtained by combining the first part and the second part, a prompt message indicating that the operation request cannot be met is fed back.

10. The device according to claim 6, characterized in that The device further comprises: A second parsing module is configured to parse and obtain description parameters of the network resource carried in the operation request; The execution module is configured to use the description parameters as input parameters of the processing function, and feed back the execution result after executing the processing function.

11. A server, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the data processing method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of the server, the server is enabled to execute the data processing method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Information processing method, device and system

    CN106452951A

  • Representation / invocation of actions / functions in a hypermedia-driven environment

    US20130159530A1