Data processing method, data interaction system and computing device

By introducing transmission interfaces and processing interfaces in the operating system proxy layer, the data interaction and processing requirements of multiple data provision applications and data request applications are solved, and the problem of high data processing complexity in the existing technology is achieved, and efficient and accurate data processing and development efficiency are improved.

CN113312188BActive Publication Date: 2025-04-22UNIONTECH SOFTWARE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110621254.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-01
Publication Date
2025-04-22
Estimated Expiration
2041-04-01

AI Technical Summary

Technical Problem

The prior art processes the data processing complexity when processing data requests and data interactions of multiple applications, making it difficult to ensure the accuracy and timeliness of data processing, and increases the difficulty of developing data request applications and data abnormality detection.

Method used

By introducing transmission interfaces and processing interfaces in the proxy layer of the operating system, the data structure of the data provide application is obtained, and the transmission interfaces and processing interfaces are generated based on the data structure template, and the data interaction and processing requirements of multiple data are uniformly processed.

Benefits of technology

It realizes unified management of data interaction and processing of multiple data provision applications and data request applications, reduces the complexity of data processing, improves the accuracy and timeliness of data processing, reduces the difficulty of development of data request applications, and realizes forward-compatible interface expansion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113312188B_ABST
    Figure CN113312188B_ABST
Patent Text Reader

Abstract

This invention discloses a data processing method executed in the proxy layer of an operating system. The proxy layer includes one or more transmission interfaces and processing interfaces. The method includes: acquiring a data structure sent by a data providing application based on a corresponding transmission interface; receiving a data processing request sent by a data requesting application based on a corresponding processing interface, wherein the request parameters of the data processing request include a target data structure type; acquiring a data structure template corresponding to the processing interface; performing corresponding data processing based on the data structure template and the request parameters; and returning the data processing result to the data requesting application. This invention also discloses a corresponding data interaction system and computing device. According to the data processing method of this invention, a unified data interface can be provided for various applications based on the proxy layer, and data processing can be performed at the proxy layer, meeting the data needs of various businesses and improving the development efficiency of data requesting applications.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of invention patent 2021103537850 applied for on April 1, 2021. Technical Field

[0002] The present invention relates to the field of data interaction technology, and in particular to a data processing method, a data interaction system and a computing device. Background Art

[0003] In the prior art, data interaction between applications on a terminal system is generally based on the data required by the data requesting application and the data that the data providing application can provide, defining a set of mutually applicable data structures for specific application requirements, and the data providing application designs a data interface corresponding to the data structure. When the data requesting application needs data, it calls the data interface of the data providing application to obtain the data.

[0004] According to the existing technical solutions, when applications interact with each other based on specific data interfaces applicable to each other, it is only applicable to situations where the amount of data interaction is small, the number of data request applications is small, and the data business is single. However, when the data providing application needs to process data requests from multiple applications and the amount of data interaction is large, the data processing of the data providing application will be extremely complex, and it is difficult to ensure the accuracy and timeliness of data processing, and it is difficult to meet the data needs of different applications. In addition, when the data processing of the data providing application is complex and the data types are various, the data processing logic of each data request application needs to be understood, which greatly increases the difficulty of developing the data request application. Moreover, deviations are prone to occur in the process of understanding the data processing logic, making it difficult to troubleshoot data anomalies.

[0005] In addition, according to the existing technical solutions, when the data structure of the data providing application changes and the interface needs to be adjusted, the interfaces of all data requesting applications that rely on the data structure and the data usage rules need to be changed, which is a huge workload.

[0006] Therefore, a data processing method is needed to solve the problems existing in the above technical solutions. Summary of the invention

[0007] To this end, the present invention provides a data processing method, a data interaction system and a computing device, in an effort to solve or at least alleviate the above problems.

[0008] According to one aspect of the present invention, there is provided a data processing method, which is executed in a proxy layer of an operating system, wherein the proxy layer includes one or more transmission interfaces and processing interfaces, and the method includes: obtaining a data structure sent by a data providing application based on a corresponding transmission interface; receiving a data processing request sent by a data requesting application based on a corresponding processing interface, wherein a request parameter of the data processing request includes a target data structure type; and obtaining a data structure template corresponding to the processing interface, performing corresponding data processing based on the data structure template and the request parameters, and returning the data processing result to the data requesting application.

