CN116737138A - Application generation method, device, computer equipment and storage medium - Google Patents

Application generation method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116737138A
CN116737138A CN202310759333.1A CN202310759333A CN116737138A CN 116737138 A CN116737138 A CN 116737138A CN 202310759333 A CN202310759333 A CN 202310759333A CN 116737138 A CN116737138 A CN 116737138A
Authority
CN
China
Prior art keywords
component
application
template
generating
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310759333.1A
Other languages
Chinese (zh)
Inventor
梁雪成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Yitan Network Technology Co ltd
Original Assignee
Shanghai Yitan Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yitan Network Technology Co ltd filed Critical Shanghai Yitan Network Technology Co ltd
Priority to CN202310759333.1A priority Critical patent/CN116737138A/en
Publication of CN116737138A publication Critical patent/CN116737138A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/35Creation or generation of source code model driven
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to an application generating method, apparatus, computer device, storage medium and computer program product. The method comprises the following steps: the method comprises the steps of obtaining an instruction for generating an application, wherein the instruction for generating the application comprises an application type, obtaining a first template project according to the application type, the first template project comprises a parameter configuration file, obtaining configuration parameters, configuring the parameter configuration file according to the configuration parameters to form a second template project, and loading the second template project to generate a target application corresponding to the application type. By adopting the method, the application can be quickly generated, and personalized setting can be realized, so that the generated target application can meet the requirements of users.

Description

Application generation method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technology, and in particular, to an application generating method, an apparatus, a computer device, a storage medium, and a computer program product.
Background
With the rapid development of the internet, mobile terminal applications have gradually become integrated into people's lives. The development of the target mobile terminal is developed by a professional developer or an application template platform is provided, wherein the application template platform comprises commonly used components, and a user drags the components to an application template interface to form an application.
However, the individual development of each component for each application by a professional developer results in higher development costs and lower efficiency. By providing an application template platform and dragging the component by a user to form an application mode, the existing application functions are more, and the problem of low development efficiency still exists in a mode of dragging the component.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an application generating method, apparatus, computer device, computer-readable storage medium, and computer program product that enable quick generation of an application.
In a first aspect, the present application provides an application generation method. The method comprises the following steps:
acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project;
and loading a second template project to generate a target application corresponding to the application type.
In one embodiment, the application generating method further includes: acquiring the demand information, and when the target application does not comprise a component corresponding to the demand information, acquiring a demand component corresponding to the demand information from a component library according to the demand information; and generating a third template project based on the demand component and the second template project, and loading the third template project to update the target application.
In one embodiment, generating a third template project based on the demand component and the second template project includes: when the demand component is an isolated component, the demand component is added to the second template project to form a third application generating template project.
In one embodiment, generating a third template project based on the demand component and the second template project includes: and when the demand component is a related component, acquiring a functional component related to the demand component, and adding the demand component and the functional component to the second template engineering to form a third template engineering.
In one embodiment, the application generating method further includes: acquiring a function description document included in the second template project, and searching the function description document according to the requirement information; when the search result shows that the component corresponding to the requirement information exists in the function description document, prompting the position of the component corresponding to the requirement information in the target application.
In one embodiment, the forming step of the first template project includes: acquiring a functional requirement, and acquiring a component corresponding to the functional requirement from a component library according to the functional requirement; forming a component configuration file according to the component; determining a component corresponding to the configurable requirement in the functional requirement, and generating a parameter configuration file according to the component corresponding to the configurable requirement; generating a first template project according to the component configuration file and the parameter configuration file
In a second aspect, the application further provides an application generating device. The device comprises:
the instruction acquisition module is used for acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
the template engineering acquisition module is used for acquiring a first template engineering according to the application type; the first template project comprises a parameter configuration file;
the template engineering generation module is used for acquiring configuration parameters and configuring a parameter configuration file according to the configuration parameters so as to form a second template engineering;
and the application generating module is used for loading a target application corresponding to the second template engineering generation application type.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project;
and loading a second template project to generate a target application corresponding to the application type.
In a fourth aspect, the present application also provides a computer-readable storage medium. A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project;
and loading a second template project to generate a target application corresponding to the application type.
In a fifth aspect, the present application also provides a computer program product. Computer program product comprising a computer program which, when executed by a processor, realizes the steps of:
acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project;
and loading a second template project to generate a target application corresponding to the application type.
The application generating method, the device, the computer equipment, the storage medium and the computer program product acquire an instruction for generating the application, acquire a first template project according to the application type included in the instruction for generating the application, configure a parameter configuration file included in the first template project according to the acquired configuration parameters to form a second template project, and load the second template project to generate the target application corresponding to the application type. The template engineering is obtained based on the application type, the target application is generated based on the template engineering, the rapid generation of the target application is realized, the development efficiency is improved, the parameter configuration can be realized aiming at the parameter configuration file included in the template engineering, and the personalized setting can be realized, so that the generated target application can meet the requirements of users.
Drawings
FIG. 1 is a flow diagram of an application generation method in one embodiment;
FIG. 2 is a schematic diagram of component classification in one embodiment;
FIG. 3 is an interface diagram of an application generation method in one embodiment;
FIG. 4 is a flow chart of an application generation method in another embodiment;
FIG. 5 is a block diagram of an application generating device in one embodiment;
Fig. 6 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in fig. 1, an application generating method is provided, where the embodiment is applied to a terminal to illustrate the method, it is understood that the method may also be applied to a server, and may also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step 102, obtaining an instruction for generating an application.
Wherein the application is software for use by the user. In one embodiment, the application may be a third party application, a web page application, or a system application.
The instruction for generating the application is a command for instructing the terminal device to execute the application generation step. The instruction for generating the application comprises the application type.
In one embodiment, the instruction for generating the application may be generated according to a user operation, for example, the instruction for generating the application may be triggered by clicking on a control for generating the application, or the instruction for generating the application may be triggered based on a user input behavior.
In one embodiment, an input box is provided for the user to enter the desired content. In one embodiment, the instruction to generate the application is triggered when the user clicks on the input box, or the content input in the input box is detected to determine whether to trigger the instruction to generate the application, for example, when the "generate application" is input, or when the user is detected to click on the "create new application" control.
Alternatively, different types of applications have different functions, and when application generation is implemented, the specific type of application generated may be defined according to the application type. In one embodiment, the application type may be encapsulated in an instruction for generating the application, so that when the terminal generates the application according to the instruction for generating the application, the terminal may generate the required application according to the application type.
Wherein the application type is used to characterize the functionality achieved by the application.
In one embodiment, the application types may include one or more of a social class application, a consultation class application, a game class application, a shopping class application, and a tools class application.
The social application is an application for meeting social sharing requirements of users on a network platform, such as a newwave microblog application, a facebook, a WeChat, a QQ and the like. The information-based applications are applications that spread information to users, such as today's headlines, search fox news, spot information, news, etc. The game application is a network game application mounted on the terminal, such as angry birds, fruits, happy and happy, crazy running, and the like. Shopping applications are applications for enabling shopping, such as panning, jindong, a meeting of unique things, a beautiful good, etc. The tool class application is an application for satisfying the user's demand, such as a taxi taking application, a map application, a weather application, a video playing application, a map making application, and the like.
In one embodiment, the obtaining manner of the application type may be obtained in a selection manner, for example, a selection item corresponding to the application type is set, and when the user needs to generate the application, the user obtains the application type corresponding to the selection item by selecting the relevant selection item. In one embodiment, the side-by-side selection items may be set for user selection, or the form of a drop-down list may be set for user selection. In one embodiment, the user may also initiate the instruction to generate the application by selecting the corresponding selection item.
In one embodiment, the obtaining of the application type may also be obtained by input, for example, setting an input dialog box, and when the user needs to generate the application, directly inputting the required application type in the input dialog box. In one embodiment, a prompt box may also be provided, so that when the user realizes the input of the application type, the user can prompt the inputtable content, so that the user can quickly realize the input of the application type, and the efficiency of application generation is improved.
And 104, acquiring a first template project according to the application type.
Wherein the template engineering is a template for realizing application generation.
In one embodiment, the template project corresponds to an application type. In one embodiment, the template projects also correspond to system types, the IOS (apple mobile device operating system) corresponds to different template projects, and the android system corresponds to the template projects. In one embodiment, the template engineering corresponds to both application type and system type.
In one embodiment, the template engineering is set corresponding to the application type and stored in the database, and the user obtains the template engineering corresponding to the application type from the database through the application type when the user needs.
In one embodiment, the template project may be pre-generated and saved. In one embodiment, the save addresses of the template project may be formed into links, template project IDs, names, etc. may be set for the template project, and the template project and corresponding link address may be formed into a table for saving. When the user generates the application, the template engineering is acquired through the application type, and the link address is acquired through the template engineering, so that the template engineering can be acquired.
In one embodiment, the generating step of the template engineering includes: acquiring a functional requirement, and acquiring a component corresponding to the functional requirement from a component library according to the functional requirement; forming a component configuration file according to the component; determining a component corresponding to the configurable requirement in the functional requirement, and generating a parameter configuration file according to the component corresponding to the configurable requirement; and generating a template project according to the component configuration file and the parameter configuration file.
Wherein the function requirement is used for representing the functions of the template engineering. The components are modules for embodying the functionality.
In one embodiment, the components may be divided into different groups according to functional requirements, such as one or more of the group of base capabilities, the group of base services, and the group of generic services described in FIG. 2. In one embodiment, the group of basic capabilities may include routing, red dots, main body, picture loading, etc., the group of basic services may include payment, sharing, positioning, etc., and the group of general services may be login, personal center, chat list, etc. In one embodiment, the component may include a component ID and a component function description.
Optionally, the component library is formed using components. When the user needs the components corresponding to the function requirements, the components can be obtained through searching a component library. In one embodiment, the ID of a component or the component function may be used to search a library of components for the desired component.
In one embodiment, the template engineering corresponds to an application type, and when the template engineering corresponding to the application type is generated, a functional requirement can be provided for the application of the application type, a corresponding component is generated by the functional requirement, and a component configuration file is formed by using the component.
In one embodiment, the functional requirements may also be used to characterize whether a component is attribute configurable.
Wherein the attributes are configured to be configured for the attributes of the component, including, for example, a display color of the component, a shape of the component, a display position of the component, and the like.
In one embodiment, the attribute configuration of the component may include configuration of the association relationship of the component.
The association relationship is used for representing whether the component is associated with other components. In one embodiment, the association relationship may include an isolated or association, where the association relationship is that an isolated component is an isolated component, and the association relationship is that an associated component is an associated component. In one embodiment, for the associated component, the attribute configuration may also include a configuration of which associated component is specifically associated with, a configuration of how to interface with the corresponding associated component, and the like.
The isolated component is used for representing that the component is an independent component, has independent functions and does not depend on other components. For example, a pop-up window assembly may implement a pop-up window function in either interface.
The association type component is used for representing that the dependency relationship exists between the component and other components. For example, payment components need to exist in dependence on wallet components. The one-time acquisition of the components associated with the association type component is realized by utilizing the association type component, so that the acquisition times of the components can be reduced, and the development efficiency is improved.
In one embodiment, the configuration content of the configurable components may be formed into a parameter configuration file when generating the template engineering according to the functional requirements. In one embodiment, the parameter configuration file may be a file, and the configurable parameter contents of all the components capable of performing parameter configuration are set in the same file, or the parameter configuration files corresponding to the different components may be formed respectively for the different components.
In one embodiment, a default value is set for a configurable parameter, so that when a user generates an application, if the user does not need to configure the parameter, the application is directly generated based on the default value, and the application generation efficiency is improved.
In one embodiment, an initial default value is set for the component so that the user can generate the application directly based on the template engineering.
In one embodiment, when the user generates the application, the user obtains the template project by using the application type, reads the template project after obtaining the template project, can obtain a parameter configuration file included in the template project, and can set parameters according to the obtained parameter configuration file to realize setting of personalized requirements.
In one embodiment, the reading of the template engineering may be implemented by a compiler, and the parameter configuration may also be implemented on a compiler interface.
And 106, acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project.
The configuration parameters are parameters for realizing configuration of the parameter configuration file.
In one embodiment, the reading of the template engineering is implemented by using a compiler to obtain the parameter configuration file, and the user can directly implement the input of the parameters on the compiler interface to implement the configuration for the parameter configuration file.
In one embodiment, a parameter configuration table may be set, in which a user implements input of parameters when implementing configuration. And the input of the configuration parameters is realized by calling the parameter configuration table completed by the input, so that the configuration of the parameter configuration file is realized.
In one embodiment, as shown in FIG. 3, the retrieval of the parameter configuration table may be accomplished by clicking on an "edit" control corresponding to "replace parameters".
And after the configuration of the parameter configuration file is realized, generating a second template engineering file by combining the component configuration file.
Step 108, loading a second template project to generate a target application corresponding to the application type.
The target application is an application which the user wants to generate.
In one embodiment, the loading of the second template engineering can be implemented by using a compiler, and the target application is obtained by loading the second template engineering.
In one embodiment, the system may be connected to other terminals, such as a mobile phone, and when the second template project is loaded, the target application corresponding to the second template project is displayed on the mobile phone.
The method for generating the application comprises the steps of obtaining an instruction for generating the application, including the application type, according to the application type, obtaining a first template project, including a parameter configuration file, obtaining configuration parameters, and according to the configuration parameters, configuring the parameter configuration file to form a second template project, and loading the second template project to generate a target application corresponding to the application type. The template engineering is obtained based on the application type, the target application is generated based on the template engineering, the rapid generation of the target application is realized, the development efficiency is improved, the parameter configuration can be realized aiming at the parameter configuration file included in the template engineering, and the personalized setting can be realized, so that the generated target application can meet the personalized setting requirement of a user.
In one embodiment, the application generating method further includes: acquiring the demand information, and when the target application does not comprise a component corresponding to the demand information, acquiring a demand component corresponding to the demand information from a component library according to the demand information; and generating a third template project based on the demand component and the second template project, and loading the third template project to update the target application.
Wherein the requirement information is used to characterize the functionality that the user wishes to have in the generated application. For example, a payment function, a barrage function, etc.
Wherein the component library is a database formed by all components. The user can search for a desired component from the component library based on the requirement information. In one embodiment, the requirement information may be matched with component functionality specifications of the components to obtain the required components.
In one embodiment, after the second template engineering is loaded to generate the target application, a user can determine whether components related to own needs exist in the generated target application according to own needs, if not, the components related to the needs information can be searched through searching a form of a component library, the corresponding components are added into the second template engineering to form a third template engineering, and then the third template function is loaded to realize the generation of the target application.
In one embodiment, after the second template engineering is loaded to generate the target application, the user may also determine whether an unwanted component exists in the target application, and if so, may delete the corresponding component. In one embodiment, the component configuration file included in the second template engineering may be obtained, and after the corresponding component is found by using the component ID or the component function requirement, the component is deleted from the component configuration file. In one embodiment, if the component is a parameter configurable component, the component related data may be deleted from the parameter configuration file.
In the embodiment, the adjustment of the components in the application is realized through the requirement information, and the template application is updated, so that the generated target application better meets the self requirement, and the personalized setting is realized.
In one embodiment, the step of generating a third template project based on the requirements component and the second template project comprises: when the demand component is an isolated component, the demand component is added to the second template project to form a third application generating template project. And when the demand component is a related component, acquiring a functional component related to the demand component, and adding the demand component and the functional component to the second template engineering to form a third template engineering.
In one embodiment, attribute identifiers are set to distinguish whether a component is an orphan or an associative component.
Alternatively, after the component is acquired according to the requirement information, it may be first determined whether the component is an orphaned component or an associated component with respect to the attribute identification of the component. When the component is an isolated component, the corresponding component is obtained from the component library, and then the component is directly added into the component configuration file of the second template engineering. In one embodiment, after the corresponding component is obtained, whether the component is a component capable of performing parameter modification may also be determined, if so, the component related information may be added to the parameter configuration file, and the user configures the parameter configuration file to form a third template project. In one embodiment, the initial parameters may also be set for the component, and the component is directly added to the second template project after the component is acquired to generate a third template project.
In one embodiment, an association type identifier may be set in advance for an association type component, and if the component obtained according to the requirement information is an association type component, when the component is obtained as an association type component, all functional components associated with the component are obtained according to the association type identifier, and all functional components are added to the second template engineering to generate a third template engineering.
In this embodiment, when the generated target application does not include the component required by the user, the component required by the user may be searched by searching the component library, and the corresponding component is added to the second template engineering, so as to generate the target application required by the user, thereby implementing personalized setting.
In one embodiment, the application generating method further includes: acquiring a function description document included in the second template project, and searching the function description document according to the requirement information; when the search result shows that the component corresponding to the requirement information exists in the function description document, prompting the position of the component corresponding to the requirement information in the target application.
The function description document is a document for describing components and functions of the components included in the second template engineering.
In one embodiment, the function description document may include an ID of a component and a component function description, and the user may search for the function description document when determining whether the component corresponding to the requirement information exists in the target application generated according to the second template engineering. When the search result is nonexistent, the corresponding component is obtained from the component library.
In one embodiment, a detailed component description document is formed for each component, and may include an ID of the component, a function of the component, a code corresponding to the component, a configurable parameter corresponding to the component, and the like. And the component description document corresponding to the component can be formed into a hyperlink, and the acquisition of the component detailed description document can be realized by clicking the hyperlink.
In one embodiment, only one or more of the component name, component ID, and component function may be included in the function description document to distinguish between different components. When the user searches the function description document, the user can directly search by using any one of the component name, the component ID and the component function, and after the corresponding component is searched, the component detailed description document corresponding to the component can be obtained by clicking the hyperlink corresponding to the component.
In one embodiment, the component with configurable parameters may also note in the component specification document what parameters the component may configure and what specific content is to be configured for use in implementing the application generation, so that the component may be quickly configured with reference to the description of the component specification document.
In one embodiment, when the function description document is searched, if the component corresponding to the requirement information exists in the function description document, the user can be prompted that the corresponding component exists already, and the position of the user component is prompted, so that the problem of resource consumption caused by further searching the component because whether the corresponding component exists is not determined.
In this embodiment, a function description document is set, and when an application is generated, a user can realize understanding of functions of components and related content capable of performing parameter configuration according to the function description document, and can realize determining components in a target application according to guidance of the function description document, quickly determine required and unnecessary components, so as to quickly adjust the target application to realize personalized setting, and also quickly and effectively perform parameter configuration on the components under guidance of the function description document, so as to improve efficiency of parameter configuration, and quickly generate the target application.
In one embodiment, as shown in fig. 4 and 5, there is provided a method of generating an application, including:
step 202, obtaining a function requirement, obtaining a component corresponding to the function requirement from a preset component library according to the function requirement, and generating a component configuration file according to the component.
Step 204, determining a component corresponding to the configurable requirement in the functional requirement, and generating a parameter configuration file according to the component corresponding to the configurable requirement.
Step 206, generating a first engineering template according to the component configuration file and the parameter configuration file.
Step 208, triggering an instruction for generating an application according to the newly-built application control; wherein the instruction to generate the application includes an application type.
Step 210, entering a newly built application interface according to the instruction for generating the application.
The newly-built application interface is a visual interface for generating the application. In one embodiment, the newly created application interface is shown in fig. 3, and includes application names, application identifications, template engineering, replacement parameters, components, cancellation and determination options.
The application name is the name of the application newly built by the user. In one embodiment, the user may implement named entry through an input box after the name is applied.
The application identifier is the identification information of the newly-built application of the user and is used for distinguishing the newly-built application from other applications. Optionally, the user may implement input of the application identifier through the input box after the application identifier.
Template engineering is a template for implementing application generation. In one embodiment, the selection of the template project may be accomplished by entering the application type in an input box after the template project. Alternatively, the corresponding template project may be copied from the template project library by clicking to copy. Alternatively, a plurality of template projects can be popped up for selection by a user by clicking the input box, and the template projects are determined according to the selection of the user.
The replacement parameters are inputs that enable parameters configured for parameter configuration files included in the template project. In one embodiment, the acquisition of the parameter configuration table may be implemented by click editing, so as to implement the input of the configuration parameters.
The component is used for realizing new components by the user. In one embodiment, the invocation of the new component interface is implemented by clicking the "+" button, and the creation of the component is implemented on the new component interface.
The cancellation and determination is for enabling cancellation and determination of the generate application operation.
Step 212, entering a configuration page by aiming at the operation of the newly built application interface, acquiring a first template project by using the application type, acquiring configuration parameters, and configuring a parameter configuration file included in the template project file according to the configuration parameters to form a second template project.
In one embodiment, after the input of the application name and the application identifier is completed, the configuration page is entered to achieve the acquisition of the template engineering and the configuration of the parameter configuration file.
Optionally, the user directly operates on the template engineering to enter the configuration page, for example, may click on an input box after the template engineering, or click on "copy" to achieve the acquisition of the template engineering.
In one embodiment, after the template engineering is obtained, the parameter is obtained through an editing control for replacing the parameter, and the parameter configuration file included in the template engineering is configured according to the obtained parameter.
In one embodiment, the template engineering may also be obtained according to the application type.
Step 214, loading a second template project to generate a target application corresponding to the application type.
In one embodiment, the new application interface further includes a cancel and confirm control, optionally, the confirm control is set to a create button, and the cancel control is set to cancel the create case. After the template engineering selection and the parameter configuration file configuration are realized, the determination of the target application generation is realized by clicking the determination control. Optionally, the loading of the second template engineering is implemented when the user clicks the determination control, so as to generate the target application.
In one embodiment, cancellation of the target application generation may also be accomplished by a cancel control.
Step 216, obtaining the requirement information, searching the function description file included in the second engineering template by using the requirement information, and if the search result is negative, obtaining a requirement component corresponding to the requirement information from the component library according to the requirement information; when the demand component is an isolated component, adding the demand component to the second template engineering to generate a third template engineering; when the demand component is a relevance component, acquiring a functional component associated with the demand component, and adding the demand component and the functional component to the second template engineering to generate a third template engineering; otherwise, prompting the position of the component corresponding to the requirement information in the target application.
Step 218, updating the target application according to the third template engineering.
In this embodiment, a first template project is obtained through an application type, parameter configuration is implemented for a parameter configuration file included in the first template project, so as to generate a second template project, generation of a target application is implemented based on the second template project, generation of the application is implemented by using the template project, application generation can be quickly implemented, development efficiency is improved, and parameter configuration can be implemented based on the parameter configuration file, so as to implement personalized configuration of the application. Further, the method also has the determination of whether the generated target application has a user demand function, when the target application does not have the required function, a corresponding component can be obtained from a component library and added to the second template engineering to generate a third template engineering, the target application is updated according to the third template engineering, the application component can be changed according to the user demand, and personalized setting is realized. And if the generated target application has the required functions, the area where the related components are located can be prompted, so that the time for searching the functions can be reduced, and the development efficiency is improved. And by utilizing the function description document included in the second engineering template, a user can conveniently find whether the target application has the required function or not, and the development efficiency is improved. In addition, in this embodiment, when the component is an associated component, the component associated with the component is acquired, the component and the component associated with the component are added to the second engineering template together to generate a third engineering template, the target application is updated according to the third engineering template, and the problem of inefficiency caused by continuously acquiring the required component can be reduced by acquiring the component associated with the component and updating the target application based on the updating target application, so that development efficiency is improved.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an application generating device for realizing the application generating method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiment of one or more application generating devices provided below may refer to the limitation of the application generating method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 5, there is provided an application generating apparatus 300, comprising: an instruction acquisition module 302, a template engineering acquisition module 304, a template engineering generation module 306, and an application generation module 308, wherein:
an instruction acquisition module 302, configured to acquire an instruction for generating an application; the instruction to generate the application includes an application type.
The template engineering acquisition module 304 is configured to acquire a first template engineering according to an application type; the first template project includes a parameter configuration file.
The template engineering generating module 306 is configured to obtain configuration parameters, configure a parameter configuration file according to the configuration parameters, and form a second template engineering.
The application generating module 308 is configured to load a target application corresponding to the second template engineering generating application type.
In one embodiment, the application generating apparatus 300 further includes:
the demand component acquisition module is used for acquiring demand information, and when the target application does not comprise the component corresponding to the demand information, the demand component corresponding to the demand information is acquired from the component library according to the demand information.
And the updating module is used for generating a third template project based on the demand component and the second template project and loading the third template project so as to update the target application.
In one embodiment, the updating module is further configured to add the required component to the second template project to form a third application-generated template project when the required component is an isolated component. And when the demand component is a related component, acquiring a functional component related to the demand component, and adding the demand component and the functional component to the second template engineering to form a third template engineering.
In one embodiment, the application generating apparatus 300 further includes:
and the explanation document acquisition module is used for acquiring the function explanation documents included in the second template engineering and searching the function explanation documents according to the requirement information.
And the prompting module is used for prompting the position of the component corresponding to the requirement information in the target application when the search result indicates that the component corresponding to the requirement information exists in the function description document.
In one embodiment, the application generating apparatus 300 further includes:
the template engineering pre-generation module is used for acquiring functional requirements and acquiring components corresponding to the functional requirements from the component library according to the functional requirements; forming a component configuration file according to the component; determining a component corresponding to the configurable requirement in the functional requirement, and generating a parameter configuration file according to the component corresponding to the configurable requirement; and generating a first template project according to the component configuration file and the parameter configuration file.
The respective modules in the above-described application generating apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 6. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an application generation method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 6 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project;
and loading a second template project to generate a target application corresponding to the application type.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring the demand information, and when the target application does not comprise a component corresponding to the demand information, acquiring a demand component corresponding to the demand information from a component library according to the demand information; and generating a third template project based on the demand component and the second template project, and loading the third template project to update the target application.
In one embodiment, the processor when executing the computer program further performs the steps of: when the demand component is an isolated component, the demand component is added to the second template project to form a third application generating template project.
In one embodiment, the processor when executing the computer program further performs the steps of: and when the demand component is a related component, acquiring a functional component related to the demand component, and adding the demand component and the functional component to the second template engineering to form a third template engineering.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a function description document included in the second template project, and searching the function description document according to the requirement information; when the search result shows that the component corresponding to the requirement information exists in the function description document, prompting the position of the component corresponding to the requirement information in the target application.
In one embodiment, the processor when executing the computer program further performs the steps of: acquiring a functional requirement, and acquiring a component corresponding to the functional requirement from a component library according to the functional requirement; forming a component configuration file according to the component; determining a component corresponding to the configurable requirement in the functional requirement, and generating a parameter configuration file according to the component corresponding to the configurable requirement; and generating a first template project according to the component configuration file and the parameter configuration file.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project;
and loading a second template project to generate a target application corresponding to the application type.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the demand information, and when the target application does not comprise a component corresponding to the demand information, acquiring a demand component corresponding to the demand information from a component library according to the demand information; and generating a third template project based on the demand component and the second template project, and loading the third template project to update the target application.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the demand component is an isolated component, the demand component is added to the second template project to form a third application generating template project.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the demand component is a related component, acquiring a functional component related to the demand component, and adding the demand component and the functional component to the second template engineering to form a third template engineering.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a function description document included in the second template project, and searching the function description document according to the requirement information; when the search result shows that the component corresponding to the requirement information exists in the function description document, prompting the position of the component corresponding to the requirement information in the target application.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a functional requirement, and acquiring a component corresponding to the functional requirement from a component library according to the functional requirement; forming a component configuration file according to the component; determining a component corresponding to the configurable requirement in the functional requirement, and generating a parameter configuration file according to the component corresponding to the configurable requirement; and generating a first template project according to the component configuration file and the parameter configuration file.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
Acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring a parameter configuration file according to the configuration parameters to form a second template project;
and loading a second template project to generate a target application corresponding to the application type.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring the demand information, and when the target application does not comprise a component corresponding to the demand information, acquiring a demand component corresponding to the demand information from a component library according to the demand information; and generating a third template project based on the demand component and the second template project, and loading the third template project to update the target application.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the demand component is an isolated component, the demand component is added to the second template project to form a third application generating template project.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the demand component is a related component, acquiring a functional component related to the demand component, and adding the demand component and the functional component to the second template engineering to form a third template engineering.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a function description document included in the second template project, and searching the function description document according to the requirement information; when the search result shows that the component corresponding to the requirement information exists in the function description document, prompting the position of the component corresponding to the requirement information in the target application.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring a functional requirement, and acquiring a component corresponding to the functional requirement from a component library according to the functional requirement; forming a component configuration file according to the component; determining a component corresponding to the configurable requirement in the functional requirement, and generating a parameter configuration file according to the component corresponding to the configurable requirement; and generating a first template project according to the component configuration file and the parameter configuration file.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. An application generation method, the method comprising:
acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
acquiring a first template project according to the application type; the first template project comprises a parameter configuration file;
acquiring configuration parameters, and configuring the parameter configuration file according to the configuration parameters to form a second template project;
And loading the second template engineering to generate a target application corresponding to the application type.
2. The method according to claim 1, wherein the method further comprises:
acquiring demand information, and when the target application does not comprise a component corresponding to the demand information, acquiring a demand component corresponding to the demand information from a component library according to the demand information;
and generating a third template project based on the demand component and the second template project, and loading the third template project to update the target application.
3. The method of claim 2, wherein the generating a third template project based on the demand component and the second template project comprises:
when the demand component is an isolated component, then the demand component is added to a second template project to form a third application-generated template project.
4. The method of claim 2, wherein the generating a third template project based on the demand component and the second template project comprises:
and when the demand component is an associated component, acquiring a functional component associated with the demand component, and adding the demand component and the functional component to a second template project to form a third template project.
5. The method according to claim 2, wherein the method further comprises:
acquiring a function description document included in the second template project, and searching the function description document according to the requirement information;
and when the search result shows that the component corresponding to the requirement information exists in the function description document, prompting the position of the component corresponding to the requirement information in the target application.
6. The method of claim 1, wherein the forming of the first template project comprises:
acquiring a functional requirement, and acquiring a component corresponding to the functional requirement from a component library according to the functional requirement;
forming a component configuration file according to the component;
determining a component corresponding to the configurable requirement in the functional requirements, and generating a parameter configuration file according to the component corresponding to the configurable requirement;
and generating the first template project according to the component configuration file and the parameter configuration file.
7. An application generating apparatus, the apparatus comprising:
the instruction acquisition module is used for acquiring an instruction for generating an application; the instruction for generating the application comprises an application type;
The template engineering acquisition module is used for acquiring a first template engineering according to the application type; the first template project comprises a parameter configuration file;
the template engineering generation module is used for acquiring configuration parameters, and configuring the parameter configuration file according to the configuration parameters so as to form a second template engineering;
and the application generating module is used for loading the second template engineering to generate the target application corresponding to the application type.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310759333.1A 2023-06-26 2023-06-26 Application generation method, device, computer equipment and storage medium Pending CN116737138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310759333.1A CN116737138A (en) 2023-06-26 2023-06-26 Application generation method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310759333.1A CN116737138A (en) 2023-06-26 2023-06-26 Application generation method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116737138A true CN116737138A (en) 2023-09-12

Family

ID=87916637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310759333.1A Pending CN116737138A (en) 2023-06-26 2023-06-26 Application generation method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116737138A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070245340A1 (en) * 2006-04-14 2007-10-18 Dror Cohen XML-based control and customization of application programs
JP2010061460A (en) * 2008-09-04 2010-03-18 Ricoh Co Ltd Workflow management system, workflow management method and workflow management program
CN111813377A (en) * 2020-06-15 2020-10-23 新奥数能科技有限公司 Method and device for automatically generating application program
CN114327454A (en) * 2021-12-22 2022-04-12 珠海格力电器股份有限公司 APP generation method and device and electronic equipment
CN115469908A (en) * 2022-10-17 2022-12-13 中国工商银行股份有限公司 Application program generation method, device, system, computer equipment and storage medium
CN115576531A (en) * 2022-09-02 2023-01-06 西门子工厂自动化工程有限公司 Target program batch generation method and device, medium and equipment
CN115686447A (en) * 2022-08-04 2023-02-03 钉钉(中国)信息技术有限公司 Intelligent recommendation method for application creation, and creation method, device and system for application

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070245340A1 (en) * 2006-04-14 2007-10-18 Dror Cohen XML-based control and customization of application programs
JP2010061460A (en) * 2008-09-04 2010-03-18 Ricoh Co Ltd Workflow management system, workflow management method and workflow management program
CN111813377A (en) * 2020-06-15 2020-10-23 新奥数能科技有限公司 Method and device for automatically generating application program
CN114327454A (en) * 2021-12-22 2022-04-12 珠海格力电器股份有限公司 APP generation method and device and electronic equipment
CN115686447A (en) * 2022-08-04 2023-02-03 钉钉(中国)信息技术有限公司 Intelligent recommendation method for application creation, and creation method, device and system for application
CN115576531A (en) * 2022-09-02 2023-01-06 西门子工厂自动化工程有限公司 Target program batch generation method and device, medium and equipment
CN115469908A (en) * 2022-10-17 2022-12-13 中国工商银行股份有限公司 Application program generation method, device, system, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹荣强;王小宁;卢莎莎;解晓伟;肖海力;: "基于Portlet的高性能计算应用集成组件", 科研信息化技术与应用, no. 02, 20 March 2017 (2017-03-20) *

