0

一个基于mongodb生成model、dao、handler、service、web和grpc服务代码的效率工具

 3 months ago
source link: https://studygolang.com/articles/36537
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

一个基于mongodb生成model、dao、handler、service、web和grpc服务代码的效率工具

zhufuyi · 6天之前 · 142 次点击 · 预计阅读时间 1 分钟 · 大约8小时之前 开始浏览    

如果开发只有简单CRUD api接口的web或微服务,不需要编写任何go代码就可以编译并部署到linux服务器、docker、k8s上,只需要连接到数据库就可以一键自动生成完整的服务代码。

如果开发通用的web或微服务,只需聚焦在定义数据库表在proto文件定义api接口在生成的模板文件填写业务逻辑代码三个核心部分,其他go代码都是自动生成。

https://github.com/zhufuyi/sponge/blob/main/assets/install-cn.md

生成代码界面

web-http.png

根据需要可以在生成的代码基础上进行二次开发。

开源项目地址

https://github.com/zhufuyi/sponge


有疑问加站长微信联系(非本文作者))

280

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK