Home
Sign Up
Sign In
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
Advertisement
0
V2EX
›
Go 编程语言
请教大佬们, gorm 有办法在全局追加查询条件么,支持单表、多表。类似字段隔离。
pddgoods
·
Apr 20, 2024
· 1952 views
This topic created in 950 days ago, the information mentioned may be changed or developed.
请教大佬们,gorm 有办法在全局追加查询条件么,支持单表、多表。类似字段隔离。
gorm
查询条件
隔离
3 replies
RedBeanIce
Apr 20, 2024
1
好像是有 hook 的。。。可以试试。
但是不知道你的实际情况是如何
sardina
Apr 20, 2024
2
https://gorm.io/docs/write_plugins.html#Callbacks
pddgoods
OP
Apr 20, 2024
3
@
sardina
但是 join 不知道咋使用
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1013 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 27ms ·
UTC 19:16
·
PVG 03:16
·
LAX 11:16
·
JFK 14:16
♥ Do have faith in what you're doing.
❯