Similar Documents

Publication Publication Date Title
CN108352003B (en) Method and apparatus for single or multiple choice data presentation through a collaborative database service
US11763076B2 (en) Document applet generation
KR101368068B1 (en) Method of constructing database, server performing the same and storage media storing the same
US20120066201A1 (en) Systems and methods for generating a search
CN114115844A (en) Page generation method and device, computer equipment and storage medium
CN111596911B (en) Method, device, computer equipment and storage medium for generating control
US20200342029A1 (en) Systems and methods for querying databases using interactive search paths
CN113051354A (en) Online source searching method and device based on dynamic configuration and computer equipment
CN114841126A (en) Form generation method, device, equipment, storage medium and program product
CN107992465A (en) The method, apparatus and terminal device that a kind of reading content is shared
CN116910405A (en) Page processing method, device, computer equipment and storage medium
CN116737138A (en) Application generation method, device, computer equipment and storage medium
CN114327395A (en) Webpage design method, device, computer equipment, storage medium and product
CN113506099A (en) Configuration system, method, computer device and storage medium for reporting service
CN111142741B (en) File sorting method, terminal and computer readable storage medium
CN111932192A (en) Decision flow configuration method executed in computer equipment and decision flow engine
CN117290302B (en) Directory separation method, apparatus, computer device and storage medium
CN116737140A (en) Business component construction method, device, computer equipment and storage medium
CN114781346A (en) Audit model sharing method and device, computer equipment and computer program product
CN116740208A (en) Poster generation method and device and computer equipment
CN117389859A (en) Method, device, computer equipment and storage medium for determining influence range
CN116629049A (en) Cross-section attribute giving method, device, equipment and storage medium for finite element model
CN116775955A (en) Data tag solidifying method, device, computer equipment and storage medium
CN114860574A (en) Application software picture element identification method and device and computer equipment
CN114020322A (en) System configuration method, device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination