Data object display method, device, server and storage medium

By acquiring the data structure and resource data of the page, the problems of long page display processing flow and low data processing efficiency in the prior art are solved, and the effect of simplifying the processing flow and improving the data processing efficiency is achieved.

CN114139095BActive Publication Date: 2025-04-08BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111466286.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2025-04-08
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

In the information display process in the prior art, the processing process of page display is long and the data processing efficiency is low. Especially when the page needs to display multiple information modules, it is necessary to add a complete information data acquisition and generation processing process to each module.

Method used

By responding to the page display request, obtain the data structure corresponding to the page, specify the reading items required by the data objects in the display page, obtain the resource data corresponding to the data structure for each data object, and send the resource data to the client for display.

Benefits of technology

It simplifies the processing flow of page display, improves data processing efficiency, avoids the need to reorganize the data acquisition processing process when adding new modules, and improves the flexibility and efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114139095B_ABST
    Figure CN114139095B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a data object display method, device, server and storage medium, the data object display method comprising: in response to a display request for a page to be displayed, obtaining a data structure corresponding to the page; for each data object to be displayed in the page, obtaining resource data corresponding to the data structure; sending the resource data to a client for displaying the data object of the page. The data object display method, device, system and server disclosed in the present disclosure can solve the problems of long processing flow and low data processing efficiency of page display, and can obtain corresponding resource data for each data object to be displayed according to the data structure of the page, so that data can be read according to the common reading part of all data objects, without organizing data one by one for each data object, simplifying the processing flow of page display and improving data processing efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data object display, and in particular to a data object display method, device, server and storage medium. Background Art

[0002] With the development of information and network technology, the network has become an important way to exchange information. Usually, after receiving the user's operation, the network service provider can provide various services to the user. In this process, the service information needs to be displayed to the user.

[0003] Generally speaking, information can be delivered to users by displaying client pages, and the information content displayed in the page may be multifaceted. Therefore, there may be multiple information display modules in the page, each module containing different content and its information source may also be different.

[0004] The existing information display method is to obtain and send all information display modules of the same page one by one through streaming. In such a method, since the information data to be displayed by each information display module is obtained and generated separately, multiple information display modules are independent of each other. Therefore, when a new module needs to be added to the page, a complete set of information data acquisition and generation processing procedures needs to be added to the page display process for the new module. This results in that as the number of modules required to be displayed on the page increases, the page display processing process becomes longer and longer, and the data processing efficiency is low. Summary of the invention

[0005] The present disclosure provides a data object display method, device, server and storage medium to at least solve the problem of long page display processing flow and low data processing efficiency in the information display process in the related technology. The technical solution of the present disclosure is as follows:

[0006] According to a first aspect of an embodiment of the present disclosure, a data object display method is provided, the data object display method comprising: in response to a display request for a page to be displayed, obtaining a data structure corresponding to the page, wherein the data structure specifies read items required to display data objects in the page; for each data object to be displayed in the page, obtaining resource data corresponding to the data structure; and sending the resource data to a client for displaying the data objects in the page.

[0007] Optionally, for each data object in the page, the step of obtaining resource data corresponding to the data structure includes: for each data object in the page, reading configuration information of the data object, wherein the configuration information indicates whether to display the data object; based on the configuration information, determining the data object to be displayed in the page; and obtaining the resource data corresponding to the data structure of the data object to be displayed.

[0008] Optionally, the configuration information includes display time configuration information and / or display switch information, the display time configuration information indicates the start time and end time of displaying the data object, and the display switch information indicates whether to display the data object, wherein the step of determining the data object to be displayed in the page based on the configuration information includes: reading the display time configuration information of each data object, and determining the data object as the data object to be displayed when the current moment is between the display start time and the display end time of the data object; and / or reading the display switch information of each data object, and determining the data object as the data object to be displayed when the display switch information indicates to display the data object.

[0009] Optionally, the data object display method also includes: acquiring real-time data of the data object; deleting data in the real-time data that does not meet preset conditions; acquiring static data of the data object, wherein the static data refers to preset data used to display the data object; combining the real-time data after deleting the data that does not meet the preset conditions with the static data to obtain combined data, and storing the combined data as resource data of the data object.

[0010] Optionally, the step of obtaining real-time data of the data object includes: obtaining real-time data of the data object at predetermined time intervals, wherein the step of storing the combined data as preset resource data includes: comparing the combined data at the current moment with the stored resource data, if the combined data at the current moment is the same as the stored resource data, retaining the stored resource data; if the combined data at the current moment is different from the stored resource data, updating the stored resource data with the combined data at the current moment.

[0011] Optionally, the step of acquiring resource data of the data object corresponding to the data structure includes: calling pre-stored resource data of the data object, and reading resource data corresponding to the data structure from the pre-stored resource data.

[0012] Optionally, the step of calling the pre-stored resource data of the data object and reading the resource data corresponding to the data structure from the pre-stored resource data includes: checking whether the pre-stored resource data of each data object is called, and if the pre-stored resource data is not called, deleting the data object; if the pre-stored resource data is called, reading the resource data corresponding to the data structure from the pre-stored resource data.

[0013] Optionally, the data structure includes at least one of a resource data reading item, a display time reading item, a display switch reading item and a data object name reading item, the resource data reading item is used to obtain resource data of the data object, the display time reading item is used to obtain the start time and end time of displaying the data object, the display switch reading item is used to determine whether to display the data object, and the data object name reading item is used to read the name of the data object.

[0014] According to a second aspect of an embodiment of the present disclosure, a data object display device is provided, comprising: a data structure acquisition unit, configured to obtain a data structure corresponding to a page to be displayed in response to a display request for the page, wherein the data structure specifies read items required to display data objects in the page; a resource data acquisition unit, configured to obtain resource data corresponding to the data structure for each data object in the page; and a sending unit, configured to send the resource data to a client for displaying the data objects in the page.

[0015] Optionally, the resource data acquisition unit is further configured to: for each data object in the page, read configuration information of the data object, wherein the configuration information indicates whether to display the data object; based on the configuration information, determine the data object to be displayed in the page; and obtain resource data corresponding to the data structure of the data object to be displayed.

[0016] Optionally, the configuration information includes display time configuration information and / or display switch information, the display time configuration information indicates the start time and end time of displaying the data object, and the display switch information indicates whether to display the data object, wherein the resource data acquisition unit is further configured to: read the display time configuration information of each data object, and when the current moment is between the display start time and end time of the display data object, determine the data object as a data object to be displayed; and / or read the display switch information of each data object, and when the display switch information indicates to display the data object, determine the data object as a data object to be displayed.

[0017] Optionally, the data object display device also includes a pre-storage unit, which is configured to: obtain real-time data of the data object; delete data in the real-time data that does not meet preset conditions; obtain static data of the data object, wherein the static data refers to preset data used to display the data object; combine the real-time data after deleting the data that does not meet the preset conditions with the static data to obtain combined data, and store the combined data as resource data of the data object.

[0018] Optionally, the pre-storage unit is further configured to: obtain real-time data of the data object at a predetermined time interval, wherein the pre-storage unit is further configured to: compare the combined data at the current moment with the stored resource data, if the combined data at the current moment is the same as the stored resource data, retain the stored resource data; if the combined data at the current moment is different from the stored resource data, update the stored resource data with the combined data at the current moment.

[0019] Optionally, the pre-storage unit is further configured to: call pre-stored resource data of the data object, and read resource data corresponding to the data structure from the pre-stored resource data.

[0020] Optionally, the pre-storage unit is further configured to: check whether the pre-stored resource data of each data object is called, and if the pre-stored resource data is not called, delete the data object; if the pre-stored resource data is called, read the resource data corresponding to the data structure from the pre-stored resource data.

[0021] Optionally, the data structure includes at least one of a resource data reading item, a display time reading item, a display switch reading item and a data object name reading item, the resource data reading item is used to obtain resource data of the data object, the display time reading item is used to obtain the start time and end time of displaying the data object, the display switch reading item is used to determine whether to display the data object, and the data object name reading item is used to read the name of the data object.

[0022] According to a third aspect of an embodiment of the present disclosure, a server is provided, comprising: a processor; and a memory for storing instructions executable by the processor, wherein the processor executable instructions, when executed by the processor, prompt the processor to execute the data object display method according to the embodiment of the present disclosure.

[0023] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the data object display method according to the embodiment of the present disclosure.

[0024] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising computer instructions, which, when executed by a processor, implement the data object display method according to the embodiment of the present disclosure.

[0025] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0026] According to the data structure of the page, the corresponding resource data can be obtained for each data object to be displayed, so that data can be read according to the common reading part of all data objects. There is no need to organize data one by one for each data object, which simplifies the processing flow of page display and improves data processing efficiency.

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

[0028] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0029] Figure 1 is a flowchart showing an example of a method according to an existing data object.

[0030] Figure 2 The figure is a flow chart of a data object display method according to an exemplary embodiment.

[0031] Figure 3 The present invention is a flowchart showing the steps of obtaining resource data of a data object in a data object display method according to an exemplary embodiment.

[0032] Figure 4 The present invention is a flowchart showing an example of the step of obtaining resource data of a data object in a data object display method according to an exemplary embodiment.

[0033] Figure 5 The invention is a flowchart showing an example of sending configuration data in a data object display method according to an exemplary embodiment.

[0034] Figure 6 The invention is a flowchart showing an example of obtaining resource data of a data object in a data object display method according to an exemplary embodiment.