[0009] Optionally, in the data processing method according to the present invention, before obtaining the data structure sent by the data providing application based on the transmission interface, the method includes the steps of generating a transmission interface according to data provided by the data providing application, and generating a corresponding processing interface.

[0010] Optionally, in the data processing method according to the present invention, the step of generating a transmission interface based on data provided by a data providing application includes: obtaining data that the data providing application is suitable for providing, and obtaining one or more corresponding data structures based on the data; constructing a corresponding data structure template based on the data structure; and generating a corresponding transmission interface based on each data structure template.

[0011] Optionally, in the data processing method according to the present invention, after generating the corresponding transmission interface according to each data structure template, it also includes the step of establishing an association relationship between the transmission interface and the data providing application so that the data providing application sends the data structure based on the transmission interface.

[0012] Optionally, in the data processing method according to the present invention, the data structure template includes one or more data structure types, and each data structure type corresponds to an attribute variable.

[0013] Optionally, in the data processing method according to the present invention, the interface parameters of the transmission interface include one or more key-value pairs, each key-value pair corresponding to a data structure type and a corresponding attribute variable in the data structure template.

[0014] Optionally, in the data processing method according to the present invention, generating a corresponding processing interface includes: generating a corresponding processing interface according to each data structure template.

[0015] According to one aspect of the present invention, there is provided a data interaction system, comprising a proxy layer, including one or more transmission interfaces and processing interfaces, suitable for executing the method as described above; a data providing application, suitable for sending a data structure to the proxy layer based on a corresponding transmission interface; and a data requesting application, suitable for sending a data processing request to the proxy layer based on a corresponding processing interface, and receiving a data processing result returned after the proxy layer performs corresponding data processing based on a data structure template and request parameters corresponding to the processing interface.

[0016] According to one aspect of the present invention, a computing device is provided, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be suitable for being executed by the at least one processor, and the program instructions include instructions for executing the method as described above.

[0017] According to one aspect of the present invention, a readable storage medium storing program instructions is provided. When the program instructions are read and executed by a computing device, the computing device executes the method described above.

[0018] According to the technical solution of the present invention, a data processing method and a data interaction system are provided, wherein the proxy layer can construct a data structure template according to the data provided by the data providing application, and generate a transmission interface and a corresponding processing interface based on the data structure template. Based on the proxy layer, a unified transmission interface can be provided for multiple data providing applications, so that the data providing application can send a data structure to the proxy layer based on the unified transmission interface. In addition, the proxy layer can provide a unified processing interface for multiple data request applications, so that the data request application can use the proxy layer to process data based on the unified processing interface. In this way, each transmission interface and processing interface created based on the proxy layer in the present invention can be used for data interaction and data processing requirements of multiple applications, and meet the data requirements of multiple businesses. According to the technical solution of the present invention, the proxy layer can not only integrate the data structure provided by the data providing application, but also the complex data processing operations are uniformly executed by the proxy layer, avoiding the cumbersome process and processing deviation of each data request application performing data parsing and data processing, which is conducive to improving the development efficiency of the data request application.

[0019] Furthermore, according to the technical solution of the present invention, when it is necessary to expand the interface function, it is only necessary to add a key-value pair corresponding to the new function in the data byte stream of the interface to implement the new function without changing the original key-value pairs of the interface, which will not affect the previous functions of the interface, thereby achieving forward compatibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] To achieve the above and related purposes, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings, which indicate various ways in which the principles disclosed herein can be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The above and other purposes, features and advantages of the present disclosure will become more apparent by reading the following detailed description in conjunction with the accompanying drawings. Throughout the present disclosure, the same reference numerals generally refer to the same parts or elements.

[0021] Figure 1 A schematic diagram of a computing device 100 according to one embodiment of the present invention is shown;

[0022] Figure 2 A schematic diagram showing a data interaction system 200 according to an embodiment of the present invention; and

[0023] Figure 3 FIG. 3 is a flow chart of a data processing method 300 according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0025] Figure 1 is a schematic block diagram of an example computing device 100 .

[0026] like Figure 1 As shown, in a basic configuration 102, computing device 100 typically includes system memory 106 and one or more processors 104. A memory bus 108 may be used for communication between processor 104 and system memory 106.

