CN112162732A - Module construction method, module construction device, storage medium and electronic device - Google Patents

Module construction method, module construction device, storage medium and electronic device Download PDF

Info

Publication number
CN112162732A
CN112162732A CN202011091180.0A CN202011091180A CN112162732A CN 112162732 A CN112162732 A CN 112162732A CN 202011091180 A CN202011091180 A CN 202011091180A CN 112162732 A CN112162732 A CN 112162732A
Authority
CN
China
Prior art keywords
function module
service function
module
application
construction
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
CN202011091180.0A
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.)
Guangzhou Leyaoyao Information Technology Co ltd
Original Assignee
Guangzhou Leyaoyao Information 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 Guangzhou Leyaoyao Information Technology Co ltd filed Critical Guangzhou Leyaoyao Information Technology Co ltd
Priority to CN202011091180.0A priority Critical patent/CN112162732A/en
Publication of CN112162732A publication Critical patent/CN112162732A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

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

Abstract

The invention discloses a module construction method, a module construction device, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition that a construction instruction for indicating that an application is constructed by using a service function module is received, construction conditions carried by the construction instruction are obtained; selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction; and constructing the application by utilizing the target business function module. The invention can improve the development efficiency.

Description

Module construction method, module construction device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a module construction method, a module construction device, a storage medium and an electronic device.
Background
At present, in the process of application development, service function modules need to be developed for service scenes, and then the service function modules are combined to realize corresponding application functions.
In practice, it is found that by adopting the above application development method, under the condition of re-developing the application each time, each service function module needs to be re-developed, and multiplexing and management of the developed service function modules cannot be realized, so that some service function modules need to be developed secondarily, and further, the development efficiency is reduced.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a module construction method, a module construction device, a storage medium and an electronic device, and aims to at least improve development efficiency.
According to an aspect of an embodiment of the present invention, there is provided a module construction method including: under the condition that a construction instruction for indicating that an application is constructed by using a service function module is received, acquiring construction conditions carried by the construction instruction; selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module meeting the construction condition carried by the construction instruction; and constructing an application by using the target service function module.
As an optional implementation manner, before the obtaining of the building condition carried by the building instruction, the method further includes: splitting the service function module into a first service function module and a second service function module which have corresponding relations according to a service scene; and storing the first service function module and the second service function module which have corresponding relations by using a service function module management system.
As an optional implementation manner, the splitting a service function module into the first service function module and the second service function module having a corresponding relationship according to a service scenario includes: determining the first service function module corresponding to each service scene, and marking service use information corresponding to the first service function module; according to the service use information corresponding to the first service function module, an initial project of the second service function module is set up through a scaffold; and executing the development operation of the second service function module in the initial engineering of the second service function module to obtain the second service function module.
As an optional implementation manner, the building of the application by using the target service function module includes: acquiring a function packet and version information corresponding to the target service function module; and according to the function package and the version information, performing packaging deployment operation on the target service function module to construct and generate the application.
As an optional implementation manner, after the building of the application by using the target service function module, the method further includes: obtaining module information of the target service function module, wherein the module information at least comprises module configuration information; and displaying the dependency relationship information among the target business function modules for constructing the application and the module information of each target business function module.
As an optional implementation manner, after the building of the application by using the target service function module, the method further includes: and in the running process of the application, under the condition that an adjusting instruction for indicating to adjust the module configuration information of the target service function module is detected, adjusting the module configuration information of the target service function module according to the adjusting instruction.
As an optional implementation manner, after the building of the application by using the target service function module, the method further includes: and under the condition of starting the application, calling a database instruction operation corresponding to the target service function module.
According to another aspect of the embodiments of the present invention, there is also provided a module construction apparatus, including: the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a construction condition carried by a construction instruction under the condition of receiving the construction instruction for indicating the construction of an application by using a service function module; a selecting unit, configured to select a target service function module from the first service function module and the second service function module, where the target service function module is a module that meets the construction condition carried by the construction instruction; and the construction unit is used for constructing the application by utilizing the target service function module.
As an optional implementation, the apparatus further includes: a splitting unit, configured to split a service function module into a first service function module and a second service function module having a corresponding relationship according to a service scenario before the construction condition carried by the construction instruction is obtained; and the storage unit is used for storing the first service function module and the second service function module which have corresponding relations by using a service function module management system.
As an optional implementation, the splitting unit includes: a determining subunit, configured to determine the first service function module corresponding to each service scenario, and mark service usage information corresponding to the first service function module; a building subunit, configured to build, according to the service usage information corresponding to the first service function module, an initial project of the second service function module through a scaffold; and the development subunit is used for executing the development operation on the second service function module in the initial engineering of the second service function module to obtain the second service function module.
As an optional implementation, the building unit includes: an obtaining subunit, configured to obtain a function package and version information corresponding to the target service function module; and the construction subunit is used for performing packaging deployment operation on the target service function module according to the function package and the version information to construct and generate the application.
As an optional implementation manner, the obtaining unit is further configured to obtain module information of the target service function module after the application is built by using the target service function module, where the module information at least includes module configuration information; the above-mentioned device still includes: and the display unit is used for displaying the dependency relationship information among the target business function modules for constructing the application and the module information of each target business function module.
As an optional implementation, the apparatus further includes: an adjusting unit, configured to, after the application is built by using the target service function module, adjust the module configuration information of the target service function module according to an adjustment instruction when the adjustment instruction for instructing to adjust the module configuration information of the target service function module is detected in the running process of the application.
As an optional implementation, the apparatus further includes: and the calling unit is used for calling the database instruction operation corresponding to the target business function module under the condition of starting the application after the application is constructed by using the target business function module.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium in which a computer program is stored, wherein the computer program is configured to execute the above module construction method when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the module building method through the computer program.
In the embodiment of the invention, under the condition of receiving a construction instruction for indicating the construction of an application by using a service function module, construction conditions carried by the construction instruction are obtained; selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction; and constructing the application by utilizing the target business function module. The process can realize the rapid construction and development of the application by utilizing the management of the business function module, and can improve the development efficiency.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow diagram of an alternative module construction method according to an embodiment of the invention;
FIG. 2 is a flow diagram of an alternative module construction method according to an embodiment of the invention;
FIG. 3 is a flow diagram of an alternative module construction method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative module construction method according to an embodiment of the invention;
FIG. 5 is a development diagram of an alternative second business function module according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative module construction method according to an embodiment of the invention;
FIG. 7 is a schematic block diagram of an alternative module building apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or 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.
An embodiment of the present invention provides an optional module construction method, and as shown in fig. 1, the module construction method includes:
s101, under the condition that a construction instruction for indicating that an application is constructed by using a service function module is received, construction conditions carried by the construction instruction are obtained;
s102, selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction;
s103, constructing the application by using the target business function module.
In the embodiment of the present invention, the construction instruction is an instruction for instructing to construct an application using the service function module, where the number of the service function modules may be multiple. The business function module is used for solving the combination of application program interfaces, data transmission objects, software configuration items, databases, codes and the like in one or more related business scenes. In the case of application development, a plurality of business function modules can be used for superposition deployment to construct an application. Under the condition that the construction instruction is received, the construction condition carried by the construction instruction may be obtained, where the construction condition is a selection condition for selecting a service function module by the application being constructed this time, and the construction condition may include, but is not limited to, service use information of the application to be constructed this time, function module tag information, and the like. Further, a target service function module can be selected from the first service function module and the second service function module, and the target service function module is a module meeting the construction condition. The first service function module and the second service function module may be pre-stored service function modules, and the relationship between the first service function module and the second service function module may be a hierarchical inclusion relationship, for example, the first service function module may be a primary service function module, the second service function module may be a secondary service function module, the primary service function module may be a module for dividing service purposes according to different service scenes, each service purpose may correspond to one primary service function module, and the secondary service function module corresponding to the primary service function module is at least one service function module conforming to the service purpose constructed on the basis of the service purpose corresponding to the primary service function module. The target service function module may be selected from the first service function module and the second service function module, and the number of the target service function modules may be multiple. Further, the application can be constructed using a plurality of target business function modules.
In the embodiment of the invention, under the condition of receiving a construction instruction for indicating the construction of an application by using a service function module, construction conditions carried by the construction instruction are obtained; selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction; and constructing the application by utilizing the target business function module. The process can realize the rapid construction and development of the application by utilizing the management of the business function module, and can improve the development efficiency.
Further, an embodiment of the present invention provides another optional module construction method, as shown in fig. 2, where the module construction method includes:
s201, splitting a service function module into a first service function module and a second service function module which have corresponding relations according to a service scene;
s202, storing a first service function module and a second service function module which have corresponding relations by using a service function module management system;
s203, under the condition that a construction instruction for indicating that the application is constructed by using the service function module is received, construction conditions carried by the construction instruction are obtained;
s204, selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction;
s205, acquiring a function packet and version information corresponding to the target service function module;
s206, according to the function package and the version information, packaging and deploying the target service function module, and constructing and generating an application;
s207, module information of the target service function module is obtained, wherein the module information at least comprises module configuration information;
s208, displaying the dependency relationship information among the target business function modules of the constructed application and the module information of each target business function module.
In the embodiment of the present invention, the service function module may be split into the first service function module and the second service function module having a corresponding relationship according to a service scenario, where the service scenario may be one or multiple, and the embodiment of the present invention is not limited in this embodiment. And the first service function module and the second service function module having a corresponding relationship can be stored by using the service function module management system. The service function module management system is configured to manage a first service function module and a second service function module, and in addition to managing a correspondence between the first service function module and the second service function module, may also be configured to manage module information corresponding to each service function module, where the module information may include, but is not limited to, a description file, module configuration information, an application program interface of the module, a data transmission object of the module, and other information.
Further, the constructing the application by using the target service function module may include: acquiring a function packet and version information corresponding to a target service function module; and according to the function package and the version information, performing packaging deployment operation on the target service function module to construct and generate the application. The manner of obtaining the function package corresponding to the target service function module may specifically be: acquiring a function packet corresponding to a target service function module in a function packet management system, wherein the function packet management system is used for storing each service function module and the function packet corresponding to the service function module; the manner of obtaining the version information corresponding to the target service function module may specifically be: and acquiring version information corresponding to the target service function modules in a version management system, wherein the version management system is used for managing the version information of the function package of each target service function module. Or, the service function module, the function package and the version information having the corresponding relationship may be stored in advance, and the function package and the version information corresponding to the target service function module may be directly queried. Furthermore, the target service function module can be packaged and deployed according to the function package and the version information, and a generated application is constructed. Specifically, the function package and the version information may be merged and packaged, deployment information may be acquired, deployment operations may be executed, and a generated application may be constructed.
As an optional implementation, after the generating application is built, the following steps may be further performed: and uploading the information of the application and the target business function module to a business function module management system so that the business function module management system constructs the corresponding relation between the application and the business function modules forming the application.
Further, after the generating application is built by using the target business function module, the following steps can be executed:
s1, obtaining module information of the target service function module, wherein the module information at least comprises module configuration information;
and S2, displaying the dependency relationship information among the target business function modules of the construction application and the module information of each target business function module.
In the embodiment of the present invention, the module configuration information may be a configuration item file for the target service function module, where the configuration item file is used to configure parameters of the target service function module, such as a service parameter, a service discovery mechanism extension point, and an event message. The expansion development of the business function module can be realized by setting the module configuration information, the reusability of the business function module is improved, and the definition rule of the module configuration information can be set, so that the development of the business function module follows the rule to carry out standardized development, and the expansion and the reuse are more convenient. Further, the information of the dependency relationship between the target business function modules can be displayed, and the dependency relationship can include, but is not limited to, a function call relationship in the code, and the like, and is used for representing the code interdependence between the modules. Therefore, the visualization of the target business function module of the constructed application is realized.
In the embodiment of the invention, under the condition of receiving a construction instruction for indicating the construction of an application by using a service function module, construction conditions carried by the construction instruction are obtained; selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction; and constructing the application by utilizing the target business function module. The process can realize the rapid construction and development of the application by utilizing the management of the business function module, and can improve the development efficiency. In addition, the dependency relationship information among the target business function modules can be visually displayed, the construction logic of the target business function modules can be intuitively known, and the visualization degree is higher.
Further, an embodiment of the present invention provides another optional module construction method, as shown in fig. 3, where the module construction method includes:
s301, determining a first service function module corresponding to each service scene, and marking service use information corresponding to the first service function module;
s302, according to the service use information corresponding to the first service function module, an initial project of a second service function module is set up through a scaffold;
s303, executing development operation on the second service function module in the initial engineering of the second service function module to obtain the second service function module;
s304, storing a first service function module and a second service function module which have corresponding relations by using a service function module management system;
s305, under the condition that a construction instruction for indicating the construction of the application by using the service function module is received, acquiring construction conditions carried by the construction instruction;
s306, selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction;
s307, acquiring a function packet and version information corresponding to the target service function module;
s308, according to the function package and the version information, packaging and deploying the target service function module, and constructing and generating an application;
s309, obtaining module information of the target service function module, wherein the module information at least comprises module configuration information;
s310, displaying dependency relationship information among target business function modules for constructing the application and module information of each target business function module;
s311, under the condition of starting the application, calling a database instruction operation corresponding to the target service function module;
s312, in the running process of the application, when an adjustment instruction for instructing to adjust the module configuration information of the target service function module is detected, adjusting the module configuration information of the target service function module according to the adjustment instruction.
As an optional implementation manner, the splitting the service function module into the first service function module and the second service function module having a corresponding relationship according to the service scenario may include the following steps:
s1, determining a first service function module corresponding to each service scene, and marking service use information corresponding to the first service function module;
s2, according to the service use information corresponding to the first service function module, building an initial project of a second service function module through a scaffold;
and S3, executing the development operation of the second service function module in the initial engineering of the second service function module to obtain the second service function module.
In the embodiment of the present invention, the service usage information may be a usage corresponding to the service scenario, and the service scenario may be one or multiple, which is not limited in the embodiment of the present invention. The first service function module can be determined and classified directly according to the service scene, and the second service function module can be developed by building the initial engineering of the second service function module through a scaffold according to the service use information of the first service function module. The scaffold is used for building a framework for application and development, and specifically, the building of the initial engineering of the second business function module can be realized by adopting a scaffold tool. After the initial project of the second service function module is built, the development operation of the second service function module can be executed in the initial project, so as to obtain the second service function module. Optionally, after the first service function module and the second service function module are obtained, the first service function module and the second service function module may be released to a service function module market, the number of the service function modules may be continuously expanded in the service function module market, and the service function modules in the service function module market may be used for software development by recombination.
As an optional implementation manner, after the generating application is built by using the target business function module, the following steps may be further performed: and under the condition of starting the application, calling a database instruction operation corresponding to the target service function module.
In the embodiment of the present invention, the database instruction operation is an instruction operation triggered in the database corresponding to the target service function module, and may include a data definition language and a data manipulation language, where the data definition language may be used to perform operations such as creating a database object and managing a data table in the database corresponding to the target service function module, and the data manipulation language is used to perform operations such as adding, deleting, and modifying data in the database corresponding to the target service function module. The process can automatically call database instruction operation related to the service function module when the application is started, the database instruction operation does not need to be manually executed, and the automation degree is higher.
As an optional implementation manner, after the generating application is built by using the target business function module, the following steps may be further performed: and in the application running process, under the condition that an adjusting instruction for indicating the adjustment of the module configuration information of the target service function module is detected, adjusting the module configuration information of the target service function module according to the adjusting instruction.
In the embodiment of the invention, the adjusting instruction is an instruction for indicating module configuration information of the target service function module to be adjusted. For example, a value of a certain service parameter in the target service function module may be modified, and the specific adjustment manner is not limited in the embodiment of the present invention. In the running process of the application, the module configuration information of the target service function module for dynamically adjusting and constructing the application is supported, and the real-time adjustment of the service logic is realized.
Referring to fig. 4, fig. 4 is a schematic diagram of an optional module construction method disclosed in the embodiment of the present invention, and as shown in fig. 4, in a process of implementing application development by module construction, a target service function module may be selected from service function modules 401 first. The service function module 401 may include the first service function module and the second service function module, and specifically may be modules module1.v1, module2.v2, module3.v1, module4.v2, and module en.v1 in the figure. The target business function module can be selected from the first business function module and the second business function module according to the requirement of business development. Further, the packaging deployment operation 402 may be executed, specifically, the function package and version information corresponding to the target service function module may be obtained, and the function package and version information corresponding to the target service function module may be selected in a function package market, where the function package and the version corresponding to each service function module are stored in the function market. And merging and packaging the hooked function packages and versions, deploying instance information of the application, filling and uploading the instance information, executing deployment operation, and finally realizing the development of the application. Optionally, after the deployment operation is executed, the constructed and developed application and the target service function module may be uploaded to the service function module management control system, so that the service function module management control system manages the application and constructs the target service function module of the application.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating development of an optional second service function module according to an embodiment of the present invention, and as shown in fig. 5, the following steps may be performed to develop the second service function module:
501, generating a service function module initial project through a scaffold;
502, developing business function module business;
503, issuing service function module.
In the embodiment of the invention, the scaffold is used for building a framework for application and development, and specifically, the building of the initial engineering of the second business function module can be realized by adopting a scaffold tool. After the initial project of the second service function module is built, the development operation of the second service function module can be executed in the initial project, so as to obtain the second service function module.
Referring to fig. 6, fig. 6 is a schematic diagram of another optional module construction method disclosed in the embodiment of the present invention, and as shown in fig. 6, the method may perform the following steps:
601, selecting a service function module;
602, constructing an application;
603, deployment and operation;
and 604, reporting the information of the service function module.
In the embodiment of the invention, the service function modules required to be used in the development can be selected firstly, then the service function modules are utilized to construct the application, and the packing and deployment operations are executed, so that the deployment and operation of the service function modules are realized, the development of the application is finally realized, and the corresponding service requirements can be realized by running the application. Finally, the information of the service function module developed this time can be reported to the service function module management system, so that the service function module management system manages the corresponding relationship between the application and the module, the dependency relationship between the modules, the hierarchical corresponding relationship between the modules, and the like.
For example, a service function module management system may be preset to manage each service function module, where the service function module may be split according to one or more service scenarios and divided into a first service function module and a second service function module having a hierarchical relationship. The first service function module is used for correspondingly storing service usage information for explaining the service usage suitable for the first service function module. And under the service purpose suitable for the first service function module, a second service function module is built and developed through a scaffold. Optionally, the first service function module and the second service function module may be released to a service function module market, specifically, source codes of the first service function module and the second service function module may be uploaded, and the service function module market may obtain files, such as a description file, a configuration item, an application program interface, and a data transmission object, of the service function module through scanning and analyzing the source codes. Further optionally, the business function module market may synchronize the obtained file with a business function module management system, so that the business function module management system manages the first business function module and the second business function module having a corresponding relationship, and manages the file corresponding to the business function module. Under the condition that application development is needed, target services can be selected as required to be used as functional modules to construct applications, and the applications are packaged and deployed. When the application is started, the description file, the configuration item, the application program interface, the data transmission object and other files for constructing the target service function module of the application can be automatically reported. Furthermore, the service function module management system can manage the relationship between the application and the service function modules for constructing the application, the dependency relationship between the service function modules, the description files, configuration items, application program interfaces, data transmission objects and other files of the service function modules. In the process, the expansion and multiplexing of the service function module can be realized by adjusting the configuration items of the service function module, so that the probability of repeated development is reduced, and the development efficiency is improved. Furthermore, the development standard specification of the configuration item of the service function module can be established through the definition rule of the same configuration item, so that the same management of the service function module is facilitated. Furthermore, the business function module can be selected according to the construction condition of the construction instruction and the requirement to construct the application, so that flexible development is realized. Furthermore, the database instruction operation can be automatically executed when the application is started, the database instruction operation does not need to be manually executed, and the automation degree is higher. Furthermore, module configuration information and the like of the business function module for constructing the application can be displayed, and the visualization degree is higher. Furthermore, the configuration item options of the service function module can be dynamically adjusted in the application running process, so that the real-time adjustment of the service logic is realized.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiments of the present invention, there is also provided a module construction apparatus for implementing the above module construction method. As shown in fig. 7, the apparatus includes:
an obtaining unit 701, configured to obtain a construction condition carried by a construction instruction when the construction instruction for instructing to construct an application by using a service function module is received;
a selecting unit 702, configured to select a target service function module from the first service function module and the second service function module, where the target service function module is a module that meets a construction condition carried by a construction instruction;
a constructing unit 703, configured to construct an application using the target service function module.
In the embodiment of the present invention, the construction instruction is an instruction for instructing to construct an application using the service function module, where the number of the service function modules may be multiple. The business function module is used for solving the combination of application program interfaces, data transmission objects, software configuration items, databases, codes and the like in one or more related business scenes. In the case of application development, a plurality of business function modules can be used for superposition deployment to construct an application. Under the condition that the construction instruction is received, the construction condition carried by the construction instruction may be obtained, where the construction condition is a selection condition for selecting a service function module by the application being constructed this time, and the construction condition may include, but is not limited to, service use information of the application to be constructed this time, function module tag information, and the like. Further, a target service function module can be selected from the first service function module and the second service function module, and the target service function module is a module meeting the construction condition. The first service function module and the second service function module may be pre-stored service function modules, and the relationship between the first service function module and the second service function module may be a hierarchical inclusion relationship, for example, the first service function module may be a primary service function module, the second service function module may be a secondary service function module, the primary service function module may be a module for dividing service purposes according to different service scenes, each service purpose may correspond to one primary service function module, and the secondary service function module corresponding to the primary service function module is at least one service function module conforming to the service purpose constructed on the basis of the service purpose corresponding to the primary service function module. The target service function module may be selected from the first service function module and the second service function module, and the number of the target service function modules may be multiple. Further, the application can be constructed using a plurality of target business function modules.
In the embodiment of the invention, under the condition of receiving a construction instruction for indicating the construction of an application by using a service function module, construction conditions carried by the construction instruction are obtained; selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with construction conditions carried by a construction instruction; and constructing the application by utilizing the target business function module. The process can realize the rapid construction and development of the application by utilizing the management of the business function module, and can improve the development efficiency.
As an optional implementation, the apparatus may further include: a splitting unit, configured to split a service function module into a first service function module and a second service function module having a corresponding relationship according to a service scenario before the construction condition carried by the construction instruction is obtained; and the storage unit is used for storing the first service function module and the second service function module which have corresponding relations by using a service function module management system.
In the embodiment of the present invention, the service function module may be split into the first service function module and the second service function module having a corresponding relationship according to a service scenario, where the service scenario may be one or multiple, and the embodiment of the present invention is not limited in this embodiment. And the first service function module and the second service function module having a corresponding relationship can be stored by using the service function module management system. The service function module management system is configured to manage a first service function module and a second service function module, and in addition to managing a correspondence between the first service function module and the second service function module, may also be configured to manage module information corresponding to each service function module, where the module information may include, but is not limited to, a description file, module configuration information, an application program interface of the module, a data transmission object of the module, and other information.
As an optional implementation, the splitting unit may include: a determining subunit, configured to determine the first service function module corresponding to each service scenario, and mark service usage information corresponding to the first service function module; a building subunit, configured to build, according to the service usage information corresponding to the first service function module, an initial project of the second service function module through a scaffold; and the development subunit is used for executing the development operation on the second service function module in the initial engineering of the second service function module to obtain the second service function module.
As an alternative embodiment, the building unit may include: an obtaining subunit, configured to obtain a function package and version information corresponding to the target service function module; and the construction subunit is used for performing packaging deployment operation on the target service function module according to the function package and the version information to construct and generate the application.
In the embodiment of the present invention, the manner of obtaining the function packet corresponding to the target service function module may specifically be: acquiring a function packet corresponding to a target service function module in a function packet management system, wherein the function packet management system is used for storing each service function module and the function packet corresponding to the service function module; the manner of obtaining the version information corresponding to the target service function module may specifically be: and acquiring version information corresponding to the target service function modules in a version management system, wherein the version management system is used for managing the version information of the function package of each target service function module. Or, the service function module, the function package and the version information having the corresponding relationship may be stored in advance, and the function package and the version information corresponding to the target service function module may be directly queried. Furthermore, the target service function module can be packaged and deployed according to the function package and the version information, and a generated application is constructed. Specifically, the function package and the version information may be merged and packaged, deployment information may be acquired, deployment operations may be executed, and a generated application may be constructed.
As an optional implementation manner, the obtaining unit is further configured to obtain module information of the target service function module after the application is built by using the target service function module, where the module information at least includes module configuration information; the above-mentioned device still includes: and the display unit is used for displaying the dependency relationship information among the target business function modules for constructing the application and the module information of each target business function module.
In the embodiment of the present invention, the module configuration information may be a configuration item file for the target service function module, where the configuration item file is used to configure parameters of the target service function module, such as a service parameter, a service discovery mechanism extension point, and an event message. The expansion development of the business function module can be realized by setting the module configuration information, the reusability of the business function module is improved, and the definition rule of the module configuration information can be set, so that the development of the business function module follows the rule to carry out standardized development, and the expansion and the reuse are more convenient. Further, the information of the dependency relationship between the target business function modules can be displayed, and the dependency relationship can include, but is not limited to, a function call relationship in the code, and the like, and is used for representing the code interdependence between the modules. Therefore, the visualization of the target business function module of the constructed application is realized.
As an optional implementation, the apparatus may further include: an adjusting unit, configured to, after the application is built by using the target service function module, adjust the module configuration information of the target service function module according to an adjustment instruction when the adjustment instruction for instructing to adjust the module configuration information of the target service function module is detected in the running process of the application.
As an optional implementation, the apparatus may further include: and the calling unit is used for calling the database instruction operation corresponding to the target business function module under the condition of starting the application after the application is constructed by using the target business function module.
In the embodiment of the present invention, the database instruction operation is an instruction operation triggered in the database corresponding to the target service function module, and may include a data definition language and a data manipulation language, where the data definition language may be used to perform operations such as creating a database object and managing a data table in the database corresponding to the target service function module, and the data manipulation language is used to perform operations such as adding, deleting, and modifying data in the database corresponding to the target service function module. The process can automatically call database instruction operation related to the service function module when the application is started, the database instruction operation does not need to be manually executed, and the automation degree is higher.
By implementing the embodiment, the expansion and multiplexing of the business function module can be realized by adjusting the configuration items of the business function module, thereby reducing the probability of repeated development and improving the development efficiency. Furthermore, the development standard specification of the configuration item of the service function module can be established through the definition rule of the same configuration item, so that the same management of the service function module is facilitated. Furthermore, the business function module can be selected according to the construction condition of the construction instruction and the requirement to construct the application, so that flexible development is realized. Furthermore, the database instruction operation can be automatically executed when the application is started, the database instruction operation does not need to be manually executed, and the automation degree is higher. Furthermore, module configuration information and the like of the business function module for constructing the application can be displayed, and the visualization degree is higher. Furthermore, the configuration item options of the service function module can be dynamically adjusted in the application running process, so that the real-time adjustment of the service logic is realized.
According to a further aspect of the embodiments of the present invention, there is also provided an electronic device for implementing the module building method, as shown in fig. 8, the electronic device includes a memory 802 and a processor 804, the memory 802 stores a computer program, and the processor 804 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, under the condition that a construction instruction for indicating the construction of the application by using the service function module is received, acquiring construction conditions carried by the construction instruction;
s2, selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with the construction conditions carried by the construction instruction;
and S3, constructing the application by using the target business function module.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 8 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 8 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
The memory 802 may be used to store software programs and modules, such as program instructions/modules corresponding to the module construction method and apparatus in the embodiments of the present invention, and the processor 804 executes various functional applications and data processing by running the software programs and modules stored in the memory 802, so as to implement the module construction method described above. The memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 802 can further include memory located remotely from the processor 804, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 802 may be used for storing information such as operation instructions, but is not limited thereto. As an example, as shown in fig. 8, the memory 802 may include, but is not limited to, an obtaining unit 701, a selecting unit 702, and a constructing unit 703 in the module constructing apparatus. In addition, other module units in the module construction device may also be included, but are not limited to, and are not described in detail in this example.
Optionally, the transmitting device 806 is configured to receive or transmit data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 806 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a local area Network. In one example, the transmission device 806 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 808, configured to display the target service function modules and module configuration information of each target service function module; and a connection bus 810 for connecting the respective module parts in the above-described electronic apparatus.
According to a further aspect of embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, under the condition that a construction instruction for indicating the construction of the application by using the service function module is received, acquiring construction conditions carried by the construction instruction;
s2, selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which accords with the construction conditions carried by the construction instruction;
and S3, constructing the application by using the target business function module.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method of building a module, comprising:
under the condition that a construction instruction for indicating that an application is constructed by using a service function module is received, acquiring construction conditions carried by the construction instruction;
selecting a target service function module from the first service function module and the second service function module, wherein the target service function module is a module which meets the construction condition carried by the construction instruction;
and constructing an application by using the target business function module.
2. The method according to claim 1, wherein before the obtaining the build condition carried by the build instruction, further comprising:
splitting the service function module into a first service function module and a second service function module which have corresponding relations according to a service scene;
and storing the first service function module and the second service function module which have corresponding relations by using a service function module management system.
3. The method according to claim 2, wherein said splitting a service function module into the first service function module and the second service function module having a corresponding relationship according to a service scenario comprises:
determining the first service function module corresponding to each service scene, and marking service use information corresponding to the first service function module;
according to the service use information corresponding to the first service function module, an initial project of the second service function module is set up through a scaffold;
and executing the development operation of the second service function module in the initial engineering of the second service function module to obtain the second service function module.
4. The method of claim 1, wherein the building an application using the target business function module comprises:
acquiring a function packet and version information corresponding to the target service function module;
and according to the function package and the version information, performing packaging deployment operation on the target service function module to construct and generate an application.
5. The method according to claim 1, further comprising, after said building an application using said target business function module:
obtaining module information of the target service function module, wherein the module information at least comprises module configuration information;
and displaying the dependency relationship information among the target business function modules for constructing the application and the module information of each target business function module.
6. The method according to claim 1, further comprising, after said building an application using said target business function module:
and in the application running process, under the condition that an adjusting instruction for indicating to adjust the module configuration information of the target service function module is detected, adjusting the module configuration information of the target service function module according to the adjusting instruction.
7. The method according to any one of claims 1 to 6, further comprising, after said building an application using said target business function module:
and under the condition of starting the application, calling a database instruction operation corresponding to the target service function module.
8. A module building apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a construction condition carried by a construction instruction under the condition of receiving the construction instruction for indicating the construction of an application by using a service function module;
a selecting unit, configured to select a target service function module from the first service function module and the second service function module, where the target service function module is a module that meets the construction condition carried by the construction instruction;
and the construction unit is used for constructing the application by utilizing the target business function module.
9. A computer-readable storage medium comprising a stored program, wherein the program when executed performs the method of any of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202011091180.0A 2020-10-13 2020-10-13 Module construction method, module construction device, storage medium and electronic device Pending CN112162732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011091180.0A CN112162732A (en) 2020-10-13 2020-10-13 Module construction method, module construction device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011091180.0A CN112162732A (en) 2020-10-13 2020-10-13 Module construction method, module construction device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112162732A true CN112162732A (en) 2021-01-01

Family

ID=73866755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011091180.0A Pending CN112162732A (en) 2020-10-13 2020-10-13 Module construction method, module construction device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112162732A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115454391A (en) * 2022-11-11 2022-12-09 零氪科技(北京)有限公司 Client, client construction method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307858A1 (en) * 2010-06-14 2011-12-15 Microsoft Corporation Pre-compiling hosted managed code
CN110399119A (en) * 2019-06-18 2019-11-01 五八有限公司 A kind of modularization construction method, device, electronic equipment and storage medium
CN111258571A (en) * 2020-02-11 2020-06-09 达闼科技(北京)有限公司 Robot application program development method, system, device and storage medium
CN111708521A (en) * 2020-06-18 2020-09-25 北京智芯微电子科技有限公司 Software construction method and software construction device for intelligent terminal of power system distribution room

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110307858A1 (en) * 2010-06-14 2011-12-15 Microsoft Corporation Pre-compiling hosted managed code
CN110399119A (en) * 2019-06-18 2019-11-01 五八有限公司 A kind of modularization construction method, device, electronic equipment and storage medium
CN111258571A (en) * 2020-02-11 2020-06-09 达闼科技(北京)有限公司 Robot application program development method, system, device and storage medium
CN111708521A (en) * 2020-06-18 2020-09-25 北京智芯微电子科技有限公司 Software construction method and software construction device for intelligent terminal of power system distribution room

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115454391A (en) * 2022-11-11 2022-12-09 零氪科技(北京)有限公司 Client, client construction method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111367506B (en) Data generation method, data generation device, storage medium and electronic device
CN107273140B (en) Scaffold manages method, apparatus and electronic equipment
CN105827428A (en) Management method and device of asset information
CN105338011A (en) Cloud-service-based system configuration method and apparatus, and cloud server
CN111259037A (en) Data query method and device based on rule configuration, storage medium and terminal
CN109656572A (en) Packaging method and device, computer equipment, the storage medium of installation kit
CN108156095B (en) Resource determination method and device and NFVO
CN113434146A (en) Code compiling method, device, storage medium and electronic device
CN113312083A (en) Application generation method, device and equipment
CN111984248B (en) Page editing method and device, storage medium and electronic device
CN112162732A (en) Module construction method, module construction device, storage medium and electronic device
CN114398115A (en) Visual pipeline generation method and device, storage medium and electronic equipment
CN104243202A (en) Data processing method and device of parameter configuration and parameter configuration method and device
CN112882794A (en) pod capacity expansion method, device, node and storage medium
CN107577822A (en) A kind of method of data synchronization, data synchronization unit and mobile terminal
CN104581695A (en) Mobile terminal configuration method and system
CN114461399B (en) Resource allocation method and device, storage medium and electronic device
CN109005549B (en) Base station debugging method, device, system, computer equipment and readable storage medium
CN113268272B (en) Application delivery method, device and system based on private cloud
CN113434190B (en) Data processing method and device, storage medium and electronic equipment
CN114675872B (en) Data processing method, device, equipment and storage medium for application program
US8374593B2 (en) Method of providing mobile application
CN110321335B (en) Modeling data downloading method and device, electronic equipment and computer storage medium
CN113835827A (en) Application deployment method and device based on container Docker and electronic equipment
CN112988176A (en) Channel package generation method and device, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210101

RJ01 Rejection of invention patent application after publication