Introduces a new code generation tool, sponge, which seamlessly combines
generated CRUD interface code with
generated web service code (no need to add or change any code) and includes features such as paging conditional queries, caching etc.
After installing sponge, open the UI by executing the command
The web service code is mainly composed of
go-redis and other common libraries. It also contains swagger documentation, test code, code for common service governance functions, build deployment scripts and more.
Switch to the web directory and execute the command:
# Generate swagger documentation make docs # Compile and start the web service make run
localhost:8080/swagger/index.html in your browser and you can add, delete,upate and query tables.