gorm json"-"返回固定对象

如果要返回固定对象,可以使用 json:"-" 更改标记以决定使用json发送的元素 . 对于gorm.Model中的元素

posted @ 2022-03-31 12:19  技术颜良  阅读(250)  评论(0)    收藏  举报