[0035] Figure 7 The present invention is a block diagram of a data object display device according to an exemplary embodiment.

[0036] Figure 8It is a block diagram of a server according to an exemplary embodiment. DETAILED DESCRIPTION

[0037] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0038] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0039] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.

[0040] It should also be noted that, although the following is explained using the application scenario of the page display of the application client as an example, it should be understood that the application scenario of the data object display method, device, server and storage medium according to the present disclosure is not limited thereto, and it can also be applied to any other application scenario involving data object display such as website web pages. It should also be noted that the user information involved in the present disclosure (including but not limited to user device information, user personal information, etc.) is all information authorized by the user or fully authorized by all parties.

[0041] Before describing the exemplary embodiments of the present disclosure, first refer to Table 1 and Figure 1 Describes an example of displaying a method based on an existing data object.

[0042] Specifically, Table 1 shows an example application scenario according to the existing data object display method. As shown in Table 1, the main page of the xx activity includes module 1, module 2, module 3, module 4, module 5, module 6, module 7 and sub-activity entrances. Each module specifies an estimated display time, for example, the display time of module 1 is from 00:00 on July 20 to 24:00 on September 5. Some specific modules specify adjustable content, for example, the sub-activity entrance supports quantity adjustment and position adjustment, and module 5 supports emergency processing function.

[0043]

[0044] Figure 2 So Figure 1 The application scenario shown in the figure is used as an example to show the flow chart of the module. Figure 2 As shown, in step S101, the user can send a page display request to the server through the client. In step S102, the server reads the display time configuration of all modules in the page from the configuration file in response to the received request, and in step S103, searches for the module that needs to be displayed at the current moment, that is, the module that falls into the current moment. Figure 1 The display time range shown in FIG. 1 is within the range of the display time shown in FIG. 1. In steps S104 to S109, the server queries the resource data of each module one by one according to the module that needs to be displayed at the current moment found in step S103. Specifically, in steps S104 and S105, the server queries the resource data of module 2 from the data source of module 2 and receives the returned data; in steps S106 and S107, the resource data of module 4 is queried from the data source of module 4 and receives the returned data; in steps S108 and S109, the resource data of module 7 is queried from the data source of the operation background service module and receives the returned data. Then, in step S1010, the server checks again whether the display time of the above-mentioned modules that need to be displayed is met, and in step S1011, the resource data of the modules that meet the display time after the check are assembled. Finally, in step S1012, the assembled resource data is sent to the client for display.

[0045] from Figure 2As can be seen from the process, in the existing information module display method, it is necessary to query the resource data of each module to be displayed separately, and then assemble them together and send them to the client. With this method, on the one hand, when a new module needs to be added, it is necessary to add a complete query for the new module and a processing process for receiving the returned data (for example, the processing process of steps S4 and S5). When there are many modules, the overall processing process is too long and inconvenient for later maintenance; on the other hand, in the data calling process, after receiving the display request from the client, the server calls data from multiple data sources in turn, so that the time of the entire data acquisition process may be longer, resulting in a slower response speed to the request, which brings inconvenience to the user.

[0046] In view of the above problems, a data object display method, a data object display device, a server, a computer-readable storage medium, and a computer program product according to exemplary embodiments of the present disclosure will be provided below with reference to the accompanying drawings.

[0047] Figure 2 The present invention is a flowchart of a data object display method according to an exemplary embodiment. The data object display method can be applied to a server.

[0048] Here, it should be noted that the "server" described in the context of the present disclosure may refer to any execution subject that can execute the data object display method described below, such as a server. The server may include an independently running server, or a distributed server, or a server cluster composed of multiple servers. In contrast, the "client" may correspond to the server, which can provide local services to users. The client here may include, for example, physical devices such as smart phones, tablet computers, laptops, digital assistants, wearable devices, and vehicle-mounted terminals, and may also include software running on physical devices such as web browsers and application clients, which provide services to users by receiving corresponding service information from the server. A specific communication connection can be established between the above-mentioned server and the client to ensure normal communication of data. The communication connection can be in any manner, and the present disclosure does not impose any special restrictions on this.

[0049] like Figure 2 As shown, the data object display method may include the following steps:

[0050] In step S10, in response to a display request for a page to be displayed, a data structure corresponding to the page may be acquired.

[0051] In this step, a display request may be sent from the client to the server, and the display request may carry the data object of the page to be displayed. In this article, the data object may refer to the information module mentioned above. Specifically, the page may include one or more resource bits, and each resource bit may correspond to a data object. The number of data objects may be one or more.