[0027] Depending on the desired configuration, the processor 104 may be any type of processing, including but not limited to: a microprocessor (UP), a microcontroller (UC), a digital information processor (DSP), or any combination thereof. The processor 104 may include one or more levels of cache, such as a primary cache 110 and a secondary cache 112, a processor core 114, and registers 116. An example processor core 114 may include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 118 may be used with the processor 104, or in some implementations, the memory controller 118 may be an internal part of the processor 104.

[0028] Depending on the desired configuration, system memory 106 may be any type of memory, including but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 106 may include an operating system 120, one or more applications 122, and program data 124. In some implementations, application 122 may be arranged to execute instructions on the operating system by one or more processors 104 using program data 124.

[0029] The computing device 100 may also include a storage interface bus 134. The storage interface bus 134 enables communication from storage devices 132 (e.g., removable storage 136 and non-removable storage 138) to the basic configuration 102 via the bus / interface controller 130. At least a portion of the operating system 120, the application 122, and the data 124 may be stored on the removable storage 136 and / or the non-removable storage 138, and when the computing device 100 is powered on or the application 122 is to be executed, it is loaded into the system memory 106 via the storage interface bus 134 and executed by one or more processors 104.

[0030] The computing device 100 may also include an interface bus 140 that facilitates communication from various interface devices (e.g., output devices 142, peripheral interfaces 144, and communication devices 146) to the basic configuration 102 via the bus / interface controller 130. Example output devices 142 include a graphics processing unit 148 and an audio processing unit 150. They can be configured to facilitate communication with various external devices such as a display or speakers via one or more A / V ports 152. Example peripheral interfaces 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 158. Example communication devices 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via a network communication link via one or more communication ports 164.

[0031] A network communication link can be an example of a communication medium. Communication media can generally be embodied as computer-readable instructions, data structures, program modules in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium. A "modulated data signal" can be a signal in which one or more of its data sets or its changes can be performed in the signal in a manner that encodes information. As non-limiting examples, communication media can include wired media such as a wired network or a dedicated line network, and various wireless media such as sound, radio frequency (RF), microwave, infrared (IR) or other wireless media. The term computer-readable medium used herein can include both storage media and communication media.

[0032] The computing device 100 can be implemented as a personal computer including a desktop computer and a notebook computer configuration. Of course, the computing device 100 can also be implemented as a part of a small-sized portable (or mobile) electronic device, which can be a cellular phone, a digital camera, a personal digital assistant (PDA), a personal media player device, a wireless network browsing device, a personal head-mounted device, an application-specific device, or a hybrid device that can include any of the above functions. It can even be implemented as a server, such as a file server, a database server, an application server, and a WEB server. The embodiments of the present invention are not limited to this.

[0033] In an embodiment according to the present invention, the operating system of the computing device 100 is configured to execute the data processing method 300 according to the present invention. Among them, an agent layer 250 is arranged on the operating system of the computing device 100, and the agent layer 250 includes a plurality of program instructions for executing the data processing method 300 according to the present invention, so that the data processing method 300 of the present invention can be executed in the agent layer.

[0034] Figure 2 A schematic diagram of a data interaction system 200 according to an embodiment of the present invention is shown. The data interaction system 200 resides in a computing device (such as the aforementioned computing device 100) and can be arranged on an operating system. The data interaction system 200 according to the present invention can be used for data interaction between applications and system services.

[0035] In an embodiment according to the present invention, Figure 2 As shown, the data interaction system 200 includes one or more data providing applications 210, a proxy layer 250, and one or more data requesting applications 220. Among them, the proxy layer 250 is suitable for executing the data processing method 300 of the present invention. By executing the data processing method 300 of the present invention, the data providing application 210 and the data requesting application 220 can realize data interaction with the operating system based on the proxy layer 350. The data processing method 300 of the present invention will be described in detail below.

[0036] It should be noted that the data providing application 210 is an application suitable for providing data, and the data requesting application 220 is an application suitable for requesting data. Here, the present invention does not limit the specific types and quantities of the data providing application and the data requesting application. In the present invention, by setting up the proxy layer 250, the proxy layer 250 can be used to uniformly process the data provided by the data providing application 210, and implement it as a corresponding data interface, so as to provide a unified data interface for one or more data requesting applications 220 that need to use the data. Here, the present invention does not limit the specific structure of the data provided by the data providing application 210.

