Problems solved by the tool
Xiaoge workbench configuration logistics gateway configuration an interface, need three service domain names (self-operated, 3pl, Hong Kong and Macau), three environments (test, UAT, formal), 3*3 is equivalent to need to be configured 9 times, of which except for aliases, the other configurations are basically the same.
Through the large model generation, a tool is used to enter the interface once, and 9 configuration files are generated.
Step 1: Define the standard format for API configuration
Step 2: Generate JavaScript core code.
Prompt words:
生成js代码实现替换api.domain、api.routingId,api.name 、api.url、clusters.routers.jsf_alias 、clusters.routers.jsf_gray_alias 、clusters.routers.jsf_iface、clusters.routers.jsf_method、 clusters.name。
Large Model Generation:
Step 2: Generate an HTML input page and integrate Javacript.
Prompt words:
Generate HTML supports entering configuration items, using the above JS, replacing the JSON, and generating a downloadable file.
Large Model Generation:
Step 3: Display the final configuration and automatically download and save it
Prompt words:
The generated JSON can not only be downloaded, but also formatted and displayed on the far right of the page
Large Model Generation:
Step 4: Assemble the code to obtain the final configuration tool
Since the large model work is not customized to automatically generate the project, in fact, the model tool can be modified to automatically generate, according to the comments generated by the large model, the corresponding code is combined together, and the final configuration tool is obtained without writing a line of code.
wlwgConfig.html.zip
Final Renderings: