Comments (15)
嗯,写个简单的工具就可以实现,我自己用的时候就写了一个😁
from gin-admin.
嗯,会存在一些重复,不过,想要处理存储层的完全隔离,需要有一层对象层到实体层的映射。
from gin-admin.
确实,要是每个业务表都这么做处理累死咯....不过代码清晰干净很多,剩下就是复制粘贴的活儿....
from gin-admin.
哈哈 这个时候需要一个代码生成器
from gin-admin.
求大佬科普,golang如何实现代码生成,自寻资料找到这个https://github.com/goadesign/goa
from gin-admin.
嗯,写个简单的工具就可以实现,我自己用的时候就写了一个😁
大佬,工具一并开源了呀!!
from gin-admin.
@LyricTian 大佬,要不把代码生成器一并开源了
from gin-admin.
@lchjczw https://github.com/jinzhu/copier
这个是可以直接映射的
from gin-admin.
@lchjczw
https://github.com/jinzhu/copier
这个是可以直接映射的
你的意思是直接拷贝一个,而不是弄两个结构体转来转去?
from gin-admin.
有没有更好的处理方式 两个model包 一个bill一个scheme 还有entity 要绕死了
from gin-admin.
通通干掉 怎么简洁怎么来 :)
from gin-admin.
简洁 不容易出错 好维护
from gin-admin.
嗯,写个简单的工具就可以实现,我自己用的时候就写了一个😁
大佬,工具一并开源了呀!!
from gin-admin.
确实有点绕 , 同求开源代码生成器/:B-)
from gin-admin.
@lchjczw @wangerx https://github.com/LyricTian/gin-admin-cli
from gin-admin.
Related Issues (20)
- Start failed - sonyflake not created HOT 2
- ParseJSON 建议优化一下
- 有人在生产中使用吗
- swagger 报错:No operations defined in spec!
- 有人遇到过程序偶尔自己退出的问题吗
- 问个不关代码的,V10什么时候发 HOT 7
- Injector结构体的CasbinEnforcer、Auth字段是否多余 HOT 1
- TablePrefix没有生效 HOT 3
- jwtauth store service is not working ?
- Failed to read configuration file
- rbac_model.conf should use keyMatch3 HOT 1
- gin-admin-cli生成的项目有问题 HOT 3
- 感觉启动速度有点慢
- 有交流群吗 HOT 1
- gin-admin-cli生成代码报错 HOT 1
- /api/v1/loggers?current=1&pageSize=10 ERROR: column b.id does not exist (SQLSTATE 42703) HOT 1
- [功能建议] Module 是不是可以考虑使用接口 ?
- Error while generate a new module
- 移动前端api 怎么实现 HOT 1
- is there a way to generate ReactJS files from Swagger?
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 gin-admin.