Comments (4)
这个比较简单,用户自己接入即可。而且大部分人可能都不需要gorm gen,nunu layout保持精简比较好
from nunu.
在使用中的一些不方便
- nunu 生成model 没要找到表结构转为结构体的方法。在实际开发过程中这一步很耗时
- gen 生成的文件名和 nunu 生成的规则不一致(这表名为 ‘xx_xx’ 时)。无法覆盖nunu生成的model文件,每次需要手动把gen生成的结构体粘贴到nunu 生成的model
希望处理的方式
nunu 生成 model 可以同时生成表结构对应的 结构体
from nunu.
两者选其一,如果想自动化生成model结构,可以完全丢弃nunu create model
,只需要依照gen的规则即可,golang中的文件名不会影响包的导入哈
from nunu.
好的 谢谢
from nunu.
Related Issues (20)
- 使用gvm装的golang 使用不了nunu命令 HOT 1
- 新增加一个model后如何自动在数据库中创建相应的表? HOT 5
- 新版的接口错误处理问题 HOT 1
- Question: What for REDIS? HOT 2
- 日志用起来感觉有些繁琐 HOT 2
- 服务启动环境变量 HOT 1
- zap日志链路追踪问题 HOT 3
- 建议response优化一下 HOT 2
- 添加go工具函数库lancet HOT 1
- 请问有考虑加入oauth2吗? HOT 1
- postgresql数据库支持 HOT 3
- Project Roadmap HOT 6
- 在创建模型或者仓库时自动处理带下划线的单词
- 有考虑加入rpc server 和 rpc client的模板和分层吗 HOT 1
- feat: 添加更多的部署方式 HOT 4
- 需要一个demo的使用指导 HOT 1
- 请问如何与前端静态文件一起,把整个项目打包成单文件呢?
- 你好,我想问问关于编写Wire Provider HOT 2
- 运行make docker问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nunu.