Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, in conjunction with fig. 1, there is provided a software visualization rapid development system, the system comprising:
the self-defined component library construction module is used for constructing a packaging component for visual software development to form a self-defined component library; the packaging assembly comprises each designer, a development data assembly of the execution engine and a data assembly of the object model generation database;
the first designer is used for building an object model in a self-defined mode;
the second designer is used for customizing the development interface;
the third designer is used for customizing a design page;
and the execution engine is used for responding to the instructions of the first designer, the second designer and the third designer.
The invention discloses a visual rapid development system of software, which is a platform for rapidly constructing software based on a page visual configuration engine. The user-defined component library is the foundation of the platform, and the designer and the execution engine are core components of the platform. The platform can realize low-code and even zero-code software development through visual design and engine type compiling.
Further, in one embodiment, in conjunction with fig. 2, the first designer includes, generated based on the package assembly:
the object model information definition module is used for self-defining the attribute information of the object model, including the description, the fields and the definition of each field;
here, the description includes a model identification, a model name, and an associated data table name, and so on.
Here, the field definition includes a field type, a length, whether non-empty, and the like.
The model element generation module is used for receiving a first trigger instruction of a user and generating model element data according to the attribute information of the object model;
the model building module is used for receiving a second trigger instruction of the user and building an object model based on the model metadata;
the first conversion module is used for receiving a third trigger instruction of a user and converting the object model into a database execution statement;
here, a variety of databases are supported, including Oracle, MySql, dreams, MSSQL, etc.
The second conversion module is used for receiving a fourth trigger instruction of the user and generating an object service code according to the object model;
and the first visualization module is used for visually displaying the attribute information of the object model, the model metadata, the object model, the database execution statement and the object service code in real time.
Further, in one embodiment, the first designer further comprises, generated based on the package components:
the database construction module is used for receiving a fifth trigger instruction of the user and constructing a database according to the database execution statement; the database comprises a data table corresponding to the object model;
and the database updating module is used for receiving a sixth trigger instruction of the user and starting an editable mode of the database execution statement, and the user performs custom modification and compilation on the database execution statement to realize custom updating of the database.
Further, in one embodiment, the first visualization module is further configured to visually display the database in real time.
Further, in one embodiment, in conjunction with fig. 3, the second designer includes, generated based on the package assembly:
the information configuration module is used for configuring interface information based on the object model, and the interface information comprises interface attributes, input parameters and output parameters;
the online testing module is used for receiving a seventh triggering instruction of the user, generating an object service corresponding to the object model, and testing the interface by the object service;
here, the object service includes services such as query, save, update, and deletion of object model structure data.
The interface description document generation module is used for receiving an eighth trigger instruction of the user and generating an interface description document;
the viewing module is used for receiving a ninth triggering instruction of the user, calling the interface description document and sending the interface description document to the second visualization module;
and the second visualization module is used for visually displaying the interface information, the interface test result and the interface description document in real time.
Further, in one embodiment, in conjunction with fig. 4, the third designer includes, generated based on the package assembly:
the page component library construction module is used for constructing page components to form a page component library;
here, the page component includes common forms, attachments and other components, and also includes custom packaging components such as pie charts, bar charts, dashboards, tree diagrams and the like.
The window construction module is used for receiving a tenth trigger instruction of a user, configuring a plurality of object models and interfaces according to user requirements in a user-defined mode, configuring page attributes, defining page events and constructing a page window;
the page layout module is used for setting the page components in the page window in a user-defined mode to realize online page design;
the third conversion module is used for receiving an eleventh trigger instruction of a user and generating a page code corresponding to the online design page and a data structure of the page layout module;
here, the page code may be HTML, JS code for subsequent development.
The editing module is used for receiving a twelfth trigger instruction of the user and starting an editable mode of the page code, and the user performs custom modification and compilation on the page code to realize custom adjustment and page updating;
and the third visualization module is used for visually displaying the page component library, the online designed page, the page code and the data structure of the page layout module in real time.
Further, in one embodiment, the third designer further comprises, generated based on the package assembly:
and the previewing module is used for receiving a thirteenth triggering instruction of the user and previewing the online designed page.
Further, in one embodiment, the execution engine comprises:
the first execution module is used for receiving a data generation instruction generated by the model element generation module after receiving the first trigger instruction, and executing the generation of the model element data according to the attribute information of the object model;
the second execution module is used for receiving the model building instruction generated by the model building module after receiving the second trigger instruction, and executing the object model built based on the model metadata;
a third execution module, configured to receive a first conversion instruction generated by the first conversion module after receiving the third trigger instruction, and execute the conversion of the object model into the database execution statement;
a fourth execution module, configured to receive a second conversion instruction generated by the second conversion module after receiving the fourth trigger instruction, and execute the object service code generated according to the object model;
a fifth execution module, configured to receive a database construction instruction generated by the database construction module after receiving the fifth trigger instruction, and execute the database construction according to the database execution statement;
a sixth execution module, configured to receive the first editable instruction generated by the database update module after receiving the sixth trigger instruction, and execute an editable mode in which the database execution statement is started;
the seventh execution module is used for receiving a fourteenth trigger instruction of the user and compiling the database execution statement;
the eighth execution module is configured to receive the test instruction generated by the online test module after receiving the seventh trigger instruction, execute the object service corresponding to the generated object model, and test an interface;
a ninth execution module, configured to receive a document generation instruction generated by the interface specification document generation module after receiving the eighth trigger instruction, and execute to generate the interface specification document;
the tenth execution module is used for receiving the viewing instruction generated by the viewing module after receiving the ninth triggering instruction, and executing to call the interface description document and send the interface description document to the second visualization module;
an eleventh executing module, configured to receive a second conversion instruction generated by the third conversion module after receiving the eleventh trigger instruction, and execute the data structure of the page code and page layout module corresponding to the generated online design page;
a twelfth execution module, configured to receive the second editable instruction generated by the editing module after receiving the twelfth trigger instruction, and execute an editable mode in which a page code is started;
and the thirteenth execution module is used for receiving a fifteenth triggering instruction of the user and compiling the page code.
Further, in one embodiment, the first execution module is further configured to generate a first feedback instruction and send the first feedback instruction to the first visualization module after generating the model metadata according to the attribute information of the object model, and trigger the first visualization module to display the model metadata visually;
the second execution module is further used for generating a second feedback instruction and sending the second feedback instruction to the first visualization module after the object model is constructed based on the model metadata, and triggering the first visualization module to realize visual display of the object model;
the third execution module is further used for generating a third feedback instruction and sending the third feedback instruction to the first visualization module after the object model is converted into the database execution statement, and triggering the first visualization module to realize visual display of the database execution statement;
the fourth execution module is further used for generating a fourth feedback instruction and sending the fourth feedback instruction to the first visualization module after the object service code is generated according to the object model, and triggering the first visualization module to realize the visual display of the object service code;
the fifth execution module is further configured to generate a fifth feedback instruction and send the fifth feedback instruction to the first visualization module after the database is built according to the database execution statements, and trigger the first visualization module to realize visual display of the database;
the eighth execution module is further configured to generate a sixth feedback instruction and send the sixth feedback instruction to the second visualization module after the object service corresponding to the generated object model is realized and the interface is tested, and trigger the second visualization module to realize a visual display interface test result;
the eleventh execution module is further configured to generate a seventh feedback instruction and send the seventh feedback instruction to the third visualization module after the generation of the data structure of the page code and page layout module corresponding to the online design page is realized, and trigger the third visualization module to realize visualization of the data structure of the page code and page layout module.
The foregoing illustrates and describes the principles, general features, and advantages of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.