Application deployment method and device, electronic equipment and program product
By building a business component library and dynamically adding and configuring business components on a low-code platform, the problem of low-code platforms' low-code platforms' low-code platforms' low-code platforms' low-code platforms' low-code platforms' low-profile deployment and development processes are achieved.
Patent Information
- Application Number
- CN202411743260.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-03-25
AI Technical Summary
When building business applications, existing low-code platforms require frequent modifications and adjustments by developers when building business applications, resulting in low efficiency in business application deployment.
By determining a business component library, including at least one business component, when any business component is detected to exist in the target list, the target business component is determined and added to the front-end interface of the application to be deployed. When an application deployment instruction is detected, the target code is built based on the business components currently present in the front-end interface and the application is deployed.
It improves the deployment efficiency of business applications, reduces the intervention needs of developers, simplifies the complexity of application development and deployment, shortens the development cycle, reduces development costs, and improves the development efficiency and business response efficiency of enterprises.
Smart Images

Figure CN119690459A_ABST
Abstract
Description
Technical Field
[0001] The present application is applied to the field of financial technology, and specifically, relates to an application deployment method, device, electronic device and program product. Background Art
[0002] At present, low-code platforms play an important role in the digital transformation of various industries. The platforms build applications through visual drag and drop, and complete application deployment with one-click release. While lowering the threshold for application development, they also help applications solve deployment and operation and maintenance problems.
[0003] Generally, low-code platforms provide business orchestration capabilities, support rapid data processing and business implementation through visualization, and avoid the redundant development process of traditional coding.
[0004] Existing low-code platforms implement visual business orchestration by setting a set of standard description protocols and built-in business components. However, for new scenarios, they usually rely on professional developers to intervene and add new components through platform source code modification, which cannot support agile business iteration.
[0005] Regarding the problem of low efficiency in business application deployment caused by the use of standard description protocols of low-code platforms in related technologies, developers are required to make modifications and adjustments again due to the diverse business scenarios of business applications. No effective solution has been proposed so far. Summary of the invention
[0006] The main purpose of this application is to provide an application deployment method, device, electronic device and program product to solve the problem in the related technology that when building business applications through the standard description protocol of a low-code platform, due to the variety of business scenarios of business applications, developers need to modify and adjust them again, resulting in low efficiency of business application deployment.
[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for deploying an application is provided, the method comprising: determining a business component library, wherein the business component library includes at least: at least one business component; in case any of the business components is detected to exist in a target list, determining a target business component in the business component library, wherein the target list is a list displayed on a front-end interface of an application to be deployed; adding the target business component to the front-end interface of the application to be deployed; in case an application deployment instruction is detected, constructing a target code according to the business components currently existing in the front-end interface, and deploying the application according to the target code.
[0008] Furthermore, before determining the business component library, the method also includes: determining N business applications under multiple business scenarios, wherein N is an integer greater than or equal to 1; for each of the N business applications, determining the component type of the business application, and determining the component information of the business application; constructing N business components corresponding to the N business applications based on the component type, the component information and the code framework, wherein the code framework represents a code framework for creating a data structure on a low-code platform; and constructing the business component library based on the N business components.
[0009] Furthermore, the business component library includes: a component identifier of each business component in the at least one business component, and in the case where it is detected that any of the business components exists in the target list, determining the target business component in the business component library, including: displaying each business component in the business component library and the component identifier of each business component to the user; in the case where it is detected that the user triggers a preset instruction, parsing the component identifier in the preset instruction, wherein the preset instruction represents an instruction for the user to add any of the business components to the target list; in the case where a component identifier exists in the preset instruction, determining the target business component in the business component library based on the component identifier in the preset instruction.
[0010] Furthermore, after determining the business component library, the method also includes: upon receiving a first modification instruction, parsing the first modification instruction to obtain a first parsing result, wherein the first parsing result at least includes: a first component identifier, first modification information; determining a first business component in the business component library based on the first component identifier; processing component information of the first business component based on the first modification information to obtain a processed first business component; and updating the business component library based on the processed first business component.
[0011] Furthermore, after adding the target business component to the front-end interface of the application to be deployed, the method also includes: upon receiving a second modification instruction, parsing the second modification instruction to obtain a second parsing result, wherein the second parsing result at least includes: a second component identifier, second modification information; processing the second business component in the business component library according to the second component identifier and the second modification information to obtain a processed second business component; regenerating the component identifier of the processed second business component through a random number generator, and updating the target list according to the regenerated component identifier to obtain an updated target list; and constructing the front-end interface of the application to be deployed according to the updated target list.
[0012] Furthermore, constructing the business component library based on the N business components includes: generating a component identifier for each of the N business components through a random number generator; determining version information for each of the N business components; storing the N business components, the component identifier of each business component and the version information of each business component in a preset database; and determining the business component library based on the preset database.
[0013] Furthermore, the component type includes at least one of the following: external service, application dependency, business process; the component information includes at least one of the following: input parameter, output parameter, data source information, interface information, configuration information.
[0014] In order to achieve the above-mentioned purpose, according to another aspect of the present application, a deployment device for an application is provided, which includes: a first determination unit, used to determine a business component library, wherein the business component library includes at least: at least one business component; a second determination unit, used to determine the target business component in the business component library when any of the business components is detected to exist in the target list, wherein the target list is a list displayed on the front-end interface of the application to be deployed; an adding unit, used to add the target business component to the front-end interface of the application to be deployed; and a deployment unit, used to construct a target code according to the business components currently existing in the front-end interface when an application deployment instruction is detected, and deploy the application according to the target code.
[0015] Furthermore, the device also includes: a third determination unit, used to determine N business applications in multiple business scenarios before determining the business component library, wherein N is an integer greater than or equal to 1; a fourth determination unit, used to determine, for each of the N business applications, the component type of the business application, and determine the component information of the business application; a first construction unit, used to construct N business components corresponding to the N business applications based on the component type, the component information and the code framework, wherein the code framework represents a code framework for creating a data structure on a low-code platform; and a second construction unit, used to construct the business component library based on the N business components.
[0016] Furthermore, the business component library includes: a component identifier of each business component in the at least one business component, and the second determination unit includes: a display subunit, used to display each business component in the business component library and the component identifier of each business component to the user; a parsing subunit, used to parse the component identifier in the preset instruction when it is detected that the user triggers the preset instruction, wherein the preset instruction represents an instruction for the user to add any of the business components to the target list; and a first determination subunit, used to determine the target business component in the business component library based on the component identifier in the preset instruction when there is a component identifier in the preset instruction.
[0017] Furthermore, the device also includes: a first parsing unit, which is used to parse the first modification instruction after determining the business component library and obtain a first parsing result when receiving the first modification instruction, wherein the first parsing result at least includes: a first component identifier and first modification information; a fifth determination unit, which is used to determine the first business component in the business component library based on the first component identifier; a first processing unit, which is used to process the component information of the first business component based on the first modification information to obtain a processed first business component; and a first updating unit, which is used to update the business component library based on the processed first business component.
[0018] Furthermore, the device also includes: a second parsing unit, which is used to parse the second modification instruction after adding the target business component to the front-end interface of the application to be deployed, and obtain a second parsing result when receiving a second modification instruction, wherein the second parsing result at least includes: a second component identifier, and second modification information; a second processing unit, which is used to process the second business component in the business component library according to the second component identifier and the second modification information to obtain a processed second business component; a second updating unit, which is used to regenerate the component identifier of the processed second business component through a random number generator, and update the target list according to the regenerated component identifier to obtain an updated target list; and a third construction unit, which is used to construct the front-end interface of the application to be deployed according to the updated target list.
[0019] Furthermore, the second construction unit includes: a generation subunit, used to generate a component identifier of each of the N business components through a random number generator; a second determination subunit, used to determine the version information of each of the N business components; a storage subunit, used to store the N business components, the component identifier of each business component and the version information of each business component in a preset database; and a third determination subunit, used to determine the business component library based on the preset database.
[0020] Furthermore, the component type includes at least one of the following: external service, application dependency, business process; the component information includes at least one of the following: input parameter, output parameter, data source information, interface information, configuration information.
[0021] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer program product is provided, including a computer program, which, when executed by a processor, implements the deployment method of the application described in any one of the above-mentioned items, and which, when executed by a processor, implements the steps of the deployment method of the application described in each embodiment of the present application.
[0022] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes stored computer instructions, wherein when the computer instructions are executed by a processor, a deployment method of any one of the above-mentioned applications is implemented.
[0023] In order to achieve the above-mentioned purpose, according to one aspect of the present application, an electronic device is provided, including one or more processors and a memory, the memory being used to store one or more programs, wherein when the one or more programs are executed by one or more processors, the one or more processors implement the deployment method of any of the above-mentioned applications.
[0024] In an embodiment of the present application, a business component library is determined, wherein the business component library includes at least: at least one business component; when it is detected that any of the business components exists in the target list, the target business component is determined in the business component library, wherein the target list is a list displayed on the front-end interface of the application to be deployed; the target business component is added to the front-end interface of the application to be deployed; when an application deployment instruction is detected, a target code is constructed based on the business components currently existing in the front-end interface, and the application is deployed based on the target code, thereby solving the technical problem that when building business applications through the standard description protocol of the low-code platform, due to the variety of business scenarios of business applications, developers need to modify and adjust again, resulting in low business application deployment efficiency.
[0025] By building a business component library, the low-code platform can provide a rich selection of components. Users can select appropriate components from the library and add them to the target list according to their own business needs, ensuring high flexibility and personalization of application construction. Users can freely combine components to create applications that meet specific business scenarios. At the same time, by operating the target list and triggering application deployment instructions on the front-end interface of the low-code designer, business components can be added, configured and modified intuitively. The low-code platform will automatically build the target code based on the component information in the front-end interface and deploy the application without writing the underlying code, which greatly simplifies the complexity of application development and deployment, shortens the development cycle, reduces the need for developer intervention, reduces development costs, and achieves the effect of improving application deployment efficiency, further achieving the effect of improving the company's development efficiency and business response efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings constituting a part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0027] Figure 1 It is a hardware structure block diagram of a computer terminal (or mobile device) for implementing an application deployment method provided in accordance with Embodiment 1 of the present application;
[0028] Figure 2 is a flowchart of an optional application deployment method provided according to Embodiment 1 of the present application;
[0029] Figure 3 is a schematic diagram of a deployment device for an application provided in Embodiment 2 of the present application;
[0030] Figure 4 It is a schematic diagram of deploying electronic devices according to the application provided in Example 5 of the present application. DETAILED DESCRIPTION
[0031] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0032] It should be noted that the methods and devices determined by the processing methods, devices, storage media and electronic devices of the present application documents can be used in the financial technology field to improve the efficiency of business application deployment in the process of deploying applications through a low-code platform, and can also be used in any field other than the financial technology field. The application fields of the methods and devices determined by the processing methods, devices, storage media and electronic devices of the present application documents are not limited.
[0033] It should be noted that the collected information (including but not limited to user device information, user personal information, collected data, used data, generated data, processed data, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, collected information, used information, generated information, processed information, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of relevant countries and regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set up between this system and relevant users or institutions to provide users with corresponding operation entrances for users to choose to agree or refuse the results of automated decision-making; if the user chooses to refuse, the expert decision-making process will be entered.
[0034] Example 1
[0035] According to an embodiment of the present application, a method embodiment of the deployment of an application is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0036] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal (or mobile device) for implementing the application deployment method is shown. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more (102a, 102 application deployment, ..., 102n are used to illustrate in the figure) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (US application deployment) port (which may be included as one of the ports of the US bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0037] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0038] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the deployment method of the application in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned deployment method of the application. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0039] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0040] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).
[0041] Under the above operating environment, this application provides Figure 2 The deployment method of the application shown. Figure 2 It is a flowchart of the deployment method of the application according to Example 1 of the present application.
[0042] The execution subject of the deployment method of the application provided in Example 1 of the present application can be a low-code platform, which is intended to realize the dynamic business component expansion of low-code applications. In an optional embodiment, the low-code platform may include: a business component unit description protocol definer, a business component unit storage and manager, a low-code application description protocol extender, a low-code designer, and an application construction and deployment engine. The business component unit description protocol definer is responsible for defining the description protocol of the business component unit, including the types and models of external services (e.g., API interfaces), application dependencies (e.g., tool plug-ins), business processes (e.g., multiple business execution processes), etc., as well as the version control information of the component. The business component unit storage and manager is used to store the collection data of all business component units, and manage the unique ID allocation of these components, as well as the storage and update in the low-code platform data service. The low-code application description protocol extender adds a business extension library field in the description protocol of the low-code application to store the collection data of the business component units used by each application. The low-code designer provides a visual interface in which users can select, configure and extend business component units. The designer dynamically displays and updates the configuration interface of the component by parsing the component information in the business extension library in real time. After detecting the application deployment instruction, the application building and deployment engine is responsible for building the target code of the target application and automatically deploying the target application based on the built target code, while ensuring that the version of the business component unit in the application is consistent with the version selected in the designer.
[0043] Step S201: determine a business component library, wherein the business component library includes at least: at least one business component.
[0044] In the first embodiment of the present invention, in order to enable users of the low-code platform to flexibly build business applications according to their needs, a collection of various business components, namely the above-mentioned business component library, is created and maintained.
[0045] A business component is a predefined module in a low-code platform that implements a specific business function. In an optional embodiment, a business component can be an API interface for integrating external services; a tool plug-in for encapsulating complex logic of internal dependencies; or a business execution process for encapsulating standard business processes. Each business component has its own functions and interfaces, as well as corresponding input parameters and output parameters.
[0046] By determining the business component library, the low-code platform can provide a rich and extensible business component library. Users can select appropriate components according to their needs, configure and orchestrate them through a visual interface, and thus quickly build and deploy applications. This greatly reduces the development threshold and improves the adaptability of business scenarios and the iteration speed of applications.
[0047] Step S202, when it is detected that any business component exists in the target list, the target business component is determined in the business component library, wherein the target list is a list displayed on the front-end interface of the application to be deployed.
[0048] In the first embodiment of the present invention, the low-code development platform provides users with a visual interface for designing and configuring applications, which can be called a low-code designer. Low-code designers usually include a series of tools and components that allow users to build and modify applications through intuitive drag-and-drop, configuration, and preview methods without or with minimal need to write traditional code. On the front-end interface of the low-code designer, users can see an operation area similar to a canvas, on which various business components, data sources, logical processes, etc. can be placed and moved. Users can drag and drop these components onto the canvas with simple mouse operations, and then set the properties of the components, such as input and output parameters, data source connections, event handling, etc., through the pop-up configuration window. At the same time, the front-end interface also provides a real-time preview function, allowing users to see the appearance and interactive effects of the application during the development process, which is convenient for immediate adjustment and optimization.
[0049] In the front-end interface of the low-code designer, there is a target list displayed to the user. This list contains the business components selected and configured by the user in the process of building the application. They are dynamically added to the application according to the user's needs. The target list is an intuitive reflection of the user's customization of the application function. Through the components in the list, the user can clearly see the business logic and data processing capabilities currently contained in the application.
[0050] Exemplarily, when the low-code designer detects the presence of any business component unit in the target list, that is, the user selects a business component through the designer interface to customize the application, the specific target business component will be determined from the business component library. After determining the target business component, the low-code platform will add it to the business extension library, that is, the extends field of the application template description protocol. Subsequently, the low-code platform will generate the target code and deploy the application based on the selection and configuration of all business components in the front-end interface.
[0051] By detecting the user's target list in the low-code designer front-end interface through the low-code platform, it is possible to determine the specific business components required by the user from the back-end business component library, thereby achieving dynamic expansion and rapid deployment of the application.
[0052] Step S203: adding the target business component to the front-end interface of the application to be deployed.
[0053] In the first embodiment of the present invention, the user selects a business component that meets the application requirements from the business component library through the low-code designer, that is, the target business component mentioned above, and loads the information of the target business component into the front-end interface of the application to be deployed (that is, the front-end interface of the low-code designer). On the front-end interface, the target business component is displayed in a visual way, and the user can configure its input parameters, output parameters and other configuration items, such as data source, interface address, etc., that is, the user can intuitively adjust the parameters and behaviors of the component to meet specific business needs.
[0054] By adding the target business components to the front-end interface of the application to be deployed, the low-code platform realizes the visual configuration and instant availability of business components. Users can complete the construction of business logic by dragging and configuring without writing code, which greatly reduces the complexity and time cost of application development and improves the agile iteration capability of business scenarios.
[0055] Step S204, when an application deployment instruction is detected, a target code is constructed according to the business components currently existing in the front-end interface, and the application is deployed according to the target code.
[0056] In the first embodiment of the present invention, when the user completes the design of the application through the low-code designer, including selecting and configuring business components, an application deployment instruction will be triggered. For example, the user clicks the "Deploy" or "Publish" button on the low-code designer interface. At this time, the back-end service of the low-code platform will receive this instruction and prepare to start the application building and deployment process. The back-end service of the low-code platform reads the component information of all business components currently existing in the front-end interface, and generates the target code in combination with the underlying technology stack of the low-code platform and other descriptive information of the application template. The target code contains the implementation code of all business components, which will perform business processing correctly according to the logic and configuration set by the user in the front-end interface.
[0057] After the target code is generated, the low-code platform will automatically complete the deployment of the application based on the target code. Specifically, the target code is packaged, built, tested, and then deployed to the target server or cloud environment to ensure that the application can run in the actual production environment. The deployment process is automated and does not require users to perform additional manual coding or server configuration work.
[0058] The code platform automatically identifies and processes the user's design choices in the front-end interface, converts the abstract business component configuration into a specific code implementation, and automatically deploys it to the production environment, greatly simplifying the complexity of application development and deployment, improving efficiency, and ensuring the quality and consistency of the application. This mechanism is the key to the rapid iteration and agile development of the low-code platform.
[0059] Optionally, in the application deployment method provided in Example 1 of the present application, before determining the business component library, the method also includes: determining N business applications under multiple business scenarios, where N is an integer greater than or equal to 1; for each business application in the N business applications, determining the component type of the business application, and determining the component information of the business application; constructing N business components corresponding to the N business applications based on the component type, component information and code framework, where the code framework represents a code framework for creating a data structure on a low-code platform; and constructing a business component library based on the N business components.
[0060] In this first embodiment, in order to build a business component library, the low-code platform needs to identify and define multiple business scenarios, which can come from different industry needs or business processes within the enterprise. Based on these business scenarios, N business applications to be built are determined, each of which is designed to solve a business problem in a specific scenario, where N is an integer greater than or equal to 1.
[0061] For each of the N business applications, it is necessary to determine its business component type and the component information of each component. Using the code framework of the low-code platform, build corresponding business components for each business application based on the determined component type and component information. The code framework provides the infrastructure and templates for building business components, ensuring that the components are compatible with the underlying technology stack of the platform and can be defined in accordance with the component description protocol of the low-code platform standard. The process of building business components includes generating strings of specific implementation codes of business components. These strings include various parameters defined in the component information, access to data sources, calling interfaces, etc., and can be dynamically adjusted according to the configuration information. The strings corresponding to all business components built for N business applications are centrally stored in the business component library.
[0062] Through this process, the low-code platform can quickly build and manage business components for a variety of business scenarios, thereby providing customized functions and logic for different business applications. The establishment of a business component library enables the low-code platform to dynamically expand its business orchestration capabilities without making any modifications to the core code of the low-code platform, greatly improving the platform's flexibility and business agility.
[0063] Optionally, in the deployment method of the application provided in Example 1 of the present application, the business component library includes: a component identifier of each business component in at least one business component, and when it is detected that any business component exists in the target list, determining the target business component in the business component library, including: displaying each business component in the business component library and the component identifier of each business component to the user; when it is detected that the user triggers a preset instruction, parsing the component identifier in the preset instruction, wherein the preset instruction represents an instruction for the user to add any business component to the target list; when there is a component identifier in the preset instruction, determining the target business component in the business component library based on the component identifier in the preset instruction.
[0064] In the first embodiment, the business component library is used to store all optional business components in the low-code platform, and each business component has a unique component identifier (e.g., an ID) in the business component library to identify and distinguish different business components. The component identifiers of these business components are displayed together with the component information of the business components on the front-end interface of the low-code designer, and users can browse and select business components suitable for their applications through this interface.
[0065] In the low-code designer interface, users can add business components to the target list of applications to be deployed by clicking or dragging (i.e., the preset instructions mentioned above, which represent the user's operation of integrating a business component into the application to be deployed). When the low-code platform detects a preset instruction triggered by a user, it parses the component identifier attached to the preset instruction, i.e., the ID of the business component selected by the user. The low-code platform determines the business component that the user intends to add by parsing the component identifier.
[0066] After parsing the component identifier in the preset instruction, the low-code platform will search and determine the target business component in the business component library to ensure that the business component selected by the user on the front-end interface corresponds to the specific component information in the back-end business component library. After determining the target business component, the low-code platform will add it to the business extension library of the application, that is, the extends field of the application template description protocol. Subsequently, the low-code platform will generate the target code and deploy the application based on the selection and configuration of all business components in the front-end interface. This process realizes the dynamic expansion and personalized customization of the application, and users can add and configure the required components according to specific business scenarios without writing underlying code.
[0067] By interacting with the business component library and users through the low-code platform, flexible selection and integration of business components can be achieved, thereby building and deploying personalized business applications that meet user needs.
[0068] Optionally, in the application deployment method provided in Example 1 of the present application, after determining the business component library, the above method also includes: when receiving a first modification instruction, parsing the first modification instruction to obtain a first parsing result, wherein the first parsing result at least includes: a first component identifier, first modification information; determining the first business component in the business component library based on the first component identifier; processing the component information of the first business component based on the first modification information to obtain a processed first business component; and updating the business component library based on the processed first business component.
[0069] In the first embodiment of the present invention, when a user modifies or upgrades a business component that has been added to the business component library through the front-end interface of the low-code designer, the above-mentioned first modification instruction will be triggered.
[0070] After receiving the first modification instruction, the low-code platform parses the first modification instruction and obtains a first parsing result. The first parsing result includes at least two parts of information: a first component identifier and first modification information. The first component identifier is the unique ID of the business component that the user intends to modify, and the first modification information specifically describes the content obtained after the user modifies the string that generates the business component.
[0071] The low-code platform will search and determine the specific first business component in the business component library based on the first component identifier in the first parsed result, ensuring that the first modification instruction can correctly point to the component that the user intends to modify, rather than other components in the business component library. After determining the first business component, the low-code platform will process (for example, replace) the first business component based on the first modification information. The processed first business component contains the user's modified content and may have new functions or optimized performance.
[0072] Once the first business component is processed, the low-code platform will save the processed first business component back to the business component library, overwriting the original component information. This step ensures that the components stored in the business component library are up-to-date, reflecting the user's most recent modifications, while also maintaining the consistency and integrity of the business components.
[0073] Through this process, the low-code platform realizes the dynamic modification and upgrade of business components. Users can flexibly adjust the components integrated into the application according to changes in business needs without redeveloping the entire application or making complex code modifications. This mechanism greatly improves the flexibility and business agility of the platform and reduces maintenance and upgrade costs.
[0074] Optionally, in the application deployment method provided in Example 1 of the present application, after the target business component is added to the front-end interface of the application to be deployed, the above method also includes: when a second modification instruction is received, parsing the second modification instruction to obtain a second parsing result, wherein the second parsing result at least includes: a second component identifier, second modification information; processing the second business component in the business component library according to the second component identifier and the second modification information to obtain a processed second business component; regenerating the component identifier of the processed second business component by a random number generator, and updating the target list according to the regenerated component identifier to obtain an updated target list; and constructing the front-end interface of the application to be deployed according to the updated target list.
[0075] In the first embodiment, when the user wants to modify the target business component that has been added to the front-end interface of the low-code designer, a second modification instruction needs to be sent. After receiving the second modification instruction, the low-code platform parses the second modification instruction to obtain a second parsing result, which at least includes a second component identifier (i.e., the component ID specified by the user) and second modification information (i.e., the specific modification content).
[0076] According to the second component identifier and the second modification information in the second parsing result, the corresponding second business component is found and processed in the business component library. Exemplarily, the second modification information is used to replace the original component information of the second business component in the business component library, thereby obtaining a processed second business component, which may have new functions or optimize old functions. The processed second business component is no longer suitable for using the original component identifier due to functional or logical changes. Therefore, a random number generator is used to generate a new component identifier for the processed second business component. At the same time, in order to ensure that the target list (i.e., the business component list selected and configured by the user) corresponds to the processed component, the newly generated component identifier is used to update the business component library and the target list to obtain an updated business component library and an updated target list to reflect the latest business component status.
[0077] The updated target list contains the latest status and configuration information of all business components, so the front-end interface of the application to be deployed is rebuilt according to the updated target list. The user will be able to see the new identifier and configuration items of the processed second business component on the front-end interface, and can further adjust the component parameters until the application requirements are met. The update of the front-end interface ensures that the user can see all the changes made to the business components in real time.
[0078] By regenerating component identifiers and updating the target list, it is possible to support the reconstruction of business components while maintaining the consistency of the application's business component construction process and the consistency of front-end and back-end information.
[0079] Optionally, in the deployment method of the application provided in Example 1 of the present application, a business component library is constructed based on N business components, including: generating a component identifier for each of the N business components through a random number generator; determining version information for each of the N business components; storing the N business components, the component identifier of each business component, and the version information of each business component in a preset database; and determining the business component library based on the preset database.
[0080] In the first embodiment of this invention, when a business component of the low-code platform is created or updated, a random number generator is used to generate a unique component identifier for each business component. This identifier is unique in the entire business component library and is used to retrieve and manage these components in the business component library. The random number generator ensures the uniqueness and unpredictability of the identifier, prevents identifier conflicts, and also increases a certain degree of security.
[0081] In addition to generating component identifiers, it is also necessary to determine the version information of each business component. The version information records the development and modification history of the component, including the creation date, the last update date, the version number, etc. This helps users understand the update status of business components and also facilitates the platform to perform upgrade management and rollback operations on business components.
[0082] After generating the component identifier of the business component and determining the version information of the business component, the low-code platform will store N business components, the component identifier and version information of each business component in a preset database. This database is the underlying data storage of the business component library, responsible for saving the relevant information of all business components, including the component description, function, parameters, version, etc., as well as the component identifier, to ensure the integrity and consistency of all component information.
[0083] The low-code platform will read the information of all business components from the preset database regularly or in real time, including the specific functions, parameter configurations, version information and component identifiers of the components, and organize and present this information as a business component library for users to select and configure. Users can easily browse, search and select the required business components through component identifiers and version information on the front-end interface of the designer to build and expand applications.
[0084] Through this process, the low-code platform achieves unique identification and version management of business components, ensuring the clarity and order of the component library, while also providing users with an intuitive and convenient component selection and configuration interface.
[0085] Optionally, in the application deployment method provided in Example 1 of the present application, the component type includes at least one of the following: external service, application dependency, business process; the component information includes at least one of the following: input parameter, output parameter, data source information, interface information, configuration information.
[0086] In the first embodiment, the component type includes at least one of the following: external service, application dependency, and business process.
[0087] External service components are used to integrate third-party services or systems outside the low-code platform. External service components include API interfaces, through which low-code applications can call the functions of external systems, such as payment services, logistics inquiries, social media interfaces, etc., to achieve data interaction and business process expansion. External service components usually contain information such as interface addresses, input parameters, and output parameters, which are used to describe how to communicate with external systems and the format of input and output data during the communication process.
[0088] Application dependency components refer to dependencies or tool plug-ins required for low-code applications to run internally. This type of component may be built-in to the low-code platform or customized by users or developers. They provide the basic capabilities required for low-code applications to perform specific functions, such as database operations, file processing, encryption and decryption, etc. Application dependency components ensure the stable operation and efficient processing of low-code applications.
[0089] Business process components are components that encapsulate standard business logic or processes. They are designed according to specific business rules, such as data processing, user workflow, decision trees, etc. Business process components allow users to build complex business processes on low-code platforms in a visual way without writing underlying code. These components usually contain data source information, process steps, conditional judgments, etc., to help low-code applications realize the automated execution of business logic.
[0090] By defining these three types of components, the low-code platform can cover all aspects of demand, from external data interaction, internal tool dependency to business logic execution, providing users with rich and flexible building options, greatly reducing the development threshold and accelerating the application development cycle. Users can choose the appropriate component type according to their business scenarios, and quickly build applications that meet their needs through the visual arrangement and configuration of the low-code platform.
[0091] In the first embodiment, the component information includes at least one of the following: input parameters, output parameters, data source information, interface information, and configuration information.
[0092] Input parameters are data or parameters that a business component needs to receive when it runs or executes. Input parameters can be data entered by the user on the application interface or information passed from other components or data sources. They are the starting point of the business component processing logic, ensuring that the component can perform corresponding operations based on external input.
[0093] Output parameters refer to the output data or parameters generated after the business component is executed. These output parameters can be used by subsequent components or displayed to users. They are the direct result of the component function implementation. The definition of output parameters ensures the data transfer between components and the continuity of business processes.
[0094] Data source information refers to the specific data source that business components need to operate or access, such as a database, file system, or external API. Data source information includes the type, location, access method, and possible account and permission information of the data source. This information ensures that business components can correctly obtain or store data.
[0095] Interface information refers to the details of the interaction between business components and external systems or services, including the type of interface (such as REST, SOAP, etc.), URL, request method (such as GET, POST, etc.), request and response parameter formats, etc. Interface information is the core of external service components, ensuring that components can effectively exchange data with external systems.
[0096] Configuration information is the additional settings or parameters required when a business component is running, which can be adjusted by the user through the front-end interface. Configuration information may include the component's network message transmission protocol (for example, HTTP / HTTPS, etc.), operation mode, error handling strategy, performance optimization parameters, etc., to adapt to different business scenarios and user needs.
[0097] By defining component information, the low-code platform can ensure the correctness and compatibility of components in different periods and scenarios, while also providing users with a clear and intuitive configuration interface, allowing users to easily select and adjust components according to their needs, and achieve rapid application construction and deployment. This mechanism is the core of the low-code platform technology, which greatly reduces the complexity and threshold of application development and improves development efficiency.
[0098] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0099] To summarize, the application deployment method provided in the embodiment of the present application determines a business component library, wherein the business component library includes at least: at least one business component; when it is detected that any business component exists in the target list, the target business component is determined in the business component library, wherein the target list is a list displayed on the front-end interface of the application to be deployed; the target business component is added to the front-end interface of the application to be deployed; when an application deployment instruction is detected, the target code is constructed according to the business components currently existing in the front-end interface, and the application is deployed according to the target code, which solves the problem in the related technology that when building business applications through the standard description protocol of the low-code platform, due to the variety of business scenarios of the business applications, the developers need to modify and adjust again, resulting in low business application deployment efficiency.
[0100] By building a business component library, the low-code platform can provide a rich selection of components. Users can select appropriate components from the library and add them to the target list according to their own business needs, ensuring high flexibility and personalization of application construction. Users can freely combine components to create applications that meet specific business scenarios. At the same time, by operating the target list and triggering application deployment instructions on the front-end interface of the low-code designer, business components can be added, configured and modified intuitively. The low-code platform will automatically build the target code based on the component information in the front-end interface and deploy the application without writing the underlying code, which greatly simplifies the complexity of application development and deployment, shortens the development cycle, reduces the need for developer intervention, reduces development costs, and achieves the effect of improving application deployment efficiency, further achieving the effect of improving the company's development efficiency and business response efficiency.
[0101] Example 2
[0102] The embodiment of the present application also provides an application deployment device. It should be noted that the application deployment device of the embodiment of the present application can be used to execute the application deployment method provided by the embodiment of the present application. The application deployment device provided by the embodiment of the present application is introduced below.
[0103] According to an embodiment of the present application, a device for implementing the above-mentioned application deployment method is also provided, such as Figure 3 As shown, the device comprises:
[0104] Specifically, the first determining unit 301 is used to determine a business component library, wherein the business component library at least includes: at least one business component.
[0105] The second determining unit 302 is configured to determine a target business component in the business component library when it is detected that any business component exists in the target list, wherein the target list is a list displayed on the front-end interface of the application to be deployed.
[0106] The adding unit 303 is used to add the target business component to the front-end interface of the application to be deployed.
[0107] The deployment unit 304 is used to construct a target code according to the business components currently existing in the front-end interface when an application deployment instruction is detected, and deploy the application according to the target code.
[0108] The application deployment device provided in the embodiment of the present application determines the business component library through the first determination unit 301, wherein the business component library includes at least: at least one business component; the second determination unit 302 determines the target business component in the business component library when any business component is detected in the target list, wherein the target list is a list displayed on the front-end interface of the application to be deployed; the adding unit 303 adds the target business component to the front-end interface of the application to be deployed; the deployment unit 304 constructs the target code according to the business components currently existing in the front-end interface when the application deployment instruction is detected, and deploys the application according to the target code, which solves the problem in the related technology that when building business applications through the standard description protocol of the low-code platform, due to the variety of business scenarios of the business applications, the developers need to modify and adjust again, resulting in low efficiency of business application deployment.
[0109] By building a business component library, the low-code platform can provide a rich selection of components. Users can select appropriate components from the library and add them to the target list according to their own business needs, ensuring high flexibility and personalization of application construction. Users can freely combine components to create applications that meet specific business scenarios. At the same time, by operating the target list and triggering application deployment instructions on the front-end interface of the low-code designer, business components can be added, configured and modified intuitively. The low-code platform will automatically build the target code based on the component information in the front-end interface and deploy the application without writing the underlying code, which greatly simplifies the complexity of application development and deployment, shortens the development cycle, reduces the need for developer intervention, reduces development costs, and achieves the effect of improving application deployment efficiency, further achieving the effect of improving the company's development efficiency and business response efficiency.
[0110] Optionally, in the application deployment device provided in Example 2 of the present application, the above-mentioned device also includes: a third determination unit, used to determine N business applications in multiple business scenarios before determining the business component library, wherein N is an integer greater than or equal to 1; a fourth determination unit, used to determine the component type of the business application and the component information of the business application for each of the N business applications; a first construction unit, used to construct N business components corresponding to the N business applications based on the component type, component information and code framework, wherein the code framework represents a code framework for creating a data structure on a low-code platform; and a second construction unit, used to construct a business component library based on the N business components.
[0111] Optionally, in the deployment device of the application provided in Example 2 of the present application, the above-mentioned business component library includes: a component identifier of each business component in at least one business component, and the above-mentioned second determination unit 302 includes: a display subunit, used to display each business component and the component identifier of each business component in the business component library to the user; a parsing subunit, used to parse the component identifier in the preset instruction when it is detected that the user triggers the preset instruction, wherein the preset instruction represents an instruction for the user to add any business component to the target list; and a first determination subunit, used to determine the target business component in the business component library according to the component identifier in the preset instruction when there is a component identifier in the preset instruction.
[0112] Optionally, in the deployment device of the application provided in Example 2 of the present application, the above-mentioned device also includes: a first parsing unit, which is used to parse the first modification instruction after determining the business component library and obtain a first parsing result when receiving the first modification instruction, wherein the first parsing result at least includes: a first component identifier and first modification information; a fifth determination unit, which is used to determine the first business component in the business component library based on the first component identifier; a first processing unit, which is used to process the component information of the first business component based on the first modification information to obtain the processed first business component; and a first update unit, which is used to update the business component library based on the processed first business component.
[0113] Optionally, in the application deployment device provided in Example 2 of the present application, the above-mentioned device also includes: a second parsing unit, which is used to parse the second modification instruction after adding the target business component to the front-end interface of the application to be deployed, and obtain a second parsing result when receiving the second modification instruction, wherein the second parsing result at least includes: a second component identifier, and second modification information; a second processing unit, which is used to process the second business component in the business component library according to the second component identifier and the second modification information to obtain a processed second business component; a second updating unit, which is used to regenerate the component identifier of the processed second business component through a random number generator, and update the target list according to the regenerated component identifier to obtain an updated target list; and a third construction unit, which is used to construct the front-end interface of the application to be deployed according to the updated target list.
[0114] Optionally, in the deployment device of the application provided in Example 2 of the present application, the above-mentioned second construction unit includes: a generation subunit, used to generate a component identifier of each business component among N business components through a random number generator; a second determination subunit, used to determine the version information of each business component among the N business components; a storage subunit, used to store the N business components, the component identifier of each business component and the version information of each business component in a preset database; and a third determination subunit, used to determine the business component library based on the preset database.
[0115] Optionally, in the application deployment device provided in Example 2 of the present application, the above-mentioned component type includes at least one of the following: external service, application dependency, business process; the component information includes at least one of the following: input parameter, output parameter, data source information, interface information, configuration information.
[0116] It should be noted that the first determination unit 301, the second determination unit 302, the adding unit 303 and the deployment unit 304 correspond to steps S201 to S204 in Example 1, and the two modules and the corresponding steps implement the same examples and application scenarios, but are not limited to the contents disclosed in the above-mentioned Example 1. It should be noted that the above-mentioned modules or units can be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102 application deployment, ..., 102n), and the above-mentioned modules can also be run in the computer terminal 10 provided in Example 1 as part of the device.
[0117] Example 3
[0118] An embodiment of the present application may provide an electronic device, Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present application. Figure 4As shown, the electronic device may include: one or more ( Figure 4 (only one is shown) processor 402, memory 404, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.
[0119] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the methods and devices in the embodiments of the present application, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0120] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: determine the business component library, wherein the business component library includes at least: at least one business component; when it is detected that any business component exists in the target list, determine the target business component in the business component library, wherein the target list is a list displayed on the front-end interface of the application to be deployed; add the target business component to the front-end interface of the application to be deployed; when an application deployment instruction is detected, build the target code according to the business components currently existing in the front-end interface, and deploy the application according to the target code.
[0121] The processor can call the information and applications stored in the memory through the transmission device to perform the following steps: Before determining the business component library, the above method also includes: determining N business applications under multiple business scenarios, where N is an integer greater than or equal to 1; for each business application in the N business applications, determining the component type of the business application, and determining the component information of the business application; constructing N business components corresponding to the N business applications based on the component type, component information and code framework, where the code framework represents the code framework for creating data structures on the low-code platform; and constructing a business component library based on the N business components.
[0122] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: the business component library includes: a component identifier of each business component in at least one business component, and when it is detected that any business component exists in the target list, the target business component is determined in the business component library, including: displaying each business component in the business component library and the component identifier of each business component to the user; when it is detected that the user triggers a preset instruction, parsing the component identifier in the preset instruction, wherein the preset instruction represents an instruction for the user to add any business component to the target list; when there is a component identifier in the preset instruction, the target business component is determined in the business component library based on the component identifier in the preset instruction.
[0123] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: After determining the business component library, the above method also includes: when receiving the first modification instruction, parsing the first modification instruction to obtain a first parsing result, wherein the first parsing result at least includes: a first component identifier, first modification information; determining the first business component in the business component library based on the first component identifier; processing the component information of the first business component based on the first modification information to obtain a processed first business component; and updating the business component library based on the processed first business component.
[0124] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: after adding the target business component to the front-end interface of the application to be deployed, the above method also includes: when receiving a second modification instruction, parsing the second modification instruction to obtain a second parsing result, wherein the second parsing result at least includes: a second component identifier, second modification information; processing the second business component in the business component library according to the second component identifier and the second modification information to obtain a processed second business component; regenerating the component identifier of the processed second business component through a random number generator, and updating the target list according to the regenerated component identifier to obtain an updated target list; constructing the front-end interface of the application to be deployed according to the updated target list.
[0125] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: construct a business component library based on N business components, including: generating a component identifier for each of the N business components through a random number generator; determining the version information of each of the N business components; storing the N business components, the component identifier of each business component and the version information of each business component in a preset database; and determining the business component library based on the preset database.
[0126] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: the component type includes at least one of the following: external service, application dependency, business process; the component information includes at least one of the following: input parameters, output parameters, data source information, interface information, configuration information.
[0127] By adopting the embodiment of the present application, a method for deploying an application is provided. By determining a business component library, wherein the business component library includes at least: at least one business component; in the case where any business component is detected in the target list, the target business component is determined in the business component library, wherein the target list is a list displayed on the front-end interface of the application to be deployed; the target business component is added to the front-end interface of the application to be deployed; in the case where an application deployment instruction is detected, the target code is constructed according to the business component currently existing in the front-end interface, and the application is deployed according to the target code, thereby solving the technical problem that when building a business application through the standard description protocol of the low-code platform, due to the variety of business scenarios of the business application, the developer needs to modify and adjust again, resulting in low efficiency of business application deployment.
[0128] By building a business component library, the low-code platform can provide a rich selection of components. Users can select appropriate components from the library and add them to the target list according to their own business needs, ensuring high flexibility and personalization of application construction. Users can freely combine components to create applications that meet specific business scenarios. At the same time, by operating the target list and triggering application deployment instructions on the front-end interface of the low-code designer, business components can be added, configured and modified intuitively. The low-code platform will automatically build the target code based on the component information in the front-end interface and deploy the application without writing the underlying code, which greatly simplifies the complexity of application development and deployment, shortens the development cycle, reduces the need for developer intervention, reduces development costs, and achieves the effect of improving application deployment efficiency, further achieving the effect of improving the company's development efficiency and business response efficiency.
[0129] It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (Mobile Internet Devices, MID), a PAD, or other terminal devices. Figure 4 The structure of the electronic device is not limited. Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations are shown.
[0130] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0131] Example 4
[0132] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the application deployment method provided in the first embodiment.
[0133] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.
[0134] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program of the application deployment method steps.
[0135] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0136] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0137] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0139] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0140] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0141] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for deploying an application, characterized in that: include: Determine a business component library, wherein the business component library includes at least: at least one business component; In the case where it is detected that any of the business components exists in the target list, determining the target business component in the business component library, wherein the target list is a list displayed on the front-end interface of the application to be deployed; Adding the target business component to the front-end interface of the application to be deployed; When an application deployment instruction is detected, a target code is constructed according to the business components currently existing in the front-end interface, and the application is deployed according to the target code.
2. The method according to claim 1, characterized in that Before determining the business component library, the method further includes: Determine N business applications under multiple business scenarios, where N is an integer greater than or equal to 1; For each of the N business applications, determining a component type of the business application and determining component information of the business application; Constructing N business components corresponding to the N business applications according to the component type, the component information and the code framework, wherein the code framework represents a code framework for creating a data structure on a low-code platform; The business component library is constructed according to the N business components.
3. The method according to claim 1, characterized in that The business component library includes: a component identifier of each business component in the at least one business component, and determining a target business component in the business component library includes: Displaying each business component and a component identifier of each business component in the business component library to the user; In the case where it is detected that the user triggers a preset instruction, parsing a component identifier in the preset instruction, wherein the preset instruction represents an instruction of the user to add any of the business components to the target list; In the case where there is a component identifier in the preset instruction, the target business component is determined in the business component library according to the component identifier in the preset instruction.
4. The method according to claim 1, characterized in that: After determining the service component library, the method further includes: When receiving the first modification instruction, parsing the first modification instruction to obtain a first parsing result, wherein the first parsing result at least includes: a first component identifier and first modification information; Determining a first service component in the service component library according to the first component identifier; Processing the component information of the first service component according to the first modification information to obtain a processed first service component; The service component library is updated according to the processed first service component.
5. The method according to claim 1, characterized in that After adding the target business component to the front-end interface of the application to be deployed, the method further includes: When receiving the second modification instruction, parsing the second modification instruction to obtain a second parsing result, wherein the second parsing result at least includes: a second component identifier and second modification information; Processing the second service component in the service component library according to the second component identifier and the second modification information to obtain a processed second service component; Regenerating a component identifier of the processed second service component by a random number generator, and updating the target list according to the regenerated component identifier to obtain an updated target list; Constructing a front-end interface of the application to be deployed according to the updated target list.
6. The method according to claim 2, characterized in that Constructing the business component library according to the N business components includes: Generate a component identifier for each of the N business components by using a random number generator; Determine the version information of each of the N business components; Storing the N business components, a component identifier of each business component, and version information of each business component in a preset database; The business component library is determined according to the preset database.
7. The method according to claim 2, characterized in that The component type includes at least one of the following: external service, application dependency, business process; the component information includes at least one of the following: input parameter, output parameter, data source information, interface information, configuration information.
8. An application deployment device, characterized in that: include: A first determining unit is used to determine a business component library, wherein the business component library at least includes: at least one business component; A second determining unit is configured to determine a target business component in the business component library when it is detected that any of the business components exists in a target list, wherein the target list is a list displayed on a front-end interface of an application to be deployed; An adding unit, used to add the target business component to the front-end interface of the application to be deployed; The deployment unit is used to construct a target code according to the business components currently existing in the front-end interface when an application deployment instruction is detected, and deploy the application according to the target code.
9. An electronic device, characterized in that: include: A memory storing an executable program; A processor, configured to run the program, wherein the program executes the method according to any one of claims 1 to 7 when running.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.