[go: up one dir, main page]

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
configuring
script
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 OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

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

Abstract

本申请提供了一种项目组织结构生成方法、装置及可读存储介质,其中方法包括:通过脚本扩展工具开发并配置框架生成程序;基于所述框架生成程序,配置模板和包信息;执行脚本程序,生成项目组织结构中的基础程序代码。通过开发配置满足业务需求的框架程序,可以快速逆向生成各层基础组织结构,从而能有效约束开发规范,在简约项目组织结构的同时极大加快整体开发进度。

Figure 202111656119

The present application provides a project organization structure generation method, device and readable storage medium, wherein the method includes: developing and configuring a framework generation program through a script extension tool; generating a program based on the framework, configuring templates and package information; executing the script program , which generates the basic program code in the project organization structure. By developing and configuring a framework program that meets business needs, the basic organizational structure of each layer can be quickly generated in reverse, which can effectively constrain the development specifications, and greatly speed up the overall development progress while simplifying the project organizational structure.

Figure 202111656119

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)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170168783A1 (en) * 2015-12-10 2017-06-15 Sap Se Generating logic with scripting language in software as a service enterprise resource planning
CN110825369A (en) * 2019-11-07 2020-02-21 四川长虹电器股份有限公司 Method for automatically generating codes based on java language
CN111966340A (en) * 2020-08-20 2020-11-20 杭州安恒信息技术股份有限公司 Code generation method, device, equipment and medium based on Mybatis framework
CN113805877A (en) * 2021-09-26 2021-12-17 工银科技有限公司 Project engineering construction method and device based on IDEA plug-in

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170168783A1 (en) * 2015-12-10 2017-06-15 Sap Se Generating logic with scripting language in software as a service enterprise resource planning
CN110825369A (en) * 2019-11-07 2020-02-21 四川长虹电器股份有限公司 Method for automatically generating codes based on java language
CN111966340A (en) * 2020-08-20 2020-11-20 杭州安恒信息技术股份有限公司 Code generation method, device, equipment and medium based on Mybatis framework
CN113805877A (en) * 2021-09-26 2021-12-17 工银科技有限公司 Project engineering construction method and device based on IDEA plug-in

Similar Documents

Publication Publication Date Title
CN110489116B (en) Page rendering method and device and computer storage medium
JP4812337B2 (en) Method and apparatus for generating a form using a form type
WO1997048033A2 (en) Data representation for mixed-language program development
CN114327776A (en) Debugging method, debugging equipment and debugging system for intelligent contract
WO2024099176A1 (en) Design component migration method and related device
CN112084446A (en) Webpage editing method, editor, electronic equipment and readable storage medium
CN116089275A (en) Database testing method, database system, electronic equipment and storage medium
US9594548B2 (en) Dynamically updating templated applications
CN106815022A (en) A kind of general UI interface creating methods and device based on tree data structure
CN116774993A (en) Code conversion method, device and storage medium
CN113177292B (en) Universal BIM secondary development implementation method and device
CN111240677B (en) Method, device and computer storage medium for generating robot visual interface
CN115016769A (en) Construction method and application development method of scaffolding based on domain-driven design
CN114327941A (en) A service providing 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
CN111443913A (en) Interactive animation configuration method and device, storage medium and electronic equipment
CN106446301A (en) Customized table scene page generating method and system
CN110018824A (en) A kind of method and apparatus that domain object is converted into view object
CN103186374B (en) A kind of method that software system function divides and combines
CN115080028A (en) Method, device, computing equipment and storage medium for processing business data
CN111309290A (en) A Flexible and Scalable Business Rule Matrix System
KR20210073901A (en) Method and system for generating script forcamera effect
CN117130946B (en) A test scenario generation method, device, electronic device and readable storage medium
CN112380829B (en) A document generation method and device

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