Multi-channel module instance extension method, apparatus and electronic device
Patent Information
- Application Number
- CN202211321479.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-26
- Publication Date
- 2026-09-15
- Estimated Expiration
- 2042-10-26
AI Technical Summary
[0004]本公开提供一种多渠道的模块实例扩展方法、装置和电子设备,用以解决现有技术中针对多个渠道的活动投放数据时过于繁琐,需要针对各渠道进行重复开发,各渠道之间无法联动,缺乏统一的管理的缺陷,实现减少多渠道的重复开发使各渠道之间形成联动,完成统一的管理的多渠道的模块实例扩展
[0036] The multi-channel module instance extension method, apparatus, and electronic device disclosed herein obtain a channel list, generate a mapping relationship table based on the channel list and functional modules, and determine the function of each channel through the mapping relationship table to achieve unified management; generate module instances based on the functional modules, the mapping relationship table, and user data, and the generated module instances have reusability, reducing redundant development work; extend the application of module instances based on the module instances and the channel list, reuse the channels in the channel list using the module instances, and enable linkage between the channels during reuse.
Smart Images

Figure CN115562658B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of information processing technology, and in particular, to a multi-channel module instance extension method, an apparatus, and an electronic device. Background Art
[0002] In the prior art, online Internet activities can be displayed through multiple channels. However, when merchants launch activity data for multiple channels, the process is too cumbersome, requiring repeated development for each channel, no linkage between channels, and lack of unified management.
[0003] Therefore, realizing multi-channel module instance expansion that reduces repeated development for multiple channels, enables linkage between channels, and achieves unified management is an urgent problem to be solved at present. Summary of the Invention
[0004] The present disclosure provides a multi-channel module instance extension method, an apparatus, and an electronic device, which are used to solve the defects in the prior art that the process of launching activity data for multiple channels is too cumbersome, repeated development is required for each channel, no linkage can be achieved between channels and there is a lack of unified management, and realize multi-channel module instance expansion that reduces repeated development for multiple channels, enables linkage between channels, and achieves unified management.
[0005] The present disclosure provides a multi-channel module instance extension method, comprising:
[0006] acquiring a channel list;
[0007] generating a mapping relationship table according to the channel list and functional modules;
[0008] generating a module instance according to the functional module, the mapping relationship table and user data;
[0009] performing module instance extended application according to the module instance and the channel list.
[0010] According to the multi-channel module instance extension method provided by the present disclosure, the generating a mapping relationship table according to the channel list and functional modules comprises:
[0011] determining a channel source according to the channel list;
[0012] generating the mapping relationship table according to the channel source and the functional module.
[0013] According to the multi-channel module instance extension method provided by the present disclosure, the generating a module instance according to the functional module, the mapping relationship table and user data comprises:
[0014] determining a first channel source according to the mapping relationship table;
[0015] The target user and the first functional module are determined based on the first channel source, wherein the first functional module is the functional module that matches the target user;
[0016] The instance of the module is generated based on the user data of the target user, the first functional module, and the preset dimension information.
[0017] According to the multi-channel module instance extension method provided in this disclosure, the step of applying the module instance based on the module instance and the channel list includes:
[0018] The second channel source to which the target user belongs is determined based on the channel list, and the second channel source is different from the first channel source;
[0019] The module instance is applied to the target users of the first channel source and the second channel source.
[0020] According to the multi-channel module instance extension method provided in this disclosure, the first functional module includes a system module and an extension module; the module instance extension application based on the module instance and the channel list includes:
[0021] Configure the basic information of the module instance according to the system module configuration;
[0022] Configure the extended information of the module instance according to the extended module;
[0023] The module instance extension application is completed based on the basic information, the extended information, and the dimensional information.
[0024] According to the multi-channel module instance extension method provided in this disclosure, the extension module includes a style file and at least one extension file package;
[0025] The step of configuring the extended information of the module instance according to the extended module includes:
[0026] The style of the module instance is determined based on the style file;
[0027] The extended services of the module instance are determined based on the extended file package;
[0028] The extended information is configured according to the style of the module instance and the extended services of the module instance.
[0029] This disclosure also provides a multi-channel module instance extension device, including:
[0030] The channel management unit is used to determine the channel module based on the obtained channel list;
[0031] The module management unit is used to generate a mapping relationship table based on the channel module and the functional module;
[0032] A module instance configuration unit is used to generate module instances based on the functional modules, the mapping relationship table, and user data.
[0033] The module instance application unit is used to apply the channel module according to the module instance.
[0034] This disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the multi-channel module instance extension method as described above.
[0035] This disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the multi-channel module instance extension method as described above.
[0036] The multi-channel module instance extension method, apparatus, and electronic device disclosed herein obtain a channel list, generate a mapping relationship table based on the channel list and functional modules, and determine the function of each channel through the mapping relationship table to achieve unified management; generate module instances based on the functional modules, the mapping relationship table, and user data, and the generated module instances have reusability, reducing redundant development work; extend the application of module instances based on the module instances and the channel list, reuse the channels in the channel list using the module instances, and enable linkage between the channels during reuse. Attached Figure Description
[0037] To more clearly illustrate the technical solutions in this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 This is a flowchart illustrating the multi-channel module instance extension method provided in this publication;
[0039] Figure 2 This is a schematic diagram of a module example provided in this disclosure;
[0040] Figure 3 This is a schematic diagram of the structure of the multi-channel module instance expansion device provided in this disclosure;
[0041] Figure 4 This is a schematic diagram of the structure of the electronic device provided in this disclosure. Detailed Implementation
[0042] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the protection scope of the embodiments of this disclosure.
[0043] This disclosure provides a multi-channel module instance extension method, such as... Figure 1 As shown, it includes:
[0044] S11. Obtain the list of channels.
[0045] S12. Generate a mapping relationship table based on the channel list and functional modules.
[0046] S13. Based on the functional modules, the mapping relationship table, and the user data generation module instance.
[0047] S14. Extend the application of the module instance based on the module instance and the channel list.
[0048] The multi-channel module instance extension method provided in this disclosure obtains a channel list, generates a mapping relationship table based on the channel list and functional modules, and determines the function of each channel through the mapping relationship table to achieve unified management; generates module instances based on the functional modules, the mapping relationship table, and user data, and the generated module instances have reusability, reducing redundant development work; and extends the application of module instances based on the module instances and the channel list, using the module instances to reuse the channels in the channel list, and enabling linkage between the channels during reuse.
[0049] According to the multi-channel module instance extension method provided in this disclosure, step S12 includes:
[0050] S121. Determine the channel source based on the channel list.
[0051] S122. Generate a mapping relationship table based on the channel source and the functional module.
[0052] Specifically, the channel list contains information on channel access allocation, and you can view the channels included in the access channel list;
[0053] The channel list contains multiple channel sources, which can be from the same domain or different domains. Each channel source can provide the same or different functionalities. A mapping table is generated based on the channel sources and pre-generated functional modules. This mapping table determines the corresponding functional modules for each channel source. The mapping table allows you to view and determine the mapping allocation from modules to channels. Here, you can view the list of modules used by a specific channel and manage the display order of multiple modules across channels.
[0054] In this embodiment of the disclosure, the channel source is determined by the channel list, and a mapping relationship table is generated based on the channel source and the functional module. The mapping relationship table represents the correspondence between the channel source in the channel list and the functional module, thereby achieving unified management.
[0055] According to the multi-channel module instance extension method provided in this disclosure, step S13 includes:
[0056] S131. Determine the first channel source according to the mapping relationship table.
[0057] S132. Determine the target user and the first functional module based on the first channel source, wherein the first functional module is the functional module that matches the target user.
[0058] S133. Based on the user data of the target user, the first functional module, and the preset dimension information generation module instance.
[0059] Specifically, one channel source in the mapping relationship table can be used as the first channel source, the user of the first channel source can be determined as the target user, and the functional module corresponding to the target user in the functional module corresponding to the first channel source in the mapping relationship table can be determined as the first functional module.
[0060] Module instances are generated based on the target user's user data, the first functional module, and preset dimension information. The dimension information indicates the way the generated module instances are carried. In one example, it can include two dimensions: page or container. The page dimension means that multiple module instances constitute a page, while the container dimension means that the module instances are embedded in an existing page.
[0061] In this embodiment of the disclosure, the target user and the first functional module are determined based on the first channel source, and the module instance of the target user under the specified channel is generated conveniently and quickly based on the user data of the target user, the first functional module and dimension information.
[0062] According to the multi-channel module instance extension method provided in this disclosure, step S14 includes:
[0063] S141. Determine the second channel source to which the target user belongs based on the channel list.
[0064] S142. Apply the module instance to the target users of the first channel source and the second channel source.
[0065] Specifically, based on the channel list, it is also possible to determine the second channel source that the target user belongs to, which is different from the first channel source, and apply the generated module instance to the target user of the first channel source and the target user of the second channel source.
[0066] In this embodiment of the disclosure, the first channel source and the second channel source to which the target user belongs can be determined according to the channel list. The module instance generated by the application to the target user of the first channel source and the second channel source can be reused, thereby reducing the resource consumption of repeatedly creating module instances for the same user from different channels.
[0067] According to the multi-channel module instance extension method provided in this disclosure, the first functional module includes a system module and an extension module; step S14 includes:
[0068] S21. Configure the basic information of the module instance according to the system module configuration.
[0069] Specifically, system modules may include routine parameter settings that do not involve business functions and are required by the module instance.
[0070] S22. Configure the extended information of the module instance according to the extended module.
[0071] Specifically, the extension module can include extended information about the business functions required by the design module instance.
[0072] Optionally, the extension module includes a style file and at least one extension file package, and step S22 may include:
[0073] S221. Determine the style of the module instance based on the style file.
[0074] Specifically, the style file includes style information for module instances, and the style of module instances can be set according to actual needs through a custom style file.
[0075] S222. Determine the extended services of the module instance based on the extended file package.
[0076] Specifically, an extension module may include one or more extension file packages, which are used to implement extended services. Multiple extension file packages can implement multiple extended services.
[0077] In one example, such as Figure 2As shown, a module instance consists of user data and functional modules. The functional modules include extension modules and system modules. The extension modules include style files and at least one extension file package. The extension file package stores the data source, which includes three parts: module application, data source plugin, and data source container. These three parts are generated into an executable jar package (a compressed package in jar format) using Fatjar (a type of compression packaging) technology, which is the extension file package.
[0078] The data source container is responsible for managing the startup and runtime of the extension package, automatically resolving the dependencies between the included data source plugins and module applications, and performing isolated loading through independent class loaders, starting them sequentially according to priority. Loading through independent class loaders achieves isolation of the extension packages for each module instance, especially extension module instances, enabling a lightweight design for module instances and making the extension packages within a module instance easy to distinguish and manage.
[0079] Data source plugins are primarily concrete implementations of data source extensions. Each data source plugin is a specific implementation of the extension point definitions defined in the domain capabilities. It can contain a configuration file, including plugin class import / export configurations, resource import / export configurations, and plugin startup priority. At runtime, the data source container uses an independent class loader to load the plugin and constructs a class loading index table and a resource loading index table based on the plugin configuration, thus isolating data source plugins from each other and from the application module.
[0080] A module application is an organizational unit for multiple data source containers and data source plugins under an extended module, containing all dependencies and configurations required to start that data source. A module instance can consist of multiple data sources. In practice, all extended modules under the same channel can constitute an application module. Alternatively, each module can construct its own application module, managing its lifecycle and enabling dynamic deployment and uninstallation of the module application through an application programming interface (API).
[0081] S223. Configure the extended information according to the style of the module instance and the extended services of the module instance.
[0082] S23. Complete the module instance extended application based on the basic information, the extended information, and the dimension information.
[0083] In this embodiment, basic information of a module instance is configured through system modules, the style of the module instance is determined through an extended module style file, and extended services are determined through an extended module extension file package. Extended information is configured based on the module instance's style and extended services, and extended applications of the module instance are completed based on the basic information, extended information, and dimension information. By referencing modules, operators only need to generate a module instance once, and the same user across other channels using the same module can also utilize the module instance in real time, thereby significantly reducing operation and maintenance costs.
[0084] The following describes the multi-channel module instance expansion device provided in the embodiments of this disclosure. The multi-channel module instance expansion device described below and the multi-channel module instance expansion method described above can be referred to in correspondence.
[0085] This disclosure also provides a multi-channel module instance extension device, such as Figure 3 As shown, it includes:
[0086] The channel management unit 31 is used to determine the channel module based on the obtained channel list.
[0087] The module management unit 32 is used to generate a mapping relationship table based on the channel module and the functional module.
[0088] The module instance configuration unit 33 is used to generate module instances based on the functional modules, the mapping relationship table, and user data.
[0089] The module instance application unit 34 is used to apply the channel module according to the module instance.
[0090] The multi-channel module instance extension device provided in this embodiment obtains a channel list, generates a mapping relationship table based on the channel list and functional modules, and determines the function of each channel through the mapping relationship table to achieve unified management; it generates module instances based on the functional modules, the mapping relationship table, and user data, and the generated module instances have reusability, reducing redundant development work; it extends the application of module instances based on the module instances and the channel list, and reuses the channels in the channel list using the module instances, enabling linkage between the channels during reuse.
[0091] According to the multi-channel module instance extension device provided in this disclosure, the module management unit 32 is specifically used to determine the channel source according to the channel list; and to generate a mapping relationship table according to the channel source and the functional module.
[0092] According to the multi-channel module instance expansion device provided in this disclosure, the module instance configuration unit 33 is specifically used to determine a first channel source according to the mapping relationship table; determine a target user and a first functional module according to the first channel source, wherein the first functional module is the functional module that matches the target user; and generate a module instance according to the user data of the target user, the first functional module and preset dimension information.
[0093] According to a multi-channel module instance extension device provided in this disclosure, the module instance application unit 34 is specifically used to determine the second channel source to which the target user belongs based on the channel list; and to apply the module instance to the target user of the first channel source and the second channel source.
[0094] According to the multi-channel module instance extension device provided in this disclosure, the first functional module includes a system module and an extension module; the module instance application unit 34 is specifically used to configure the basic information of the module instance according to the system module; configure the extension information of the module instance according to the extension module; and complete the module instance extension application according to the basic information, the extension information and the dimension information.
[0095] Optionally, the extension module includes a style file and at least one extension file package. The module instance application unit 34 is specifically used to determine the style of the module instance according to the style file; determine the extended services of the module instance according to the extension file package; and configure the extension information according to the style of the module instance and the extended services of the module instance.
[0096] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4 As shown, the electronic device may include a processor 410, a communications interface 420, a memory 430, and a communication bus 440, wherein the processor 410, communications interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a multi-channel module instance extension method, which includes: obtaining a channel list; generating a mapping table based on the channel list and functional modules; generating a module instance based on the functional modules, the mapping table, and user data; and extending the module instance application based on the module instance and the channel list.
[0097] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of this disclosure, essentially, or the parts that contribute to the prior art, or parts of the technical solutions, 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, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0098] On the other hand, this disclosure also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute a multi-channel module instance extension method provided by the above methods. The method includes: obtaining a channel list; generating a mapping relationship table based on the channel list and functional modules; generating a module instance based on the functional modules, the mapping relationship table, and user data; and performing module instance extension application based on the module instance and the channel list.
[0099] In another aspect, this disclosure also provides a non-transitory computer-readable storage medium storing a computer program thereon, which, when executed by a processor, is implemented to perform one of the above-described methods for extending a multi-channel module instance. The method includes: obtaining a channel list; generating a mapping table based on the channel list and functional modules; generating a module instance based on the functional modules, the mapping table, and user data; and extending the module instance application based on the module instance and the channel list.
[0100] The device embodiments described above are merely illustrative. 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 modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0101] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this disclosure.
Claims
1. A method for extending module instances through multiple channels, characterized in that, include: Get the list of channels; Generate a mapping table based on the channel list and functional modules; Based on the functional modules, the mapping table, and the user data generation module instance; Extend the application of the module instance based on the module instance and the channel list; The step of generating a mapping table based on the channel list and functional modules includes: Determine the channel source based on the aforementioned channel list; A mapping table is generated based on the channel source and the functional module; The step of generating a module instance based on the functional module, the mapping table, and the user data includes: The first channel source is determined according to the mapping table; The target user and the first functional module are determined based on the first channel source, wherein the first functional module is the functional module that matches the target user; Based on the user data of the target user, the first functional module, and the preset dimension information, an instance of the generation module is generated. The step of applying the module instance based on the module instance and the channel list includes: The second channel source to which the target user belongs is determined based on the channel list, and the second channel source is different from the first channel source; The module instance is applied to the target users of the first channel source and the second channel source.
2. The multi-channel module instance expansion method according to claim 1, characterized in that, The first functional module includes a system module and an extension module; the step of extending the application of the module instance based on the module instance and the channel list includes: Configure the basic information of the module instance according to the system module configuration; Configure the extended information of the module instance according to the extended module; The module instance extension application is completed based on the basic information, the extended information, and the dimensional information.
3. The multi-channel module instance expansion method according to claim 2, characterized in that, The extension module includes a style file and at least one extension file package; The step of configuring the extended information of the module instance according to the extended module includes: The style of the module instance is determined based on the style file; The extended services of the module instance are determined based on the extended file package; The extended information is configured according to the style of the module instance and the extended services of the module instance.
4. A multi-channel module instance expansion device, characterized in that, include: The channel management unit is used to determine the channel module based on the obtained channel list; The module management unit is used to generate a mapping relationship table based on the channel module and the functional module; A module instance configuration unit is used to generate module instances based on the functional modules, the mapping relationship table, and user data. A module instance application unit is used to apply the channel module according to the module instance; The module management unit is specifically used to determine the channel source based on the channel list; and to generate a mapping relationship table based on the channel source and the functional module. The module instance configuration unit is specifically used to determine a first channel source based on the mapping relationship table; determine a target user and a first functional module based on the first channel source, wherein the first functional module is the functional module that matches the target user; and generate a module instance based on the user data of the target user, the first functional module, and preset dimension information. The module instance application unit is specifically used to determine the second channel source to which the target user belongs based on the channel list; and to apply the module instance to the target user of the first channel source and the second channel source.
5. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the multi-channel module instance extension method as described in any one of claims 1 to 3.
6. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the multi-channel module instance extension method as described in any one of claims 1 to 3.
7. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the multi-channel module instance extension method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Application program installation package packaging method and device based on script
CN111611007A
Implementation method and system for flexible assembly of service function package
CN114637502A