How (preloading) join table on custom column?

后端 未结 0 968
遇见更好的自我
遇见更好的自我 2020-12-10 17:49

Imagine we have the following models:

type Company struct {
    gorm.Model
    Name string
    Addresses []Address
}

type Address struct {
    gorm.Model
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题