首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
广告
V2EX
›
Go 编程语言
请教大佬们, gorm 有办法在全局追加查询条件么,支持单表、多表。类似字段隔离。
pddgoods
·
13 天前
· 556 次点击
请教大佬们,gorm 有办法在全局追加查询条件么,支持单表、多表。类似字段隔离。
3 条回复
1
RedBeanIce
13 天前
好像是有 hook 的。。。可以试试。
但是不知道你的实际情况是如何
2
sardina
13 天前
https://gorm.io/docs/write_plugins.html#Callbacks
3
pddgoods
OP
13 天前
@
sardina
但是 join 不知道咋使用
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
2260 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms ·
UTC 07:59
·
PVG 15:59
·
LAX 00:59
·
JFK 03:59
Developed with
CodeLauncher
♥ Do have faith in what you're doing.