Project framework processing method and device

By building a project framework based on common components, the problem of low efficiency in project splitting in existing technologies is solved, and efficient and highly compatible project splitting and development specification unification are achieved.

CN114489632BActive Publication Date: 2025-09-12SHANGHAI BILIBILI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210080356.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-24
Publication Date
2025-09-12
Estimated Expiration
2042-01-24

AI Technical Summary

Technical Problem

In the existing project splitting method, the common functions of each business module need to be split repeatedly, resulting in low splitting efficiency.

Method used

By obtaining the common component codes in the application to be split, integrating them into common plug-ins, building a project framework, providing common component functions, and configuring usage instances and development specification logic, a project framework suitable for different business modules is constructed.

Benefits of technology

It improves the efficiency of project splitting, reduces human errors and time consumption, achieves high compatibility and scalability of the project framework, simplifies the access process, unifies development specifications, and facilitates management and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489632B_ABST
    Figure CN114489632B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a project framework processing method and device, wherein the project framework processing method includes: obtaining the code corresponding to the common components of multiple business modules in the application to be split; integrating the code corresponding to the common components to obtain a common plug-in; and using the common plug-in to construct a project framework. The present application utilizes the common plug-in obtained by integrating the code corresponding to the common components to conveniently construct a project framework that integrates the functions of the common components. The project framework can be applied to different business modules in the application to be split, has high compatibility and scalability, and when the user uses the project framework to split the application, there is no need to repeatedly split the common components of each business module in the application, which greatly improves the splitting efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet technology, and specifically to a project framework processing method and device. Background Art

[0002] In the existing development field, multiple business modules are often set up in one application. Multiple business modules in the same application usually have some related common functions, such as point data reporting, user permissions, watermarks, and other functions. When the application needs to be split into projects according to business needs, the business modules need to be separated from the entire application. However, in the existing project splitting method, for each business module, it is necessary to determine the code of each function of each business module by analyzing the application code and its business logic. There is a problem of repeated splitting for the common functions of the business modules, resulting in low splitting efficiency. Summary of the Invention

[0003] In view of the above problems, the present application proposes a project framework processing method, device, system, computing equipment and computer storage medium to solve the following problems: the existing project splitting method has low splitting efficiency.

[0004] According to one aspect of an embodiment of the present application, a project framework processing method is provided, including:

[0005] Get the code corresponding to the common components of multiple business modules in the application to be split;

[0006] Integrate the codes corresponding to the public components to obtain public plug-ins;

[0007] Use public plug-ins to build a project framework. The project framework is used to provide the functions of public components for business terminals to call to create projects corresponding to the project framework.

[0008] Furthermore, obtaining the code corresponding to the common components of multiple business modules in the application to be split further includes:

[0009] Analyze the application to be split and extract the code corresponding to the common components of multiple business modules in the application to be split.

[0010] Furthermore, the common components include one or more of the following components: a buried point data reporting component, a buried point data display component, a user authority component, and a watermark component.

[0011] Furthermore, before using the common plug-in to build the project framework, the method further includes:

[0012] Configure usage examples of common plug-ins and project development specification logic;

[0013] The project framework is constructed by using common plug-ins as follows: the common plug-ins, usage examples of the common plug-ins and project development specification logic are integrated to construct the project framework.

[0014] Furthermore, the project development specification logic includes: code format verification logic and project structure specification logic.

[0015] Furthermore, after building the project framework using the common plug-in, the method further includes:

[0016] Deploy the project framework in a code management tool.

[0017] Furthermore, after building the project framework using the common plug-in, the method further includes:

[0018] In response to the project framework adding request of the business terminal, the project framework is obtained from the code management tool, and the public plug-in corresponding to the project framework is obtained, and the project framework and the public plug-in are returned to the business terminal for installation and use by the business terminal.

[0019] Furthermore, after building the project framework using the common plug-in, the method further includes:

[0020] Based on the configuration information of the service tree, a project ID is generated for the project created by the business terminal using the project framework. The project ID is used to report tracking data and deploy projects.

[0021] According to another aspect of an embodiment of the present application, a project framework processing method is provided, including:

[0022] Create a project corresponding to the project framework. The project framework is built by integrating the common plug-ins obtained by integrating the codes corresponding to the common components in multiple business modules of the application to be split;

[0023] Use public plug-ins to configure the project in the project and obtain project configuration information.

[0024] Furthermore, before creating a project corresponding to the project framework, the method further includes:

[0025] Send a project framework add request to the server, so that the server can obtain and return the project framework and the public plug-in corresponding to the project framework according to the project framework add request;

[0026] Install the project framework and common plug-ins.

[0027] Furthermore, the project configuration is performed using a public plug-in in the project, and the project configuration information is obtained further including:

[0028] Use the public plug-in in the project to configure tracking point reporting and obtain tracking point reporting configuration information;

[0029] Collect and report the corresponding tracking data according to the tracking point reporting configuration information.

[0030] Furthermore, the project configuration is performed using a public plug-in in the project, and the project configuration information is obtained further including:

[0031] Use the public plug-in in the project to configure the tracking display and obtain the tracking display configuration information;