[0037] According to one embodiment of the present invention, the proxy layer 250 can provide one or more transmission interfaces and processing interfaces to the application. Specifically, the proxy layer 250 can generate one or more corresponding transmission interfaces and one or more corresponding processing interfaces in advance according to the data provided by the data providing application 210, and provide these transmission interfaces and processing interfaces to the application. Among them, the proxy layer 250 can provide a transmission interface for the data providing application 210, so that the data providing application 210 sends a data structure to the proxy layer 250 based on the corresponding transmission interface; and the proxy layer 250 can provide a processing interface for the data requesting application 220, so that the data requesting application 220 can request data from the proxy layer 250 or request the proxy layer 250 to process data based on the corresponding processing interface.

[0038] Figure 2 FIG. 3 is a flow chart of a data processing method 300 according to an embodiment of the present invention.

[0039] like Figure 2 As shown, the method 300 starts at step S310. In step S310, a data structure sent by the data providing application 310 based on a corresponding transmission interface is obtained. Here, the data structure sent by the data providing application 310 based on a corresponding transmission interface is a specific data structure instance including specific data content.

[0040] It should be noted that before executing step S310, the proxy layer 250 generates one or more corresponding transmission interfaces and one or more corresponding processing interfaces in advance according to the data provided by the data providing application 210, so as to provide these transmission interfaces and processing interfaces to the application. Among them, the transmission interface is provided for the data providing application 210, and the processing interface is provided for the data requesting application 220.

[0041] Specifically, when generating a transmission interface based on data provided by the data providing application 210, the proxy layer pre-acquires all data that can be provided by the data providing application 210, and by analyzing and parsing the data provided by the data providing application 210, one or more specific data structures (specific implementations) can be obtained based on these data.

[0042] After obtaining one or more specific data structures based on the data provided by the data providing application 210, the proxy layer 250 can convert the specific data structures into corresponding data structure templates. Specifically, the specific data structures (specific implementations) are converted into corresponding data structure templates by abstracting the specific data structures and discarding the specific contents and implementation details in the data structure instances.

[0043] Specifically, the data providing application 210 provides a data structure designed for a specific business and is only applicable to the specific business. On this basis, the present invention abstracts the specific data structure so as to construct a corresponding data structure template according to the specific data structure, so that the constructed data structure template can adapt to the data transmission and data processing requirements of various businesses. Here, a corresponding data structure template can be constructed according to each specific data structure obtained, or a data structure template can be constructed according to the multiple associated data structures obtained. In other words, a data structure template can be constructed based on one or more specific data structures.

[0044] In one embodiment, each data structure template obtained after abstract conversion may include one or more data structure types (tapes), where each data structure type corresponds to an attribute variable.

[0045] After constructing the data structure template, a corresponding transmission interface is generated according to each constructed data structure template. Here, the data structure template and the transmission interface are in a corresponding relationship with each other. Each transmission interface corresponds to a data structure template, and each data structure template can include one or more data structure types. In this way, each transmission interface can correspond to one or more data structure types. Based on this, the transmission interface generated according to the data structure template can be used for the transmission needs of various business data. The proxy layer 250 can provide a variety of data providing applications by constructing a unified transmission interface. These applications can call the existing transmission interface to provide the proxy layer 250 with specific data structures in different business scenarios. It should be understood that when the data providing application 210 provides data to the proxy layer, it sends data to the proxy layer 250 by calling the corresponding transmission interface. Based on the transmission interface, the data provided by the data providing application 210 can be converted into a corresponding data structure and sent to the proxy layer 250.

[0046] In one embodiment, the interface parameters of the transmission interface can be implemented as a key-value pair byte stream format, such as a json data format, but not limited to this. Here, each key-value pair in the interface parameters corresponds to the data structure type and the corresponding attribute variable in the data structure template. In this way, when it is necessary to expand the function of the interface, it is only necessary to add a key-value pair corresponding to the new function in the data byte stream of the interface to implement the new function without changing the original key-value pair of the interface, which will not affect the previous function of the interface, thereby achieving a forward compatibility effect.

[0047] It should also be noted that the data structure template is constructed based on the data provided by the data providing application 210, so what is generated based on the constructed one or more data structure templates is one or more transmission interfaces corresponding to the data providing application 210. According to one embodiment, after the proxy layer 250 finally constructs and generates one or more transmission interfaces based on the data provided by the data providing application 210, it will establish an association relationship between the one or more transmission interfaces and the data providing application 210, that is, bind the data providing application 210 to the one or more transmission interfaces. In this way, the data providing application 210 can directly call these transmission interfaces associated with it, and provide the corresponding specific data structure to the proxy layer 250 based on these transmission interfaces.