[0052] In response to the received display request, the server can obtain the data structure of the data object. Here, the data structure specifies the read items required for the data object in the display page, which does not contain the data corresponding to the read items. The server can read the display data of the data object according to the read items specified in the data structure. Each page can correspond to a preset data structure. For each data object in the page, the read items in the data structure are read to form the data required to display the data object. In this way, the data structure can be extracted as a common part of all data objects. When a new data object needs to be added, the data can be extracted according to the read items specified in the data structure, without the need to write data reading logic separately for the new data object, which simplifies the overall processing flow of the display page and improves the display efficiency.

[0053] For example, the data structure may be formed in the form of an interface layer, in which member definitions required to constitute a data object are specified, which may include methods, properties, indexers and / or events as members.

[0054] As an example, the data structure may include at least one of a resource data read item, a presentation time read item, a presentation switch read item, and a data object name read item.

[0055] Specifically, the resource data reading item can be used to obtain the resource data of the data object. Here, resource data refers to the resources required to display the data object. As an example, the resource data may include static data and real-time data. Static data refers to preset data used to display the data object, which does not need to be updated in real time. It may be, for example, preset text, the number of data objects displayed, the title, background and touch elements of the data object, etc. Real-time data refers to dynamic data that needs to be obtained from downstream data sources, such as real-time voting counts of voting lists, hot search topics, etc.

[0056] The display time read item can be used to obtain the start time and end time of the display data object. Figure 1 As described above, each data object may be preset with a display time, and the display time may include a display start time and a display end time. When the current time is between the display start time and the display end time, the data object may be displayed.

[0057] The display switch reading item can be used to determine whether to display a data object. Specifically, a display switch can be set for each data object, which allows the data object not to be displayed at the moment between the display start time and the display end time. For example, emergency processing can be performed on the data object being displayed, such as by turning off the display switch, the state of the data object being displayed is changed to not displayed. When it is needed to be displayed next time, the display switch can be directly turned on, which improves the control efficiency of data object display. Setting the display switch reading item can read whether the data object can be displayed based on the display time, so that in addition to time control, the display of the data object can be quickly turned on or off. As an example, the display switch "open" can be written for each data object. When the value of the switch is "true", the data object is allowed to be displayed; when the value of the switch is "false", even if the current moment is between the display start time and the display end time, the data object is not allowed to be displayed.

[0058] The data object name read item can be used to read the name of the data object. The name of the data object can be used to classify other data categories in the data structure so as to classify the corresponding data into the display data of the data object to which it belongs.

[0059] In step S20, resource data corresponding to the data structure may be obtained for each data object to be displayed in the page.

[0060] In this step, the resource data indicated in the data structure of all data objects in the page can be read according to the data structure. For example, in the case where the data structure includes a resource data reading item, the resource data can be read through the resource data reading item.

[0061] As an example, step S20 may include: S21. For each data object in the page, read the configuration information of the data object, wherein the configuration information indicates whether to display the data object; S22. Based on the configuration information, determine the data object to be displayed in the page; S23. Obtain resource data corresponding to the data structure of the data object to be displayed.

[0062] Specifically, the configuration information may include presentation time configuration information and / or presentation switch information. As described above, the presentation time configuration information may indicate the presentation start time and presentation end time of the presentation data object, and the presentation switch information may indicate whether to present the data object. In the case where the data structure includes a presentation time read item and a presentation switch read item, the presentation time configuration information and / or the presentation switch information may be read through the presentation time read item and / or the presentation switch read item.

[0063] In addition, both the display time configuration information and the display switch information may be preset information, which may be specified by the service provider and may be dynamically modified.

[0064] Accordingly, step S22 may include: reading display time configuration information of each data object in the data objects, and / or reading display switch information of each data object in the data objects.

[0065] Specifically, the server can determine whether the current time of receiving the display request is between the display start time and the display end time of each data object in the page requested for display. If so, the data object is determined as the data object to be displayed. If not, there is no need to obtain the resource data of the data object, that is, the data object is not displayed, and the data returned to the client may not include the resource data of the data object.

[0066] Similarly, the server can determine whether the display switch of each data object in the page requested for display at the current moment when the display request is received is turned on. If it is turned on, the data object is determined as the data object to be displayed. If it is not turned on, there is no need to obtain the resource data of the data object, that is, the data object is not displayed, and the data returned to the client may not include the resource data of the data object.

[0067] Here, it should be noted that step S20 may be executed for the purpose of controlling whether data objects are displayed in the page. In some examples where it is not necessary to control whether data objects are displayed, steps S21 to S23 may not be executed.

[0068] Here, in the example where step S20 includes steps S21 to S23, the server may obtain resource data of data objects in the page that meet the display time and have the display switch turned on.

[0069] In the case where the resource data includes static data and real-time data, the data object display method may also include: step S41, obtaining the real-time data of the data object; step S42, deleting the data that does not meet the preset conditions in the real-time data; step S43, obtaining the static data of the data object; step S44, combining the real-time data after deleting the data that does not meet the preset conditions with the static data to obtain combined data, and storing the combined data as the resource data of the data object.

