Resource popularization application generation method and device, electronic equipment and storage medium
By selecting the corresponding business components and application code templates based on the target business type and preset dimensions, the resource promotion application is generated, and the problems of low generation efficiency and poor flexibility in the existing technology are solved, and efficient and flexible resource promotion application generation is achieved.
Patent Information
- Application Number
- CN202411603657.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, every resource promotion application is generated, source code development is required, resulting in cumbersome process, low generation efficiency and poor flexibility.
By determining the target business component library based on the target business type, selecting matching business components based on the preset dimension description information, obtaining the corresponding application code template from the application code template library, and generating target resource promotion applications based on the business components, application code templates and preset standard interfaces.
It improves the generation efficiency and flexibility of resource promotion applications, supports dynamic loading of application pages, and simplifies the development process.
Smart Images

Figure CN119718304A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for generating resource promotion applications. Background Art
[0002] With the development of e-commerce, in order to attract and retain more users, resource providers on e-commerce platforms usually use various resource promotion applications provided by e-commerce platforms to promote resources, such as flash sale tools, coupon tools, and full-reduction tools provided by e-commerce platforms. Among them, the various resource promotion applications provided by e-commerce platforms are developed and generated by code based on the requirements documents of each resource promotion application.
[0003] However, in the related technology, each resource promotion application needs to be generated with source code development, which is not only cumbersome and leads to low efficiency in generating resource promotion applications, but also has poor flexibility. Summary of the invention
[0004] The present disclosure provides a method, device, electronic device and storage medium for generating resource promotion applications, so as to at least solve the problem that each generation of a resource promotion application requires source code development in the related art, which is not only cumbersome and leads to low efficiency in generating resource promotion applications, but also poor flexibility. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a method for generating a resource promotion application is provided, comprising:
[0006] Based on the target business type of the target resource promotion application to be generated, determine a target business component library that matches the target business type;
[0007] Based on the description information of the target resource promotion and application in multiple preset dimensions, selecting a target business component matching the description information of the corresponding preset dimensions from the target business component library;
[0008] Acquire a target application code template corresponding to the target business type from an application code template library; the application code template library includes application code templates corresponding to a plurality of business types, respectively, and the application code template includes a preset rendering engine;
[0009] The target resource promotion application is generated based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library.
[0010] In some exemplary implementations, the selecting, based on the description information of the target resource promotion application in multiple preset dimensions, a target business component matching the description information of the corresponding preset dimensions from the target business component library includes:
[0011] Based on the description information of the target resource promotion and application in multiple preset dimensions, select a target business form component that matches the description information of the corresponding preset dimensions from a target business form component library;
[0012] Based on a preset form table mapping relationship, determining a target business form component corresponding to each of the target business form components; the preset form table mapping relationship represents a corresponding relationship between a business form component and a business table component;
[0013] The target business component includes a target business form component and a business table component corresponding to the target business form component.
[0014] In some exemplary implementations, generating the target resource promotion application based on each of the target business components, the target application code template, and a preset standard interface in a preset standard interface library includes:
[0015] Generate code repository and configuration protocol information corresponding to the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library;
[0016] The code repository is packaged into a universal modular definition resource to obtain application page data corresponding to the target resource promotion application; wherein the application page data and the configuration protocol information are used to constitute the target resource promotion application
[0017] In some exemplary embodiments, the method further comprises:
[0018] The application page data is stored in a content distribution network, and the configuration protocol information is stored in a backend server.
[0019] In some exemplary embodiments, the method further comprises:
[0020] In response to an edit request from a target object for the target resource promotion application, obtaining application page data of the target resource promotion application from the content distribution network and obtaining the configuration protocol information from the backend server;
[0021] The configuration protocol information is transmitted to a preset rendering engine in the application page data, and the preset rendering engine renders the target component in the application page of the target resource promotion application according to the configuration protocol information.
[0022] In some exemplary embodiments, the application code template includes a preset monitoring tracking point, and the preset monitoring tracking point is used to obtain stability data of the application page; the method further includes:
[0023] In the process of the target object editing the application page for promoting the target resource application, obtaining stability data of the application page based on the preset monitoring points;
[0024] Display the stability data of the application page of the target resource promotion application.
[0025] In some exemplary embodiments, after selecting, based on the description information of the target resource promotion application in multiple preset dimensions, a target business component matching the description information of the corresponding preset dimensions from the target business component library, the method further includes:
[0026] The preview effect of the target business component is displayed in the preview window.
[0027] According to a second aspect of an embodiment of the present disclosure, there is provided a device for generating resource promotion applications, including:
[0028] A target component library determination unit is configured to execute a target business type based on the target resource to be generated for promotion and application, and determine a target business component library matching the target business type;
[0029] A target component determination unit is configured to select a target business component matching the description information of the corresponding preset dimensions from the target business component library based on the description information of the target resource promotion and application in multiple preset dimensions;
[0030] A code template acquisition unit, configured to acquire a target application code template corresponding to the target business type from an application code template library; the application code template library includes application code templates corresponding to a plurality of business types, and the application code template includes a preset rendering engine;
[0031] The generating unit is configured to generate the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library.
[0032] In some exemplary embodiments, the target component determination unit includes:
[0033] A form component determination unit is configured to select a target business form component that matches the description information of the corresponding preset dimensions from a target business form component library based on the description information of the target resource promotion and application in multiple preset dimensions;
[0034] A form component determination unit is configured to determine a target business form component corresponding to each of the target business form components based on a preset form table mapping relationship; the preset form table mapping relationship represents a correspondence between a business form component and a business table component;
[0035] The target business component includes a target business form component and a business table component corresponding to the target business form component.
[0036] In some exemplary embodiments, the generating unit includes:
[0037] A first generating unit is configured to generate a code repository and the configuration protocol information corresponding to the target resource promotion application based on each of the target business components, the target application code template and a preset standard interface in a preset standard interface library;
[0038] The encapsulation unit is configured to execute encapsulation of the code repository of the target resource promotion application into a general modular definition resource to obtain application page data corresponding to the target resource promotion application; wherein the application page data and the configuration protocol information are used to constitute the target resource promotion application.
[0039] In some exemplary embodiments, the apparatus further comprises:
[0040] The storage unit is configured to execute the storage of the application page data of the target resource promotion application to the content distribution network, and store the configuration protocol information to the back-end server.
[0041] In some exemplary embodiments, the apparatus further comprises:
[0042] an acquisition unit configured to execute, in response to an edit request of a target object for the target resource promotion application, acquiring application page data of the target resource promotion application from the content distribution network and acquiring the configuration protocol information from the backend server;
[0043] The rendering unit is configured to execute the transmission of the configuration protocol information to a preset rendering engine in the application page data, and render the target business component in the application page of the target resource promotion application according to the configuration protocol information through the preset rendering engine.
[0044] In some exemplary embodiments, the application code template includes a preset monitoring tracking point, and the preset monitoring tracking point is used to obtain stability data of the application page; the device also includes:
[0045] A stability data acquisition unit, configured to acquire stability data of the application page based on the preset monitoring points during the process of the target object editing the application page for the promotion application of the target resource;
[0046] The stability data display unit is configured to display the stability data of the application page of the target resource promotion application.
[0047] In some exemplary embodiments, the apparatus further comprises:
[0048] The preview unit is configured to display the preview effect of the target business component in the preview window.
[0049] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0050] processor;
[0051] a memory for storing instructions executable by the processor;
[0052] The processor is configured to execute the instructions to implement the method for generating resource promotion applications according to the first aspect.
[0053] 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 an electronic device, the electronic device is enabled to execute the method for generating resource promotion applications of the first aspect.
[0054] According to a fifth aspect of an embodiment of the present disclosure, there is provided a computer program product, including a computer program, which, when executed by a processor, implements the method for generating resource promotion applications according to the first aspect.
[0055] The disclosed embodiment determines a target business component library matching the target business type based on the target resource promotion application to be generated, and then selects a target business component matching the description information of the corresponding preset dimensions from the target business component library based on the description information of the target resource promotion application in multiple preset dimensions, and obtains a target application code template corresponding to the target business type from an application code template library, wherein the application code template library includes application code templates corresponding to multiple business types, and the application code template includes a preset rendering engine; based on each of the target business components, the target application code template and a preset standard interface in a preset standard interface library, the target resource promotion application is generated, thereby improving the generation efficiency and flexibility of the resource promotion application based on the reuse of the business components in the business component library, the preset standard interface and the application code template, and supporting dynamic loading of application pages through the preset rendering engine in the application code template.
[0056] 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
[0057] 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.
[0058] Figure 1 is a schematic diagram of a system architecture of a method for generating resource promotion applications according to an exemplary embodiment;
[0059] Figure 2 is an example of a business component according to an exemplary embodiment;
[0060] Figure 3 is a flow chart of a method for generating resource promotion applications according to an exemplary embodiment;
[0061] Figure 4 This is an example of displaying a preview effect of a target business component in a preview window according to an exemplary embodiment;
[0062] Figure 5 is a flow chart of another method for generating resource promotion applications according to an exemplary embodiment;
[0063] Figure 6 This is a display example of stability data of resource promotion and application according to an exemplary embodiment;
[0064] Figure 7is a structural block diagram of a device for generating resource promotion applications according to an exemplary embodiment;
[0065] Figure 8 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0066] 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.
[0067] 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.
[0068] It should also be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0069] See also Figure 1 , which is a schematic diagram of a system architecture for implementing a method for generating resource promotion applications according to an exemplary embodiment of the present disclosure, such as Figure 1 As shown, the system architecture involves business scenario layer, rendering layer, protocol / model layer, platform capability layer and general technology foundation layer.
[0070] Among them, the business scenario layer indicates the supported business scenarios, mainly including: 1) Quick construction, through construction / configuration, a resource promotion application (including three pages: creation page, list page, and data page) is quickly delivered; 2) Quick access, through the micro front end and the page rendering engine of the resource promotion application, the atomic capabilities of the resource promotion application can be quickly accessed to other business areas. For example, the resource promotion application can include multiple discount tools, flash sale tools, points coupon tools, etc.
[0071] The rendering layer indicates the page rendering engine of the resource promotion application, which mainly includes: 1) Form loader, which obtains the form protocol (a set of form protocols based on the open source form engine formily) through the standard interface, and performs form rendering through the open source form engine formily sdk. During the rendering process, the dynamic loader (such as umd loader) is introduced to support dynamic loading of form components exported in the form of umd, where umd stands for Universal Module Definition; 2) Materials, the page rendering engine has built-in multiple preset standard interfaces and multiple general business components, covering all functional scenarios of the business model corresponding to the resource promotion application; 3) Unified tracking and monitoring, the page rendering engine is configured with a general stability monitoring solution, which will report the PV (Page View, page views), UV (UniqueVisitor, number of independent visitors), JSERROR (JavaScript errors), API (Application ProgrammingInterface, application program interface) call success rate, page performance and other stability data, and the entire generation cycle of the page rendering engine will record the tracking points. Through this tracking point, the creation success rate, creation failure reasons, creation efficiency, etc. of each resource promotion application can be counted for data analysis.
[0072] The protocol / model layer indicates the business model and protocol corresponding to the resource promotion application, wherein the business model corresponding to the resource promotion application is used to describe the resource promotion application from multiple preset dimensions, which may include applicable conditions, applicable objects, applicable scope, and applicable rights and interests. Taking the resource promotion application used for e-commerce marketing (which can be called a marketing tool at this time) as an example, the corresponding business model description may be: when a specific user purchases certain goods, he meets certain conditions and can enjoy certain rights and interests. Then, the applicable rights and interests can be used to distinguish the types of discounts, which can be given in an enumerated manner, such as including fixed price, reduced money, discount, and gifts; the applicable conditions can be used to distinguish the thresholds and channels for using the discount, wherein the thresholds can be given in an enumerated manner, such as including full yuan, full reduction, and no threshold, and the channels can be given in an enumerated manner, such as stores, product details pages, buyers' homepages, etc.; the applicable objects can be used to describe the consumer groups that can use the discount, which can be given in an enumerated manner, such as everyone, new customers, and fans; the applicable scope can be used to describe the scope of the discount, which can be given in an enumerated manner, such as designated goods, designated stores, designated categories, and designated anchors.
[0073] The protocol includes a data protocol and a rendering protocol, wherein the data protocol includes a plurality of preset standard interfaces involved in resource promotion applications, and the plurality of preset standard interfaces cover the entire life cycle of resource promotion applications, including: adding, deleting, modifying, checking, going online, going offline, selecting products, and displaying activity data; the rendering protocol includes a plurality of business components involved in resource promotion applications, and the plurality of business components include: a plurality of basic form components, a plurality of business form components, and a plurality of business table components. It should be noted that the standard interfaces involved in the data protocol and the business components involved in the rendering protocol are abstracted according to the business model, that is, they cover various preset dimensions of the business model. Taking the preferential rights and interests component in the business form component as an example, Figure 2 The figure shows an example of a preferential rights component, which can be used to provide merchants with preferential rights. The optional preferential rights types include: full yuan, full piece.
[0074] The platform capability layer indicates the main links included: production link, operation link and management link. Among them, the production link mainly configures the basic information of resource promotion applications and the detailed configuration of each page module through a form, and can also provide a page preview of the configuration process on the right side of the platform interface; the management link provides insights into the stability data of each resource promotion application and the creation success rate, creation efficiency, and creation failure reasons, and there is a unified page on the platform for data insight; the operation link can provide configuration capabilities based on business demands, and can configure marketing atmosphere, marketing entrance, marketing reach, etc.
[0075] The general technical foundation layer includes: 1) Application management, which provides capabilities such as application creation and application registration; 2) Micro front-ends; the applications produced by the platform will eventually be delivered in the form of micro front-ends; 3) Form engine; it provides standard form protocols, basic form components, and form renderers for creating pages in resource promotion applications; 4) Monitoring, which provides monitoring reporting, data display, and alarm capabilities to ensure the stability of the application at runtime; 5) R&D process; it provides three sets of isolated environment capabilities: cloud construction, approval, code review, and testing / pre-release / formal.
[0076] It should be noted that the terminals involved in the embodiments of the present disclosure may be smart phones, tablet computers, laptop computers, desktop computers, etc., but are not limited thereto. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or an edge computing node, 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 communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.
[0077] Figure 3is a flow chart of a method for generating resource promotion applications according to an exemplary embodiment. Figure 3 As shown, the following steps are included:
[0078] In step S301, based on the target business type of the target resource promotion application to be generated, a target business component library matching the target business type is determined.
[0079] Among them, the target resource promotion application to be generated can be understood as a tool used by e-commerce to achieve the purpose of resource promotion. For example, the target resource promotion application can include flash sale tools, coupon tools, full-reduction tools, etc.
[0080] In the disclosed embodiment, resource promotion tools of multiple business types can be generated, and the multiple business types can be divided based on different resource providers. For example, the multiple business types can include merchant types, platform types, etc., wherein the merchant type means that the resource provider corresponding to the target resource promotion application is a merchant, and the platform type means that the resource provider corresponding to the target resource promotion application is a platform. For example, the business type corresponding to the store coupon tool is a merchant, and the business type corresponding to the platform coupon tool is a platform. It can be understood that the number and types of multiple business types can be divided based on the needs in actual applications.
[0081] In the embodiment of the present disclosure, considering the differences between different business types, multiple business component libraries are maintained, and the multiple business component libraries correspond to multiple business types one by one, and each business component library includes multiple business components involved in the resource promotion and application of the corresponding business type. For example, the multiple business types include merchant types and platform types, and there is a business component library corresponding to the merchant type and a business component library corresponding to the platform type.
[0082] Among them, the business components in each business component library can be divided into multiple business component groups, each business component group is used to describe the resource promotion and application from a preset dimension, each business component group includes at least one business component, and the at least one business component corresponds to different description information under the corresponding preset dimension, and the number of business components in each business component group can be the same or different. For example, each business component library is divided into four business component groups according to four preset dimensions, and the four preset dimensions are the applicable conditions, applicable objects, applicable scope, and applicable rights, so that the business component group corresponding to the applicable conditions, the business component group corresponding to the applicable objects, the business component group corresponding to the applicable scope, and the business component group corresponding to the applicable rights can be obtained.
[0083] In a specific implementation, the target business type of the target resource promotion application to be generated can be extracted from the application requirement document provided by the business node.
[0084] In step S303, based on the description information of the target resource promotion application in multiple preset dimensions, a target business component matching the description information of the corresponding preset dimensions is selected from the target business component library.
[0085] Specifically, the application requirement document may be identified from multiple preset dimensions to extract description information in the application requirement document that matches each preset dimension, and then target business components that match the description information of each preset dimension may be selected from the target business component library.
[0086] For example, if the target business type in the application requirement document is a merchant type, then the target business component library corresponding to the merchant type can be determined, and then the descriptive information corresponding to the applicable rights, applicable conditions, applicable objects, and applicable scope in the application requirement document can be identified. For example, if the application requirement document states that new customers can get a 10 yuan discount when they purchase product A for a purchase of 50 yuan or more, then the descriptive information corresponding to the applicable rights can be determined as a 10 yuan discount, the descriptive information corresponding to the applicable conditions can be determined as a 10 yuan discount when they purchase 50 yuan or more, the descriptive information corresponding to the applicable objects can be determined as new customers, and the descriptive information corresponding to the applicable scope can be determined as product A. Then, the target business component that matches each descriptive information can be selected from the target business component library. It is understandable that the application requirement document can include richer descriptive information in each preset dimension, and thus more refined target business components can be determined.
[0087] In some exemplary implementations, the business component includes a business form component and a business table component. Then, when the above step S303 is implemented based on the description information of the target resource promotion application in multiple preset dimensions, selecting the target business component matching the description information of the corresponding preset dimensions from the target business component library may include:
[0088] Based on the description information of the target resource promotion and application in multiple preset dimensions, select a target business form component that matches the description information of the corresponding preset dimensions from a target business form component library;
[0089] Based on the preset form table mapping relationship, the target business form component corresponding to each target business form component is determined; the preset form table mapping relationship represents the correspondence between the business form component and the business table component; wherein, the target business component includes the target business form component and the business table component corresponding to the target business form component.
[0090] Specifically, the target business component library in the embodiment of the present disclosure includes a business form component library and a business table component library, and the business tables in the business table component library have a mapping relationship with the business form components in the business form component library. Therefore, after selecting the target business form components that match the description information of the corresponding preset dimensions from the target business form component library based on the description information of the target resource promotion and application in each preset dimension, the target business form components corresponding to each target business form component can be determined from the business table component library based on the preset form-table mapping relationship, thereby obtaining the target business components that match the description information of each preset dimension.
[0091] In the above implementation, the target business form components corresponding to the description information of each preset dimension are matched from the target business form component library, and then the target business table components corresponding to each target business form component are determined based on the preset form table mapping relationship, which facilitates the configuration flexibility of the components, helps to realize dynamic loading of components, and improves the generation flexibility of resource promotion applications.
[0092] In some exemplary implementations, after selecting a target business component matching the description information of the corresponding preset dimensions from the target business component library based on the description information of the target resource promotion application in multiple preset dimensions in step S303, the method may further include:
[0093] The preview effect of the target business component is displayed in the preview window.
[0094] Specifically, Figure 4 The example shown is a preview effect of the target business components displayed in the preview window, wherein the preview window displays the preview effect of each target business form component for the creation page / details page of the resource promotion application, and displays the preview effect of each target business table component for the activity management page.
[0095] In actual applications, in order to improve the generation efficiency of resource promotion and application, interface documents, form protocols, etc. can also be displayed in the preview window.
[0096] In the above implementation, by displaying the preview effect of the target business component during the process of generating resource promotion applications, the front-end and back-end joint debugging can be omitted, which improves the delivery efficiency of resource promotion applications and ensures the delivery quality of resource promotion applications.
[0097] In step S305, a target application code template corresponding to the target business type is obtained from an application code template library; the application code template library includes application code templates corresponding to a plurality of business types, and the application code template includes a preset rendering engine.
[0098] Specifically, the application code template library of the embodiment of the present disclosure includes application code templates corresponding to business types one by one, and each application code template includes a preset rendering engine, wherein the application code template represents the logical framework of resource promotion application. Exemplarily, the preset rendering engine may include an open source form engine that drives form rendering through the JSON protocol.
[0099] In step S307, the target resource promotion application is generated based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library.
[0100] Among them, the preset standard interface library includes multiple preset standard interfaces covering the entire life cycle of resource promotion and application, specifically including preset standard interfaces corresponding to addition, deletion, modification, query, online, offline, product selection, and activity data display.
[0101] Specifically, application page data and configuration protocol information for constituting the target resource promotion application can be generated based on each target business component, target application code template and preset standard interface in the preset standard interface library, wherein the configuration protocol information can be a JSON format protocol, including a rendering protocol obtained based on each target business component and a data protocol obtained based on each preset standard interface.
[0102] In some exemplary implementations, the above step S307, when implementing the generation of the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library, may include:
[0103] Generate code repository and configuration protocol information corresponding to the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library;
[0104] The code repository is encapsulated into a general modular definition resource to obtain application page data corresponding to the target resource promotion application; wherein the application page data and the configuration protocol information are used to constitute the target resource promotion application.
[0105] Specifically, the universal module definition resource is a UMD (Universal Module Definition) resource. After the UMD resource is uploaded to the content distribution network, the resource can be dynamically loaded and executed using the new Function function to obtain a returned object.
[0106] In the above implementation, the code repository and configuration protocol information corresponding to the target resource promotion application are first generated based on each target business component, the target application code template and the preset standard interface in the preset standard interface library, and then the code repository is encapsulated into a general modular definition resource to obtain the application page data of the target resource promotion application, so that subsequent dynamic loading can obtain the business components exported in the form of UMD.
[0107] Based on this, in some exemplary embodiments, the method may further include:
[0108] The application page data of the target resource promotion application is stored in a content distribution network, and the configuration protocol information is stored in a back-end server.
[0109] Among them, the back-end server refers to the server that provides background services for resource promotion and application.
[0110] By storing the application page data of the target resource promotion application in the content distribution network and storing its configuration protocol information in the back-end server, the flexibility of adjusting the application page is improved while supporting the dynamic loading of the application page.
[0111] The disclosed embodiment realizes the construction of resource promotion applications based on the reuse of business components in the business component library and preset standard interfaces and application code templates, thereby improving the generation efficiency and flexibility of resource promotion applications, and supports dynamic loading of application pages through a preset rendering engine in the application code template, so that the elements and information of the resource promotion application pages can be quickly changed and adjusted, thereby improving the flexibility of business policy adjustment.
[0112] In some exemplary embodiments, Figure 5 As shown, the method may also include:
[0113] In step S501, in response to an edit request from a target object for the target resource promotion application, application page data of the target resource promotion application is obtained from the content distribution network and configuration protocol information of the target resource promotion application is obtained from the backend server.
[0114] In step S503, the configuration protocol information is transmitted to a preset rendering engine in the application page data, and the preset rendering engine renders the target business component in the application page of the target resource promotion application according to the configuration protocol information.
[0115] Specifically, the target object refers to an object that uses the target resource promotion application to promote resources. Taking the target business type of the target resource promotion application as the merchant type as an example, the target object is the merchant who performs editing operations on the target resource promotion application.
[0116] When a merchant performs an editing operation on a target resource promotion application, a corresponding editing request is issued, so that the application page data of the target resource promotion application can be obtained from the content distribution network and the corresponding configuration protocol information can be obtained from the background server. The configuration protocol information can then be transmitted to the preset rendering engine in the application page data, and the preset rendering engine can render the target business component according to the configuration protocol information to obtain the application page of the target resource promotion application, so that the merchant can input specific editing information in the application page.
[0117] The above implementation method obtains application page data from the content distribution network and configuration protocol information from the back-end server in response to the editing request, and then uses the preset rendering engine in the application page data to dynamically load the target business component and render the application page according to the configuration protocol information, so that each resource promotion application page has a unified experience, high performance and stable operation.
[0118] In some exemplary embodiments, the application code template includes a preset monitoring tracking point, and the preset monitoring tracking point is used to obtain stability data of the application page. Then the method may further include:
[0119] In the process of the target object editing the application page for promoting the target resource application, obtaining stability data of the application page based on the preset monitoring points;
[0120] Displays stability data of the application page.
[0121] Among them, the location of the preset monitoring points in each application code template can be set based on actual needs.
[0122] Among them, the stability data of the application page obtained based on the preset monitoring points may include PV (Page View), UV (Unique Visitor), JSERROR (JavaScript error), API (Application Programming Interface) call success rate, page performance, creation success rate, creation failure reasons and creation efficiency, etc., and then display the stability data of these application pages, such as Figure 6 Shown is an example of the presentation of stability data for resource promotion applications.
[0123] In the above implementation mode, the operation stability of the resource promotion application can be obtained in real time through a unified point-of-sight monitoring method, which is conducive to ensuring the stable operation of the resource promotion application.
[0124] Figure 7is a structural block diagram of a device for generating resource promotion applications according to an exemplary embodiment. Figure 7 The resource promotion and application generation device 700 includes:
[0125] A target component library determining unit 710 is configured to execute a target business type based on the target resource promotion application to be generated, and determine a target business component library matching the target business type;
[0126] The target component determination unit 720 is configured to select a target business component matching the description information of the corresponding preset dimensions from the target business component library based on the description information of the target resource promotion and application in multiple preset dimensions;
[0127] The code template acquisition unit 730 is configured to acquire a target application code template corresponding to the target business type from an application code template library; the application code template library includes application code templates corresponding to a plurality of business types, and the application code template includes a preset rendering engine;
[0128] The generating unit 740 is configured to generate the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library.
[0129] In some exemplary embodiments, the target component determination unit 720 includes:
[0130] A form component determination unit is configured to select a target business form component that matches the description information of the corresponding preset dimensions from a target business form component library based on the description information of the target resource promotion and application in multiple preset dimensions;
[0131] A table component determination unit is configured to determine a target business table component corresponding to each of the target business form components based on a preset form table mapping relationship; the preset form table mapping relationship represents a correspondence between a business form component and a business table component;
[0132] The target business component includes a target business form component and a business table component corresponding to the target business form component.
[0133] In some exemplary embodiments, the generating unit 740 includes:
[0134] A first generating unit is configured to generate a code repository and configuration protocol information corresponding to the target resource promotion application based on each of the target business components, the target application code template and a preset standard interface in a preset standard interface library;
[0135] The encapsulation unit is configured to execute encapsulation of the code repository into a general modular definition resource to obtain application page data corresponding to the target resource promotion application; wherein the application page data and the configuration protocol information are used to constitute the target resource promotion application.
[0136] In some exemplary embodiments, the apparatus 700 further includes:
[0137] The storage unit is configured to execute the storage of the application page data of the target resource promotion application to the content distribution network, and store the configuration protocol information to the back-end server.
[0138] In some exemplary embodiments, the apparatus 700 further includes:
[0139] an acquisition unit configured to execute, in response to an edit request of a target object for the target resource promotion application, acquiring application page data of the target resource promotion application from the content distribution network and acquiring the configuration protocol information from the backend server;
[0140] The rendering unit is configured to execute the transmission of the configuration protocol information to a preset rendering engine in the application page data, and render the target business component in the application page of the target resource promotion application according to the configuration protocol information through the preset rendering engine.
[0141] In some exemplary embodiments, the application code template includes a preset monitoring tracking point, and the preset monitoring tracking point is used to obtain stability data of the application page; the device 700 also includes:
[0142] A stability data acquisition unit, configured to acquire stability data of the application page based on the preset monitoring points during the process of the target object editing the application page for the promotion application of the target resource;
[0143] The stability data display unit is configured to display the stability data of the application page of the target resource promotion application.
[0144] In some exemplary embodiments, the apparatus 700 further includes:
[0145] The preview unit is configured to display the preview effect of the target business component in the preview window.
[0146] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0147] In an exemplary embodiment, an electronic device is also provided, including a processor; a memory for storing processor executable instructions; wherein, when the processor is configured to execute the instructions stored in the memory, it implements the method for generating resource promotion applications provided in any of the above embodiments.
[0148] The electronic device may be a terminal, a server or a similar computing device. For example, the electronic device is a terminal. Figure 8 is a block diagram of an electronic device for running a method for generating a resource promotion application according to an exemplary embodiment. Specifically:
[0149] The terminal may include components such as an RF (Radio Frequency) circuit 810, a memory 820 including one or more computer-readable storage media, an input unit 830, a display unit 840, a sensor 850, an audio circuit 860, a WiFi (wireless fidelity) module 870, a processor 880 including one or more processing cores, and a power supply 890. Those skilled in the art will appreciate that Figure 8 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0150] The RF circuit 810 can be used for receiving and sending signals during information transmission or calls. In particular, after receiving the downlink information of the base station, it is handed over to one or more processors 880 for processing; in addition, the data related to the uplink is sent to the base station. Generally, the RF circuit 810 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a user identity module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. In addition, the RF circuit 810 can also communicate with the network and other terminals through wireless communication. The wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
[0151] The memory 820 can be used to store software programs and modules. The processor 880 executes various functional applications and data processing by running the software programs and modules stored in the memory 820. The memory 820 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, application programs required for functions, etc.; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 820 may also include a memory controller to provide the processor 880 and the input unit 830 with access to the memory 820.
[0152] The input unit 830 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 830 may include a touch-sensitive surface 831 and other input devices 832. The touch-sensitive surface 831, also known as a touch display screen or touchpad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 831), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 831 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 880, and can receive and execute commands sent by the processor 880. In addition, the touch-sensitive surface 831 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 831, the input unit 830 may further include other input devices 832. Specifically, the other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
[0153] The display unit 840 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 840 may include a display panel 841, and optionally, the display panel 841 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 831 may cover the display panel 841, and when the touch-sensitive surface 831 detects a touch operation on or near it, it is transmitted to the processor 880 to determine the type of the touch event, and then the processor 880 provides corresponding visual output on the display panel 841 according to the type of the touch event. Among them, the touch-sensitive surface 831 and the display panel 841 can be two independent components to realize the input and output functions, but in some embodiments, the touch-sensitive surface 831 and the display panel 841 can also be integrated to realize the input and output functions.
[0154] The terminal may also include at least one sensor 850, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 841 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 841 and / or the backlight when the terminal is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can be configured in the terminal, they will not be repeated here.
[0155] The audio circuit 860, the speaker 861, and the microphone 862 can provide an audio interface between the user and the terminal. The audio circuit 860 can transmit the received audio data to the speaker 861 after converting the received audio data into an electrical signal, which is converted into a sound signal for output by the speaker 861; on the other hand, the microphone 862 converts the collected sound signal into an electrical signal, which is received by the audio circuit 860 and converted into audio data, and then the audio data is output to the processor 880 for processing, and then sent to another terminal through the RF circuit 810, or the audio data is output to the memory 820 for further processing. The audio circuit 860 may also include an earplug jack to provide communication between an external headset and the terminal.
[0156] WiFi is a short-range wireless transmission technology. The terminal can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 870, which provides users with wireless broadband Internet access. Figure 8 A WiFi module 870 is shown, but it is understandable that it is not an essential component of the terminal and can be omitted as needed without changing the essence of the invention.
[0157] The processor 880 is the control center of the terminal, and uses various interfaces and lines to connect various parts of the entire terminal. It executes various functions of the terminal and processes data by running or executing software programs and / or modules stored in the memory 820, and calling data stored in the memory 820. Optionally, the processor 880 may include one or more processing cores; preferably, the processor 880 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 880.
[0158] The terminal also includes a power supply 890 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 880 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 890 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.
[0159] Although not shown, the terminal may also include a camera, a Bluetooth module, etc., which will not be described in detail herein. Specifically in this embodiment, the terminal also includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for executing the method for generating resource promotion applications provided in the above method embodiment.
[0160] In an exemplary embodiment, a computer-readable storage medium is also provided. When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device can execute the method for generating resource promotion applications provided in any of the above embodiments.
[0161] In an exemplary embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the method for generating resource promotion applications provided in any of the above embodiments is implemented.
[0162] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application 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 specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0163] 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 method for generating resource promotion and application, characterized in that: include: Based on the target business type of the target resource promotion application to be generated, determine a target business component library that matches the target business type; Based on the description information of the target resource promotion and application in multiple preset dimensions, selecting a target business component matching the description information of the corresponding preset dimensions from the target business component library; Acquire a target application code template corresponding to the target service type from an application code template library; The application code template library includes application code templates corresponding to a plurality of business types, and the application code templates include a preset rendering engine; The target resource promotion application is generated based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library.
2. The method according to claim 1, characterized in that The step of selecting a target business component matching the description information of the corresponding preset dimensions from the target business component library based on the description information of the target resource promotion and application in multiple preset dimensions includes: Based on the description information of the target resource promotion and application in multiple preset dimensions, select a target business form component that matches the description information of the corresponding preset dimensions from a target business form component library; Based on a preset form table mapping relationship, determining a target business form component corresponding to each of the target business form components; the preset form table mapping relationship represents a corresponding relationship between a business form component and a business table component; The target business component includes a target business form component and a business table component corresponding to the target business form component.
3. The method according to claim 1, characterized in that The generating the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library includes: Generate code repository and configuration protocol information corresponding to the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library; The code repository is encapsulated into a general modular definition resource to obtain application page data corresponding to the target resource promotion application; wherein the application page data and the configuration protocol information are used to constitute the target resource promotion application.
4. The method according to claim 3, characterized in that The method further comprises: The application page data is stored in a content distribution network, and the configuration protocol information is stored in a backend server.
5. The method according to claim 4, characterized in that The method further comprises: In response to an edit request from a target object for the target resource promotion application, obtaining application page data of the target resource promotion application from the content distribution network and obtaining the configuration protocol information from the backend server; The configuration protocol information is transmitted to a preset rendering engine in the application page data, and the preset rendering engine renders the target business component in the application page of the target resource promotion application according to the configuration protocol information.
6. The method according to claim 5, characterized in that The application code template includes a preset monitoring tracking point, and the preset monitoring tracking point is used to obtain stability data of the application page; The method further comprises: In the process of the target object editing the application page for promoting the target resource application, obtaining stability data of the application page based on the preset monitoring points; Displays stability data of the application page.
7. The method according to any one of claims 1 to 6, characterized in that: After selecting the target business component matching the description information of the corresponding preset dimensions from the target business component library based on the description information of the target resource promotion application in multiple preset dimensions, the method further includes: The preview effect of the target business component is displayed in the preview window.
8. A device for generating resource promotion and application, characterized in that: include: A target component library determination unit is configured to execute a target business type based on the target resource to be generated for promotion and application, and determine a target business component library matching the target business type; A target component determination unit is configured to select a target business component matching the description information of the corresponding preset dimensions from the target business component library based on the description information of the target resource promotion and application in multiple preset dimensions; A code template acquisition unit, configured to acquire a target application code template corresponding to the target business type from an application code template library; The application code template library includes application code templates corresponding to a plurality of business types, and the application code template includes a preset rendering engine; The generating unit is configured to generate the target resource promotion application based on each of the target business components, the target application code template and the preset standard interface in the preset standard interface library.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method for generating resource promotion applications as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method for generating a resource promotion application as described in any one of claims 1 to 7.
11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for generating a resource promotion application according to any one of claims 1 to 7 is implemented.