Gorm fill struct within a struct with the results not fully working

前端 未结 0 1293
不知归路
不知归路 2021-02-19 01:54

I do a simple query in Gorm:

err := db.Preload("users").
    Where("orders.created_at >= now() - interval 3 day").
    Find(&orders).
          


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