会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
guanchaoguo
博客园
首页
新随笔
联系
订阅
管理
2022年7月6日
Gorm 更新数据默认值不更新问题
摘要: 有个需求需要将用户分数更新为0分 然鹅grom 是0值不更新 找了一大圈说是用map 代替struct update 但是依然失败 方式1 type Temp struct{ Int32 sql.NullInt32 Bool bool } sql.NullInt32{Int32: 0, Valid:
阅读全文
posted @ 2022-07-06 20:02 vx_guanchaoguo0
阅读(345)
评论(0)
推荐(0)
编辑
公告