[0048] According to an embodiment of the present invention, after constructing one or more transmission interfaces according to the data provided by the data providing application 210, the proxy layer 250 also constructs and generates one or more corresponding processing interfaces. It should be noted that each processing interface is also generated according to each of the aforementioned data structure templates constructed. Specifically, for each of the constructed data structure templates, a processing interface corresponding to the data structure template is generated. It can be understood that the processing interface and the transmission interface are also in a corresponding relationship with each other.

[0049] That is to say, each processing interface generated by the proxy layer 250 corresponds to a data structure template, and each data structure template can include one or more data structure types, so that each processing interface can correspond to one or more data structure types. Based on this, the processing interface generated according to the data structure template can meet the business needs of various applications. The proxy layer 250 can provide various data request applications by building a unified processing interface. These data request applications can call the existing processing interface to send data processing requests to the proxy layer 250, and realize the corresponding data processing requirements based on the processing interface of the proxy layer.

[0050] It should also be noted that since the data structure template corresponding to each processing interface includes one or more data structure types, in other words, each processing interface can correspond to one or more data structure types. Thus, when the data request application calls the processing interface, it needs to send a data processing request to the corresponding processing interface using the target data structure type as a request parameter.

[0051] Specifically, the proxy layer 250 may execute the following steps S320 to S330 based on the constructed one or more processing interfaces.

[0052] In step S310, a data processing request sent by the data request application 220 based on a corresponding processing interface is received. Here, the request parameters of the data processing request include a target data structure type.

[0053] Subsequently, in step S320, a data structure template corresponding to the processing interface is obtained, and the proxy layer performs corresponding data processing based on the data structure template and the request parameters (e.g., the target data structure type), and returns the data processing result to the data request application 220. Here, it should be understood that the proxy layer can generate a corresponding target data structure (specific implementation) according to the data structure template and the target data structure type, and perform corresponding data processing operations according to the specific target data structure to obtain the data processing result.

[0054] It should be noted that after the data request application 220 calls the processing interface, the proxy layer 250 implements the specific target data structure, performs corresponding operations according to the specific implemented target data structure, and returns the data processing result to the data request application 220. Here, the proxy layer can return the processing result to the data request application 220 in the form of parameters. In this way, the complex data processing operations corresponding to each data structure template are uniformly executed by the proxy layer 250, avoiding the cumbersome and repetitive process of parsing the data structure and performing the data processing operation for each data request application in the prior art, and also avoiding the deviations that occur in the process of parsing the data structure and processing the data for different applications, which is conducive to reducing the development difficulty of the data request application and improving the development efficiency.

[0055] For example, in operating systems such as UOS and Windows, establishing a Bluetooth connection is a specific instance of data interaction between an application and a system service. According to the implementation method in the prior art, when one or more applications need to use the Bluetooth function, it is first necessary to query whether Bluetooth is available. In the case of directly using the interface provided by the operating system, each application needs to understand the entire set of Bluetooth processing logic. The application determines whether the current hardware is connected to the Bluetooth adapter, and then determines whether the adapter is in the on state, whether the adapter is in the ignored state, and finally obtains the Bluetooth MAC address and other data to establish a connection with the specified Bluetooth.

[0056] According to the technical solution of the present invention, in the implementation method of establishing a Bluetooth connection, the proxy layer uniformly processes the data in the Bluetooth connection process, constructs a corresponding data structure template, and provides a unified interface for all applications that need to use the Bluetooth function. For example, the proxy layer in the present invention can provide a connection interface (ConnectBlutooth) for the above-mentioned Bluetooth connection process. When the application requesting the Bluetooth connection function calls the connection interface, it only needs to provide the identifier of the Bluetooth address of the other end (request parameter). All connection checks and connection establishment are handled by the proxy layer. Finally, the proxy layer returns an error code to the application to feedback the result of executing the Bluetooth connection. For the proxy interface of the Bluetooth connection, the interface is ConnectBlutooth, the request parameter is the address of the other end-string, and the returned data is the Bluetooth connection result-int.

[0057] Here, the establishment of the Bluetooth connection is only a specific implementation of the method 300 according to the present invention, but the present invention is not limited to this implementation. It should be noted that the specific implementation of data interaction between applications and between applications and systems in the prior art is within the protection scope of the present invention.

[0058] In summary, according to the technical solution of the present invention, the proxy layer constructs a data structure template based on the data provided by the data providing application, and generates a transmission interface and a corresponding processing interface based on the data structure template. Based on the proxy layer, a unified transmission interface can be provided for multiple data providing applications, so that the data providing application can send a data structure to the proxy layer based on the unified transmission interface. In addition, the proxy layer can provide a unified processing interface for multiple data request applications, so that the data request application can use the proxy layer to process data based on the unified processing interface. In this way, the transmission interface and processing interface created based on the proxy layer in the present invention can be used for data interaction and data processing requirements of multiple applications. According to the technical solution of the present invention, the proxy layer can not only integrate the data structure provided by the data providing application, but also, complex data processing operations are uniformly executed by the proxy layer, avoiding the cumbersome process and processing deviation of each data request application performing data parsing and data processing, which is conducive to improving the development efficiency of data request applications.

[0059] Furthermore, according to the technical solution of the present invention, when it is necessary to expand the interface function, it is only necessary to add a key-value pair corresponding to the new function in the data byte stream of the interface to implement the new function without changing the original key-value pairs of the interface, which will not affect the previous functions of the interface, thereby achieving forward compatibility.

[0060] The various techniques described herein may be implemented in combination with hardware or software, or a combination thereof. Thus, the method and apparatus of the present invention, or some aspects or parts of the method and apparatus of the present invention may be in the form of program codes (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, a USB flash drive, a floppy disk, a CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into a machine such as a computer and executed by the machine, the machine becomes a device for practicing the present invention.

[0061] In the case where the program code is executed on a programmable computer, the computing device generally includes a processor, a storage medium readable by the processor (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store the program code; the processor is configured to execute the multilingual junk text recognition method of the present invention according to the instructions in the program code stored in the memory.

[0062] By way of example and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer readable instructions, data structures, program modules or other data. Communication media generally embody computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and include any information transfer medium. Any combination of the above is also included within the scope of readable media.

[0063] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to implement the content of the present invention described herein, and the above description of specific languages ​​is for the purpose of disclosing the best mode of the present invention.

[0064] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0065] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0066] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.

[0067] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0068] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0069] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.

[0070] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.

[0071] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is illustrative, not restrictive, with respect to the scope of the present invention, which is defined by the appended claims.

Claims

1. A data processing method, executed at a proxy layer of an operating system, comprising: Acquire data suitable for providing by the data providing application, and acquire one or more corresponding data structures based on the data; Constructing corresponding data structure templates according to the data structure, and generating corresponding transmission interfaces and corresponding processing interfaces according to each data structure template; Obtain the data structure sent by the data providing application based on the corresponding transmission interface; Receiving a data processing request sent by a data request application based on a corresponding processing interface, wherein a request parameter of the data processing request includes a target data structure type; as well as A data structure template corresponding to the processing interface is obtained, corresponding data processing is performed based on the data structure template and request parameters, and the data processing result is returned to the data request application.

2. The method of claim 1, wherein: After generating corresponding transmission interfaces according to each data structure template, the following steps are also included: An association relationship is established between the transmission interface and the data providing application, so that the data providing application sends a data structure based on the transmission interface.

3. The method of claim 1, wherein: The data structure template includes one or more data structure types, and each data structure type corresponds to an attribute variable.

4. The method of claim 3, wherein: The interface parameters of the transmission interface include one or more key-value pairs, each of which corresponds to a data structure type and a corresponding attribute variable in the data structure template.

5. A data interaction system, comprising: An agent layer, adapted to execute the method according to any one of claims 1 to 4; a data providing application adapted to provide data to the proxy layer and to send a data structure to the proxy layer based on a corresponding transmission interface; as well as The data request application is adapted to send a data processing request to the proxy layer based on a corresponding processing interface, and receive a data processing result returned after the proxy layer performs corresponding data processing based on a data structure template and request parameters corresponding to the processing interface.

6. A computing device comprising: at least one processor; as well as A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the method according to any one of claims 1 to 4.

7. A readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device executes the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Interface call request processing method and device and electronic equipment

    CN111597059A

  • Application program interface script caching and batching

    US9292361B1