Replies: 5 comments
-
|
实际上是应该这样做的,但这里其实使用gorm/gen直接生成出来的代码,所以也不需要刻意去更改它 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
这些是根据表结构生成出来的代码吗 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
是的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
生成工具所在仓库:https://github.com/cloudzenith/gen/tree/master/tools/gentool 后端项目目录下有gen.yml来控制具体的生成参数,通过Makefile的 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
大佬,优雅啊 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question
像这种通用的字段是不是可以抽成一个通用的model 然后组合进每个具体业务model 中去。

Beta Was this translation helpful? Give feedback.
All reactions