Code automatic generation method, medium, equipment and system
An automatic generation and code generation technology, applied in code compilation, program code conversion, database management system, etc., can solve problems such as low page reusability, weak code maintainability, and unguaranteed code quality, and achieve Reduce the workload of manual writing, improve the difficulty of code maintenance, and improve the effect of development efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0090] like Figure 2A As shown, the automatic code generation method includes the following steps:
[0091] S110. Receive a new page request;
[0092] S120. Generate and present a visualized function page in response to the new page request;
[0093] S130. Obtain the page name and page description input by the user on the function page;
[0094] S140. Obtain a page template selected by the user based on the function page; specifically, this step may obtain multiple candidate templates from the template resource library, and generate a template selection interface or panel on the function page, and the template selection interface is configured to have a template The menu directory area and the template display area display the above-mentioned multiple candidate templates or their thumbnails in the template display area; in response to the user's trigger operation on the corresponding control in the template menu directory area, such as a click operation, display in the temp...
Embodiment 2
[0121] like image 3 As shown, the process of creating a dynamic template may include the following steps:
[0122] In the dynamic template creation, in the right-click menu, through the extension of the VScode configuration item, the personalized configuration menu function can be realized to realize the "automatically generate page" option, and in further embodiments, the "new page" and "database configuration" can also be realized. Any one or more menu options in "Generate Page" and "Multi-template Combination Stitching". When the user clicks the "Automatically Generate Page" menu option, vscode.postMessage sends initialization parameters, through which the correct user operation page is invoked or opened and rendered. The BaseWebviewPanel public class is called before the web container is opened.
[0123] S31. After selecting the "automatically generate page" option in the right-click menu, a configuration page (user operation page) is generated through the webView techn...
Embodiment 3
[0145] like Figure 4 As shown, the SQL database dynamic template creation process may include the following steps:
[0146] S41. Refer to Figure 10 , in the process of creating a SQL database dynamic template, in the right-click menu, through the extension of the VScode configuration item, the personalized configuration menu function is realized, and the "database configuration generation page" option is realized. When the user clicks the "database configuration generation page" menu option, Send initialization parameters through vscode.postMessage, which are used to invoke or open the correct user operation page and render it.
[0147] S42. After selecting the "database configuration generation page" option in the right-click menu, a visual configuration page (user operation page) is generated through the webView technology. The BaseWebviewPane public class is called before the web container is opened.
[0148] S43, such as Figure 11 As shown in , it receives the page ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


