[转] gorm : unsupported destination, should be slice or struct原因
https://blog.csdn.net/qq_39728668/article/details/100159712re := new(User)db := c.DB().Table(c.TableName()).Where(“user_id = ?”, c.User)err = db.First(&re).Error如果不通过new关键字实例化就会报错unsupporte...
转载
2020-03-10 22:32:00 ·
2040 阅读 ·
0 评论