CN113407164A - Software code generation method and system based on mind map and tree structure technology - Google Patents

Software code generation method and system based on mind map and tree structure technology Download PDF

Info

Publication number
CN113407164A
CN113407164A CN202110684129.9A CN202110684129A CN113407164A CN 113407164 A CN113407164 A CN 113407164A CN 202110684129 A CN202110684129 A CN 202110684129A CN 113407164 A CN113407164 A CN 113407164A
Authority
CN
China
Prior art keywords
user
template
interface
node
database
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.)
Granted
Application number
CN202110684129.9A
Other languages
Chinese (zh)
Other versions
CN113407164B (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110684129.9A priority Critical patent/CN113407164B/en
Publication of CN113407164A publication Critical patent/CN113407164A/en
Application granted granted Critical
Publication of CN113407164B publication Critical patent/CN113407164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • G06F8/4441Reducing the execution time required by the program code

Landscapes

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

Abstract

The invention discloses a software code generation method and system based on a mind map and tree structure technology, and relates to the technical field of software development. The user end organizes the required content into tree structure and inputs it into the system, and several functions present the object by means of thinking guide graph, and then according to the object create template, it can select former template. Which are the frequently used functions can also be set at the same time as the creation of the template. The content can be set, and the user can directly select and call the content for use when the user wants to use the function. And setting a workflow in each object node, and automatically importing a configuration template generation code prepared by combining a service workflow set by a user and a background server. All code components of the present invention do not have redundant code. Aiming at business requirements, the user can design software by himself by using the method and the system.

Description

Software code generation method and system based on mind map and tree structure technology
Technical Field
The invention belongs to the software development technology, and particularly relates to a method and a system for generating software codes based on a mind map and tree structure technology.
Background
Currently, software is a collection of computer data and instructions organized in a particular order. Generally, software is divided into system software, application software, and middleware between the two. Software does not include only computer programs that can run on a computer (computer is used herein in a broad sense) but documents related to such computer programs are also generally considered to be part of the software. Simply speaking, software is an aggregate of programs plus documents. And also broadly refers to management systems, ideological forms, ideological and political thoughts, laws and regulations, etc. in the social structure.
The code is a source file written by a programmer by using a language supported by the development tool; the code is a group of ordered arrangement of numbers or letters and is a symbol representing an objective entity and attributes thereof; the principles of code design include uniqueness, standardization and versatility, extensibility and stability, ease of recognition and memory, strive for shortness and format unification, and ease of modification.
With the rapid development of computer technology, various application software appears in our lives; the application software is generally produced by compiling and running corresponding codes, so that the generation of the codes is crucial to the production of the software.
Existing code generation methods generally fall into two broad categories: a passive code generation method and an active code generation method. In the passive code generation method, a visual guide mode is generally adopted to configure and generate partial codes, and then a software developer performs necessary editing and modification on the codes, so that the current generation method has low code generation efficiency.
As for the active code generation method, the prior art provides a software code generation method including the steps of:
editing a code template according to a user instruction;
acquiring configuration information of software according to software requirements;
converting the source code file into a code template object, and uploading the code template object to a code generator;
the code generator generates software code based on the software configuration information and the code template object. A
Furthermore, with the development of information technology, people can improve the management and processing efficiency of affairs by means of a software system. In order to meet the processing requirements of different transactions in different fields, corresponding software needs to be developed in a targeted manner. For example, in enterprise management, specialized procurement management software is required for procurement information, and specialized financial management software is required for financial data. Therefore, the demand for software development is very large.
In the software development process, the coding work of the software code occupies a large amount of work. In a conventional software code generation method, a programmer generates software codes according to a requirement document by using a software development tool. The background that the software development demand is large is small, and the traditional method can not meet the efficiency demand.
To solve the above problem, the prior art provides a software code generation method, which includes:
acquiring database information of software to be developed;
importing a data table into a code template engine according to the database information to generate metadata of the entity model;
acquiring a newly added entity method configured by the code template engine on the entity model;
and generating a code file of the software to be developed through the code template engine according to the newly added entity method and the metadata of the entity model.
After the generating, by the code template engine, the code file of the software to be developed according to the newly added entity method and the metadata of the entity model, the method further includes: and calling a code development tool, and loading the service codes of each system layer according to the calling relation of the service codes of each system layer.
After calling a code development tool and loading the service codes of each system layer according to the calling relation of the service codes of each system layer, the method further comprises the following steps:
acquiring a modification instruction of the service code through the code development tool;
and modifying the service code according to the modification instruction.
Through the above analysis, the problems and defects of the prior art are as follows:
(1) in the prior art, when software is developed, a component is called on a server, which module needs to be downloaded by which template, so that unsmooth information transmission among multiple modules is easily caused, codes need to be modified, the operation is complicated, and the working efficiency is reduced.
(2) The written code in the prior art needs to be refilled with writing information after being set, so that the efficiency of writing the code is low, and the more the code is written in the prior art, the slower the speed is.
(3) The code generation and generation tools in the prior art cannot be completely separated, and the effect on complex business logic in the arrangement of functions and interfaces is poor.
(4) The software generation system in the prior art has great difficulty in designing software by self for operators who cannot develop the software, and has poor practicability.
Disclosure of Invention
In order to overcome the problems in the related art, the disclosed embodiments of the present invention provide a method and system for generating software codes based on mind map and tree structure technology. The invention copies the contents of the previously written object, the current node and the node below the current node. For subsequent invocation. And the invention is completely decoupled from the generation tool. The technical scheme is as follows:
according to a first aspect of the disclosed embodiments of the present invention, there is provided a method for generating software codes based on mind map and tree structure technology, which is applied to a user side, the method for generating software codes based on mind map and tree structure technology comprising:
importing different columns created by the user side according to different contents into the thought guide graph, and acquiring an object of a thought guide graph interface; acquiring a corresponding template according to each object;
setting a workflow according to a certain node of a thought guide graph in a column, automatically importing a background server template, combining a business workflow generation code set by a user, taking a node object corresponding to the thought guide graph as a transmitted data form, and generating an approval interface according to an approval template; the examination and approval template is added with examination and approval information for the node object, and the examination and approval information is used for automatic allocation;
the realization of the complex method function, the user side draws a flow chart according to the business requirement; then generating a required code according to the flow chart;
and converting the commonly used function module into a database mode description and storing the database mode description into a database table, and directly generating the information of the database table into codes corresponding to different function modules by the user side according to the requirements of the different function modules.
In an embodiment of the present invention, the user creates different columns according to different contents, and currently, the method needs to perform:
acquiring a project name and a database creation project according to an input channel name (the project name is the whole project, the project name is the same as the database name, and a column refers to a certain module); for selecting different types, the background server judges whether the types are multi-user or not; if yes, the method is multi-user; if not, the user is a single user; and outputting different database tables;
and creating different columns according to the acquired project names and different contents displayed by the database creation projects.
In one embodiment of the invention, the objects of the mind map interface comprise a home page, a list page, a content page and an adding interface;
in the thinking guide graph acquiring interface, a user feels that functions and modules frequently used are arranged below a certain node and the node, and a mark is made, so that the system automatically stores the contents of the part of the node and the part below the node into another table. When other projects are created, the contents of the node and the contents below the node are copied and can be directly used without being created from the beginning. Time is saved.
In an embodiment of the present invention, the acquiring a corresponding template dynamic interface according to the acquired corresponding template, and placing the corresponding template dynamic interface into a column specifically includes:
(1) the user selects the label for translating the corresponding template into Chinese, or selects an interface module, or sets the interface module as the acquired corresponding template; the interface module is a template content prepared by the background server and an interface designed by a user;
(2) binding the displayed data by using the data displayed on the interface of the user side as a database field, and if the data is statistical, binding a calculator calculation formula and selecting corresponding detailed information and a problem critical value; the code will generate display statistics (different colors are used for indicating that the data has problems when the data is smaller than the critical value, so that the problem is convenient to find), and meanwhile, the detail of the statistics is generated;
(3) when the user side judges or selects, setting on a certain element, and judging or circularly generating the attribute tag on the node;
when a certain node needs to make judgment on selection or circulation, a display mode is set on the tree-shaped node of the interface, a corresponding frame is popped up after clicking is determined, and the content of the frame is different according to different selected contents. And if the selection box pops up: as shown in fig. 3.
The loop pattern in specifying the selected data source conditions is shown in fig. 4. The following data may be specified as the data that is circulated through which table.
(4) Importing required templates according to the style of a demand interface, setting an object and data to be counted by the object for each template, displaying the statistical data according to the set information, and displaying detailed contents of the set object;
(5) if the graph is selected, the user side extracts and displays the graph data information from the database by the selected and displayed field;
(6) selecting an interface to be displayed in a game, and selecting prepared left shift, right shift, upward shift and downward shift methods, pictures of the coordinate values of the shift, and some js methods for directly removing the parameter values; the client selects the corresponding js component according to the game scene, then calls the background server according to the attribute events of the js, and directly sets the js component for the data information returned after the background server is finished;
(7) determining a certain label, and the user side directly enters a flow chart state according to a label selection method, and the realization of service logic is completed through the flow chart;
(8) the user side stores the commonly used flow program of the flow chart into a database; when a new flow chart is selected, the set new flow chart function is directly loaded into a flow program stored in a database to generate a new method.
According to a second aspect of the disclosed embodiments of the present invention, there is provided a software code generation system based on mind map and tree structure technology, application and user end, the software code generation system based on mind map and tree structure technology comprising:
the system comprises a project name and database creation project acquisition module, a database creation project acquisition module and a database creation project acquisition module, wherein the project name and database creation project acquisition module is used for acquiring project names and database creation projects according to input channel names; for selecting different types, the background server judges whether the types are multi-user or not; if yes, the method is multi-user; if not, the user is a single user; and outputting different database tables;
the different column creation module is used for creating different columns according to the acquired project name and different contents displayed by the database creation project;
the corresponding template acquisition module is used for importing the thought guide graph according to different columns created by different contents and acquiring an object of a thought guide graph interface; acquiring a corresponding template according to each object;
the corresponding template dynamic interface acquisition module is used for acquiring a corresponding template dynamic interface according to the acquired corresponding template and putting the corresponding template dynamic interface into a column;
the required code acquisition module is used for automatically importing a code of a workflow setting business process prepared by a background server according to a certain node of a thought guide graph in a column, taking a node object corresponding to the thought guide graph as a transmitted data form and generating an approval interface according to an approval template; then the approved interface automatically enters a flow chart interface; the user side generates a flow chart according to the business requirements; generating a required code according to the generated flow chart;
and the code generation module corresponding to different functional modules is used for converting the commonly used functional modules into database mode description and storing the database mode description in a database table, and the user side directly generates the codes corresponding to the different functional modules according to the requirements of the different functional modules.
According to a third aspect of the disclosed embodiments of the present invention, there is provided a method for generating software codes based on mind map and tree structure technology, which is applied to a background server, the method for generating software codes based on mind map and tree structure technology comprising:
and the background server prepares a code of workflow configuration and a node table transmitted by the form, and clicks the flow setting. Taking the node object corresponding to the thinking guide graph as a transmitted data form, and generating an approval interface according to an approval template; then the approved interface automatically enters an interface organized by a flow chart; and generating required codes according to the generated flow chart.
According to a fourth aspect of the disclosed embodiments of the present invention, there is provided a program storage medium for receiving user input, the stored computer program causing an electronic device to execute the mind map and tree structure based technology software code generation method.
According to a fifth aspect of the disclosed embodiments of the present invention, there is provided an information data processing terminal comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to execute the mind-map-based and tree-structure-technology-based software code generation method.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the invention uses tree structure to connect each plate of code in series. And copying the set nodes to different projects in a selection mode by utilizing a tree structure to convert the nodes into codes. The requirement document is generated by utilizing the tree structure, the first level is used as a requirement document title, the module is used as a second level title, other contents form a character form according to a specified format and are used as detailed contents under the requirement document title, and therefore the requirement document and the code are in one-to-one correspondence. The complex interface generates interface codes by taking a tree structure as a frame of the interface and taking attributes as a display mode of the interface.
The invention achieves the following positive effects through the realization of the interface function and the realization function of the background code:
the invention can generate the required code without writing the code, which is the same as the handwritten code.
The written codes are set, the written information does not need to be refilled, the set codes are selected by one key, the speed of writing the codes is accelerated, the more the written codes are, the higher the speed is, and the memory function is realized.
The code generated by the invention is completely separated from the tool code, and the generated code is not different from the handwriting.
The invention finishes the arrangement of functions and interfaces through a thinking diagram and a tree structure, solves the function of complex business logic through a flow diagram,
and generating a complex interface, wherein a user can set the complex interface through a tree structure of the interface, and the function of the interface is realized by setting attributes and methods for nodes of the tree structure.
All code components of the present invention translate code in a database fashion, with substantially no redundant code present.
For operators who cannot develop software and aiming at business requirements, the software can be designed by themselves by using the method.
The invention copies all the contents of the nodes and the contents below the nodes to another surface by setting the nodes. When other projects need to use the node function, the functions are directly copied, different partial nodes are modified, the problem of secondary development after copying is completely solved, and the more the accumulation is, the faster the speed is.
The node setting of the invention is divided into module level setting, object level setting, method level setting and template level setting, and all the general modules can be stored through setting. And directly calling the set content when needed, and then making small modifications on services.
The invention assembles the required requirement specification document according to the tree structure as the title of the document.
The method from project platform to module to object and object correspondence is displayed in a thinking guide graph mode.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart of a software code generation method based on a mind map and a tree structure technology according to an embodiment of the present invention.
Fig. 2 is a schematic object diagram of an interface for opening a column and entering a thought chart, which is created by pressing a button according to an embodiment of the present invention.
Fig. 3 is a schematic diagram that when a user side needs to make a decision to select or loop a node, a display mode is set on a tree node of the interface, a corresponding frame pops up after clicking is determined, and the content of the frame is different according to different selected contents.
FIG. 4 is a schematic diagram of a circular pattern in a data source condition for specifying a selection according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
As shown in fig. 1, the present invention provides a software code generation method based on mind map and tree structure technology, which is applied to a user side, and the software code generation method based on mind map and tree structure technology comprises:
s101, importing different columns created by the user side according to different contents into a thought guide graph, and acquiring an object of a thought guide graph interface; and acquiring a corresponding template according to each object.
S102, setting a workflow according to a certain node of a thought guide graph in a column, automatically importing a background server template, generating a code by combining a business workflow set by a user, taking a node object corresponding to the thought guide graph as a transmitted data form, and generating an approval interface according to an approval template; the examination and approval template adds examination and approval information for the node object, and the examination and approval information is used for automatic allocation.
S103, realizing the function of the complex method, and drawing a flow chart by the user side according to the service requirement; the required code is then generated according to the flow chart.
And S104, converting the commonly used function module into a database mode description and storing the database mode description into a database table, and directly generating the information of the database table into codes corresponding to different function modules by the user side according to the requirements of the function modules which are not 4.
In a preferred embodiment of the present invention, the user creates different columns according to different contents, and currently, the method needs to:
acquiring a project name and a database creation project according to the input channel name; for selecting different types, the background server judges whether the type is multi-user or single-user, and if so, the type is multi-user; if not, the user is a single user; and outputs different database tables.
In a preferred embodiment of the invention, the frequently used functions and modules of a certain node and below the node in the thinking guide graph interface are acquired, and then the marking is carried out, and the contents of the certain node and below the node are automatically stored in another table; when other projects are created, the contents of the node and the contents below the node are copied in and directly called without being created from the beginning.
In a preferred embodiment of the present invention, the acquiring a corresponding template dynamic interface according to the acquired corresponding template, and placing the corresponding template dynamic interface into a column specifically includes:
(1) the user selects the label for translating the corresponding template into Chinese, and the user directly sets a dynamic interface according to the Chinese meaning or directly selects an interface module or sets the interface module as the acquired corresponding template; the function is to provide convenience for the user to set the template.
(2) Binding the displayed data by using the data displayed on the interface of the user side as a database field, if the data is statistical, binding a calculator calculation formula, setting a statistical critical value (judging data abnormity) and selecting corresponding detailed information; the code generates a display statistic value and a detail interface of the statistic value;
(3) when the user side judges or selects, setting on a certain element, and judging or circularly generating the attribute tag on the node on the element;
(4) converting the data into a tree structure according to the style of a demand interface, inputting the tree structure into an analysis object element on a system template, calculating the data to be counted and a corresponding problem critical value (if the value is lower than the value, the data is indicated to have problems, and other colors are used for indicating detail information to be displayed) in a calculator mode; finding out specific point data of the problem through the detail, and displaying the detail content of the set object;
(5) if the database graph is selected, the user side extracts the graph data information from the database by the selected and displayed field and displays the graph;
(6) selecting an interface to be displayed in a game, preparing a background, selecting a prepared left-shift, right-shift, up-shift and down-shift method, a picture of a coordinate value of the movement, a number of parameter values and an action flow chart, and converting the system into js method codes according to the flow chart; the client selects the corresponding js component according to the game scene, then calls the user to set a background server according to the attribute events of the js, and directly sets the js component for the data information returned after the background server is finished;
(7) when the user terminal needs to press a certain button to realize the service, the user terminal directly enters a flow chart state according to a label selection method, and the realization of service logic is completed through the flow chart;
(8) the user side stores the commonly used flow program of the flow chart into a database; when a new flow chart is created, the set new flow chart function can be directly loaded into the corresponding flow chart according to the node, and the new flow chart function is stored in a flow program in a database to generate a new method.
In a preferred embodiment of the present invention, the software code generation method based on the mind map and the tree structure technology is applied to generating an approval process, and includes:
and clicking the examination and approval setting of the object, and taking a code template configured by the examination and approval workflow prepared by the background server and the form as a transmitted node table by the system.
The technical solution of the present invention is further described below with reference to specific examples.
Examples
The software code generation method based on the thinking diagram and the tree structure technology further comprises the following steps:
1) the user needs to create a project, the name of the project is the project name and the database name of the code, and whether the multi-merchant platform or the single-merchant platform is designated according to the type of the project.
2) And establishing a business process, calling a background organization architecture, personnel information, role information and authority configuration function template by the system according to the business process, importing the template into the system, and directly using the template.
3) And setting a common flow module for storage, and when a next project is created and a certain flow node needs to be used, directly selecting the flow node, wherein the system can directly send the part of the flow node and all the contents below the flow node to the corresponding position.
4) Then, channels are exported according to the business process (one channel is a project, the system adopts a micro-service architecture),
and additionally adding channels and adding channels irrelevant to the service flow chart.
5) After entering the channel, the system can present the modules and objects set in the business process in a mind map mode.
6) In the above thought chart, which module or object is often used later is felt, and the right key is set, and the system will set the node and the node object and content below the node. When the method is needed in other places, the call can be directly selected. The problem of repeated development is solved.
7) Creating dynamic interfaces (single and one-to-many tables) includes:
7.1) the system makes the dynamic interface into a tree structure mode, and the node labels of each tree structure are completely translated into Chinese, so that the user can understand more conveniently.
7.2) the system can directly select the database from the data to be displayed on the dynamic interface, if the data needs to be counted, the system can bind a calculator, the database table selection and a critical value (when the data is smaller than the critical value, the data can be displayed by other colors), and the user needs to select the corresponding detailed information; and then generated. When the user clicks on the statistical data (if the number has a problem, the number is marked by other colors), the system automatically pops up detailed information to find out the problem.
7.3) in the tree, if the attribute and method below a certain node or node are frequently used in the subsequent project, the user can set the node as a component.
7.4) the user can obtain the components set in 3 and import the components into the current project.
7.5) if a node starts to appear repeatedly or judge, the user can select the data dynamic source according to the conditions, which is described above.
7.6) when connecting other interfaces on a certain node, only clicking the adding action on the node,
the system automatically pops up a flow chart, a user draws the flow chart according to the service, the system converts the flow chart into a database and stores the database in a table, and when points are generated, records in the database table are converted into codes.
Wherein the flow chart comprises:
when the flow chart is set, a certain flow node is considered to be relatively common, the system can set the flow node, and the system stores the flow node and all the following flow nodes in the database.
When designing a certain node, the later process feels that the previous process has been designed, and the user can select the desired process (set in 1). This solves the process of iterative design.
(8) Setting a workflow:
according to a certain node of a thought guide graph in a column, a workflow is set by directly clicking, a system automatically imports a code of a workflow setting business process prepared by a background, then a node object corresponding to the thought guide graph is used as a transmitted data form, and an approval interface is generated according to an approval template. The interface will then automatically enter the flow chart interface. And the user sets the flow chart according to the service requirement. When the flow chart click generation is designed, the system can generate the required code according to the flow chart drawn by the user.
(9) And (3) creating a column function: opening columns to enter a thought guide graph interface, creating objects of the interface through a right key, wherein each object is composed of a home page, a list page, a content page and an added interface, and is shown in figure 2. Then, creating a corresponding template according to each object; if a user feels that contents below a certain node and the node are frequently used, the node can be used for setting, and when a next project needs to be created, the next project is directly called. Therefore, the set module content can be copied to a new project at the same time, and the development speed is accelerated.
(10) Initializing a data module: the common functional module is converted into a database mode description and stored in a table, and a user needs which module to directly generate corresponding codes for the information of the database table (if a small part of the information is changed, the information of the database is directly adjusted). The method solves the problems that the modules are written and placed in the calling assembly on the server, and then the user needs which template to download the information transmission among the modules in which module, and the code needs to be modified.
In a preferred embodiment of the present invention, there is provided a software code generation system based on mind map and tree structure technology, application and user end, the software code generation system based on mind map and tree structure technology comprising:
the system comprises a project name and database creation project acquisition module, a database creation project acquisition module and a database creation project acquisition module, wherein the project name and database creation project acquisition module is used for acquiring project names and database creation projects according to input channel names; for selecting different types, the background server judges whether the types are multi-user or not; if yes, the method is multi-user; if not, the user is a single user; and outputting different database tables;
the different column creation module is used for creating different columns according to the acquired project name and different contents displayed by the database creation project;
the corresponding template acquisition module is used for importing the thought guide graph according to different columns created by different contents and acquiring an object of a thought guide graph interface; acquiring a corresponding template according to each object;
the corresponding template dynamic interface acquisition module is used for acquiring a corresponding template dynamic interface according to the acquired corresponding template and putting the corresponding template dynamic interface into a column;
the required code acquisition module is used for automatically importing a code of a workflow setting business process prepared by a background server according to a certain node of a thought guide graph in a column, taking a node object corresponding to the thought guide graph as a transmitted data form and generating an approval interface according to an approval template; then the approved interface automatically enters a flow chart interface; the user side generates a flow chart according to the business requirements; generating a required code according to the generated flow chart;
and the code generation module corresponding to different functional modules is used for converting the commonly used functional modules into database mode description and storing the database mode description in a database table, and the user side directly generates the codes corresponding to the different functional modules according to the requirements of the different functional modules.
The technical solution of the present invention is further described below with reference to the operation method.
The software code generation method based on the thinking diagram and the tree structure technology provided by the embodiment of the invention specifically operates as follows:
(1) and creating a project according to the input project name as a project name and the database (a channel is used as a module project name of the micro service, and indicates a data display mode, and the contents of the front-end html tags are different according to different display modes). For selecting different types, the background judges whether the type is multi-user; if yes, the method is multi-user; if not, the user is a single user; and outputs different database tables.
(2) A hurdle is created. Different content creates different hurdles.
(3) And (3) creating a column function: opening columns to enter a thought guide graph interface, creating objects of the interface through a right key, wherein each object is composed of a home page, a list page, a content page and an added interface, and is shown in figure 2. Then, creating a corresponding template according to each object; if a user feels that contents below a certain node and the node are frequently used, the node can be used for setting, and when a next project needs to be created, the next project is directly called. Therefore, the set module content can be copied to a new project at the same time, and the development speed is accelerated.
(4) Template creation (creation of interface):
(4.1) the user selects the tab that translates the above into Chinese.
Or the user selects an interface module (template content after background preparation), certainly feel good, and can also be set as a template for later selection and use, thereby greatly improving the efficiency.
And (4.2) binding the displayed data by using the data displayed on the interface as a database field, and if the data is statistical, binding a calculator to calculate a formula and select corresponding detailed information. The code will generate a display statistic along with a list of this statistic (click into list of details).
(4.3) when the user meets judgment or selection, the user can set the judgment or selection on a certain element, and the system can generate a judgment or circular attribute label on the node.
And (4.4) importing the required templates according to the style of the demand interface, setting objects and data to be counted of the objects for each template (the objects are selected by a user through a calculator format, and calculation formulas such as addition, subtraction, multiplication, division and the like in statistics are solved), displaying the statistical data according to the set information by the system, and displaying detailed contents of the set objects by clicking.
(4.5) if the user selects the graphic. The system will let the user select the fields to be presented (e.g. columns, curves, etc. the system will extract and display the graphical data information from the database.
(4.6) selecting an interface required to be displayed in the game, and selecting some prepared js methods of left shift, right shift, upward shift, downward shift method + picture of coordinate value of the shift, and direct removal of parameter value. And selecting corresponding js components according to the game scene of the user, calling a background method according to the attribute events of the js, and directly setting the js components for data information returned after the background method is finished.
And (4.7) the user determines a certain label, directly enters a flow chart state according to a label selection method, and completes the realization of the service logic through the flow chart.
(4.8) the method of the flow chart has a set button, the user feels that the function of the flow chart is often used later, and the system stores the program of the flow chart into the database by directly setting the flow chart at the middle point. And then, the method is opened by clicking, the set functions are directly loaded into the flow when the flow chart design is selected, and the method can be generated by simply modifying.
(4.9) acquiring the original prepared template, directly selecting to import the selected template into the system, and finally saving and generating the point. The system will generate and put the corresponding template dynamic interface designed above into the project.
(5) Setting a workflow:
according to a certain node of a thought guide graph in a column, a workflow is set by directly clicking, a system automatically imports a code of a workflow setting business process prepared by a background, then a node object corresponding to the thought guide graph is used as a transmitted data form, and an approval interface is generated according to an approval template. The interface will then automatically enter the flow chart interface. And the user sets the flow chart according to the service requirement. When the flow chart click generation is designed, the system can generate the required code according to the flow chart drawn by the user.
(6) Initializing a data module: the common functional module is converted into a database mode to describe and store the database mode in the table, and a user needs which module to directly generate the corresponding code from the information of the database table. The method solves the problems that the modules are written and placed in the calling assembly on the server, and then the user needs which template to download the information transmission among the modules in which module, and the code needs to be modified.
The technical solution of the present invention will be further described with reference to the positive effects.
The outstanding innovation points of the invention comprise: each plate of the code is connected in series by a tree structure.
And copying the set nodes to different projects in a selection mode by utilizing a tree structure to convert the nodes into codes.
The requirement document is generated by utilizing the tree structure, the first level is used as a requirement document title, the module is used as a second level title, other contents form a character form according to a specified format and are used as detailed contents under the requirement document title, and therefore the requirement document and the code are in one-to-one correspondence.
The complex interface generates interface codes by taking a tree structure as a frame of the interface and taking attributes as a display mode of the interface.
In the present invention, as shown in fig. 3, when a certain node needs to make a decision to select or loop, the user side provided in the embodiment of the present invention sets a display mode on a tree node of the interface, and pops up a corresponding frame after clicking the node, where the content of the frame is different according to the selected content.
As shown in fig. 4, a schematic diagram of a circular pattern in a condition of a data source for specifying a selection is provided in an embodiment of the present invention.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure should be limited only by the attached claims.

Claims (8)

1. A software code generation method based on mind map and tree structure technique is characterized in that the method is applied to a user side, and the software code generation method based on mind map and tree structure technique comprises the following steps:
importing different columns created by the user side according to different contents into the thought guide graph, and acquiring an object of a thought guide graph interface; acquiring a corresponding template according to each object;
setting a workflow according to a certain node of a thought guide graph in a column, automatically importing a background server template, combining a business workflow generation code set by a user, taking a node object corresponding to the thought guide graph as a transmitted data form, and generating an approval interface according to an approval template; the examination and approval template is added with examination and approval information for the node object, and the examination and approval information is used for automatic allocation;
the realization of the complex method function, the user side draws a flow chart according to the business requirement; then generating a required code according to the flow chart;
and converting the commonly used function module into a database mode description and storing the database mode description into a database table, and directly generating the information of the database table into codes corresponding to different function modules by the user side according to the requirements of the different function modules.
2. The method as claimed in claim 1, wherein the user creates different columns according to different contents, and comprises:
acquiring a project name and a database creation project according to the input channel name; for selecting different types, the background server judges whether the type is multi-user or single-user, and if so, the type is multi-user; if not, the user is a single user; and outputs different database tables.
3. The method as claimed in claim 1, wherein the frequently used functions and modules at and below a certain node in the mind-map interface are obtained and marked, and the contents at and below the certain node are automatically saved in another table; when other projects are created, the contents of the node and the contents below the node are copied in and directly called without being created from the beginning.
4. The method for generating software codes based on mind map and tree structure technology as claimed in claim 1, wherein the step of obtaining the corresponding template dynamic interface according to the obtained corresponding template and putting the template dynamic interface into a column specifically comprises:
(1) the user selects the label for translating the corresponding template into Chinese, and the user directly sets a dynamic interface according to the Chinese meaning or directly selects an interface module or sets the interface module as the acquired corresponding template; the function is to provide convenience for the user to set the template;
(2) binding the displayed data by using the data displayed on the interface of the user side as a database field, if the data is statistical, binding a calculator calculation formula, setting a statistical critical value (judging data abnormity) and selecting corresponding detailed information; the code generates a display statistic value and a detail interface of the statistic value;
(3) when the user side judges or selects, setting on a certain element, and judging or circularly generating the attribute tag on the node on the element;
(4) converting the data into a tree structure according to the style of a demand interface, inputting the tree structure into an analysis object element on a system template, calculating the data to be counted and a corresponding problem critical value (if the value is lower than the value, the data is indicated to have problems, and other colors are used for indicating detail information to be displayed) in a calculator mode; finding out specific point data of the problem through the detail, and displaying the detail content of the set object;
(5) if the database graph is selected, the user side extracts the graph data information from the database by the selected and displayed field and displays the graph;
(6) selecting an interface to be displayed in a game, preparing a background, selecting a prepared left-shift, right-shift, up-shift and down-shift method, a picture of a coordinate value of the movement, a number of parameter values and an action flow chart, and converting the system into js method codes according to the flow chart; the client selects the corresponding js component according to the game scene, then calls the user to set a background server according to the attribute events of the js, and directly sets the js component for the data information returned after the background server is finished;
(7) when the user terminal needs to press a certain button to realize the service, the user terminal directly enters a flow chart state according to a label selection method, and the realization of service logic is completed through the flow chart;
(8) the user side stores the commonly used flow program of the flow chart into a database; when a new flow chart is created, the set new flow chart function can be directly loaded into the corresponding flow chart according to the node, and the new flow chart function is stored in a flow program in a database to generate a new method.
5. The method as claimed in claim 1, wherein the method for generating software code based on mind map and tree structure technology is applied to generating approval process, and comprises:
and clicking the examination and approval setting of the object, and taking a code template configured by the examination and approval workflow prepared by the background server and the form as a transmitted node table by the system.
6. A program storage medium for receiving user input, the stored computer program causing an electronic device to execute the method for generating software code based on mind map and tree structure technology according to any one of claims 1 to 5.
7. An information data processing terminal, characterized in that the information data processing terminal comprises a memory and a processor, the memory stores a computer program, the computer program, when executed by the processor, causes the processor to execute the thinking-graph-and-tree-structure-based software code generation method according to any one of claims 1 to 5.
8. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the method of generating thinking diagram and tree structure based software code according to any one of claims 1 to 5.
CN202110684129.9A 2021-06-21 2021-06-21 Software code generation method and system based on mind map and tree structure technology Active CN113407164B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110684129.9A CN113407164B (en) 2021-06-21 2021-06-21 Software code generation method and system based on mind map and tree structure technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110684129.9A CN113407164B (en) 2021-06-21 2021-06-21 Software code generation method and system based on mind map and tree structure technology

Publications (2)

Publication Number Publication Date
CN113407164A true CN113407164A (en) 2021-09-17
CN113407164B CN113407164B (en) 2022-07-29

Family

ID=77681917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110684129.9A Active CN113407164B (en) 2021-06-21 2021-06-21 Software code generation method and system based on mind map and tree structure technology

Country Status (1)

Country Link
CN (1) CN113407164B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729171A (en) * 2012-10-11 2014-04-16 三亚中兴软件有限责任公司 Generating method and device of service workflow codes
CN103995699A (en) * 2014-05-13 2014-08-20 中国神华能源股份有限公司 Electric power enterprise information system development method based on MDA
CN107423270A (en) * 2017-07-27 2017-12-01 国云科技股份有限公司 The implementation method that a kind of online flow chart and code mutually turn in real time
CN108304763A (en) * 2017-12-01 2018-07-20 腾讯科技(深圳)有限公司 Mind map recognition methods, device, storage medium and computer equipment
KR20180098711A (en) * 2017-02-27 2018-09-05 정우식 Interactive interface system and method using mind map
CN108984208A (en) * 2018-06-26 2018-12-11 中国银行股份有限公司 A kind of function document generating method, apparatus and system
CN109240654A (en) * 2018-07-24 2019-01-18 武汉空心科技有限公司 Development approach and system based on template
CN111080263A (en) * 2019-12-20 2020-04-28 南京烽火星空通信发展有限公司 Visual collaborative analysis system based on thought-guide graph
CN111680516A (en) * 2020-06-04 2020-09-18 宁波浙大联科科技有限公司 PDM system product design requirement information semantic analysis and extraction method and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729171A (en) * 2012-10-11 2014-04-16 三亚中兴软件有限责任公司 Generating method and device of service workflow codes
CN103995699A (en) * 2014-05-13 2014-08-20 中国神华能源股份有限公司 Electric power enterprise information system development method based on MDA
KR20180098711A (en) * 2017-02-27 2018-09-05 정우식 Interactive interface system and method using mind map
CN107423270A (en) * 2017-07-27 2017-12-01 国云科技股份有限公司 The implementation method that a kind of online flow chart and code mutually turn in real time
CN108304763A (en) * 2017-12-01 2018-07-20 腾讯科技(深圳)有限公司 Mind map recognition methods, device, storage medium and computer equipment
CN108984208A (en) * 2018-06-26 2018-12-11 中国银行股份有限公司 A kind of function document generating method, apparatus and system
CN109240654A (en) * 2018-07-24 2019-01-18 武汉空心科技有限公司 Development approach and system based on template
CN111080263A (en) * 2019-12-20 2020-04-28 南京烽火星空通信发展有限公司 Visual collaborative analysis system based on thought-guide graph
CN111680516A (en) * 2020-06-04 2020-09-18 宁波浙大联科科技有限公司 PDM system product design requirement information semantic analysis and extraction method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
罗俊健等: "基于思维导图的团队协作系统", 《计算机系统应用》 *

Also Published As

Publication number Publication date
CN113407164B (en) 2022-07-29

Similar Documents

Publication Publication Date Title
CN101122899B (en) Report generation method and device
CN101661512B (en) System and method for identifying traditional form information and establishing corresponding Web form
US20100179962A1 (en) Methods and Systems for Intelligent Form-Filling and Electronic Document Generation
CN111126019B (en) Report generation method and device based on mode customization and electronic equipment
CN111221522A (en) Automatic code generation method of front-end and back-end separation architecture for government intensive application development
CN113590102B (en) Zero-code rapid software development method, system, medium and equipment
CN114461200A (en) Low-code development application and method based on cloud SaaS platform
Renfro Econometric software: The first fifty years in perspective
CN116468010A (en) Report generation method, device, terminal and storage medium
CN115358204A (en) Report generation method and device, electronic equipment and storage medium
CN111291025B (en) Method for supporting multi-physical model conversion by logic model and storage device
US10776351B2 (en) Automatic core data service view generator
CN114371845A (en) Form generation method and device
CN111694563A (en) Visual design system and method for user interface mode
CN111401023B (en) Report generation method, report generation device, server and storage medium
CN113407164B (en) Software code generation method and system based on mind map and tree structure technology
CN117236624A (en) Issue repairer recommendation method and apparatus based on dynamic graph
JPH11316766A (en) Multidimensional analytical construction system and database for analytical processing
CN116257229A (en) Interface generation system and interface generation method
CN112051996B (en) Modeling method and device based on development platform element unified naming dictionary
CN114860125A (en) Flow chart processing method, device, equipment and medium
CN115169302B (en) Data collection method and device based on online form document and storage medium
Becker-Kornstaedt et al. Software process technology transfer: Using a formal process notation to capture a software process in industry
CN117667196A (en) UXUI efficient collaboration low-code method based on intermediate representation model
CN112433715A (en) Full-embedding method of wireless communication terminal

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
GR01 Patent grant
GR01 Patent grant