CN110321120B - Data processing method, data processing apparatus, and computer-readable storage medium - Google Patents
Data processing method, data processing apparatus, and computer-readable storage medium Download PDFInfo
- Publication number
- CN110321120B CN110321120B CN201910633136.9A CN201910633136A CN110321120B CN 110321120 B CN110321120 B CN 110321120B CN 201910633136 A CN201910633136 A CN 201910633136A CN 110321120 B CN110321120 B CN 110321120B
- Authority
- CN
- China
- Prior art keywords
- data
- service
- component
- display component
- data processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012545 processing Methods 0.000 title claims abstract description 38
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 13
- 230000006870 function Effects 0.000 claims description 30
- 230000008569 process Effects 0.000 abstract description 9
- 238000011161 development Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 20
- 238000007726 management method Methods 0.000 description 10
- 230000009471 action Effects 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000002347 injection Methods 0.000 description 3
- 239000007924 injection Substances 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000001419 dependent effect Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 239000000243 solution Substances 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
The disclosure provides a data processing method, a data processing device and a computer readable storage medium, and relates to the technical field of data processing. The data processing method comprises the following steps: the display component generates an event object according to user operation and sends the event object to the function component; the functional component acquires service data according to the event object and sends the service data to the display component; and the display component displays the business data. The method and the device can improve reusability of the components in the software system, thereby improving expandability of the software system and reducing repeated development work in the process of developing the software system.
Description
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data processing method, a data processing apparatus, and a computer-readable storage medium.
Background
As the application of MVVM (Model-View Model) framework becomes wider, the componentization idea becomes more and more important. The page application program conforming to the MVVM framework can modularly divide the software system according to functions, and abstract extracts a plurality of components.
Disclosure of Invention
The inventor researches and discovers that components with single function characteristics can be directly reused in the same or similar module application scenes, so that a large amount of repeated development work is reduced. However, in the actual software development process, the abstraction standards of the components are different, and the granularity of dividing the components is also different, which results in lower reusability of the components.
One technical problem solved by the present disclosure is how to promote reusability of components in a software system.
According to an aspect of the embodiments of the present disclosure, there is provided a data processing method, including: the display component generates an event object according to user operation and sends the event object to the function component; the functional component acquires service data according to the event object and sends the service data to the display component; and the display component displays the business data.
In some embodiments, the obtaining, by the functional component, the business data from the event object includes: the functional component determines a service data identifier according to a display component identifier and user operation in the event object; and the functional component acquires the service data by using the service data identifier.
In some embodiments, the functional component acquiring the service data using the service data identification comprises: the functional component sends a service data request to the data service, and the service data request carries a service data identifier; the data service acquires service data corresponding to the service data identifier from the service; the data service sends the business data to the functional component.
In some embodiments, the data service sending the traffic data to the functional component comprises: the data service broadcasts the service data to all the functional components which subscribe to the data subscription object in the data service.
In some embodiments, the display component sending the event object to the function component comprises: the display component sends the event object to a data service; the data service broadcasts the event object to all functional components that subscribe to the event subscription object in the data service.
In some embodiments, the functional component acquiring the service data using the service data identification comprises: and the functional component acquires the service data corresponding to the service data identifier from the data cache object, and the data cache object contains historical service data stored by the functional component.
In some embodiments, further comprising: the display component is reused by different functional components to form a new functional component.
According to another aspect of the embodiments of the present disclosure, there is provided a data processing apparatus including: the display component is configured to generate an event object according to user operation and send the event object to the function component; the display component is further configured to display the business data; and the functional component is configured to acquire the service data according to the event object and send the service data to the display component.
In some embodiments, the functional component is configured to: determining a service data identifier according to a display component identifier and user operation in an event object; and acquiring the service data by using the service data identifier.
In some embodiments, the data processing apparatus further comprises a data service module and a business service module; the functional component is configured to: sending a service data request to a data service, wherein the service data request carries a service data identifier; the data service module is configured to: acquiring business data corresponding to the business data identifier from the business service module; and sending the service data to the functional component.
In some embodiments, the data service module is configured to: broadcasting the service data to all the functional components which subscribe to the data subscription object in the data service module.
In some embodiments, the display component is configured to: sending the event object to a data service module; the data service module is configured to: and broadcasting the event object to all the functional components which subscribe to the event subscription object in the data service module.
In some embodiments, the functional component is configured to: and acquiring the service data corresponding to the service data identifier from the data cache object, wherein the data cache object comprises historical service data stored by the functional component.
In some embodiments, the display component is further configured to: and the different functional components are reused to form a new functional component.
According to still another aspect of the embodiments of the present disclosure, there is provided a data processing apparatus including: a memory; and a processor coupled to the memory, the processor configured to perform the aforementioned data processing method based on instructions stored in the memory.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the instructions, when executed by a processor, implement the aforementioned data processing method.
The method and the device can improve reusability of the components in the software system, thereby improving expandability of the software system and reducing repeated development work in the process of developing the software system.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 shows a flow diagram of a data processing method of some embodiments of the present disclosure.
FIG. 2 illustrates a flow diagram for some embodiments in which a display component sends event objects to a functional component.
Figure 3 illustrates a flow diagram of some embodiments in which a functional component obtains business data.
FIG. 4 illustrates a schematic diagram of some embodiments of a multiplexed display assembly.
Fig. 5 shows a schematic structural diagram of a data processing apparatus according to some embodiments of the present disclosure.
Fig. 6 shows a schematic structural diagram of a data processing apparatus according to further embodiments of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The inventors have divided page components into two types: functional Components (Functional Components) and display Components (Presentation Components). The following principles are followed in component division: the functional component is responsible for data processing, service calling, data transmission and other functions, and is not responsible for data display; the display component is responsible for acquiring the service data from the functional component, binding with the page template and only responsible for data display.
That is, the display component is a component for displaying data. It is characterized in that: (1) a relatively independent area is arranged on the page; (2) data is not generated by itself, but is obtained from a functional component (the functional component may also be referred to as a parent component) or from a data cache object; (3) events generated in the components are not processed, and event objects are transmitted to the functional components to be processed; (4) the display device is only used for displaying data, does not have a data processing function, and is high in reusability. The functional component is a component for exchanging data with the display component and processing events. It is characterized in that: (1) the functional components on the page can comprise a display component and can also comprise other functional components; (2) after acquiring the service data from the service, transmitting the service data to a display component or storing the service data in a data cache object; (3) responding to an event generated by the display component, processing the service and updating the service data, and transmitting the updated service data to the display component; (4) the reusability is weak.
Some embodiments of the disclosed data processing method are described below in conjunction with fig. 1.
Fig. 1 shows a flow diagram of a data processing method of some embodiments of the present disclosure. As shown in fig. 1, the present embodiment includes steps S101 to S105.
In step S101, the display component generates an event object according to a user operation.
For example, users often click on article titles on pages to jump to an article detail page. The page is a functional component, each article title contained in the page is a display component, and the page also contains a plurality of functional components with single functions. After the user clicks the article title, the display component corresponding to the article title can respond to the user operation to generate an event object of the page jump event. The event object mainly contains three items of information: (1) the element where the event occurred, i.e., the display component identification; (2) the action that occurs, i.e., clicking (other actions such as sliding and long pressing are also possible); (3) the content of the element, i.e., the data of the article title.
In step S102, the display component transmits the event object to the function component.
In step S103, the functional component acquires service data according to the event object.
In some embodiments, the functional component first determines the business data identifier based on the display component identifier and the user action in the event object. Then, the functional component acquires the service data by using the service data identifier.
For example, the functional component stores the mapping relationship among the display component identifier, the user operation identifier and the service data identifier in advance. According to the article title and the clicking operation of the user, the data identification of the article detail page can be determined. Then, the data of the article detail page is acquired by using the data identification of the article detail page.
In some embodiments, the data cache object contains historical business data stored by the functional component. When data is acquired, the functional component may acquire service data corresponding to the service data identifier from the data cache object.
The data cache object refers to data stored in a browser or a self-contained storage space of mobile equipment by application, and is mainly divided into two types: 1) data obtained when different pages request the same interface; 2) data that is not updated frequently, typically configuration class data. The application stores the required cache data to the local through a storage engine (such as SQLite, localstorage, IndexedDB, etc.) provided in different environments. If the display component acquires the service data from the functional component, the service data needs to be acquired in a streaming mode. The same service data is acquired for multiple times, and only a mode of requesting remote service for multiple times is available. The data cache object is cached locally, except that the first time of acquiring the service data requires requesting remote service, the subsequent requests are directly acquired locally, repeated requests are reduced, and response efficiency is improved. The required service data acquisition mode should be formulated according to the current service requirement, but there is also a certain division mode: 1) when the update change frequency of the required data is fast (such as data pushed in real time), the required data can be obtained from the functional component; when the update change frequency of the data is slow (such as configuration data of a user), the data can be obtained from the data cache object; 2) when the required service data is only suitable for the current page, the required service data can be obtained from the functional components; when the required data is applicable to a plurality of pages, the required data can be acquired from the cache object.
In step S104, the function component transmits the service data to the display component.
For example, the functional component may communicate business data to the display component via component communication.
In step S105, the display component displays the service data.
As will be understood by those skilled in the art, the page template and the component data have a bidirectional binding relationship, the page template is re-rendered after the service data is updated in the component, and the service data in the component is synchronously updated after the service data is changed and bound in the page template. Therefore, after the display component updates the service data in the component, the page update can be completed.
And after the functional component extracts the information in the event object, the fact that the click display component jumps to the article detail page of the article title is known. And then the data processing is carried out by the functional component instead of directly carrying out the data processing and the jump operation on the display component. Thus, the display module has high reusability. Different pages may reference the same display element even if the events to which the display elements respond are different (e.g., one to jump to an article detail page and one to delete the article), and subsequent operation of the event is handled by the respective functional element. That is, the present embodiment does not directly process the event in the display component, and thus avoids the situation that the display component determines different operations of the user and executes corresponding response actions.
The present embodiment divides the components into functional components and display components from the design level. And after the components are extracted according to the component division rule, business data flows into the display component from the functional components in a one-way mode, and event objects flow into the functional components from the display component in a one-way mode. Therefore, the embodiment is suitable for component management of an MVVM (multifunction virtual machine) architecture, can decouple components, and improves reusability of the components in a software system, so that maintainability and expandability of the software system are improved, and repeated development work in the same or similar module application scenes in the process of developing the software system is reduced.
The inventor further researches and discovers that the data transmission and the event processing between the components are completed through the service. The more services that are relied upon when the functionality of the component is complex. The closer and closer dependence between components and services results in tight coupling between components and services, which significantly reduces the maintainability of the software system.
To avoid component injection into services, the inventors further divided the services into Data services (Data services) and Business services (Business services).
The service module for obtaining the back-end service data can be divided according to different types of the service data, and a service data access interface is provided for other services such as data services to call.
The data service has functions of transmitting component events and transmitting business data, has a data access combination interface for calling the business service, and provides an event subscription object and a data subscription object for other components to subscribe. When the data service is instantiated, all events are defined, a unique event name is used as an event identifier, generally a character string consisting of a component name and an event name, and an event subscription object is provided. The data service also defines business data, takes a unique business data name as a business data identifier, generally a character string consisting of a component name and an interface name, and provides a data subscription object.
When the functional component is initialized, the component subscribes to a data subscription object in the data service by depending on the injected data service instance, and when the data service obtains updated data from the business service, the subscribed component is broadcasted and the data is pushed to the component. And subscribing an event subscription object in the data service, broadcasting the subscribed component when a new event object is updated, pushing the event object to the component, and delivering the event object to a processing unit by the component to extract event information for response of the next step.
Some embodiments in which the display component sends event objects to the functional component are described below in conjunction with FIG. 2.
FIG. 2 illustrates a flow diagram for some embodiments in which a display component sends event objects to a functional component. As shown in fig. 2, the process of the display component sending the event object to the function component includes steps S2021 to S2022.
In step S2021, the display component sends the event object to a data service.
For example, the display component submits an event object to the injected data service in response to a user action.
In step S2022, the data service broadcasts the event object to all functional components subscribed to the event subscription object in the data service.
Event subscription is a callback mode of the observer pattern in the design pattern. The observer pattern defines a one-to-many relationship, allowing multiple observer objects to monitor a subject object at the same time, and notifying all observer objects when the state of the subject object changes. Two types of objects are contained in observer patterns: a subject and a viewer. The topic is responsible for publishing events, and meanwhile, the watcher observes the topic by subscribing to the events, the topic and the watcher are decoupled and do not know the existence of each other, and the topic and the watcher only share the name of a self-defined event.
In this embodiment, the display component transmits the event object to the function component through the data service, and the function component actively acquires the event object after monitoring that the data service has the updated event object in an event subscription manner. The embodiment is suitable for component management and service management of an MVVM (multifunction virtual machine) architecture, so that the components and the services are decoupled, and the maintainability and the expandability of a software system are enhanced.
Some embodiments for the functional components to obtain business data are described below in conjunction with fig. 3.
Figure 3 illustrates a flow diagram of some embodiments in which a functional component obtains business data. As shown in fig. 3, the process of acquiring the service data by the functional component includes steps S3031 to S3033.
In step S3031, the functional component sends a service data request to the data service, where the service data request carries a service data identifier.
In step S3032, the data service obtains the service data corresponding to the service data identifier from the service.
For example, the data service calls a service data interface of the service to obtain service data, and the service data may be specifically detail content of an article.
In step S3033, the data service transmits the business data to the functional component.
For example, after updated service data exists in the data service, the service data is broadcast to all the functional components subscribing to the data subscription object in the data service, the functional components are informed that the service data in the data service is updated, and the functional components can reacquire the updated service data.
It will be understood by those skilled in the art that the data service may not only provide the functions of event delivery and acquiring the service data, but also may cache the service data to avoid requesting the same data from the service interface of the service multiple times. The display component and the function component can also store the service data to the data cache object while acquiring the service data transmitted by the upper layer.
In the MVVM architecture, services are invoked by components in a dependent injection manner, usually one-case. In the embodiment, the data service is divided as the intermediate channel, the component only sends a request for acquiring the service data to the uniform data service, the data service acquires specific service data from different service services, and notifies the component to acquire updated service data in a subscription mode, so that tight coupling between the component and the service due to direct access of the component to various services can be avoided. The embodiment is suitable for component management and service management of an MVVM (multifunction virtual machine) architecture, so that the components and the services are decoupled, and the maintainability and the expandability of a software system are enhanced.
How the display components are multiplexed is described below in conjunction with fig. 4.
FIG. 4 illustrates a schematic diagram of some embodiments of a multiplexed display assembly. As shown in FIG. 4, a component is initially developed in accordance with the mode of the display component, e.g., a list item is a display component, and list item data is displayed when the current page is entered. The list items have no other function than displaying the title.
With the change of the business, a deleting function needs to be added to the list item, so that the list item has certain functionality. At this time, the display component (list item) may be merged with the function item into a newly created function component, thereby converting the display component into a function component. The list item is a reusable part, and after the reusable part (the list item) is extracted, the list item can be reused in other pages as a display component. That is, the display component can be reused by different functional components to form a new functional component.
Some embodiments of the disclosed data processing apparatus are described below in conjunction with fig. 5.
Fig. 5 shows a schematic structural diagram of a data processing apparatus according to some embodiments of the present disclosure. As shown in fig. 5, the data processing apparatus 50 in the present embodiment includes: a display component 501 configured to generate an event object according to a user operation and send the event object to a function component; the display component 501 is further configured to display business data; and the functional component 502 is configured to acquire the service data according to the event object and send the service data to the display component.
The present embodiment divides the components into functional components and display components from the design level. And after the components are extracted according to the component division rule, business data flows into the display component from the functional components in a one-way mode, and event objects flow into the functional components from the display component in a one-way mode. Therefore, the embodiment is suitable for component management of an MVVM (multifunction virtual machine) architecture, can decouple components, and improves reusability of the components in a software system, so that maintainability and expandability of the software system are improved, and repeated development work in the same or similar module application scenes in the process of developing the software system is reduced.
In some embodiments, the functional component 502 is configured to: determining a service data identifier according to a display component identifier and user operation in an event object; and acquiring the service data by using the service data identifier.
In some embodiments, the data processing apparatus 50 further comprises a data service module 503 and a business service module 504; the functional component 502 is configured to: sending a service data request to the data service 503, where the service data request carries a service data identifier; the data service module 503 is configured to: acquiring service data corresponding to the service data identifier from the service module 504; the traffic data is sent to functional component 502.
In some embodiments, the data services module 504 is configured to: the business data is broadcast to all functional components 502 that subscribe to data subscription objects in the data service module 504.
In the MVVM architecture, services are invoked by components in a dependent injection manner, usually one-case. In the embodiment, the data service is divided as the intermediate channel, the component only sends a request for acquiring the service data to the uniform data service, the data service acquires specific service data from different service services, and notifies the component to acquire updated service data in a subscription mode, so that tight coupling between the component and the service due to direct access of the component to various services can be avoided. The embodiment is suitable for component management and service management of an MVVM (multifunction virtual machine) architecture, so that the components and the services are decoupled, and the maintainability and the expandability of a software system are enhanced.
In some embodiments, display component 501 is configured to: sending the event object to the data service module 504; the data service module 504 is configured to: the event object is broadcast to all functional components 502 that subscribe to the event subscription object in the data service module 504.
In this embodiment, the display component transmits the event object to the function component through the data service, and the function component actively acquires the event object after monitoring that the data service has the updated event object in an event subscription manner. The embodiment is suitable for component management and service management of an MVVM (multifunction virtual machine) architecture, so that the components and the services are decoupled, and the maintainability and the expandability of a software system are enhanced.
In some embodiments, the functional component 502 is configured to: and acquiring the service data corresponding to the service data identifier from the data cache object, wherein the data cache object comprises historical service data stored by the functional component.
In some embodiments, the display component 501 is further configured to: are reused by different functional components to form a new functional component 502.
Some embodiments of the disclosed data processing apparatus are described below in conjunction with fig. 6.
Fig. 6 shows a schematic structural diagram of a data processing apparatus according to further embodiments of the present disclosure. As shown in fig. 6, the data processing apparatus 60 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610, the processor 620 being configured to perform the data processing method in any of the foregoing embodiments based on instructions stored in the memory 610.
The data processing device 60 may also include an input-output interface 630, a network interface 640, a storage interface 650, and the like. These interfaces 630, 640, 650 and the connections between the memory 610 and the processor 620 may be through a bus 660, for example. The input/output interface 630 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, and a touch screen. The network interface 640 provides a connection interface for various networking devices. The storage interface 650 provides a connection interface for external storage devices such as an SD card and a usb disk.
The present disclosure also includes a computer readable storage medium having stored thereon computer instructions which, when executed by a processor, implement a data processing method in any of the foregoing embodiments.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only exemplary of the present disclosure and is not intended to limit the present disclosure, so that any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
Claims (12)
1. A method of data processing, comprising:
the display component generates an event object according to user operation and sends the event object to the function component, wherein the event object comprises a display component identifier and the user operation;
the functional component determines a service data identifier according to the display component identifier and the user operation in the event object;
the functional component sends a service data request to a data service, wherein the service data request carries the service data identifier;
the data service acquires the service data corresponding to the service data identifier from the service;
the data service sends the business data to a functional component;
the functional component sends the service data to a display component;
and the display component displays the service data.
2. The data processing method of claim 1, wherein the data service sending the traffic data to a functional component comprises:
and the data service broadcasts the business data to all the functional components which subscribe to the data subscription object in the data service.
3. The data processing method of claim 1, wherein the display component sending the event object to the functional component comprises:
the display component sends the event object to a data service;
the data service broadcasts the event object to all functional components that subscribe to the event subscription object in the data service.
4. The data processing method of claim 1, wherein the functional component acquiring the service data using the service data identification comprises:
and the functional component acquires the service data corresponding to the service data identifier from a data cache object, wherein the data cache object comprises historical service data stored by the functional component.
5. The data processing method of claim 1, further comprising:
the display component is reused by different functional components to form a new functional component.
6. A data processing apparatus comprising:
the display component is configured to generate an event object according to user operation and send the event object to the function component, and the event object comprises a display component identifier and the user operation; the display component is further configured to display the business data;
the functional component is configured to determine a service data identifier according to the display component identifier and the user operation in the event object; sending a service data request to a data service, wherein the service data request carries the service data identifier, and sending the service data to a display component;
a data service module and a business service module, the data service module configured to: acquiring the business data corresponding to the business data identifier from a business service module; and sending the service data to a functional component.
7. The data processing apparatus of claim 6,
the data service module is configured to: and broadcasting the business data to all the functional components which subscribe to the data subscription object in the data service module.
8. The data processing apparatus of claim 6,
the display component is configured to: sending the event object to a data service module;
the data service module is configured to: broadcasting the event object to all functional components subscribed to the event subscription object in the data service module.
9. The data processing apparatus of claim 6, wherein the functional component is configured to:
and acquiring the service data corresponding to the service data identifier from a data cache object, wherein the data cache object comprises historical service data stored by the functional component.
10. The data processing apparatus of claim 6, wherein the display component is further configured to: and the different functional components are reused to form a new functional component.
11. A data processing apparatus comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the data processing method of any of claims 1 to 5 based on instructions stored in the memory.
12. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions which, when executed by a processor, implement a data processing method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910633136.9A CN110321120B (en) | 2019-07-15 | 2019-07-15 | Data processing method, data processing apparatus, and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910633136.9A CN110321120B (en) | 2019-07-15 | 2019-07-15 | Data processing method, data processing apparatus, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110321120A CN110321120A (en) | 2019-10-11 |
CN110321120B true CN110321120B (en) | 2021-02-23 |
Family
ID=68123424
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910633136.9A Active CN110321120B (en) | 2019-07-15 | 2019-07-15 | Data processing method, data processing apparatus, and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110321120B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111191228A (en) * | 2019-12-20 | 2020-05-22 | 京东数字科技控股有限公司 | Service processing method and device, equipment and storage medium |
CN111367446B (en) * | 2020-05-26 | 2020-09-25 | 太平金融科技服务(上海)有限公司 | Business operation method and device, computer equipment and storage medium |
CN112579237B (en) * | 2020-12-17 | 2024-06-11 | 百果园技术(新加坡)有限公司 | Event response method, device, equipment and medium based on MVVM mode |
CN114780196B (en) * | 2022-04-29 | 2023-07-28 | 北京百度网讯科技有限公司 | User interface form rendering method and device, electronic equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8566781B2 (en) * | 2007-04-23 | 2013-10-22 | Siemens Aktiengesellschaft | Model-based view parts and reusable data source configurations |
CN108427555A (en) * | 2018-01-25 | 2018-08-21 | 山东汇贸电子口岸有限公司 | A kind of model for distributed storage variable data distribution method and system |
CN108958740A (en) * | 2018-06-12 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of data processing method and device |
CN109634599B (en) * | 2018-12-14 | 2020-05-19 | 北京字节跳动网络技术有限公司 | Page view display method, device, equipment and storage medium |
CN109739491A (en) * | 2018-12-25 | 2019-05-10 | 北京金山安全软件有限公司 | Control data display method and device, electronic equipment and storage medium |
-
2019
- 2019-07-15 CN CN201910633136.9A patent/CN110321120B/en active Active
Non-Patent Citations (1)
Title |
---|
广电行业之大数据应用和企业数据应用中心系统架构;唐月等;《广播与电视技术》;20160930;第43卷(第09期);第103-111页 * |
Also Published As
Publication number | Publication date |
---|---|
CN110321120A (en) | 2019-10-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110321120B (en) | Data processing method, data processing apparatus, and computer-readable storage medium | |
CN109445783B (en) | Method and device for constructing dynamic configuration application driven by service | |
CN114064024B (en) | Method, apparatus, device, storage medium and program product for developing micro-application | |
CN102752369B (en) | The supplying method of TV applications service and virtual content service platform | |
CN109032587B (en) | Data stream management framework, method, terminal equipment and storage medium | |
CN102855148A (en) | Android-based startup management method | |
CN109618176B (en) | Processing method, equipment and storage medium for live broadcast service | |
CN108781311A (en) | Video player frame for distribution of media and management platform | |
US10795633B2 (en) | Desktop sharing method and mobile terminal | |
CN101330674A (en) | Method for dynamically updating mobile phone software menu | |
CN104216698A (en) | Webpage registration method and relative device | |
CN111008032A (en) | Page data updating method and device | |
CN101115180B (en) | Electronic program menu system and functional module dynamic load operating method | |
JP2007310596A (en) | Service providing device, computer program and recording medium | |
CN113688173A (en) | Report information processing method and device, electronic equipment and storage medium | |
CN101222496B (en) | System and method for searching and starting service in network television system | |
CN105025320B (en) | Operable desktop system with hybrid architecture and implementation method thereof | |
CN111382039A (en) | Method, device, electronic equipment and storage medium for reporting user behavior event | |
CN111159207B (en) | Information processing method and device | |
CN107977277B (en) | Method and device for integrating third-party system in ERP system and computer equipment | |
US20090037493A1 (en) | Method and device for updating an object with copyright attribute | |
CN110673827A (en) | Resource calling method and device based on android system and electronic equipment | |
CN102185863A (en) | Intelligent data interactive publishing system and method between server and client | |
CN113220296B (en) | Android system interaction method and device | |
CN110908745B (en) | Data analysis display method and system, storage medium, server and client |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |