CN117742699A - Method, device, equipment and storage medium for generating functional module of application program - Google Patents

Method, device, equipment and storage medium for generating functional module of application program Download PDF

Info

Publication number
CN117742699A
CN117742699A CN202311773298.5A CN202311773298A CN117742699A CN 117742699 A CN117742699 A CN 117742699A CN 202311773298 A CN202311773298 A CN 202311773298A CN 117742699 A CN117742699 A CN 117742699A
Authority
CN
China
Prior art keywords
function
component
type
functional
module
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
CN202311773298.5A
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.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software 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 Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN202311773298.5A priority Critical patent/CN117742699A/en
Publication of CN117742699A publication Critical patent/CN117742699A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for generating a functional module of an application program. The specific scheme is as follows: receiving request information for adding at least one functional module for a to-be-applied native program; determining a system type of a to-be-applied native program and a function type of at least one function module based on the request information; invoking at least one functional component based on the system type and the function type; and configuring business functions corresponding to the at least one functional module for the to-be-applied native program based on the at least one functional component and the corresponding configuration file. According to the technical scheme provided by the invention, the corresponding functional components are called for the to-be-applied native program according to the system type of the to-be-applied native program and the functional type of the functional module, so that the service functions corresponding to the functional modules are configured for the to-be-applied native program based on the functional components, and the effects of strong customization and high response speed are achieved.

Description

Method, device, equipment and storage medium for generating functional module of application program
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for generating a functional module of an application program.
Background
With the rapid development of the software industry, the rapid construction and release of applications with certain functions has become an urgent need for the market. To meet this demand, methods of generating functional modules are becoming a focus of industry attention.
The existing method for generating the functional module mainly comprises the step that a developer writes corresponding codes manually according to corresponding requirements to realize the corresponding functional module. However, when the function module is generated based on the above manner, when the function module to be developed is complex, the development period may be prolonged, thereby affecting the development progress. Based on the above, the technical scheme provides a mode of utilizing the calling function component and the corresponding configuration file to realize the generation of the function module.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for generating a functional module of an application program, which solve the problem of excessively long time consumption in the generation of the functional module in the prior art, realize the configuration of a service function corresponding to the functional module for a to-be-applied original program based on a functional component, and achieve the effects of strong customization and high response speed.
According to an aspect of the present invention, there is provided a function module generating method of an application program, the method including:
receiving request information for adding at least one functional module for a to-be-applied native program;
determining a system type of a to-be-applied native program and a function type of at least one function module based on the request information;
invoking at least one functional component based on the system type and the function type;
and configuring business functions corresponding to the at least one functional module for the to-be-applied native program based on the at least one functional component and the corresponding configuration file.
According to another aspect of the present invention, there is provided a function module generating apparatus of an application program, the apparatus including:
the request information receiving module is used for receiving request information for adding at least one function module for the to-be-applied native program;
the type determining module is used for determining the system type of the to-be-applied native program and the function type of at least one function module based on the request information;
a function component calling module for calling at least one function component based on the system type and the function type;
and the business function configuration module is used for configuring business functions corresponding to the at least one function module for the to-be-applied native program based on the at least one function module and the corresponding configuration file.
According to another aspect of the present invention, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of generating functional modules of the application of any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to execute a function module generating method of an application program according to any one of the embodiments of the present invention.
According to the technical scheme, the request information for adding the function module to the original program to be applied is received, and the system type of the original program to be applied and the function type of the corresponding function module are determined according to the request information. And calling corresponding functional components according to the system type and the function type. And completing the generation of the functional module according to the called functional component and the corresponding configuration file, thereby configuring the service function corresponding to the functional module for the to-be-applied native program. The method solves the problem that the generation of the functional module in the prior art takes too long time, realizes the configuration of the business function corresponding to the functional module for the to-be-applied native program based on the functional module, and achieves the effects of strong customization and high response speed.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for generating a functional module of an application according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for generating a functional module of an application according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a functional module generating device of an application according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a method for generating a functional module of an application program according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for generating a functional module of an application program according to an embodiment of the present invention, where the method may be performed by a functional module generating device of the application program, and the functional module generating device of the application program may be implemented in hardware and/or software, and the functional module generating device of the application program may be configured in an electronic device such as a mobile phone, a computer, or a server, after receiving request information, and calling a corresponding functional module according to the request information, thereby quickly generating a corresponding functional module. As shown in fig. 1, the method includes:
s110, receiving request information for adding at least one functional module for the to-be-applied native program.
In the development process of the program, a developer can select to add a corresponding functional module in the current program according to actual development requirements, and at the moment, the developer is required to trigger corresponding operation so that a server can receive request information for adding the functional module. The current program is a native program to be applied, and the request information may be an instruction for requesting the server to execute operations such as adding a function module. The functional modules may be modules for performing a specific business function, i.e. the functional modules may map a certain business function. For example, the functional module may be a payment module, i.e. the user may complete a corresponding payment according to the payment module.
Specifically, in a development scenario of a program, a corresponding functional module may be added to a native program to be applied according to different requirements. Wherein, as there may be one or more demands, it should be corresponding to at least one functional module. Accordingly, a developer may trigger a corresponding operation so that the server may receive the request information for adding the function module to the native program to be applied.
S120, determining the system type of the to-be-applied native program and the function type of at least one function module based on the request information.
In an embodiment of the present invention, the system type may be the overall environment or platform in which the native program is to be applied. For example, the native program to be applied can be developed for an Android system, and the corresponding system type is Android. Likewise, the system type may also be iOS, windows, etc. If the native program to be applied is a Web-based program, then its corresponding system type may be Web. The function type can be defined according to actual requirements, and the function types corresponding to different requirements are different. For example, in order to realize the payment function, the corresponding function type may be a payment type; the actual requirement is to implement a data management function, and the corresponding function type may be a data management type. This embodiment is not limited thereto.
Specifically, analysis processing is performed on the received request information, and the system type corresponding to the to-be-applied native program is determined. Optionally, a corresponding system type identifier may be included in the request information, so that the corresponding system type may be clearly determined based on the request information. Likewise, the request information may include a description of the functional module to be added, such as a function type, a requirement, and the like of the functional module. So that the function type of the function module to be added in the native program to be applied can be determined based on the request information.
S130, calling at least one functional component based on the system type and the functional type.
In the embodiment of the present invention, a functional component may be understood as a functional module component, which is a component for implementing a corresponding function. I.e. the functional component may be a pre-written block of code. One or more different functional components may be formed in the functional module, so that at least one functional component may be invoked here for the addition of the corresponding functional module.
Specifically, after the system type and the function type are determined, the function component meeting the requirements can be selected from the corresponding function component library or the corresponding storage file, so that the function component can be called.
Optionally, invoking at least one functional component based on the system type and the function type includes: determining at least one management component corresponding to the function type to be selected according to the system type; and determining a target management component according to the function type, and calling the function component to be selected, which is bound with the target management component, as the function component.
In the embodiment of the invention, one or more function types to be selected are corresponding to each system type. The function type to be selected can be set according to actual requirements, and corresponds to the function type to be selected. The management component may be configured to manage a function component to be selected corresponding to the function type to be selected. That is, each management component is bound with at least one function component to be selected. The target management component may be a management component corresponding to the function type obtained from at least one management component.
Specifically, according to the determined system type, at least one management component corresponding to the system type is determined in a corresponding function component library or a storage file. Each management component binds a functional component to be selected associated with a system type, i.e. the functional components to be selected are applicable to the system type. It is understood that the system type may correspond to at least one function type to be selected, and the corresponding at least one function component to be selected may be uniformly bound and managed by the corresponding management component. Further, based on the determined function type, a target management component is determined in the at least one management component, so that the function component to be selected bound with the target management component is called based on the target management component and is taken as the function component. It should be noted that, when implementing the above function types, one or more function components may be required to be implemented, and thus, at least one function component may be invoked when being invoked.
By way of example, the system type may be Web, android, iOS or the like. The corresponding library of functional components may be a component marketplace. Namely, a Web component, an Android component and an iOS component are included in the component market. If the system type is a Web type, the management component is a Web component. Based on the Web type, if the function type is a payment type, a corresponding payment component can be selected from the Web components as the selected function component. Correspondingly, if the system type is Android, the management component is an Android component, and on the basis, if the function type is payment, the selected function component can be provided with a payment manager component and a third party platform payment component. Wherein, third party platform is different, and corresponding third party platform payment subassembly is also different. Accordingly, when the system type is iOS type and the function type is payment type, the correspondingly selected function components are similar, and will not be described again here. In addition, for each functional component to be selected in the component market, there are detailed functional parameters in the component market to enable the retrieval of the component.
Optionally, after obtaining the at least one functional component, the method further comprises: storing the at least one functional component in a cache control of the native program to be applied, so as to invoke the at least one functional component from the cache control when the service-enabling function is received.
In the embodiment of the invention, the cache control can be a control for storing the functional component data in the to-be-applied native program. The business function may be a function corresponding to a function module, for example, the function module is a payment module, and the business function may be a payment process.
In order to improve the response speed and the generation efficiency of the functional module, the functional components selected according to the system type and the functional type can be stored in a cache control of the native program to be applied. When the corresponding service function is required to be started in the subsequent receiving process, the corresponding functional component can be called from the cache control.
S140, configuring service functions corresponding to the at least one functional module for the to-be-applied native program based on the at least one functional component and the corresponding configuration file.
In the present embodiment, a configuration file is understood as a file for storing parameters of a functional component.
Specifically, a configuration file corresponding to each functional component is determined according to at least one called functional component, and then the functional components and the corresponding configuration files are integrated in corresponding functional modules, so that service functions corresponding to the functional modules are configured for the to-be-applied native program according to the integrated functional modules. It should be noted that, according to the at least one invoked functional component, one or more functional modules may be integrated, and thus, a service function corresponding to the at least one functional module needs to be configured.
It should be noted that, before determining the corresponding configuration files of the functional components, the configuration files corresponding to each functional component need to be processed.
Optionally, the method further comprises: determining configuration files corresponding to each system type; and writing the function parameters of at least one function component to be selected, which are associated with each system type, into corresponding configuration files so as to prepare for calling configuration.
In the embodiment of the invention, the function parameters, namely corresponding parameters in the function component to be selected, for example, the function parameters can be information such as component name, component version, component application, component download address and the like of the function component to be selected.
In particular, the functional modules may be of different system types, such as Android, iOS, web. The corresponding configuration files for different system types are also different. Thus, to facilitate subsequent calls, a configuration file corresponding to each system type may be determined first. And then, the function parameters of the function components to be selected, which are associated with the system type, can be written into the corresponding configuration files so as to call the corresponding configuration files later.
For example, if the system type is an Android type, the functional components to be selected associated with the type may include a payment manager component, a third party platform payment component, and the like. Then, the function parameters of the function component to be selected can be written into the gradle configuration file. If the system type is iOS type, the function parameters of the corresponding function component to be selected can be written into the pod configuration file. This embodiment is not limited thereto.
Optionally, the function parameter includes at least one of a name of the function component to be selected, a version number, a type of the data packet, and a download domain name.
In the embodiment of the invention, the names of the functional components to be selected can be unique identification names for distinguishing different functional components to be selected. The version number may be used to identify the version of the functional component to be selected, which may change after being updated or modified. The packet type may be a packet corresponding to the functional component to be selected. The download domain name may be a domain name address for downloading the function component to be selected.
In particular, the function parameters in the function component to be selected may include one or more of a name of the function component to be selected, a version number, a packet type, and a download domain name, so that the corresponding function component to be selected may be understood and managed based on the function parameters.
For example, in combination with the above example, when the system type is Web type, the function component to be selected may be a payment component, and then the function parameter of the payment component may include the name of the function component to be selected: the pay, version number is multiple, such as: 1.0.0/1.0.1/1.0.5, the packet type may be npm download domain name may be "http:// registry. Npm. Frd. XXX. Com". If the system type is Android, the corresponding function component to be selected may have a payment manager component, where the name of the function component to be selected may be a path_manager, and the version number may be multiple, for example:
1.0.0/1.0.1. When the system type is Android, the corresponding function component to be selected may also be a third party platform payment component, and since there are a plurality of third party payment platforms, there may be a plurality of third party platform payment components, and here, the payment component 1, the payment component 2 and the payment component 3 distinguish different third party payment platform components. The functional parameters of the payment component 1 may include: name of functional component to be selected: the version number may be 2.0.1/2.1.3 for a download domain name of "http:// nexus XXX.cn/nexus/content/repositiories/Tulipreleases/"; accordingly, the functional parameters of the payment component 2 may include: name of functional component to be selected: 2_pay, version number is: 3.0.1/3.1.2, the download domain name is "http:// nexus xxx. Cn/nexus/content/repositives/Tulipreleases/"; the functional parameters of the payment component 3 may include: name of functional component to be selected: 3_pay, version number is: 3.1.1/3.1.5, the download Domain name is "http:// nexus. XXX/nen/content/repositives/Tulipreleases/". It should be noted that, to distinguish between different system types, a corresponding identifier may be added to the function parameters. I.e. the respective identifiers can be added to the above mentioned functional parameters of the payment manager component and the third party platform payment component as one of the functional parameters. Alternatively, the identifier may be a component group, which may be com.
According to the technical scheme of the embodiment, the request information of adding the function module for the original program to be applied is received, and the system type of the original program to be applied and the function type of the corresponding function module are determined according to the request information. And calling corresponding functional components according to the system type and the function type. And completing the generation of the functional module according to the called functional component and the corresponding configuration file, thereby configuring the service function corresponding to the functional module for the to-be-applied native program. The method solves the problem that the generation of the functional module in the prior art takes too long time, realizes the configuration of the business function corresponding to the functional module for the to-be-applied native program based on the functional module, and achieves the effects of strong customization and high response speed.
Example two
Fig. 2 is a flowchart of a method for generating a function module of an application program according to an embodiment of the present invention, where the method further includes determining an associated function type to be selected according to each system type before receiving request information, so as to create a corresponding function component to be selected based on the function type to be selected, so as to call the corresponding function component according to the request information. The specific implementation manner can be seen in the technical scheme of the embodiment. Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein. As shown in fig. 2, the method includes:
s210, determining the associated function type to be selected under each system type.
In the embodiment of the present invention, one or more function types to be selected may be corresponding to each system type, and the description is given by taking the example that the system type is a Web type, where a plurality of function types to be selected may be corresponding to the system type, for example: a third party payment type, a payment management type, etc. The function type to be selected may be a function type corresponding to the function component to be selected, which is set based on actual requirements.
Specifically, before the corresponding function component to be selected is created, the corresponding function requirement can be judged according to each system type, and the corresponding function type to be selected is determined according to the function requirement, so that the system type and the corresponding function type to be selected are associated, and the corresponding function component to be selected is created based on the corresponding function type to be selected.
S220, creating at least one function component to be selected associated with each function type to call the at least one function component to be selected as a function component when the request information is received.
Specifically, the function component to be selected corresponding to the function type to be selected can be correspondingly created according to the function type to be selected. Wherein a type of function to be selected can be associated with at least one function component to be selected. For example, the function type to be selected is a third party platform payment type, wherein different third party platforms may correspond to different function components to be selected, and thus at least one function component to be selected may be created based on each function type to be selected. Accordingly, the created functional components to be selected can be stored in the corresponding functional component library, so that at least one functional component to be selected can be called from the functional component library to serve as the functional component based on the request information after the request information is received later. Alternatively, the library of functional components may be a component marketplace.
Optionally, creating at least one function component to be selected associated with each function type to be selected includes: determining a management component corresponding to the function type to be selected; binding at least one function component to be selected with the corresponding management component according to the management name of each management component and the implementation function of the function component to be selected; the function parameters are configured for at least one function component to be selected.
In an embodiment of the present invention, at least one function component to be selected may be determined for one function type to be selected. In order to facilitate the management of the functional components to be selected, at least one functional component to be selected of the same functional type to be selected may belong to a management component, so that the corresponding at least one functional component to be selected is managed based on the management component. The functional parameter may be a parameter that characterizes a feature of the functional component.
Specifically, a management component corresponding to the function type may be determined according to the function type to be selected, and the management name and the implementation function of the function component to be selected are corresponding to each other according to the management name of the management component, so as to bind one or more function components to be selected according to the management component correspondence. In addition, corresponding function parameters can be configured for each function component to be selected so as to carry out subsequent calling processing based on the function parameters.
S230, receiving request information for adding at least one functional module for the to-be-applied native program.
S240, determining the system type of the to-be-applied native program and the function type of at least one function module based on the request information.
S250, at least one functional component is called based on the system type and the functional type.
S260, configuring service functions corresponding to the at least one function module for the to-be-applied native program based on the at least one function component and the corresponding configuration file.
By way of example, in connection with the above example, when the system type is a Web type, the corresponding functional component may be a payment component. Accordingly, after the corresponding payment component is invoked, the shell command can be utilized to download the npm package of the payment component, namely, the function parameters in the configuration file corresponding to the payment component are downloaded according to the shell command. The corresponding shell command may be expressed as follows:
npminstall pay@1.0.5--registry=http://registry.npm.frd.XXX
.com
the downloaded npm package usage shell command may then be copied into the aspert directory of the native program to be applied. For the functional components with Android system components, there may be a payment manager component, a third party platform payment component and the like, the functional parameters corresponding to each functional component may be downloaded, for example, a sed-i instruction may be used to add the domain name http:// nexus. The corresponding instructions may be represented as follows.
implementation'com.XX.android:pay_manager:1.0.1'
implementation'com.XX.android:1_pay:2.1.3'
implementation'com.XX.android:2_pay:3.1.2'
implementation'com.XX.android:3_pay:3.1.5'
Based on the above operations, the business functions corresponding to the function modules may be configured for the native program to be applied. The corresponding instructions may be represented as follows.
./gradlew:app:assembleDebug
According to the technical scheme of the embodiment, corresponding function components to be selected are correspondingly created according to the determined function types to be selected associated with each system type, so that after request information is received, calling can be quickly conducted based on the created function components, and the generation time of the function modules is shortened. Further, request information for adding a function module to the original program to be applied is received, and the system type of the original program to be applied and the function type of the corresponding function module are determined according to the request information. And calling corresponding functional components according to the system type and the function type. And completing the generation of the functional module according to the called functional component and the corresponding configuration file, thereby configuring the service function corresponding to the functional module for the to-be-applied native program. The method solves the problem that the generation of the functional module in the prior art takes too long time, realizes the configuration of the business function corresponding to the functional module for the to-be-applied native program based on the functional module, and achieves the effects of strong customization and high response speed.
Example III
Fig. 3 is a schematic structural diagram of a device for generating a functional module of an application according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes: a request information receiving module 310, a type determining module 320, a function component invoking module 330 and a service function configuration module 340.
A request information receiving module 310, configured to receive request information for adding at least one function module to a native program to be applied; a type determining module 320, configured to determine a system type of the native program to be applied and a function type of at least one function module based on the request information; a function component retrieving module 330, configured to retrieve at least one function component based on a system type and a function type; the business function configuration module 340 is configured to configure business functions corresponding to the at least one function module for the native program to be applied based on the at least one function component and the corresponding configuration file.
According to the technical scheme of the embodiment, the request information of adding the function module for the original program to be applied is received, and the system type of the original program to be applied and the function type of the corresponding function module are determined according to the request information. And calling corresponding functional components according to the system type and the function type. And completing the generation of the functional module according to the called functional component and the corresponding configuration file, thereby configuring the service function corresponding to the functional module for the to-be-applied native program. The method solves the problem that the generation of the functional module in the prior art takes too long time, realizes the configuration of the business function corresponding to the functional module for the to-be-applied native program based on the functional module, and achieves the effects of strong customization and high response speed.
On the basis of the above embodiment, optionally, the apparatus further includes a functional component creation module, including: a to-be-selected function type determining unit, configured to determine an associated to-be-selected function type under each system type; and the function component creation unit is used for creating at least one function component to be selected, which is associated with each function type to be selected, so as to call the at least one function component to be selected as a function component when the request information is received.
Optionally, the functional component creating unit includes: a management component determining subunit configured to determine a management component corresponding to the function type to be selected; the component binding subunit is used for binding at least one functional component to be selected with the corresponding management component according to the management name of each management component and the implementation function of the functional component to be selected; a function parameter configuration subunit, configured to configure function parameters for at least one function component to be selected.
Optionally, the function parameter includes at least one of a name of the function component to be selected, a version number, a type of the data packet, and a download domain name.
Optionally, the apparatus further includes a profile processing module, the module including: a configuration file determining unit, configured to determine configuration files corresponding to respective system types; and the function parameter writing unit is used for writing the function parameters of at least one function component to be selected, which is associated with each system type, into the corresponding configuration file so as to prepare for calling the configuration.
Optionally, the function component invoking module is configured to determine, according to the system type, a management component corresponding to at least one function type to be selected; and determining a target management component according to the function type, and calling the function component to be selected, which is bound with the target management component, as the function component.
Optionally, after the functional component retrieving module, the apparatus further includes a functional component storage module, where the module is configured to store at least one functional component in a cache control of the native program to be applied, so as to retrieve at least one functional component from the cache control when the service enabling function is received.
The device for generating the functional module of the application program provided by the embodiment of the invention can execute the method for generating the functional module of the application program provided by any embodiment of the invention, and has the corresponding functional module and beneficial effects of the execution method.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, a function module generation method of an application program.
In some embodiments, the method of generating functional modules of an application program may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the function module generating method of the application program described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the functional module generating method of the application program in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the functional module generating method of an application of the present invention can be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
Example five
The embodiment of the invention also provides a computer readable storage medium, the computer readable storage medium stores computer instructions for causing a processor to execute a method for generating a functional module of an application program, the method comprising:
receiving request information for adding at least one functional module for a to-be-applied native program; determining a system type of a to-be-applied native program and a function type of at least one function module based on the request information; invoking at least one functional component based on the system type and the function type; and configuring business functions corresponding to the at least one functional module for the to-be-applied native program based on the at least one functional component and the corresponding configuration file.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for generating a functional module of an application program, comprising:
receiving request information for adding at least one functional module for a to-be-applied native program;
determining the system type of the to-be-applied native program and the function type of the at least one function module based on the request information;
invoking at least one functional component based on the system type and the function type;
and configuring service functions corresponding to the at least one functional module for the to-be-applied native program based on the at least one functional component and the corresponding configuration file.
2. The method as recited in claim 1, further comprising:
determining the associated function type to be selected under each system type;
at least one function component to be selected associated with each function type to be selected is created, so that when request information is received, the at least one function component to be selected is called as the function component.
3. The method of claim 1, wherein creating at least one function component to be selected associated with each function type to be selected comprises:
determining a management component corresponding to the function type to be selected;
binding at least one functional component to be selected with a corresponding management component according to the management name of each management component and the implementation function of the functional component to be selected;
and configuring function parameters for the at least one function component to be selected.
4. A method according to claim 3, wherein the function parameters include at least one of a function component name to be selected, a version number, a packet type, and a download domain name.
5. The method as recited in claim 1, further comprising:
determining configuration files corresponding to each system type;
and writing the function parameters of at least one function component to be selected, which are associated with each system type, into corresponding configuration files so as to prepare for calling configuration.
6. The method of claim 1, wherein invoking at least one functional component based on the system type and the function type comprises:
determining at least one management component corresponding to the function type to be selected according to the system type;
and determining a target management component according to the function type, and calling the function component to be selected, which is bound with the target management component, as the function component.
7. The method according to claim 1 or 6, wherein after obtaining the at least one functional component, the method further comprises:
storing the at least one functional component into a cache control of the to-be-applied native program, so as to call the at least one functional component from the cache control when the service function is started.
8. A function module generating apparatus of an application program, comprising:
the request information receiving module is used for receiving request information for adding at least one function module for the to-be-applied native program;
a type determining module, configured to determine, based on the request information, a system type of the native program to be applied and a function type of the at least one function module;
a functional component retrieving module for retrieving at least one functional component based on the system type and the function type;
and the business function configuration module is used for configuring business functions corresponding to the at least one functional module for the to-be-applied native program based on the at least one functional module and the corresponding configuration file.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the functional module generating method of the application program of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the method of generating functional modules of an application program according to any one of claims 1-7 when executed.
CN202311773298.5A 2023-12-20 2023-12-20 Method, device, equipment and storage medium for generating functional module of application program Pending CN117742699A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311773298.5A CN117742699A (en) 2023-12-20 2023-12-20 Method, device, equipment and storage medium for generating functional module of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311773298.5A CN117742699A (en) 2023-12-20 2023-12-20 Method, device, equipment and storage medium for generating functional module of application program