[0032] Process and display the collected tracking data according to the tracking display configuration information.

[0033] Furthermore, the project configuration is performed using a public plug-in in the project, and the project configuration information is obtained further including:

[0034] Use public plug-ins to configure user permissions in the project and obtain user permission configuration information;

[0035] Manage the user rights of each user based on the user rights configuration information.

[0036] Furthermore, the project configuration is performed using a public plug-in in the project, and the project configuration information is obtained further including:

[0037] Use the public plug-in to configure the watermark in the project and obtain the watermark configuration information;

[0038] According to the watermark configuration information, the corresponding watermark content is displayed on the project page of the project.

[0039] According to another aspect of an embodiment of the present application, a project framework processing device is provided, including:

[0040] An acquisition module, adapted to acquire the codes corresponding to the common components of multiple business modules in the application to be split;

[0041] The integration module is suitable for integrating the codes corresponding to the common components to obtain a common plug-in;

[0042] The framework construction module is suitable for using public plug-ins to build a project framework. The project framework is used to provide the functions of public components for business terminals to call to create projects corresponding to the project framework.

[0043] According to another aspect of an embodiment of the present application, a project framework processing device is provided, including:

[0044] A creation module is suitable for creating a project corresponding to a project framework. The project framework is constructed by integrating common plug-ins obtained by integrating codes corresponding to common components in multiple business modules of the application to be split;

[0045] The configuration module is suitable for using public plug-ins to configure projects in projects and obtain project configuration information.

[0046] According to another aspect of an embodiment of the present application, a project framework processing system is provided, the system including: the above-mentioned project framework processing device.

[0047] According to another aspect of an embodiment of the present application, a computing device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus;

[0048] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned project framework processing method.

[0049] According to another aspect of the embodiments of the present application, a computer storage medium is provided, in which at least one executable instruction is stored. The executable instruction enables a processor to perform operations corresponding to the above-mentioned project framework processing method.

[0050] According to the project framework processing method, apparatus, system, computing device and computer storage medium provided in the embodiments of the present application, by analyzing the application to be split, the codes corresponding to the common components in multiple business modules can be conveniently determined, and the common plug-ins integrated based on the codes corresponding to the common components can conveniently construct a project framework that integrates the functions of common components such as the buried data reporting component, the buried data display component, the user authority component, and the watermark component. The project framework can be applied to different business modules in the application to be split, has high compatibility and scalability, effectively reduces the access cost, and quickly realizes access and use, so that when the user uses the project framework to split the application, there is no need to repeatedly split the common components of each business module in the application, which effectively reduces the losses and time consumption caused by human errors in the project splitting process, and greatly improves the splitting efficiency; and the project framework also provides usage examples, so that the user can clearly and conveniently know the specific usage of the common plug-in based on the usage examples; in addition, the project framework also integrates the project development specification logic, realizes the unification of development specifications, and facilitates the management and maintenance of the project.

[0051] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation method of the embodiment of the present application is specifically listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the embodiments of the present application. The same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0053] Figure 1 A schematic diagram of a process flow of a project framework processing method according to an embodiment of the present application is shown;

[0054] Figure 2 A schematic diagram showing a flow chart of a project framework processing method according to another embodiment of the present application is shown;

[0055] Figure 3 A schematic diagram showing a flow chart of a project framework processing method according to another embodiment of the present application is shown;

[0056] Figure 4a A schematic diagram of a project configuration page in a business terminal is shown;

[0057] Figure 4b A schematic diagram showing a new configuration item page in a business terminal is shown;

[0058] Figure 5 A schematic diagram showing the processing results of the tag service is shown;

[0059] Figure 6 A structural block diagram of a project framework processing device according to an embodiment of the present application is shown;

[0060] Figure 7 shows a structural block diagram of a project framework processing device according to another embodiment of the present application;

[0061] Figure 8 A schematic structural diagram of a computing device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0062] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0063] First, the terms involved in one or more embodiments of the present application are explained.

[0064] Business module: A module divided according to business in an application.

[0065] Common components: functional components shared by multiple business modules.

[0066] Project framework: The framework of the developed computer software, used to realize the functions of the computer software.

[0067] Tracking: Collecting information during specific application processes to track application usage, which is then used to further optimize the product or provide operational data support.

[0068] User rights: refers to the rights of users. After logging in with an account, some functions can be used, while others cannot. This is the permission set by the administrator. Only those who meet the permission can use the corresponding functions.

[0069] Watermark: A technology that embeds information such as the legal copyright owner's logo and legal ownership time into the copyright file to achieve anti-counterfeiting traceability and copyright protection.

[0070] Figure 1 A schematic diagram of a process flow of a project framework processing method according to an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes the following steps:

[0071] Step S101: Obtain codes corresponding to common components of multiple business modules in the application to be split.

[0072] The method can be executed by the server. The application to be split contains multiple business modules. For example, if the application to be split is a data management application on a data platform, it may include a real-time data business module, an offline data business module, a test business module, etc. Multiple business modules belong to the same application to be split, and they share the same common components. Common components refer to functional components shared by multiple business modules.

[0073] In order to effectively reduce the workload of project splitting and improve the efficiency of splitting, the application to be split can be analyzed. Specifically, the code and business logic of the application to be split can be analyzed to determine the functional components corresponding to the codes of each part of the application to be split and the business modules to which each functional component is applicable. The functional components shared by multiple business modules are used as common components, and then the code corresponding to the common components is extracted from the code of the application to be split. Specifically, the common components may include one or more of the following components: a buried data reporting component, a buried data display component, a user authority component, and a watermark component. Those skilled in the art may also set the common components to include other functional components according to actual needs, which is not limited here.

[0074] Step S102: Integrate the codes corresponding to the public components to obtain a public plug-in.

[0075] After extracting the code corresponding to the common component, the code corresponding to the common component can be integrated to obtain a plug-in that integrates the common component functions. In this embodiment, the plug-in that integrates the common component functions is referred to as a common plug-in. Specifically, the code corresponding to the common component can be integrated, and the integrated code can be used to determine the plug-in source code and the test case source code corresponding to the plug-in source code. The plug-in source code and the test case source code can be compiled, and the compiled plug-in can be tested using the test case obtained after compilation. The plug-in obtained after compilation that ultimately passes the test is regarded as a common plug-in. In addition, the plug-in source code corresponding to the common plug-in can be uploaded to a code repository to enable unified and efficient management of the plug-in source code.

[0076] Step S103: Build a project framework using the public plug-in.

[0077] Specifically, the project framework can be constructed using existing scaffolding tools. In an optional implementation, a public plug-in can be parsed to obtain the corresponding configuration file, a new project framework can be generated using the scaffolding tool, the configuration file can be saved to the project directory corresponding to the project framework, and the import code corresponding to the configuration file can be generated. The import code is written into the project entry file of the project framework, thereby completing the construction of the project framework. The project framework is used to provide the functions of the public components for the business terminal to call to create a project corresponding to the project framework.

[0078] In another optional implementation, a project framework folder may be created, and the project framework may be initialized in the project framework folder to generate a packages.json file; public plug-ins may be added to the packages.json file, the project framework may be published, and the published project framework may be stored in a code management tool to complete the construction of the project framework.

[0079] According to the project framework processing method provided in the embodiment of the present application, by analyzing the application to be split, the codes corresponding to the common components in multiple business modules can be easily determined, and the common plug-ins integrated based on the codes corresponding to the common components can be used to easily build a project framework that integrates the functions of the common components. The project framework can be applied to different business modules in the application to be split, and has high compatibility and scalability. When the user uses the project framework to split the application, there is no need to repeatedly split the common components of each business module in the application, which effectively reduces the losses and time consumption caused by human errors in the project splitting process and greatly improves the splitting efficiency.

[0080] Figure 2 FIG. 1 shows a flow chart of a project framework processing method according to another embodiment of the present application, as shown in FIG. Figure 2As shown, the method can be executed by the server, and the method includes the following steps:

[0081] Step S201 : Analyze the application to be split and extract the codes corresponding to the common components of multiple business modules in the application to be split.

[0082] The application to be split contains multiple business modules, and the multiple business modules have the same common components. In step S201, the code and business logic of the application to be split can be analyzed to determine the functional components corresponding to the codes of each part of the application to be split and the business modules to which each functional component is applicable. The functional components shared by multiple business modules are screened out as common components, and the code corresponding to the common components is extracted from the code of the application to be split. Among them, the common components may include one or more of the following components: a buried data reporting component, a buried data display component, a user authority component, and a watermark component.

[0083] Step S202 : Integrate the codes corresponding to the common components to obtain a common plug-in, and configure the usage instance and project development specification logic of the common plug-in.

[0084] The codes corresponding to the common components are integrated to obtain a common plug-in that integrates the functions of the common components. In this embodiment, use cases of the common plug-in can also be configured so that users can clearly and conveniently know the specific usage of the common plug-in based on the use cases. Taking into account that different users have different styles of writing codes and building project structures, and for a project, it is more desirable that the code style in the project is unified and the project structure is also unified so that the project can be managed and maintained later. In this embodiment, project development specification logic is also configured to unify the development specifications within the project framework. Among them, the project development specification logic can specifically include code format verification logic and project structure specification logic. The code format verification logic is used to unify the code format in the project development process under the project framework, and the project structure specification logic is used to unify the project structure under the project framework to obtain a standardized project structure.

[0085] Step S203 : Integrate the common plug-in, the usage examples of the common plug-in, and the project development specification logic to construct a project framework.

[0086] Among them, although the existing scaffolding tools can realize the construction of the project framework, the project framework directly constructed using the scaffolding tools requires the user to perform a lot of configuration before business development can be carried out, and it is difficult to achieve the unification of development specifications. In this embodiment, the project framework construction capability of the existing scaffolding tools can be utilized to integrate the common plug-ins, the use instances of the common plug-ins, and the project development specification logic, so as to construct a project framework that integrates the functions of the common components. Those skilled in the art can select the scaffolding tool according to actual needs, which is not limited here. For example, the scaffolding tool can be Vue-cli, create-react-app, etc.

[0087] The project framework constructed in this embodiment can include a basic configuration package that can be used by users without additional configuration. It also integrates the functions of common components such as the buried data reporting component, the buried data display component, the user permission component, and the watermark component. In addition, the development specifications are unified within the project framework, which can effectively reduce access costs, quickly achieve access and use, improve project development efficiency and split efficiency, and conveniently achieve the unification of development specifications. In addition, the project framework also provides usage examples, allowing users to clearly and conveniently understand the specific usage of common plug-ins based on the usage examples.

[0088] In this example, common components across different business modules within the application to be split are extracted as common components, creating a project framework that integrates these common components. This framework can be used across the different business modules within the application to be split, demonstrating high compatibility and scalability. This framework is applicable to various business terminals, providing them with commonly used common components and allowing users to further configure them based on specific business needs.

[0089] When users use this project framework to split applications, they no longer need to repeatedly split the common components of each business module in the application, which effectively reduces the losses and time consumption caused by human errors during the project splitting process and greatly improves the splitting efficiency.

[0090] Step S204: deploy the project framework in a code management tool.

[0091] After building the project framework, you can deploy it in a code management tool such as gitlabel to effectively manage the project framework.

[0092] Step S205 , in response to the project framework adding request from the business terminal, obtaining the project framework from the code management tool, obtaining the public plug-in corresponding to the project framework, and returning the project framework and the public plug-in to the business terminal.

[0093] Before a user needs to use the project framework in a business terminal, they must first complete the project framework addition process and add the project framework to the business terminal. Specifically, the user sends a project framework addition request to the server through the business terminal. The server responds to the project framework addition request by obtaining the project framework from the code management tool and the corresponding public plug-in. The server then returns the project framework and public plug-in to the business terminal for installation and use.

[0094] In a specific application scenario, if the public plug-in is stored in a database and the project framework is stored in a code management tool, the server can first obtain the project framework from the code management tool, obtain the plug-in ID of the public plug-in integrated in the project framework, and then obtain the corresponding public plug-in from the database based on the plug-in ID.

[0095] Optionally, when the business terminal uses the project framework to create a project, the server can generate a project ID for the project created by the business terminal using the project framework based on the configuration information of the service tree. The service tree can be a tree structure determined according to the specific business type and contains various objects required to execute the business. The project ID is identification information for identifying the project, and the project ID is used to report tracking data and deploy project use. The project ID can be used to easily distinguish the tracking data reported by different projects and the project configuration information of different projects.

[0096] According to the project framework processing method provided in the embodiment of the present application, the application to be split is analyzed, and the common components in multiple business modules can be accurately identified. By integrating the common plug-ins obtained by integrating the codes corresponding to the common components, the usage instances of the common plug-ins, and the project development specification logic, the construction of a project framework that integrates the functions of common components such as the buried data reporting component, the buried data display component, the user authority component, and the watermark component is conveniently realized. The project framework is suitable for use in different business modules in the application to be split, has high compatibility and scalability, effectively reduces the access cost, quickly realizes access and use, and improves the project development efficiency and splitting efficiency; and, usage instances are also provided in the project framework, so that users can clearly and conveniently know the specific usage of the common plug-ins based on the usage instances; in addition, the project framework also integrates the project development specification logic, realizes the unification of development specifications, and facilitates the management and maintenance of the project.

[0097] Figure 3 FIG. 1 shows a flow chart of a project framework processing method according to another embodiment of the present application, as shown in FIG. Figure 3 As shown, the method includes the following steps:

[0098] Step S301: Create a project corresponding to the project framework.

[0099] The method can be executed by a business terminal. When a user needs to create a new project according to business needs, a project corresponding to the project framework can be created through the business terminal. Specifically, the project framework is Figure 1 or Figure 2 The corresponding embodiment is constructed by integrating the common plug-in obtained by integrating the codes corresponding to the common components in multiple business modules of the application to be split. For the description of the project framework construction method, please refer to Figure 1 The corresponding embodiments and Figure 2 The corresponding descriptions in the corresponding embodiments will not be repeated here.

[0100] Optionally, before step S301, the method may further include: sending a project framework adding request to the server, so that the server obtains and returns the project framework and the public plug-in corresponding to the project framework according to the project framework adding request; and installing the project framework and the public plug-in.

[0101] Before a user can use the project framework in a business terminal, they must first add it. The user sends a request to add the project framework to the server through the business terminal. The server responds by retrieving the project framework from the code management tool used to store it, along with the corresponding public plug-in. The server then returns the project framework and public plug-in to the business terminal. The business terminal then installs the project framework and public plug-in, enabling the business terminal to create projects using the project framework.

[0102] Step S302: Use the public plug-in to configure the project and obtain project configuration information.

[0103] Among them, the public plug-in is obtained by integrating the codes corresponding to the public components, and the public components may include one or more of the following components: a buried data reporting component, a buried data display component, a user authority component, and a watermark component. After creating a project corresponding to the project framework, the public plug-in can be used to configure configuration items such as buried data reporting, buried data display, user authority, and watermark according to specific business needs in the project. Specifically, the project configuration information may include configuration information corresponding to each function, such as buried data reporting configuration information, buried data display configuration information, user authority configuration information, watermark configuration information, etc. Among them, the configuration information corresponding to each function may further include: the name of the configuration item, the configuration content of the configuration item, the modification time of the configuration item, and the person who modified the configuration item.

[0104] Figure 4a A schematic diagram of the project configuration page in the business terminal is shown, Figure 4aAs shown, the project configuration page includes a project selection box 401, a configuration item input box 402, a query button 403, a new button 404, and an update configuration button 405. The user can select the project name or project ID of the project to be configured in the project selection box 401, and then click the query button 403 to display the relevant project configuration information of the project, such as Figure 4a As shown, taking the selected project name as XM as an example, the queried project configuration information may include the configuration items contained in the project, the configuration content of the configuration items, the corresponding MD5 value, the modification time of the configuration items, and the person who modified the configuration items, etc., where "*" represents a character. If the user clicks the Add button 404, the Figure 4b The Add Configuration Item page shown in the figure includes a Project display box 406, a Configuration Item name input box 407, a Configuration Content input box 408, a Cancel button, and a Submit button. Project display box 406 displays information such as the project name or project ID of the project corresponding to the newly added configuration item. The user can enter the name of the newly added configuration item in the Configuration Item name input box 407, enter the specific configuration content of the configuration item in the Configuration Content input box 408, and click the Submit button to submit or click the Cancel button to cancel the addition of the configuration item.

[0105] When the public component includes a point-of-sale data reporting component, it means that the public plug-in integrated by the project framework has the function of setting up point-of-sale data reporting. The public plug-in can then be used in the project to configure the point-of-sale reporting, obtain the point-of-sale reporting configuration information, and then collect and report the corresponding point-of-sale data according to the project ID based on the point-of-sale reporting configuration information. Specifically, the point-of-sale reporting configuration information is read, and the corresponding business system configuration is performed in the corresponding business system based on the point-of-sale reporting configuration information to collect and report the point-of-sale data. Among them, the point-of-sale data may include abnormal data, element exposure data, performance parameters, and other point-of-sale data set by the user according to business needs. For example, if it is necessary to count data indicators such as page views (PV), unique visitors (UV), element clicks, user stay time, page bounce rate, etc. for a certain page, a point-of-sale data can be set in the corresponding location. For the collection of various types of point-of-sale data, it can be filtered and matched according to the configuration items in the point-of-sale reporting configuration information, and then different identifiers can be added for different businesses for reporting.

[0106] When the public component includes a buried point data display component, it means that the public plug-in integrated in the project framework has the function of setting the buried point data display. The public plug-in can be used in the project to configure the buried point display and obtain the buried point display configuration information. Then, according to the buried point display configuration information, the collected buried point data can be processed and displayed. For example, the collected buried point data is processed according to the preset data processing strategy to obtain the processing result, and the processing result is displayed. In an optional embodiment, the processing result can be displayed in the business terminal for the user to view. In another optional embodiment, the collected buried point data can be reported to the server, and the server processes the collected buried point data to obtain the processing result. The user can view the processing result of the displayed reported data in the display platform provided by the server. Figure 5 A schematic diagram showing the processing results of the tag service is shown in FIG. Figure 5 As shown in the figure, for the tag service, the access frequency of the view list query interface, the view synchronization task list interface, the crowd selection query interface, the view editing interface, and the view details interface and their corresponding trends in the past 7 days are displayed.

[0107] When the public component includes a user permission component, it means that the public plug-in integrated in the project framework has the function of setting user permissions. The public plug-in can be used in the project to configure user permissions, obtain user permission configuration information, and then manage the user permissions of each user based on the user permission configuration information. For example, corresponding permissions can be assigned to the user based on his or her position or department. Permissions can be divided into multiple levels. Technical personnel in this field can set the permission content of each level of permissions according to actual needs. For example, users with higher levels of permissions can add, delete, and modify all content and all configuration items in the project, while users with lower levels of permissions can only modify part of the content and some configuration items in the project.

[0108] If a public component includes a watermark component, it indicates that the public plug-in integrated into the project framework has the function of setting a watermark. You can then use the public plug-in to configure the watermark in the project and obtain watermark configuration information. Specifically, you can configure the watermark display content, watermark display method, and the page where the watermark is displayed. The watermark display content can include the user's name, department information, etc. Then, based on the watermark configuration information, the corresponding watermark content is displayed on the project page.

[0109] In addition, the project framework is also configured with project development specification logic, so that users need to develop projects according to the project development specification logic in projects created based on the project framework, so that the developed projects have unified development specifications for subsequent project management and maintenance.

[0110] According to the project framework processing method provided in the embodiment of the present application, a project is created by using a project framework that integrates public component functions. Public component functions such as point data reporting, point data display, user permissions, watermarks, etc. can be easily configured in the project. There is no need to repeatedly split the public components of each business module in the application, which effectively reduces the losses and time consumption caused by human errors in the project splitting process, improves the project development efficiency and splitting efficiency, effectively reduces the access cost, and quickly realizes access and use; and, the project framework also provides usage examples, so that users can clearly and conveniently know the specific usage of public plug-ins based on the usage examples; in addition, the project framework also integrates the project development specification logic, realizes the unification of development specifications, and facilitates the management and maintenance of the project.