[0070] In step S41, real-time data of the data object may be obtained, and the real-time data may be provided by a data source downstream of the server. The server may integrate data provided by one or more downstream data sources to form the real-time data of the data object. In one case, the real-time data of the data object may be obtained at a predetermined time interval.

[0071] In step S32, the real-time data may be checked and the data that does not meet the preset conditions may be deleted. Here, the preset conditions may be any conditions set for the real-time data, for example, they may include: the data volume of the real-time data is greater than or equal to the data volume threshold; and / or the real-time data contains preset information content.

[0072] Specifically, the preset condition that the data volume of real-time data is greater than or equal to the data volume threshold can be used to determine whether the real-time data currently acquired is valid and usable data. When the data volume of real-time data is greater than or equal to the data volume threshold, the data object can be displayed normally based on the real-time data; when the data volume of real-time data is less than the data volume threshold, it can be considered that the real-time data is insufficient to display the data object. In this case, the real-time data can be discarded. After discarding, the real-time data of the corresponding data object is null.

[0073] The preset condition that the real-time data contains preset information content can be used to determine whether the currently acquired real-time data contains the information content required by the data object. When the real-time data contains the preset information content, the data object can be displayed normally based on the real-time data; when the real-time data lacks one or more of the preset information contents, it can be considered that the real-time data is insufficient for displaying the data object. In this case, the real-time data can be discarded. After discarding, the real-time data of the corresponding data object is null.

[0074] In step S43, static data of the data object may be obtained, and the static data obtained here may be static data of all data objects.

[0075] In step S44, static data corresponding to the real-time data after deleting the data that does not meet the preset condition can be extracted from the acquired static data and spliced ​​with the corresponding real-time data to form resource data of each data object, which can be stored on the server.

[0076] In the case of acquiring real-time data of the data object at a predetermined time interval in step S41, in step S34, the combined data at the current moment can be compared with the stored resource data. If the combined data at the current moment is the same as the stored resource data, the stored resource data is retained; if the combined data at the current moment is different from the stored resource data, the stored resource data is updated with the combined data at the current moment.

[0077] Specifically, the above steps S41 to S44 can be automatically executed by the server without receiving a display request. For example, the server can obtain real-time data once every predetermined time (for example, 1 minute) and check it, obtain static data, and splice and store the real-time data and static data. In this way, the resource data of each data object stored on the server can be updated at a predetermined time.

[0078] In this example, when the server receives a display request for a page, in step S20, the pre-stored resource data of the data object can be called to read the resource data corresponding to the data structure from the pre-stored resource data without temporarily obtaining data from the downstream service, which can improve the response speed to the display request and reduce the operating pressure of the server when receiving a large number of display requests. In this way, according to the data object display method of the exemplary embodiment of the present disclosure, the scheme of updating resource data offline and reading configuration information online can be adopted, and the assembled data can be directly read, thereby improving the response speed of the server.

[0079] In addition, when calling the pre-stored resource data of a data object, it is also possible to check whether the pre-stored resource data of each data object is called. If the pre-stored resource data is not called, the data object is deleted; if the pre-stored resource data is called, the resource data corresponding to the data structure is read from the pre-stored resource data.

[0080] Figure 4 An example flow chart of updating resource data according to an example embodiment is shown. Figure 4 As shown, in step S201, the task of updating resource data can be triggered from the task platform of the server at a preset interval. In steps S202 to S207, the real-time data of data object modules 1, 2 and 3 can be obtained. In step S208, the real-time data can be checked and the data that does not meet the preset conditions as described above can be deleted. In step S209, static data can be obtained. In step S2011, the static data returned in step S2010 can be assembled with the real-time data after checking and deleting the data that does not meet the preset conditions in step S208 to obtain the assembled data. Optionally, in step S2012, the assembled data at the current moment can be compared with the stored resource data. If the assembled data at the current moment is the same as the stored resource data, the stored resource data is retained; if the combined data at the current moment is different from the stored resource data, then in step S2013, the stored resource data is updated with the combined data at the current moment. Finally, in step S2014, the execution result of this resource data update can be fed back to the task platform. The execution result can include, for example, whether the update is successfully executed, whether the resource data is updated, etc. Figure 4It can be seen that the above resource data update process has nothing to do with the client, and it is an operation performed regularly by the server.

[0081] In step S30, the resource data may be sent to the client to be used for displaying the data objects of the page.

[0082] In this step, in the example of executing step S20, resource data of the data objects indicated by the configuration information to be displayed may be sent to the client, so that these data objects are displayed on the client.

[0083] In addition, in the data object display method according to the exemplary embodiment of the present disclosure, before step S30, a page pre-online verification step may be further included.

[0084] Specifically, if Figure 5 As shown, the data object may be, for example, module 1 to module 9. In steps S41 to S44, the real-time data of the module may be obtained from the corresponding module data source, and the real-time data may be combined with the static data to be stored in the configuration center of the server. Before step S30, the combined data stored in the configuration center may be called to generate a pre-display page to verify whether the page can be displayed normally. After verifying that the page can be displayed normally, the resource data may be sent to the client to perform a formal page display.

[0085] References Figure 2 , generally describes the data object display process from step S10 to step S30, and the following reference Figure 6 An application example of sending configuration data according to the data object display method disclosed in the present invention is shown.

[0086] like Figure 6As shown, in step S301, the server may receive a page display request from the client. In step S302, the server obtains the data structure of the data object of the page, for example, the data structure as the interface layer may be scanned by BeanFactory. In step S303, based on the configuration information reading item in the data structure, the configuration information of the data object is read, where the configuration information may include display time configuration information and display switch configuration information. In step S305, based on the configuration information received in step S304, the data objects that do not meet the display time or the display switch is turned off may be deleted. In step S306, based on the resource data reading item in the data structure, the resource data of the data objects that meet the display time and the display switch is turned on may be obtained. In step S308, based on the resource data received in step S307, the data objects whose resource data are empty may be deleted, that is, any data of the data objects whose resource data are empty will not be included in the data packet finally returned to the client. In step S309, the resource data of all data objects may be assembled to obtain the final data packet for display. In step S3010, the final data packet may be sent to the client for page display.

[0087] According to the data object display method of the exemplary embodiment of the present disclosure, when a new module needs to be added, the data structure of the page can be inherited and the corresponding data of the new module can be read according to the data structure. When obtaining the complete information of all data objects of the page, it is not necessary to distinguish each data object for streaming query, but all data objects can be processed uniformly and specific data can be queried uniformly. In this way, when data objects are dynamically added or deleted, the data structure part of the page does not need to be changed at all, and can be seamlessly linked with the newly added data objects.

[0088] Figure 7 is a block diagram of a data object display device according to an exemplary embodiment. Figure 7 The device 10 includes a data structure acquisition unit 100, a resource data acquisition unit 200 and a sending unit 300.

[0089] The data structure acquisition unit 100 may be configured to, in response to a display request for a page to be displayed, acquire a data structure corresponding to the page. Here, the data structure specifies the read items required to display the data objects in the page.

[0090] The resource data acquisition unit 200 may be configured to acquire resource data corresponding to the data structure for each data object in the page.

[0091] The sending unit 300 may be configured to send the resource data to the client for displaying the data object of the page.

[0092] As an example, the resource data acquisition unit 200 can also be configured to: for each data object in the page, read the configuration information of the data object, wherein the configuration information indicates whether to display the data object; based on the configuration information, determine the data object to be displayed in the page; and obtain the resource data corresponding to the data structure of the data object to be displayed.

[0093] As an example, the configuration information may include presentation time configuration information and / or presentation switch information. The presentation time configuration information may indicate the start time and end time of the presentation data object, and the presentation switch information may indicate whether to present the data object.

[0094] Accordingly, the resource data acquisition unit 200 may also be configured to: read the display time configuration information of each data object, and when the current moment is between the display start time and the display end time of the data object, determine the data object as a data object to be displayed; and / or read the display switch information of each data object, and when the display switch information indicates to display the data object, determine the data object as a data object to be displayed.

[0095] As an example, the data object display device 10 also includes a pre-storage unit 400, which can be configured to: obtain real-time data of the data object; delete data that does not meet preset conditions in the real-time data; obtain static data of the data object, wherein the static data refers to preset data used to display the data object; combine the real-time data after deleting the data that does not meet the preset conditions with the static data to obtain combined data, and store the combined data as resource data of the data object.

[0096] As an example, the pre-storage unit 400 may also be configured to: obtain real-time data of the data object at a predetermined time interval. Here, the pre-storage unit 400 may also be configured to: compare the combined data at the current moment with the stored resource data, and if the combined data at the current moment is the same as the stored resource data, retain the stored resource data; if the combined data at the current moment is different from the stored resource data, update the stored resource data with the combined data at the current moment.

[0097] As an example, the pre-storage unit 400 may also be configured to: call pre-stored resource data of the data object, and read resource data corresponding to the data structure from the pre-stored resource data.

[0098] As an example, the pre-storage unit 400 can also be configured to: check whether the pre-stored resource data of each data object is called, and if the pre-stored resource data is not called, delete the data object; if the pre-stored resource data is called, read the resource data corresponding to the data structure from the pre-stored resource data.

[0099] As an example, the data structure includes at least one of a resource data read item, a display time read item, a display switch read item, and a data object name read item. The resource data read item is used to obtain resource data of the data object, the display time read item is used to obtain the start time and end time of the display data object, the display switch read item is used to determine whether to display the data object, and the data object name read item is used to read the name of the data object.

