Comments (2)
用user举例,请教下,一般根据sql文件只会生成一个对应的model.go文件,里面的方法也只有增删查改那些,你这边生成的userModel_gen.go是正常生成的,userModel.go那个文件是怎么生成的啊,是要自己写吗?
goctl生成的哈,用最新版本的goctl就好了,带_gen是每次执行goctl生成代码会覆盖,不带_gen的 自己自定义的方法写在这里,总之使用goctl生成model,一个表会对应生成这2个文件
from go-zero-looklook.
from go-zero-looklook.
Related Issues (20)
- userid怎么传递给鉴权中间件? HOT 6
- grammatical error in ReadMe.md HOT 2
- CommonJwtAuthMiddleware使用 HOT 2
- 关于model生成的疑问 HOT 1
- go-stash 报错too many requests HOT 1
- rpc register nickname HOT 1
- model生成问题 HOT 2
- 关于api和rpc的疑问 HOT 5
- 可以提供 lyumikael/go-modd-env 基于m1芯片的dockerfile吗
- 关于api服务需要跑一个周期任务的问题 HOT 1
- 请问如何方便快速调试 HOT 1
- 很棒的项目,顺便请教一个问题 HOT 6
- MySQL 启动报错 HOT 3
- failed to register layer: write /etc/yum.conf: bad file descriptor HOT 1
- Mysql相关问题,现有模式如何读写分离, 如果不使用mysql, 如何丝滑切到其他类型数据库?
- prometheus 的数据不是存储在 elasticsearch 中的吧 HOT 1
- 似乎没有必要在logic中NewWechat,这样内存缓存的小程序实例是无效的 HOT 1
- 如何升级项目中的模板 1.5.3.zip为1.6.*.zip呢? HOT 1
- insert cache question HOT 1
- docker-compose-env.yml 基础环境的 wurstmeister/zookeeper、wurstmeister/kafka这两个镜像在dokcer hub 没有了。
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 go-zero-looklook.