Publications (1)

Publication Number Publication Date
CN117742699A true CN117742699A (en) 2024-03-22

Family

ID=90282971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311773298.5A Pending CN117742699A (en) 2023-12-20 2023-12-20 Method, device, equipment and storage medium for generating functional module of application program

Country Status (1)

Country Link
CN (1) CN117742699A (en)

Similar Documents

Publication Publication Date Title
CN107832099B (en) Method and device for client version compatibility and storage medium
CN111782304A (en) Logic control method and device for paging loading data, computer equipment and medium
CN110113391B (en) Client online method and device and client operation method and device
CN111294377B (en) Dependency network request sending method, terminal device and storage medium
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN117234582A (en) Project code processing method and device, electronic equipment and storage medium
CN112235132A (en) Method, device, medium and server for dynamically configuring service
CN114090118B (en) Method, device, equipment and storage medium for starting applet
CN117742699A (en) Method, device, equipment and storage medium for generating functional module of application program
CN113760487B (en) Service processing method and device
CN114237755A (en) Application running method and device, electronic equipment and storage medium
CN111176679B (en) Application program updating method and device
CN114510334A (en) Class instance calling method and device, electronic equipment and automatic driving vehicle
CN104978214B (en) A kind of component loading method, device and terminal
CN113094607B (en) Method and device for obtaining local resources
CN116028136A (en) File previewing method and device, electronic equipment and storage medium
CN116719552A (en) Game heat updating method and device, electronic equipment and storage medium
CN109388536B (en) Data collection method and device
CN117008837A (en) Partition mounting method, device and equipment of magnetic disk and storage medium
CN115408120A (en) Operation method, device, equipment, medium and product of script language file
CN117201481A (en) Method and device for downloading software update file, electronic equipment and readable medium
CN117806702A (en) Target software acquisition method and device, electronic equipment and storage medium
CN117707643A (en) Plug-in building method and device and plug-in running method and device
CN115576824A (en) Test method, visual test device, equipment and medium for CICS server program
CN116149946A (en) Data acquisition method and device, electronic 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