Data processing methods, apparatus, storage media and equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2026-08-14
AI Technical Summary
各业务场景单独定制开发,存在大量的冗余开发代价,导致运营后台开发成本较高,且开发效率较低
[0016]本申请实施例通过对多个业务场景中每个业务场景拆分为多个资源区块,然后通过配置业务场景下的各个资源区块的自定义资源来构建各个业务场景的业务模板,得到模板库,然后基于模板库中的目标业务模板配置目标投放数据,并响应于数据投放请求投放目标投放数据。本申请实施例通过构建通用的业务模板,并可以将业务模板中的自定义资源按照目标业务场景的需求配置符合目标业务场景需求的目标投放数据,使得业务模板或业务模板中的资源区块具有复用性,提升目标业务场景配置的灵活性,降低了开发成本,提升了开发效率。
Smart Images

Figure CN116088829B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, specifically to a data processing method, apparatus, storage medium, and device. Background Technology
[0002] Industry-standard advertising systems are designed with independent backend interactions for each specific advertising scenario, requiring customized development of corresponding operational backends for different scenarios. This separate development for each business scenario incurs significant redundant development costs, resulting in high operational backend development costs and low development efficiency. Summary of the Invention
[0003] This application provides a data processing method, apparatus, storage medium, and device that can construct a general business template and configure custom resources in the business template according to the needs of the target business scenario to deliver target data that meets the requirements of the target business scenario. This makes the business template or resource blocks in the business template reusable, improves the flexibility of target business scenario configuration, reduces development costs, and improves development efficiency.
[0004] On one hand, embodiments of this application provide a data processing method, the method comprising:
[0005] Retrieve multiple resource blocks under the page area corresponding to each business scenario in multiple business scenarios;
[0006] In response to the template configuration instruction for each of the multiple business scenarios, a business template corresponding to each of the multiple business scenarios is constructed to create a template library. Each of the business templates includes custom resources of each resource block in multiple resource blocks under the page area of the corresponding business scenario.
[0007] In response to a data configuration instruction for a target business scenario, the system calls a target business template in the template library that corresponds to the target business scenario and configures the delivery data corresponding to the custom resources of each resource block in the target business template to obtain the target delivery data for the target business scenario, wherein the target business scenario is at least one of the plurality of business scenarios;
[0008] In response to a data delivery request for the target business scenario, the target delivery data for the target business scenario is sent to the client, so that the client renders the target delivery data into various resource blocks under the page area of the target business scenario.
[0009] On the other hand, embodiments of this application provide a data processing apparatus, the apparatus comprising:
[0010] The acquisition unit is used to acquire multiple resource blocks under the page area corresponding to each business scenario in multiple business scenarios;
[0011] The building unit is used to respond to the template configuration instruction for each of the multiple business scenarios and build a business template corresponding to each of the multiple business scenarios to create a template library. Each of the business templates includes custom resources of each resource block in multiple resource blocks under the page area of the corresponding business scenario.
[0012] The configuration unit is used to respond to the data configuration instruction for the target business scenario, call the target business template in the template library corresponding to the target business scenario, and configure the delivery data corresponding to the custom resources of each resource block in the target business template to obtain the target delivery data of the target business scenario, wherein the target business scenario is at least one of the plurality of business scenarios;
[0013] The delivery unit is used to respond to a data delivery request for the target business scenario by sending the target delivery data for the target business scenario to the client, so that the client renders the target delivery data into various resource blocks under the page area of the target business scenario.
[0014] On the other hand, embodiments of this application provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute the data processing method as described in any of the above embodiments.
[0015] On the other hand, embodiments of this application provide a computer device, the computer device including a processor and a memory, the memory storing a computer program, the processor executing the data processing method as described in any of the above embodiments by calling the computer program stored in the memory.
[0016] This application embodiment breaks down each business scenario into multiple resource blocks, then constructs business templates for each business scenario by configuring custom resources in each resource block, resulting in a template library. Target delivery data is then configured based on the target business templates in the template library, and the target delivery data is delivered in response to data delivery requests. This application embodiment constructs general business templates and allows custom resources within the business templates to be configured with target delivery data that meets the needs of the target business scenario. This makes the business templates or resource blocks within the business templates reusable, improves the flexibility of target business scenario configuration, reduces development costs, and increases development efficiency. Attached Figure Description
[0017] Figure 1This is a first flowchart illustrating the data processing method provided in an embodiment of this application.
[0018] Figure 2 This is a schematic diagram of a first application scenario of the data processing method provided in the embodiments of this application.
[0019] Figure 3 This is a second flowchart illustrating the data processing method provided in an embodiment of this application.
[0020] Figure 4 This is a schematic diagram of a second application scenario for the data processing method provided in the embodiments of this application.
[0021] Figure 5 This is a schematic diagram of a third application scenario of the data processing method provided in the embodiments of this application.
[0022] Figure 6 This is a schematic diagram of a fourth application scenario of the data processing method provided in the embodiments of this application.
[0023] Figure 7 This is a schematic diagram of the third process of the data processing method provided in the embodiments of this application.
[0024] Figure 8 This is a schematic diagram of the fifth application scenario of the data processing method provided in the embodiments of this application.
[0025] Figure 9 This is a schematic diagram of the sixth application scenario of the data processing method provided in the embodiments of this application.
[0026] Figure 10 This is a schematic diagram of the fourth process of the data processing method provided in the embodiments of this application.
[0027] Figure 11 This is a schematic diagram of the seventh application scenario of the data processing method provided in the embodiments of this application.
[0028] Figure 12 This is a fifth flowchart illustrating the data processing method provided in the embodiments of this application.
[0029] Figure 13 This is a schematic diagram of the eighth application scenario of the data processing method provided in the embodiments of this application.
[0030] Figure 14 This is a schematic diagram of the structure of the data processing apparatus provided in the embodiments of this application.
[0031] Figure 15 A schematic diagram of the structure of a computer device provided in an embodiment of this application.
[0032] Figure 16 A schematic diagram of the storage medium provided in an embodiment of this application. Detailed Implementation
[0033] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0034] This application provides a data processing method, apparatus, storage medium, and device. Specifically, the data processing method of this application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, smart TV, smart speaker, wearable smart device, smart vehicle terminal, etc. The terminal can also include a client, which can be a video client, browser client, instant messaging client, or mini-program, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.
[0035] The embodiments of this application can be applied to various scenarios such as business scenario building and business scenario deployment.
[0036] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0037] The embodiments of this application provide a data processing method, which can be executed by a terminal or a server, or by both a terminal and a server. The embodiments of this application illustrate the data processing method executed by a server as an example.
[0038] Please see Figures 1 to 13 , Figure 1 , Figure 3 , Figure 7 , Figure 10 and Figure 12 These are all schematic flowcharts of the data processing methods provided in the embodiments of this application. Figure 2 , Figures 4 to 6 , Figure 8 , Figure 9 , Figure 11 and Figure 13These are all schematic diagrams illustrating application scenarios of the data processing method provided in the embodiments of this application. The method may include the following steps 110 to 140:
[0039] Step 110: Obtain multiple resource blocks under the page area corresponding to each business scenario in multiple business scenarios.
[0040] For example, when it comes to data configuration, the required configuration content varies greatly under different business scenarios. Therefore, a general configuration backend needs to have custom resource management capabilities and the ability to build custom resources into templates that conform to business scenarios.
[0041] For example, for a specific application or application client, the business scenario can be any of the following: a page, a subpage, a module area within a page, or a module area within a subpage. The specific business scenario is determined based on the specific application development requirements. For instance, taking an audio playback application as an example, the business scenario could include the homepage, various module areas within the homepage (such as the header image module area, playlist module area, leaderboard module area, daily recommendation module area, etc.), various module areas within the playlist subpage (such as exclusive playlists, official playlists, recommended playlists, shared playlists, curated playlists, etc.), various module areas within the leaderboard subpage (such as official leaderboards, featured leaderboards, recommended leaderboards, genre leaderboards, language leaderboards, attendance leaderboards, etc.), and various module areas within the recommendation subpage, etc.
[0042] In some embodiments, obtaining multiple resource blocks under the page area corresponding to each business scenario in multiple business scenarios includes:
[0043] In response to the splitting instruction for the page area corresponding to each of the multiple business scenarios, the page area corresponding to each of the multiple business scenarios is split into multiple resource blocks, wherein the location of each resource block has a corresponding first location identifier.
[0044] For example, the required resource blocks can be broken down according to the specific needs of each business scenario. Specifically, in response to the splitting instruction for the page area corresponding to each business scenario, the page area corresponding to each business scenario is split into multiple resource blocks, and each resource block has a corresponding first position identifier in its position within the corresponding page area. In actual processing, if it is necessary to build business templates for multiple business scenarios for a certain application software or application client, then the page area corresponding to each business scenario in the multiple business scenarios is split one by one to split the page area corresponding to each business scenario in the multiple business scenarios into multiple resource blocks.
[0045] For example, such as Figure 2As shown, taking the business scenario of "variety show card" as an example, the business scenario of "variety show card" can be divided into resource blocks such as header image, resource module, resource module associated resources, activity module, and activity module associated resources.
[0046] Step 120: In response to the template configuration instruction for each of the multiple business scenarios, construct the business template corresponding to each of the multiple business scenarios to create a template library. Each of the business templates includes custom resources of each resource block in multiple resource blocks under the page area of the corresponding business scenario.
[0047] In some embodiments, such as Figure 3 As shown, step 120 can be achieved through the following steps 121 to 123, specifically as follows:
[0048] Step 121: In response to the template configuration instruction for each of the multiple business scenarios, construct the multiple resource blocks under the page area of each business scenario into a first tree structure according to the parent-child relationship. Each node in the first tree structure is used to store the custom resources corresponding to each resource block.
[0049] Step 122: For each resource block in the first tree structure, use the custom resource configuration field information to construct a business template for each of the multiple business scenarios, and create a template library.
[0050] Step 123: Render and generate the form page for each business template based on the field information in each business template in the template library.
[0051] For example, such as Figure 4 As shown, taking the "variety show card" business scenario as an example, the resource blocks of this "variety show card" business scenario can include multiple resource blocks such as header image, resource modules, resources associated with resource modules, activity modules, and resources associated with activity modules. Then, according to parent-child relationships, the multiple resource blocks under the page area of the "variety show card" business scenario are constructed into a first tree structure. Each node in this first tree structure is used to store the custom resources corresponding to each resource block. The data of the custom resources corresponding to each resource block is determined by the configuration field information of the custom resources corresponding to each resource block in the first tree structure.
[0052] The first tree structure is a nested parent-child relationship structure.
[0053] For example, such as Figure 4As shown, taking the "header image" as an example, the elements displayed on the page for a variety show card header image (EntertainmentHeader) include title (title string), cover image (imageUrl string), jump link (targetUrl string), update time (updateTime long), and activity ID (activityld), etc. For example, resource blocks under the page area of a specific business scenario can be split according to the needs of that scenario, and areas with similar content can be grouped into one type of resource block.
[0054] For example, such as Figure 5 As shown, custom resource configuration fields can be configured for each resource block to construct a business template corresponding to the "Variety Show Card" business scenario. This field information can include the resource block's type name, type code, affiliated business, type description, and field list configuration. The field list configuration can include field name, field ID, character type, UI type, and can also include advanced configurations. Adding or saving list items can be done using the Add / Save button, and deleting list items can be done using the Delete button. UI types can include text input boxes, image uploads, link input boxes, number input boxes, and time selection boxes. For example, the field name and UI type corresponding to the field information can be displayed on the subsequently rendered form page. For example, taking the "Header Image" resource block as an example, this field information includes the resource block type name as "Search Variety Show Card Header Image", the type code as "entertainment_header", the affiliated business as "Search Business", and the type description as "Search Variety Show Card Header Image". The field list configuration can include fields 1 to 5. Field 1 has the field name as "Title", the field ID as "title", the character type as "basic type / char", and the UI type as "text input box"; field 2 has the field name as "Cover Image", the field ID as "imageUrl", and the character type as "...". The field name in field 3 is "basic type / char", and the UI type is "image upload"; the field name in field 4 is "jump link", the field ID is "targetUrl", the character type is "basic type / char", and the UI type is "link input box"; the field name in field 5 is "activity ID", the field ID is "activityld", the character type is "basic type / long", and the UI type is "number input box"; the field name in field 6 is "update time", the field ID is "updateTime", the character type is "basic type / long", and the UI type is "time selection".
[0055] For example, such as Figure 6As shown, a form page for a business template corresponding to the business scenario of "Variety Show Card" can be rendered and generated based on the field information in the business template corresponding to the business scenario of "Variety Show Card" in the template library. The form page can include a first form subpage and a second form subpage. The first form subpage can be used to edit or update the specific content of each node in the tree structure and the parent-child relationship of each node. The second form subpage can be used to edit or update the specific content of the field information of the custom resources corresponding to each resource block in the business template. Figure 6 The content displayed on the left is the editable first form subpage corresponding to each node in the first tree structure. The specific content of each node and the parent-child relationship of each node can be edited or updated in the first form subpage. Figure 6 The content displayed on the right is the editable second form subpage corresponding to the custom resources of each resource block in the business template corresponding to the "variety show card" business scenario. The specific content of the field information can be edited or updated in this second form subpage.
[0056] The business templates are flexible and reusable. Once a business template in the template library is launched, it can be used for a new business scenario without redevelopment. Instead, a custom resource block can be created in the backend for the corresponding page area of the business scenario. After the resource block is created, the business template can be created. The parameters of the custom resources of each resource block can be configured arbitrarily according to the business scenario, reducing development costs. After development, it can be reused and called in any deployment scenario.
[0057] If the hierarchical relationship of the current resource block corresponding to the currently configured current scenario is not the same as the hierarchical relationship of the currently matched candidate business template in the template library, but the current scenario has the same resource block as the candidate business template, then the resource block can be reused. However, a new template (the business template corresponding to the current business scenario) needs to be created. For example, if a resource module and an activity module are reused, but one of the child nodes (header image) and the root node have different types (variety show card), then the candidate business template can be called to modify the types of the unreusable child node and root node to generate a new template.
[0058] To further understand the reusability of business templates, please refer to [link / reference]. Figure 7 The flowchart for step 120 is shown.
[0059] In some embodiments, such as Figure 7 As shown, after creating the template library in step 122, step 120 may further include the following steps 124 to 1210, specifically:
[0060] Step 124: In response to the template configuration instruction for the current business scenario, query whether there is a candidate business template in the template library that has block reuse with the current resource block corresponding to the current business scenario; if yes, proceed to step 125; if no, proceed to step 128.
[0061] Step 125: If a candidate business template is found in the template library that has block reuse with the current resource block corresponding to the current business scenario, then the candidate business template is invoked.
[0062] Step 126: In response to the editing operation of the first tree structure corresponding to the candidate business template, construct the second tree structure corresponding to the current business scenario. The second tree structure represents the parent-child relationship of multiple current resource blocks corresponding to the current business scenario.
[0063] Step 127: Configure the custom resource configuration fields corresponding to each current resource block in the second tree structure to construct the business template corresponding to the current business scenario. After completing step 127, proceed to step 1210.
[0064] Step 128: If no candidate business template with block reuse is found in the template library that has a resource block that is the same as the current resource block corresponding to the current business scenario, then the multiple resource blocks under the page area of the current business scenario are constructed into a third tree structure according to the parent-child relationship. Each node in the third tree structure is used to store the custom resources corresponding to each resource block of the current business scenario.
[0065] Step 129 involves configuring the custom resource configuration fields corresponding to each resource block in the third tree structure to construct a business template for the current business scenario. After completing step 129, step 1210 is then executed.
[0066] Step 1210: Store the business template corresponding to the current business scenario into the template library.
[0067] For example, after completing step 1210 of "storing the business template corresponding to the current business scenario into the template library", step 123 of "rendering and generating the form page of each business template according to the field information in each business template in the template library" can be further executed, specifically including: rendering and generating the form page of the business template corresponding to the current business scenario according to the field information in the business template corresponding to the current business scenario.
[0068] Among them, the first tree structure, the second tree structure, and the third tree structure are all nested parent-child relationship structures.
[0069] In some embodiments, after step 120, "constructing the business template corresponding to each of the plurality of business scenarios", step 1211 (not shown in the figure) may also be included:
[0070] Step 1211: Construct the association between each deployment location and each resource block in each of the business templates.
[0071] In some embodiments, constructing the association between each deployment location and each resource block in each business template includes:
[0072] Create new delivery locations and set a second location identifier for each delivery location;
[0073] Based on the first location identifier and the second location identifier, an association relationship is constructed between each delivery location and each resource block in each of the business templates, wherein the second location identifier of the delivery location with the association relationship is the same as the first location identifier of the resource block.
[0074] For example, you can create a new ad placement and its association with a business template. Specifically, you can first build the ad placement for the business scenario, such as... Figure 8 As shown, create a new placement location for the "Variety Show Card" business scenario, and set a second location identifier corresponding to the placement location of this "Variety Show Card" business scenario (e.g., Figure 8 The location code shown is "search_block_entertainment". For example, you can also set the location name of the "Variety Show Card" business scenario to "Search Variety Show Card", the location description of the "Variety Show Card" business scenario to "Search Variety Show Card", the traffic nature of the "Variety Show Card" business scenario to "Online Business", the application scenario of the "Variety Show Card" business scenario to "Location Relationship Management, Location Process Management, Marketing Placement, Data Configuration", and the location type of the "Variety Show Card" business scenario to "Module". Figure 9 As shown, for example, the "variety show card" business scenario (such as...) Figure 9The "Search Variety Show Cards" option shown also has a corresponding first location identifier "search_block_entertainment" in the page area. Based on the first and second location identifiers, the association between the placement location of the "Variety Show Cards" business scenario and the business template of the "Variety Show Cards" business scenario is constructed. The corresponding business template is configured in the placement location. For example, if both the second and first location identifiers are "search_block_entertainment", the association is constructed using the same location identifier "search_block_entertainment" as the association point. Under the channel template configuration, the location name of the placement location of the "Variety Show Cards" business scenario is called "Search Variety Show Cards". Then, the corresponding business template is configured in the placement location of the "Variety Show Cards" business scenario through the operation button for "Add Template". Then, the deployment locations of each resource block in each business template can be created, and the second location identifier corresponding to the deployment location of each resource block can be set. Then, based on the first location identifier and the second location identifier of each resource block, the association relationship between the deployment location of each resource block and each resource block in each business template can be constructed. Among them, the second location identifier of the deployment location with the association relationship is the same as the first location identifier of the resource block location.
[0075] Step 130: In response to the data configuration instruction for the target business scenario, call the target business template corresponding to the target business scenario in the template library, and configure the delivery data corresponding to the custom resources of each resource block in the target business template to obtain the target delivery data of the target business scenario, wherein the target business scenario is at least one of the multiple business scenarios.
[0076] In some embodiments, such as Figure 10 As shown, step 130 can be achieved through the following steps 131 to 133, specifically:
[0077] Step 131: In response to the data configuration instruction for the target business scenario, call the target business template corresponding to the target business scenario in the template library.
[0078] Step 132: Provide the form page of the target business template.
[0079] Step 133: In response to the editing operation of the form page for the target business template, configure the delivery data corresponding to the custom resources of each resource block in the target business template to obtain the target delivery data for the target business scenario.
[0080] For example, such as Figure 11As shown, in response to data configuration commands for a specific business scenario (such as the "variety show card" business scenario), the system calls the target business template corresponding to the target business scenario from the template library and provides a form page for the target business template. This form page displays editable fields for custom resources in each resource block of the target business template. In response to editing operations on the custom resources of each resource module in the form page of the target business template, the system configures the delivery data corresponding to the custom resources in each resource block of the target business template to obtain the target delivery data for the target business scenario. For example, it allows editing the title, cover image, jump link, activity ID, and update time of the header image; and configuring the resource type, resource ID, preview resource, cover image, tags, and slots for resource modules.
[0081] Step 140: In response to the data delivery request for the target business scenario, the target delivery data for the target business scenario is sent to the client so that the client renders the target delivery data into each resource block under the page area of the target business scenario.
[0082] In some embodiments, such as Figure 12 As shown, step 140 can be achieved through the following steps 141 to 143, specifically:
[0083] Step 141: In response to the data delivery request for the target business scenario, obtain the target delivery data for the target business scenario. The target delivery data includes the delivery data corresponding to the custom resources of each resource block in the target business template.
[0084] Step 142: Based on the association relationship, determine the target delivery location corresponding to each resource block in the target business template.
[0085] Step 143: Send the target delivery location and the target delivery data of the target business scenario to the client, so that the client renders the target delivery data into each resource block under the page area of the target business scenario according to the target delivery location.
[0086] For example, when the backend delivery system receives a data delivery request from the client for a target business scenario, it responds by retrieving the target delivery data for that scenario. This target delivery data includes the delivery data corresponding to the custom resources of each resource block in the target business template. Then, based on the association relationships, it determines the target delivery position corresponding to each resource block in the target business template. Using the second position identifier (e.g., "search_block_entertainment") corresponding to the target delivery position in the target business scenario (e.g., the "variety show card" business scenario) and the pre-set association relationships, it retrieves the target delivery data for the target business scenario from the delivery system. Finally, it sends the target delivery position and the target delivery data to the client, allowing the client to render the target delivery data into the various resource blocks under the page area of the target business scenario based on the target delivery position. The page UI rendered by the client after parsing the target delivery position and target delivery data can be as follows: Figure 13 As shown.
[0087] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0088] This application embodiment breaks down each business scenario into multiple resource blocks, then constructs business templates for each business scenario by configuring custom resources in each resource block, resulting in a template library. Target delivery data is then configured based on the target business templates in the template library, and the target delivery data is delivered in response to data delivery requests. This application embodiment constructs general business templates and allows custom resources within the business templates to be configured with target delivery data that meets the needs of the target business scenario. This makes the business templates or resource blocks within the business templates reusable, improves the flexibility of target business scenario configuration, reduces development costs, and increases development efficiency.
[0089] To facilitate better implementation of the data processing method of this application embodiment, this application embodiment also provides a data processing apparatus. Please refer to... Figure 14 , Figure 14 A schematic diagram of the structure of a data processing apparatus provided in an embodiment of this application. The data processing apparatus 200 may include:
[0090] The acquisition unit 210 is used to acquire multiple resource blocks under the page area corresponding to each business scenario in multiple business scenarios;
[0091] The construction unit 220 is used to respond to the template configuration instruction for each of the multiple business scenarios and construct the business template corresponding to each of the multiple business scenarios to create a template library. Each of the business templates includes custom resources of each resource block in multiple resource blocks under the page area of the corresponding business scenario.
[0092] Configuration unit 230 is used to respond to a data configuration instruction for a target business scenario, call the target business template in the template library corresponding to the target business scenario, and configure the delivery data corresponding to the custom resources of each resource block in the target business template, so as to obtain the target delivery data of the target business scenario, wherein the target business scenario is at least one of the plurality of business scenarios;
[0093] The delivery unit 240 is used to respond to a data delivery request for the target business scenario by sending the target delivery data of the target business scenario to the client, so that the client renders the target delivery data into various resource blocks under the page area of the target business scenario.
[0094] In some embodiments, the building unit 220 is configured to:
[0095] In response to the template configuration instruction for each of the multiple business scenarios, the multiple resource blocks under the page area of each business scenario are constructed into a first tree structure according to the parent-child relationship. Each node in the first tree structure is used to store the custom resources corresponding to each resource block.
[0096] Custom resource configuration field information corresponding to each resource block in the first tree structure is used to construct a business template for each business scenario in the multiple business scenarios, thereby creating a template library;
[0097] The form page for each business template is generated by rendering based on the field information in each business template in the template library.
[0098] In some embodiments, the building unit 220 is further configured to:
[0099] In response to the template configuration command for the current business scenario, query the template library to see if there are any candidate business templates in the template library that reuse the resource block corresponding to the current resource block of the current business scenario;
[0100] If a candidate business template is found in the template library that reuses the resource block corresponding to the current resource block of the current business scenario, then the candidate business template is invoked.
[0101] In response to the editing operation of the first tree structure corresponding to the candidate business template, a second tree structure corresponding to the current business scenario is constructed, wherein the second tree structure represents the parent-child relationship of multiple current resource blocks corresponding to the current business scenario;
[0102] The custom resource configuration field information corresponding to each current resource block in the second tree structure is used to construct the business template corresponding to the current business scenario.
[0103] In some embodiments, the configuration unit 230 is configured to:
[0104] In response to a data configuration instruction for a target business scenario, the target business template corresponding to the target business scenario in the template library is invoked.
[0105] Provide a form page for the target business template;
[0106] In response to the editing operation of the form page for the target business template, the deployment data corresponding to the custom resources of each resource block in the target business template is configured to obtain the target deployment data for the target business scenario.
[0107] In some embodiments, the acquisition unit 210 is used for;
[0108] In response to the splitting instruction for the page area corresponding to each of the multiple business scenarios, the page area corresponding to each of the multiple business scenarios is split into multiple resource blocks, wherein the location of each resource block has a corresponding first location identifier.
[0109] In some embodiments, the construction unit 220 is further configured to: construct the association between each deployment location and each resource block in each of the service templates.
[0110] In some embodiments, when constructing the association between each deployment location and each resource block in each service template, the construction unit is used to:
[0111] Create new delivery locations and set a second location identifier for each delivery location;
[0112] Based on the first location identifier and the second location identifier, an association relationship is constructed between each delivery location and each resource block in each of the business templates, wherein the second location identifier of the delivery location with the association relationship is the same as the first location identifier of the resource block.
[0113] In some embodiments, the dispensing unit 240 is configured to:
[0114] In response to a data delivery request for the target business scenario, target delivery data for the target business scenario is obtained, wherein the target delivery data includes delivery data corresponding to custom resources of each resource block in the target business template;
[0115] Based on the aforementioned relationships, the target delivery locations corresponding to each resource block in the target business template are determined;
[0116] The target delivery location and the target delivery data of the target business scenario are sent to the client, so that the client renders the target delivery data into each resource block under the page area of the target business scenario according to the target delivery location.
[0117] Each unit in the aforementioned data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. Each unit can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each unit.
[0118] The data processing device 200 can be integrated into a terminal or server that has storage and a processor and thus computing power, or the data processing device 200 can be the terminal or server.
[0119] Optionally, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0120] Figure 15 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device may be a terminal or a server. Figure 15 As shown, the computer device 300 may include: a communication interface 301, a memory 302, a processor 303, and a communication bus 304. The communication interface 301, memory 302, and processor 303 communicate with each other via the communication bus 304. The communication interface 301 is used for data communication between the computer device 300 and external devices. The memory 302 can be used to store software programs and modules, and the processor 303 runs the software programs and modules stored in the memory 302, such as the software programs for the corresponding operations in the foregoing method embodiments.
[0121] Optionally, the processor 303 can invoke software programs and modules stored in the memory 302 to perform the following operations:
[0122] The system retrieves multiple resource blocks under the page area corresponding to each business scenario in multiple business scenarios; in response to a template configuration instruction for each business scenario in the multiple business scenarios, it constructs a business template corresponding to each business scenario in the multiple business scenarios to create a template library, each business template including custom resources of each resource block in the multiple resource blocks under the page area of the corresponding business scenario; in response to a data configuration instruction for a target business scenario, it calls the target business template corresponding to the target business scenario in the template library and configures the delivery data corresponding to the custom resources of each resource block in the target business template to obtain the target delivery data for the target business scenario, the target business scenario being at least one of the multiple business scenarios; in response to a data delivery request for the target business scenario, it sends the target delivery data for the target business scenario to the client so that the client renders the target delivery data into each resource block under the page area of the target business scenario.
[0123] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to a computer device, and the computer program causes the computer device to execute the corresponding flow in the data processing method of the embodiments of this application; for brevity, further details are omitted here.
[0124] A schematic diagram of the storage medium provided in the embodiments of this application, as shown below. Figure 16 As shown, a program product 400 for implementing the above-described method according to an exemplary embodiment of this application is described. It may employ a portable compact disk read-only memory (CDROM) and include program code, and can run on a computer device, such as a mobile phone. However, the program product of this application is not limited thereto. In this application, the readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0125] This application also provides a computer program product including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the data processing method of the embodiments of this application. For simplicity, further details are omitted here.
[0126] This application also provides a computer program comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding flow in the data processing method of this application. For brevity, further details are omitted here.
[0127] It should be understood that the processor in this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0128] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0129] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0130] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0131] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0132] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0133] In addition, the functional units in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0134] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer or a server) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0135] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A data processing method, characterized in that, The method includes: In response to the splitting instruction for the page area corresponding to each business scenario in multiple business scenarios, the page area corresponding to each business scenario in the multiple business scenarios is split into multiple resource blocks, wherein each of the resource blocks has a corresponding first location identifier, and the business scenario is a module area under a page or subpage under an application software or client. In response to the template configuration instruction for each of the multiple business scenarios, the multiple resource blocks under the page area of each business scenario are constructed into a first tree structure according to the parent-child relationship. Each node in the first tree structure is used to store the custom resources corresponding to each resource block. Custom resource configuration field information corresponding to each resource block in the first tree structure is used to construct a business template for each business scenario in the multiple business scenarios, thereby creating a template library; The form page for each business template is generated by rendering based on the field information in each business template in the template library; In response to a data configuration instruction for a target business scenario, a target business template corresponding to the target business scenario in the template library is invoked, wherein the target business scenario is at least one of the plurality of business scenarios; Provide a form page for the target business template; In response to the editing operation of the form page for the target business template, the delivery data corresponding to the custom resources of each resource block in the target business template is configured to obtain the target delivery data for the target business scenario; In response to a data delivery request for the target business scenario, the target delivery data for the target business scenario is sent to the client, so that the client renders the target delivery data into various resource blocks under the page area of the target business scenario.
2. The data processing method as described in claim 1, characterized in that, In response to the template configuration instruction for each of the multiple business scenarios, the multiple resource blocks under the page area of each business scenario are constructed into a first tree structure according to the parent-child relationship; The method further includes: using custom resource configuration field information corresponding to each resource block in the first tree structure to construct a business template for each of the multiple business scenarios, thereby creating a template library; and using this method to construct a business template for each of the multiple business scenarios. In response to the template configuration command for the current business scenario, query the template library to see if there are any candidate business templates in the template library that reuse the resource block corresponding to the current resource block of the current business scenario; If a candidate business template is found in the template library that reuses the resource block corresponding to the current resource block of the current business scenario, then the candidate business template is invoked. In response to the editing operation of the first tree structure corresponding to the candidate business template, a second tree structure corresponding to the current business scenario is constructed, wherein the second tree structure represents the parent-child relationship of multiple current resource blocks corresponding to the current business scenario; The custom resource configuration field information corresponding to each current resource block in the second tree structure is used to construct the business template corresponding to the current business scenario.
3. The data processing method as described in claim 1 or 2, characterized in that, After constructing the business template corresponding to each of the multiple business scenarios, the method further includes: Establish the association between each deployment location and each resource block in each of the aforementioned business templates.
4. The data processing method as described in claim 3, characterized in that, The process of establishing the association between each deployment location and each resource block in each of the business templates includes: Create new delivery locations and set a second location identifier for each delivery location; Based on the first location identifier and the second location identifier, an association relationship is constructed between each delivery location and each resource block in each of the business templates, wherein the second location identifier of the delivery location with the association relationship is the same as the first location identifier of the resource block.
5. The data processing method as described in claim 4, characterized in that, In response to a data delivery request for the target business scenario, the target delivery data for the target business scenario is sent to the client, so that the client renders the target delivery data into various resource blocks under the page area of the target business scenario, including: In response to a data delivery request for the target business scenario, target delivery data for the target business scenario is obtained, wherein the target delivery data includes delivery data corresponding to custom resources of each resource block in the target business template; Based on the aforementioned relationships, the target delivery locations corresponding to each resource block in the target business template are determined; The target delivery location and the target delivery data of the target business scenario are sent to the client, so that the client renders the target delivery data into each resource block under the page area of the target business scenario according to the target delivery location.
6. A data processing apparatus, characterized in that, The device includes: The acquisition unit is used to respond to the splitting instruction for the page area corresponding to each business scenario in multiple business scenarios, and split the page area corresponding to each business scenario in multiple business scenarios into multiple resource blocks, wherein the position of each resource block has a corresponding first position identifier, and the business scenario is a module area under a page or subpage under an application software or client. A construction unit is configured to respond to template configuration instructions for each of the multiple business scenarios, construct the multiple resource blocks under the page area of each business scenario into a first tree structure according to the parent-child relationship, wherein each node in the first tree structure is used to store the custom resources corresponding to each resource block; configure field information for the custom resources corresponding to each resource block in the first tree structure to construct the business template corresponding to each of the multiple business scenarios, thereby creating a template library; and render and generate the form page of each business template according to the field information in each business template in the template library. The configuration unit is used to respond to a data configuration instruction for a target business scenario, call a target business template in the template library corresponding to the target business scenario, wherein the target business scenario is at least one of the plurality of business scenarios; provide a form page for the target business template; and respond to an editing operation on the form page for the target business template, configure the delivery data corresponding to the custom resources of each resource block in the target business template, so as to obtain the target delivery data for the target business scenario. The delivery unit is used to respond to a data delivery request for the target business scenario by sending the target delivery data for the target business scenario to the client, so that the client renders the target delivery data into various resource blocks under the page area of the target business scenario.
7. The data processing apparatus as described in claim 6, characterized in that, The building unit is also used for: In response to the template configuration command for the current business scenario, query the template library to see if there are any candidate business templates in the template library that reuse the resource block corresponding to the current resource block of the current business scenario; If a candidate business template is found in the template library that reuses the resource block corresponding to the current resource block of the current business scenario, then the candidate business template is invoked. In response to the editing operation of the first tree structure corresponding to the candidate business template, a second tree structure corresponding to the current business scenario is constructed, wherein the second tree structure represents the parent-child relationship of multiple current resource blocks corresponding to the current business scenario; The custom resource configuration field information corresponding to each current resource block in the second tree structure is used to construct the business template corresponding to the current business scenario.
8. The data processing apparatus as described in claim 6 or 7, characterized in that, The building unit is also used for: Establish the association between each deployment location and each resource block in each of the aforementioned business templates.
9. The data processing apparatus as described in claim 8, characterized in that, When constructing the association between each deployment location and each resource block in each of the service templates, the construction unit is used to: Create new delivery locations and set a second location identifier for each delivery location; Based on the first location identifier and the second location identifier, an association relationship is constructed between each delivery location and each resource block in each of the business templates, wherein the second location identifier of the delivery location with the association relationship is the same as the first location identifier of the resource block.
10. The data processing apparatus as claimed in claim 9, characterized in that, The delivery unit is used for: In response to a data delivery request for the target business scenario, target delivery data for the target business scenario is obtained, wherein the target delivery data includes delivery data corresponding to custom resources of each resource block in the target business template; Based on the aforementioned relationships, the target delivery locations corresponding to each resource block in the target business template are determined; The target delivery location and the target delivery data of the target business scenario are sent to the client, so that the client renders the target delivery data into each resource block under the page area of the target business scenario according to the target delivery location.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the data processing method as described in any one of claims 1-5.
12. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program, and the processor executing the data processing method according to any one of claims 1-5 by calling the computer program stored in the memory.
Citation Information
Patent Citations
Page building processing method, device and system
CN108170428A
Page configuration method and device, equipment and storage medium
CN113626025A