[0111] Figure 6 A structural block diagram of a project framework processing device according to an embodiment of the present application is shown as follows: Figure 6 As shown, the device can be executed by a server, and includes: an acquisition module 610, an integration module 620 and a framework construction module 630.

[0112] The acquisition module 610 is adapted to acquire codes corresponding to common components of multiple business modules in the application to be split.

[0113] The integration module 620 is adapted to integrate codes corresponding to the public components to obtain a public plug-in.

[0114] The framework building module 630 is adapted to build a project framework using a common plug-in. The project framework is used to provide the functions of common components for the service terminal to call to create a project corresponding to the project framework.

[0115] Optionally, the acquisition module 610 is further adapted to: analyze the application to be split, and extract codes corresponding to common components of multiple business modules in the application to be split.

[0116] Among them, the public components include one or more of the following components: buried data reporting component, buried data display component, user authority component, and watermark component.

[0117] Optionally, the framework building module 630 is further adapted to: configure usage examples of common plug-ins and project development specification logic; integrate the common plug-ins, usage examples of common plug-ins, and project development specification logic to build a project framework. The project development specification logic includes code format verification logic and project structure specification logic.

[0118] Optionally, the framework building module 630 is further adapted to: deploy the project framework in a code management tool.

[0119] Optionally, the apparatus may further include a response module 640. The response module 640 is adapted to: in response to a project framework addition request from a business terminal, obtain the project framework from the code management tool, obtain a public plug-in corresponding to the project framework, and return the project framework and public plug-in to the business terminal for installation and use by the business terminal.

[0120] Optionally, the response module 640 is further adapted to generate a project ID for a project created by the business terminal using the project framework according to the configuration information of the service tree, and the project ID is used for reporting tracking data and deploying the project.

[0121] For the description of the above modules, refer to Figure 1 and Figure 2 The corresponding description in the method embodiment will not be repeated here.

[0122] According to the project framework processing device provided in the embodiment of the present application, by analyzing the application to be split, it is possible to conveniently determine the codes corresponding to the common components in multiple business modules, and by utilizing the common plug-ins integrated based on the codes corresponding to the common components, it is possible to conveniently construct a project framework that integrates the functions of common components such as the buried data reporting component, the buried data display component, the user authority component, and the watermark component. The project framework can be applied to different business modules in the application to be split, has high compatibility and scalability, effectively reduces the access cost, and quickly realizes access and use, so that when the user uses the project framework to split the application project, there is no need to repeatedly split the common components of each business module in the application, which effectively reduces the losses and time consumption caused by human errors in the project splitting process, and greatly improves the splitting efficiency; and, the project framework also provides usage examples, so that the user can clearly and conveniently know the specific usage of the common plug-in based on the usage examples; in addition, the project framework also integrates the project development specification logic, realizes the unification of development specifications, and facilitates the management and maintenance of the project.

[0123] Figure 7 FIG. 1 shows a structural block diagram of a project framework processing device according to another embodiment of the present application. Figure 7 As shown, the device can be executed by a service terminal, and the device includes: a creation module 710 and a configuration module 720.

[0124] The creation module 710 is adapted to create a project corresponding to a project framework, where the project framework is constructed by integrating a common plug-in obtained by using codes corresponding to common components in a plurality of business modules of the application to be split.

[0125] The configuration module 720 is adapted to: perform project configuration using a common plug-in in a project to obtain project configuration information.

[0126] Optionally, the device may further include a framework adding module (not shown in the figure). The framework adding module is adapted to: send a project framework adding request to the server, so that the server can obtain and return the project framework and the public plug-in corresponding to the project framework according to the project framework adding request; and install the project framework and the public plug-in.

[0127] Optionally, the configuration module 720 is further adapted to: configure the tracking point reporting using a public plug-in in the project to obtain tracking point reporting configuration information; and collect and report corresponding tracking point data according to the tracking point reporting configuration information.

[0128] Optionally, the configuration module 720 is further adapted to: configure the tracking point display using a public plug-in in the project to obtain tracking point display configuration information; and process and display the collected tracking point data according to the tracking point display configuration information.

[0129] Optionally, the configuration module 720 is further adapted to: configure user rights in the project using a public plug-in to obtain user rights configuration information; and manage user rights of each user according to the user rights configuration information.

[0130] Optionally, the configuration module 720 is further adapted to: configure the watermark in the project using a public plug-in to obtain watermark configuration information; and display corresponding watermark content in the project page of the project according to the watermark configuration information.

[0131] For the description of the above modules, refer to Figure 3 The corresponding description in the method embodiment will not be repeated here.

[0132] According to the project framework processing device provided in the embodiment of the present application, a project is created by using a project framework that integrates public component functions. Public component functions such as point data reporting, point data display, user permissions, watermarks, etc. can be easily configured in the project. There is no need to repeatedly split the public components of each business module in the application, which effectively reduces the losses and time consumption caused by human errors in the project splitting process, improves the project development efficiency and splitting efficiency, effectively reduces the access cost, and quickly realizes access and use; and, the project framework also provides usage examples, so that users can clearly and conveniently know the specific usage of the public plug-in based on the usage examples; in addition, the project framework also integrates the project development specification logic, realizes the unification of development specifications, and facilitates the management and maintenance of the project.

