CN114217778A - Project organization structure generation method and device and readable storage medium - Google Patents

Project organization structure generation method and device and readable storage medium Download PDF

Info

Publication number
CN114217778A
CN114217778A CN202111656119.0A CN202111656119A CN114217778A CN 114217778 A CN114217778 A CN 114217778A CN 202111656119 A CN202111656119 A CN 202111656119A CN 114217778 A CN114217778 A CN 114217778A
Authority
CN
China
Prior art keywords
organization structure
project organization
program
script
generation method
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
CN202111656119.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.)
Suzhou Jinxi Intelligent Technology Co ltd
Original Assignee
Suzhou Jinxi Intelligent 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 Suzhou Jinxi Intelligent Technology Co ltd filed Critical Suzhou Jinxi Intelligent Technology Co ltd
Priority to CN202111656119.0A priority Critical patent/CN114217778A/en
Publication of CN114217778A publication Critical patent/CN114217778A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application provides a project organization structure generation method, a project organization structure generation device and a readable storage medium, wherein the method comprises the following steps: 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. 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.

Description

Project organization structure generation method and device and readable storage medium
Technical Field
The present invention relates to software engineering technologies, and in particular, to a method and an apparatus for generating a project organization structure, and a readable storage medium.
Background
In daily project development, taking a springboot project as an example, a business control layer, a business layer and a persistence layer are generally required to be built around a layered development idea in the early stage, and an entity part runs through the whole development hierarchy. The traditional reverse engineering mode often generates a persistent layer organization around configuration, for example, mybatisgenerator components, and the mode does not support generalization through configuration, so that a large amount of hard-coded redundant codes are generated in an entity class and a mapper configuration file, and the cost is high in later maintenance.
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.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
The above features and advantages of the present disclosure will be better understood upon reading the detailed description of embodiments of the disclosure in conjunction with the following drawings. In the drawings, components are not necessarily drawn to scale, and components having similar relative characteristics or features may have the same or similar reference numerals.
FIG. 1 is a flow chart of an embodiment of the method of the present application;
fig. 2 is a flow chart of another method embodiment of the present application.
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.

Claims (10)

1. A method for generating a project organization structure, 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.
2. The project organizational structure generation method of claim 1 wherein the script extension project tool is based on idea development software.
3. The project organization structure generation method according to claim 2, wherein said developing and configuring a framework generator by a script extension tool comprises:
opening a database visualization window in idea, and connecting a database corresponding to the project;
the scripting language is written in script extensions.
4. The project organization structure generation method according to claim 1, characterized in that said configuration template and package information comprise:
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
and configuring an information script template inherited by the basic attribute class.
5. The project organization structure generation method according to claim 4, characterized in that said configuration template and package information further comprise configuration package name information.
6. The project organization structure generation method according to claim 5, characterized in that said configuration template and package information further comprise a configuration export package address.
7. The project organization structure generation method according to claim 2, characterized in that the framework generation program is implemented based on pojos.
8. The project organization structure generation method according to claim 7, characterized in that said script program is a Generation POJOs.
9. A service development apparatus comprising a memory and a processor;
the memory for storing a computer program;
the processor, when executing the computer program, is configured to implement the project organization structure generation method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when executed by a processor, implements the project organization structure generation method according to any one of claims 1 to 8.
CN202111656119.0A 2021-12-30 2021-12-30 Project organization structure generation method and device and readable storage medium Pending CN114217778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111656119.0A CN114217778A (en) 2021-12-30 2021-12-30 Project organization structure generation method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111656119.0A CN114217778A (en) 2021-12-30 2021-12-30 Project organization structure generation method and device and readable storage medium

Publications (1)

Publication Number Publication Date
CN114217778A true CN114217778A (en) 2022-03-22

Family

ID=80707197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111656119.0A Pending CN114217778A (en) 2021-12-30 2021-12-30 Project organization structure generation method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN114217778A (en)

Similar Documents

Publication Publication Date Title
CN110489116B (en) Page rendering method and device and computer storage medium
US6067413A (en) Data representation for mixed-language program development
JP4812337B2 (en) Method and apparatus for generating a form using a form type
CN110058856A (en) Page configuration method and device
US9594548B2 (en) Dynamically updating templated applications
CN111290778B (en) AI model packaging method, platform and electronic equipment
CN106201481A (en) Assembly management method and apparatus in application development system
CN107016029B (en) Method, device and system for processing service data
CN111506579B (en) Method, program and equipment for generating intelligent contract code
CN115421786B (en) Design component migration method and related equipment
CN107391529B (en) Method and device for realizing Object Relation Mapping (ORM)
CN106776779B (en) Method for generating entity file by JSON data based on Mac platform
CN104156209B (en) Cross-platform interface modeling method and device
CN114217778A (en) Project organization structure generation method and device and readable storage medium
US7716653B2 (en) Configurable importers and resource writers for converting data into another format
CN111240677B (en) Method and device for generating visual interface of robot and computer storage medium
CN111309290B (en) Flexible and extensible business rule matrix system
CN112749152A (en) Data migration method and device of intelligent contract and storage medium
CN111443913A (en) Interactive animation configuration method and device, storage medium and electronic equipment
CN112083952A (en) Spring architecture-based exception handling method and system
CN116700842B (en) Data object reading and writing method and device, computing equipment and storage medium
CN115964075B (en) Application export import method and device, computer equipment and storage medium
JP7021990B2 (en) Source creator
CN105224334B (en) Quickly generate the method and system of entity class
JPH04172529A (en) Automatic program generating system by data oriented software parts

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