Business development method and device of application platform, server, medium and product

By extracting global variable identifiers to generate configuration files and using the basic project framework to read configuration files, the problem of similar business logic but low code reuse rate of different platforms is solved, and code reuse and operation costs are reduced.

CN119536719APending Publication Date: 2025-02-28CHERY AUTOMOBILE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411684795.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The business logic of different platforms is similar, but due to the independent project and low code reuse rate, the resource waste and maintenance costs are high.

Method used

By obtaining the business development requirements of the target application platform, extracting global variable identifiers, generating configuration files, and reading configuration files using the pre-built basic project framework to achieve the business development requirements of the target application platform.

Benefits of technology

It realizes code reuse, reduces repeated development workload, reduces operational costs, and improves system flexibility and maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536719A_ABST
    Figure CN119536719A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of computers, in particular to a service development method and device of an application platform, a server, a medium and a product, and the method comprises the steps: obtaining a service development demand of a target application platform; extracting a global variable identifier of the target application platform, and generating a configuration file based on the global variable identifier; and reading the configuration file by using a pre-established basic project framework to meet the business development requirements of the target application platform, the basic project framework being established according to the same business development requirements of different application platforms. Therefore, the problems of resource waste, high maintenance cost and the like due to the fact that business logics of different platforms are similar but items are independent and the code reuse rate is low are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a business development method, device, server, medium and product for an application platform. Background Art

[0002] With the rapid development of Internet technology, enterprises and organizations are increasingly relying on efficient and flexible software development methods to meet the diverse needs of the market. Especially in the field of front-end development, with the popularity of modern JavaScript frameworks such as Vue.js, developers can build complex web applications more easily.

[0003] In order to adapt to the specific needs of different platforms, the common practice of related technologies is to create a separate project for each platform, which requires a series of repetitive tasks such as building project structure, writing business logic, configuring build tools, etc. Even if the business logic between these platforms is highly similar, the lack of an effective sharing mechanism leads to serious waste of resources and increases the difficulty of later maintenance. In addition, when business needs change, developers need to update the code of each project one by one, which increases the workload. Summary of the invention

[0004] The present application provides a business development method, device, server, medium and product for an application platform to solve the problems that the business logic of different platforms is similar, but due to the independence of projects, the code reuse rate is low, there is a waste of resources and high maintenance costs.

[0005] The first aspect of the present application provides a business development method for an application platform, comprising the following steps: obtaining the business development requirements of a target application platform; extracting a global variable identifier of the target application platform, and generating a configuration file based on the global variable identifier; using a pre-built basic project framework to read the configuration file to implement the business development requirements of the target application platform, wherein the basic project framework is built by the same business development requirements of different application platforms.

[0006] Optionally, the global variable identifier includes multiple ones of an identifier of the application platform, a platform title, a logo, a service address, and a routing configuration.

[0007] Optionally, the global variable identifier is used to distinguish different application platforms, and the global variable identifier is stored in the configuration file in the form of a key-value pair.

[0008] Optionally, the configuration file is read using the pre-built basic project framework to realize the business development requirements of the target application platform, including: creating an execution script of the target application platform; and reading the configuration file based on the execution script and the pre-built basic project framework.

[0009] Optionally, before using the pre-built basic project framework to read the configuration file to realize the business development requirements of the target application platform, it also includes: reading the routing rules and permission control of the target application platform; and deploying access rights for functions corresponding to the business development requirements based on the routing rules and permission control.

[0010] The second aspect of the present application provides a business development device for an application platform, including: an acquisition module for acquiring the business development requirements of a target application platform; an extraction module for extracting the global variable identifier of the application platform and generating a configuration file based on the global variable identifier; a development module for reading the configuration file using a pre-built basic project framework to achieve the business development requirements of the target application platform, wherein the basic project framework is built by the same business development requirements of different application platforms.

[0011] Optionally, the global variable identifier includes multiple ones of the application platform identifier, platform title, logo, service address and routing configuration. The global variable identifier is used to distinguish different application platforms. The global variable identifier is stored in the configuration file in the form of a key-value pair.

[0012] Optionally, the development module is further used to create an execution script for the target application platform; and read a configuration file based on the execution script and a pre-built basic project framework.

[0013] Optionally, the business development device of the application platform also includes: a deployment module, which is used to read the routing rules and permission control of the target application platform before using the pre-built basic project framework to read the configuration file to achieve the business development needs of the target application platform; and deploy access rights to functions corresponding to the business development needs based on the routing rules and permission control.

[0014] The third aspect of the present application provides a server, 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 a business development method for an application platform as in the above embodiment.

[0015] The fourth aspect of the present application provides a computer-readable storage medium having a computer program or instruction stored thereon. When the computer program or instruction is executed, it is used to implement the business development method of the application platform as described in the above embodiment.

[0016] The fifth aspect of the present application provides a computer program product, including: a computer program or instructions, which, when executed, implements the business development method of the application platform as described in the above embodiment.

[0017] Therefore, this application has at least the following beneficial effects:

[0018] The embodiment of the present application can obtain the business development requirements of the target application platform; extract the global variable identifier of the target application platform, generate a configuration file based on the global variable identifier, reuse most of the business logic and common components through the configuration file and the global variable identifier, reduce the workload of repeated development, and flexibly configure business requirements for the target application platform, thereby reducing operating costs. Thus, the problem that the business logic of different platforms is similar, but due to the independence of the projects, the code reuse rate is low, there is a waste of resources and high maintenance costs, etc. is solved. The additional aspects and advantages of the present application will be partially given in the following description, and some will become obvious from the following description, or will be understood through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A flowchart of a business development method for an application platform provided according to an embodiment of the present application;

[0021] Figure 2 An example diagram of business development of an application platform provided according to an embodiment of the present application;

[0022] Figure 3 A block diagram of a business development device for an application platform provided according to an embodiment of the present application;

[0023] Figure 4 Schematic diagram of the structure of a server according to an embodiment of the present application. DETAILED DESCRIPTION

[0024] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0025] The following describes the business development method, device, server, medium and product of the application platform of the embodiment of the present application with reference to the accompanying drawings. In response to the problems mentioned in the above background technology, the present application provides a business development method for an application platform, in which the business development needs of the target application platform are obtained; the global variable identifier of the target application platform is extracted, and a configuration file is generated based on the global variable identifier. Through the configuration file and the global variable identifier, most of the business logic and common components are reused, the workload of repeated development is reduced, and the business needs can be flexibly configured for the target application platform, reducing operating costs. In this way, the problem that the business logic of different platforms is similar, but due to the independence of the projects, the code reuse rate is low, there is a waste of resources and high maintenance costs.

[0026] Specifically, Figure 1 A flowchart of a business development method for an application platform provided in an embodiment of the present application.

[0027] like Figure 1 As shown, the business development method of the application platform includes the following steps:

[0028] In step S101, the business development requirements of the target application platform are obtained.

[0029] It is understandable that before the development of the alkaline front-end business in the embodiment of the present application, it is first necessary to determine the business development requirements of the target application platform to facilitate subsequent system maintenance and functional expansion, where the business development requirements can be alarm monitoring services or other functional services, without specific limitation.

[0030] In step S102, the global variable identifier of the target application platform is extracted, and a configuration file is generated based on the global variable identifier.

[0031] The global variable identifier includes multiple identifiers of the application platform, platform title, logo, service address and routing configuration.

[0032] In the embodiment of the present application, a unique global variable identifier is defined for each platform, which is used to distinguish different application platforms and is stored in the configuration file in the form of a key-value pair. In each configuration file, a global variable identifier unique to the platform is defined, including the platform name, logo image path, service interface address, routing configuration, etc.

[0033] In step S103, a configuration file is read using a pre-built basic project framework to realize the business development requirements of the target application platform, wherein the basic project framework is built according to the same business development requirements of different application platforms.

[0034] In one embodiment of the present application, a pre-built basic project framework is used to read a configuration file to realize the business development requirements of a target application platform, including: creating an execution script of the target application platform; and reading the configuration file based on the execution script and the pre-built basic project framework.

[0035] Specifically, the embodiment of the present application can use the Vue CLI framework to develop front-end business and initialize the basic configuration to meet the needs of normal business development; the Vue CLI framework will read the configuration file by default when running, and set the parameters according to the configuration file to serve the business. The embodiment of the present application can add a configuration file to each business party separately according to different business parties, and include a unique identifier for distinction. And write the unique identifier in the scrpit script command for execution and compilation. In this way, Vue CLI can read different configuration files to distinguish different businesses, so as to process certain attributes separately, including names, service interfaces, routes, etc., thereby realizing a set of codes to realize the integration of multi-platform businesses and reduce development and maintenance costs.

[0036] In order to better understand the present application, the present application embodiment can be described in detail with a specific example, such as model A, model B, and model C, and the alarm platform of three models needs to be opened in one project. As in step s1, the VueCLI framework is initialized. At this time, the framework is an empty project with no business and can run and compile normally. Figure 2 As shown, the embodiment of the present application can normally carry out business development of model A in this Vue CLI front-end project. After the business development is completed, the platform of model A can be used normally. Add the configuration file .env.A file, and extract the unique identifier, title, logo, service address, and routing configuration of model A into the configuration file .env.A in the form of global variable key-value pairs. In the actual execution process, the embodiment of the present application can replace the places where these environment variables are used in the project code business with parameters.

[0037] Furthermore, in the embodiment of the present application, the B model and the C model can also copy a configuration file of A and name it as .env.B and env.C, such as Figure 2 Step s2 shown in the figure is changed to the corresponding attributes of each platform. You can add scripts by defining scripts such as build:[development]:vue-cli-service build--mode[development], and configure development to A, B, and C respectively. When executing, the corresponding configuration files will be read according to the corresponding mode. In the main business, process.env is an environment object in Node.js, which can read the data in the configuration file. It is used to distinguish different business platforms by reading the unique global variable identifier in the configuration file, including the platform name, calling service address, and other required global parameters.

[0038] In step s3, the main business is written to meet the use of multiple platforms at the same time. For the differentiation of platforms, the identifier of the configuration file can be read in the main business to distinguish and process. For example, in step s4, the privatization of data and routing can be realized by reading the respective services when the platform is deployed.

[0039] In step s5, the script command defined in build:[development] can be executed to obtain the platform to be released so as to meet business requirements.

[0040] In one embodiment of the present application, before using the pre-built basic project framework to read the configuration file to implement the business development requirements of the target application platform, the present application embodiment can read the routing rules and permission control of the target application platform, and deploy the access rights of the functions corresponding to the business development requirements based on these rules and controls. This ensures that users of different platforms can only access the functions they are authorized to access, thereby improving the security of the system and user experience.

[0041] According to the business development method of the application platform proposed in the embodiment of the present application, the business development requirements of the target application platform are obtained; the global variable identifier of the target application platform is extracted, and a configuration file is generated based on the global variable identifier. Through the configuration file and the global variable identifier, most of the business logic and common components are reused to reduce the workload of repeated development, and the business requirements can be flexibly configured for the target application platform, thereby reducing operating costs. In this way, the problems of similar business logics of different platforms, but low code reuse rate due to project independence, waste of resources and high maintenance costs are solved.

[0042] Next, a business development device for an application platform according to an embodiment of the present application will be described with reference to the accompanying drawings.

[0043] Figure 3 It is a block diagram of a business development device of an application platform in an embodiment of the present application.

[0044] like Figure 3 As shown, the service development device 10 of the application platform includes: an acquisition module 100 , an extraction module 200 and a development module 300 .

[0045] Among them, the acquisition module 100 is used to obtain the business development requirements of the target application platform; the extraction module 200 is used to extract the global variable identifier of the target application platform and generate a configuration file based on the global variable identifier; the development module 300 is used to use the pre-built basic project framework to read the configuration file to achieve the business development requirements of the target application platform, wherein the basic project framework is built by the same business development requirements of different application platforms.

[0046] In one embodiment of the present application, the global variable identifier includes multiple identifiers of the application platform, platform title, logo, service address and routing configuration. The global variable identifier is used to distinguish different application platforms. The global variable identifier is stored in the configuration file in the form of a key-value pair.

[0047] In one embodiment of the present application, the development module 300 is further used to create an execution script for the target application platform; and read the configuration file based on the execution script and the pre-built basic project framework.

[0048] In one embodiment of the present application, the business development device 10 of the application platform also includes: a deployment module, which is used to read the routing rules and permission control of the target application platform before using the pre-built basic project framework to read the configuration file to achieve the business development needs of the target application platform; and deploy access rights to functions corresponding to the business development needs based on the routing rules and permission control.

[0049] It should be noted that the above explanation of the embodiment of the service development method for the application platform is also applicable to the service development device for the application platform of this embodiment, and will not be repeated here.

[0050] According to the business development device of the application platform proposed in the embodiment of the present application, the business development requirements of the target application platform are obtained; the global variable identification of the target application platform is extracted, and a configuration file is generated based on the global variable identification. Through the configuration file and the global variable identification, most of the business logic and common components are reused to reduce the workload of repeated development, and the business requirements can be flexibly configured for the target application platform, thereby reducing operating costs. In this way, the problems of similar business logics of different platforms, but low code reuse rate due to project independence, waste of resources and high maintenance costs are solved.

[0051] Figure 4 A schematic diagram of the structure of a server provided in an embodiment of the present application. The server may include:

[0052] Memory 401 , processor 402 , and a computer program stored in the memory 401 and executable on the processor 402 .

[0053] When the processor 402 executes the program, the service development method of the application platform provided in the above embodiment is implemented.

[0054] Furthermore, the server also includes:

[0055] The communication interface 403 is used for communication between the memory 401 and the processor 402 .

[0056] The memory 401 is used to store computer programs that can be executed on the processor 402 .

[0057] The memory 401 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0058] If the memory 401, the processor 402 and the communication interface 403 are implemented independently, the communication interface 403, the memory 401 and the processor 402 can be connected to each other through a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0059] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0060] The processor 402 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0061] The embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the business development method of the application platform as described above is implemented.

[0062] The embodiment of the present application also provides a computer program product, including: a computer program or instructions, when the computer program or instructions are executed, to implement the business development method of the application platform as described in the above embodiment.

[0063] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0064] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0065] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0066] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0067] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0068] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A business development method for an application platform, characterized in that: The following steps are involved: Obtain the business development requirements of the target application platform; Extracting the global variable identifier of the target application platform, and generating a configuration file based on the global variable identifier; The configuration file is read using a pre-built basic project framework to realize the business development requirements of the target application platform, wherein the basic project framework is built by the same business development requirements of different application platforms.

2. The service development method of the application platform according to claim 1, characterized in that: The global variable identifier includes multiple ones of an application platform identifier, a platform title, a logo, a service address and a routing configuration.

3. The service development method of the application platform according to claim 1 or 2, characterized in that: The global variable identifier is used to distinguish different application platforms, and the global variable identifier is stored in the configuration file in the form of a key-value pair.

4. The service development method of the application platform according to claim 1, characterized in that: The configuration file is read using the pre-built basic project framework to realize the business development requirements of the target application platform, including: Creating an execution script for the target application platform; The configuration file is read based on the execution script and the pre-built basic project framework.

5. The service development method of the application platform according to claim 1, characterized in that: Before using the pre-built basic project framework to read the configuration file to realize the business development requirements of the target application platform, it also includes: Read the routing rules and permission control of the target application platform; Deploy access rights for functions corresponding to the business development requirements based on the routing rules and the authority control.

6. A service development device for an application platform, characterized in that: include: Acquisition module, used to obtain the business development requirements of the target application platform; An extraction module, used to extract the global variable identifier of the application platform and generate a configuration file based on the global variable identifier; The development module is used to use the pre-built basic project framework to read the configuration file to realize the business development requirements of the target application platform, wherein the basic project framework is built by the same business development requirements of different application platforms.

7. The service development device for an application platform according to claim 6, characterized in that: The global variable identifier includes multiple identifiers of the application platform, platform title, logo, service address and routing configuration. The global variable identifier is used to distinguish different application platforms. The global variable identifier is stored in the configuration file in the form of a key-value pair.

8. A server, characterized in that: include: 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 service development method for the application platform according to any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed, the service development method of the application platform described in any one of claims 1 to 5 is implemented.

10. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed, it implements the business development method of the application platform described in any one of claims 1-5.