[0100] Regarding the device in the above embodiment, the specific manner in which each unit performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.

[0101] Figure 8 FIG. 1 is a block diagram of a server according to an exemplary embodiment. Figure 8 As shown, the server 1000 includes a processor 101 and a memory 102 for storing processor executable instructions. Here, when the processor executable instructions are executed by the processor, the processor is prompted to execute the data object display method as described in the above exemplary embodiment.

[0102] As an example, the server 1000 may be a history server or any type of server capable of managing computing resources. Here, the server 1000 is not necessarily a single device, but may also be any collection of devices or circuits capable of executing the above instructions (or instruction sets) individually or in combination. The server 1000 may also be part of an integrated control system or system manager, or may be configured as a server interconnected with a local or remote (e.g., via wireless transmission) interface.

[0103] In the server 1000, the processor 101 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not a limitation, the processor 101 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.

[0104] The processor 101 may execute instructions or codes stored in the memory 102, wherein the memory 102 may also store data. Instructions and data may also be sent and received over a network via a network interface device, wherein the network interface device may employ any known transmission protocol.

[0105] The memory 102 may be integrated with the processor 101, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 102 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory 102 and the processor 101 may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor 101 can read files stored in the memory 102.

[0106] In addition, the server 1000 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the server 1000 may be connected to each other via a bus and / or a network.

[0107] In an exemplary embodiment, a computer-readable storage medium may also be provided. When the instructions in the computer-readable storage medium are executed by the processor of the server, the server can execute the data object display method as described in the above exemplary embodiment. The computer-readable storage medium may be, for example, a memory including instructions. Optionally, the computer-readable storage medium may be: a read-only memory (ROM), a random access memory (RAM), a random access programmable read-only memory (PROM), an electrically erasable programmable read-only memory (EEPROM), a dynamic random access memory (DRAM), a static random access memory (SRAM), a flash memory, a non-volatile memory, a CD-ROM, a CD-R, a CD+R, a CD-RW, a CD+RW, a DVD-ROM, a DVD-R, a DVD+R, a DVD-RW, a DVD+RW, a DVD-RAM, a BD-ROM, a BD-R, a BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.

[0108] In an exemplary embodiment, a computer program product may also be provided. The computer program product includes computer instructions. When the computer instructions are executed by a processor, the data object display method as described in the above exemplary embodiment is implemented.

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

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

Claims

1. A data object display method, characterized in that: The data object display method comprises: In response to a display request for a page to be displayed, obtaining a data structure corresponding to the page, wherein the data structure specifies read items required to display a data object in the page; For each data object to be displayed in the page, obtaining resource data corresponding to the data structure; Sending the resource data to the client for displaying the data object of the page; Wherein, the data object display method further includes: Acquire real-time data of the data object; Deleting data that does not meet preset conditions in the real-time data; Obtaining static data of the data object, wherein the static data refers to preset data that does not need to be updated in real time and is used to display the data object, and the static data includes at least one of a preset text of the data object, a display quantity of the data object, a title of the data object, a background of the data object, and a touch element of the data object; Combining the real-time data after deleting the data not meeting the preset condition with the static data to obtain combined data, and storing the combined data as resource data of the data object; Before sending the resource data to the client for displaying the data object of the page, the data object display method further includes: Generating a preview page using the resource data; The sending of the resource data to the client for displaying the data object of the page includes: When the pre-display page can be displayed normally, the resource data is sent to the client to be used for displaying the data object of the page.

2. The data object display method according to claim 1, characterized in that: For each data object in the page, the step of obtaining resource data corresponding to the data structure includes: For each data object in the page, read configuration information of the data object, wherein the configuration information indicates whether to display the data object; Based on the configuration information, determining the data object to be displayed in the page; Obtain resource data of the data object to be displayed corresponding to the data structure.

3. The data object display method according to claim 2, characterized in that: The configuration information includes display time configuration information and / or display switch information, wherein the display time configuration information indicates the start time and end time of displaying the data object, and the display switch information indicates whether to display the data object. The step of determining the data object to be displayed in the page based on the configuration information includes: Read the display time configuration information of each data object, and when the current time is between the display start time and the display end time of the display data object, determine the data object as the data object to be displayed, and / or, The display switch information of each data object is read, and when the display switch information indicates that the data object is to be displayed, the data object is determined as a data object to be displayed.

4. The data object display method according to claim 1, characterized in that: The step of acquiring the real-time data of the data object comprises: acquiring the real-time data of the data object at a predetermined time interval, Among them, the step of storing the combined data as preset resource data includes: comparing the combined data at the current moment with the stored resource data, if the combined data at the current moment is the same as the stored resource data, retaining the stored resource data; if the combined data at the current moment is different from the stored resource data, updating the stored resource data with the combined data at the current moment.

