Disclosure of Invention
The invention aims to provide a project organization structure generation method, a project organization structure generation device and a readable storage medium, wherein the project organization structure generation method and the project organization structure generation device can quickly and regularly generate each layer of basic organization structure.
The following presents a simplified summary of one or more aspects in order to provide a basic understanding of such aspects. This summary is not an extensive overview of all contemplated aspects, and is intended to neither identify key or critical elements of all aspects nor delineate the scope of any or all aspects. Its sole purpose is to present some concepts of one or more aspects in a simplified form as a prelude to the more detailed description that is presented later.
According to a first aspect of the present invention, there is provided a project organization structure generation method, comprising: developing and configuring a framework generation program through a script extension tool; configuring a template and package information based on the framework generation program; and executing the script program to generate basic program codes in the project organization structure.
In one embodiment, the script extension tool develops software based on idea.
In one embodiment, the developing and configuring the framework generation program through the script extension tool includes: opening a database visualization window in idea, and connecting a database corresponding to the project; the scripting language is written in script extensions.
In one embodiment, the configuration template and package information include:
configuring a script template for realizing interface information by a service layer;
configuring a script template of a persistent layer for realizing the information of a general query component library;
configuring entity type formatting attribute information and attribute description;
and configuring an information script template inherited by the basic attribute class.
In an embodiment, the configuration template and the package information further include configuration package name information.
In one embodiment, the configuration template and packet information further include a configuration export packet address.
In an embodiment, the framework generation program is implemented based on pojos.
In one embodiment, the script program is a general pojos.
According to a second aspect of the present invention, there is provided a service development apparatus comprising a memory and a processor;
the memory for storing a computer program;
the processor is configured to implement any one of the above-mentioned project organization structure generation methods when the computer program is executed.
According to a third aspect of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the project organization structure generation method of any one of the above.
The embodiment of the invention has the beneficial effects that: the framework program meeting the business requirements can be developed and configured, and each layer of basic organization structure can be rapidly and reversely generated, so that the development specification can be effectively restricted, and the overall development progress is greatly accelerated while the project organization structure is simplified.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. It is noted that the aspects described below in connection with the figures and the specific embodiments are only exemplary and should not be construed as imposing any limitation on the scope of the present invention.
As shown in fig. 1, an embodiment of the present application provides a project organization structure generation method, including:
s100, developing and configuring a framework generation program through a script extension tool;
in a possible embodiment, the script extension item tool in S100 is based on idea development software, and a framework generation program (which mainly sets information such as templates of each layer and positions after the templates are generated) meeting business requirements is developed and configured through the script extension tool supported by idea, so that a large number of multiplexing functions can be integrated into a supported base class under the support of a generic model, and an organization structure in a hierarchical form can be quickly generated.
S100, developing and configuring a framework generation program through a script extension tool, specifically including:
s110, opening a database visualization window in idea, and connecting a database corresponding to the project through an idea DataBase connection module;
and S120, writing a script language in the script extension item.
S200, generating a program based on a frame, and configuring a template and package information;
in a possible embodiment, the configuration module comprises: configuring a script template for realizing interface information by a service layer; configuring a script template of a persistent layer for realizing the information of a general query component library; configuring entity type formatting attribute information and attribute description; and configuring an information script template inherited by the basic attribute class.
In step S200, it is necessary to configure package name information of the reverse generation template program and select a generated package address.
S300, executing the script program and generating a basic program code in the project organization structure.
In a possible embodiment the framework generator is implemented based on pojos. Fig. 2 shows the flow of the method implemented based on idea development software and pojoos.
It is to be readily understood that the embodiments of the present application also provide an apparatus for generating an organization structure of a project, including a memory and a processor.
Wherein the memory is operable to store an instruction, a program, code, a set of codes, or a set of instructions. The memory may include a storage program area and a storage data area, wherein the storage program area may store instructions for implementing an operating system, instructions for at least one function, and instructions for implementing the above-described project organization structure generation method, and the like; the storage data area may store data and the like involved in the above-described project organization structure generation method.
A processor may include one or more processing cores. The processor executes or executes the instructions, programs, code sets, or instruction sets stored in the memory, calls data stored in the memory, performs various functions of the present application, and processes the data. The processor may be at least one of an application specific integrated circuit, a digital signal processor, a digital signal processing device, a programmable logic device, a field programmable gate array, a central processing unit, a controller, a microcontroller, and a microprocessor. It is understood that the electronic devices for implementing the above processor functions may be other devices, and the embodiments of the present application are not limited in particular.
The project organization structure generation device according to the embodiment of the present application may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as an independent product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Accordingly, the embodiment of the present invention further provides a computer storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the method for generating the project organization structure of the embodiment of the present invention is implemented.
In summary, according to the project organization structure generation method provided by the application, the framework programs meeting the business requirements are developed and configured, and the basic organization structures of each layer can be rapidly and reversely generated, so that the development specifications can be effectively constrained, and the overall development progress is greatly accelerated while the project organization structure is simplified.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosure is provided to enable any person skilled in the art to make or use the disclosure. Various modifications to the disclosure will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other variations without departing from the spirit or scope of the disclosure. Thus, the disclosure is not intended to be limited to the examples and designs described herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The above description is only a preferred example of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present application.