admin管理员组

文章数量:1635961

https://blog.csdn/qq_39728668/article/details/100159712
re := new(User)
db := c.DB().Table(c.TableName()).
Where(“user_id = ?”, c.User)
err = db.First(&re).Error
如果不通过new关键字实例化就会报错
unsupported destination, should be slice or struct

本文标签: 原因unsupportedgormdestinationstruct