V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
pddgoods
0D

请教大佬们, gorm 有办法在全局追加查询条件么,支持单表、多表。类似字段隔离。

  •  
  •   pddgoods · Apr 20, 2024 · 1454 views
    This topic created in 743 days ago, the information mentioned may be changed or developed.
    请教大佬们,gorm 有办法在全局追加查询条件么,支持单表、多表。类似字段隔离。
    RedBeanIce
        1
    RedBeanIce  
       Apr 20, 2024
    好像是有 hook 的。。。可以试试。

    但是不知道你的实际情况是如何
    pddgoods
        3
    pddgoods  
    OP
       Apr 20, 2024
    @sardina 但是 join 不知道咋使用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2634 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 03:42 · PVG 11:42 · LAX 20:42 · JFK 23:42
    ♥ Do have faith in what you're doing.