[0133] An embodiment of the present application further provides a non-volatile computer storage medium, which stores at least one executable instruction. The executable instruction can execute the project framework processing method executed on the server side in any of the above method embodiments.

[0134] Figure 8 A schematic structural diagram of a computing device according to an embodiment of the present application is shown. The specific embodiments of the present application do not limit the specific implementation of the computing device.

[0135] like Figure 8 As shown, the computing device may include: a processor 802 , a communications interface 804 , a memory 806 , and a communication bus 808 .

[0136] in:

[0137] The processor 802 , the communication interface 804 , and the memory 806 communicate with each other via a communication bus 808 .

[0138] The communication interface 804 is used to communicate with other devices such as clients or other servers.

[0139] The processor 802 is configured to execute the program 810 , and specifically may execute the relevant steps in the embodiment of the project framework processing method executed on the server side.

[0140] Specifically, the program 810 may include program codes, which include computer operation instructions.

[0141] Processor 802 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs, or may be processors of different types, such as one or more CPUs and one or more ASICs.

[0142] The memory 806 is used to store the program 810. The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0143] Program 810 can be specifically used to cause processor 802 to execute the project framework processing method executed on the server side in any of the above-mentioned method embodiments. The specific implementation of each step in program 810 can refer to the corresponding descriptions in the corresponding steps and units in the above-mentioned project framework processing embodiments, and will not be repeated here. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-mentioned devices and modules can refer to the corresponding process description in the above-mentioned method embodiments, and will not be repeated here.

[0144] An embodiment of the present application further provides a non-volatile computer storage medium, which stores at least one executable instruction. The executable instruction can execute the project framework processing method executed on the business terminal in any of the above method embodiments.

[0145] The embodiment of the present application also provides a computing device, including: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the project framework processing method executed on the business terminal. Figure 8 The structural diagrams of the computing devices shown are the same and will not be repeated here.

[0146] The algorithm and display provided herein are not inherently relevant to any particular computer, virtual system or other device. Various general-purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing this type of system. In addition, the embodiments of the present application are not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the embodiments of the present application described herein, and the description of the specific languages ​​above is for the purpose of disclosing the best mode of implementation of the embodiments of the present application.

[0147] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of this description.

[0148] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present application, the various features of the embodiments of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed embodiments of the present application require more features than the features explicitly recited in each claim. More precisely, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims following the detailed description are hereby expressly incorporated into the detailed description, with each claim itself serving as a separate embodiment of the embodiments of the present application.

[0149] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition may be divided into multiple submodules or subunits or subcomponents. All features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed herein may be combined in any combination, except that at least some of such features and / or processes or units are mutually exclusive. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0150] Furthermore, those skilled in the art will appreciate that although some embodiments described herein include certain features that are included in other embodiments but not other features, combinations of features from different embodiments are intended to be within the scope of the present invention and to form different embodiments. For example, in the claims below, any of the claimed embodiments may be used in any combination.

[0151] The various component embodiments of the embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present application. The embodiments of the present application can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for performing a part or all of the methods described herein. Such a program implementing the embodiments of the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0152] It should be noted that the above embodiments illustrate rather than limit the embodiments of the present application, and that a person skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbols placed between brackets should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The embodiments of the present application may be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

Claims

1. A project framework processing method, comprising: Get the code corresponding to the common components of multiple business modules in the application to be split; Integrate the codes corresponding to the common components to obtain a common plug-in; Using the common plug-in, a project framework is constructed, wherein the project framework is used to provide the functions of the common component for the service terminal to call to create a project corresponding to the project framework; The step of obtaining the code corresponding to the common components of the multiple business modules in the application to be split further includes: Analyze the code and business logic of the application to be split, determine the functional components corresponding to the code of each part of the application to be split and the business modules applicable to each functional component, select the functional components common to multiple business modules as common components, and extract the code corresponding to the common components from the code of the application to be split; Before using the common plug-in to build the project framework, the method further includes: Configuring the use case of the public plug-in and the project development specification logic; the project development specification logic includes: code format verification logic and project structure specification logic; the code format verification logic is used to unify the code format during the project development process under the project framework, and the project structure specification logic is used to unify the project structure under the project framework; The use of the common plug-in to construct the project framework specifically includes: using a scaffolding tool to integrate the common plug-in, the use instance of the common plug-in and the project development specification logic to construct the project framework.

2. According to the method according to claim 1, the common components include one or more of the following components: a buried point data reporting component, a buried point data display component, a user authority component, and a watermark component.

3. The method according to claim 1, after constructing the project framework using the public plug-in, the method further comprises: Deploy the project framework in a code management tool.

4. The method according to claim 3, after constructing the project framework using the public plug-in, the method further comprises: In response to the project framework adding request of the business terminal, the project framework is obtained from the code management tool, and the public plug-in corresponding to the project framework is obtained, and the project framework and the public plug-in are returned to the business terminal for installation and use by the business terminal.

5. The method according to any one of claims 1 to 4, after constructing the project framework using the public plug-in, the method further comprises: According to the configuration information of the service tree, a project ID is generated for the project created by the business terminal using the project framework. The project ID is used to report tracking data and deploy projects.

6. A project framework processing method, comprising: Create a project corresponding to the project framework, wherein the project framework is constructed by integrating the common plug-ins obtained by integrating the codes corresponding to the common components in multiple business modules of the application to be split using a scaffolding tool, the usage instances of the configured common plug-ins, and the project development specification logic; wherein the common components are the functional components common to multiple business modules screened out by analyzing the code and business logic of the application to be split, determining the functional components corresponding to the codes of each part of the application to be split and the business modules to which each functional component is applicable; the code corresponding to the common components is extracted from the code of the application to be split; the project development specification logic includes: code format verification logic and project structure specification logic; the code format verification logic is used to unify the code format during the project development process under the project framework, and the project structure specification logic is used to unify the project structure under the project framework; The public plug-in is used in the project to configure the project and obtain project configuration information.

7. The method according to claim 6, before creating a project corresponding to the project framework, the method further comprises: Sending a project framework adding request to a server, so that the server obtains and returns the project framework and a public plug-in corresponding to the project framework according to the project framework adding request; The project framework and the public plug-in are installed.

8. The method according to claim 6, wherein the step of configuring the project using the common plug-in to obtain project configuration information further comprises: Using the public plug-in in the project to configure tracking point reporting, and obtain tracking point reporting configuration information; According to the tracking point reporting configuration information, the corresponding tracking point data is collected and reported.

9. The method according to any one of claims 6 to 8, wherein performing project configuration using the common plug-in in the project to obtain project configuration information further comprises: Using the public plug-in in the project to configure the tracking display, and obtain tracking display configuration information; The collected tracking data is processed and displayed according to the tracking display configuration information.

10. The method according to any one of claims 6 to 8, wherein performing project configuration using the common plug-in in the project to obtain project configuration information further comprises: Performing user authority configuration in the project using the public plug-in to obtain user authority configuration information; The user rights of each user are managed according to the user right configuration information.

11. The method according to any one of claims 6 to 8, wherein performing project configuration using the common plug-in in the project to obtain project configuration information further comprises: Performing watermark configuration in the project using the public plug-in to obtain watermark configuration information; According to the watermark configuration information, corresponding watermark content is displayed on the project page of the project.

12. A project framework processing device, comprising: An acquisition module, adapted to acquire the codes corresponding to the common components of multiple business modules in the application to be split; An integration module, adapted to integrate the codes corresponding to the common components to obtain a common plug-in; A framework construction module, adapted to use the common plug-in to construct a project framework, wherein the project framework is used to provide the functions of the common components for the service terminal to call to create a project corresponding to the project framework; The acquisition module is further adapted to: analyze the code and business logic of the application to be split, determine the functional components corresponding to the codes of various parts of the application to be split and the business modules to which the functional components are applicable, select the functional components common to multiple business modules as common components, and extract the code corresponding to the common components from the code of the application to be split; The framework construction module is further adapted to: configure the usage instances of the common plug-in and the project development specification logic; the project development specification logic includes: code format verification logic and project structure specification logic; the code format verification logic is used to unify the code format during the project development process under the project framework, and the project structure specification logic is used to unify the project structure under the project framework; using a scaffolding tool, the common plug-in, the usage instances of the common plug-in and the project development specification logic are integrated to construct the project framework.

13. A project framework processing device, comprising: A creation module is suitable for creating a project corresponding to a project framework, wherein the project framework is constructed by integrating the common plug-ins obtained by integrating the codes corresponding to the common components in multiple business modules of the application to be split using a scaffolding tool, the usage instances of the configured common plug-ins, and the project development specification logic; wherein the common components are the functional components common to multiple business modules screened out by analyzing the code and business logic of the application to be split, determining the functional components corresponding to the codes of each part of the application to be split and the business modules to which each functional component is applicable; the code corresponding to the common components is extracted from the code of the application to be split; the project development specification logic includes: code format verification logic and project structure specification logic; the code format verification logic is used to unify the code format in the project development process under the project framework, and the project structure specification logic is used to unify the project structure under the project framework; The configuration module is adapted to utilize the common plug-in to perform project configuration in the project and obtain project configuration information.

14. A project framework processing system, comprising: The project framework processing device according to claim 12 and the project framework processing device according to claim 13.

15. A computing device comprising: A processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the project framework processing method according to any one of claims 1 to 5 or to perform an operation corresponding to the project framework processing method according to any one of claims 6 to 11.

16. A computer storage medium, wherein the storage medium stores at least one executable instruction, wherein the executable instruction causes a processor to execute an operation corresponding to the project framework processing method according to any one of claims 1 to 5 or an operation corresponding to the project framework processing method according to any one of claims 6 to 11.

17. A computer program product, comprising at least one executable instruction, wherein the executable instruction enables a processor to perform operations corresponding to the project framework processing method according to any one of claims 1 to 5 or to perform operations corresponding to the project framework processing method according to any one of claims 6 to 11.

Citation Information

Patent Citations

  • Component sharing method and device under micro-service architecture and electronic equipment

    CN109491653A

  • WEB application development method and system

    CN109783083A