5. The data object display method according to claim 1 or 4, characterized in that: The step of acquiring resource data corresponding to the data structure includes: The pre-stored resource data of the data object is called, and the resource data corresponding to the data structure is read from the pre-stored resource data.

6. The data object display method according to claim 5, characterized in that: The steps of calling the pre-stored resource data of the data object and reading the resource data corresponding to the data structure from the pre-stored resource data include: checking whether the pre-stored resource data of each data object is called, and if the pre-stored resource data is not called, deleting the data object; if the pre-stored resource data is called, reading the resource data corresponding to the data structure from the pre-stored resource data.

7. The data object display method according to claim 1, characterized in that: The data structure includes at least one of a resource data reading item, a display time reading item, a display switch reading item and a data object name reading item. The resource data reading item is used to obtain resource data of the data object, the display time reading item is used to obtain the start time and end time of the display data object, the display switch reading item is used to determine whether to display the data object, and the data object name reading item is used to read the name of the data object.

8. A data object display device, characterized in that: The data object display device comprises: a data structure acquisition unit, configured to, in response to a display request for a page to be displayed, acquire a data structure corresponding to the page, wherein the data structure specifies a read item required for displaying a data object in the page; A resource data acquisition unit, configured to acquire resource data corresponding to the data structure for each data object in the page; A sending unit, configured to send the resource data to a client for displaying the data object of the page; Wherein, the data object display device further includes a pre-storage unit, and the pre-storage unit is configured as follows: Acquire real-time data of the data object; Deleting data that does not meet preset conditions in the real-time data; Obtaining static data of the data object, wherein the static data refers to preset data that does not need to be updated in real time and is used to display the data object, and the static data includes at least one of a preset text of the data object, a display quantity of the data object, a title of the data object, a background of the data object, and a touch element of the data object; Combining the real-time data after deleting the data not meeting the preset condition with the static data to obtain combined data, and storing the combined data as resource data of the data object; Wherein, the data object display device further includes: A preview page generation unit generates a preview page using the resource data; The sending unit is configured as follows: When the pre-display page can be displayed normally, the resource data is sent to the client to be used for displaying the data object of the page.

9. The data object display device according to claim 8, characterized in that: The resource data acquisition unit is further configured to: For each data object in the page, read configuration information of the data object, wherein the configuration information indicates whether to display the data object; Based on the configuration information, determining the data object to be displayed in the page; Obtain resource data of the data object to be displayed corresponding to the data structure.

10. The data object display device according to claim 9, characterized in that: The configuration information includes display time configuration information and / or display switch information, wherein the display time configuration information indicates the start time and end time of displaying the data object, and the display switch information indicates whether to display the data object. Wherein, the resource data acquisition unit is further configured to: Read the display time configuration information of each data object, and determine the data object as the data object to be displayed if the current time is between the display start time and the display end time of the display data object. and / or, The display switch information of each data object is read, and when the display switch information indicates that the data object is to be displayed, the data object is determined as a data object to be displayed.

11. The data object display device according to claim 8, characterized in that: The pre-storage unit is further configured to: obtain real-time data of the data object at predetermined time intervals, Wherein, the pre-storage unit is also configured to: compare the combination data at the current moment with the stored resource data, if the combination data at the current moment is the same as the stored resource data, retain the stored resource data; if the combination data at the current moment is different from the stored resource data, update the stored resource data with the combination data at the current moment.

12. The data object display device according to claim 8 or 11, characterized in that: The pre-storage unit is further configured as: The pre-stored resource data of the data object is called, and the resource data corresponding to the data structure is read from the pre-stored resource data.

13. The data object display device according to claim 12, characterized in that: The pre-storage unit is also configured to: check whether the pre-stored resource data of each data object is called, and if not, delete the data object; if the pre-stored resource data is called, read the resource data corresponding to the data structure from the pre-stored resource data.

14. The data object display device according to claim 8, characterized in that: The data structure includes at least one of a resource data reading item, a display time reading item, a display switch reading item and a data object name reading item. The resource data reading item is used to obtain resource data of the data object, the display time reading item is used to obtain the start time and end time of the display data object, the display switch reading item is used to determine whether to display the data object, and the data object name reading item is used to read the name of the data object.

15. A server, characterized in that: The server comprises: processor; a memory for storing instructions executable by the processor, When the processor executable instructions are executed by the processor, the processor is prompted to execute the data object display method according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of a server, the server is enabled to execute the data object presentation method according to any one of claims 1 to 7.

17. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the data object display method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Page generation method and device, server and storage medium

    CN108920653A

  • Page processing method and device

    CN110866204A

  • Page display method and device, electronic equipment and storage medium

    CN112818143A