摘要: 查询: // model方法的作用 err = db.Model(&model.StreamPath{}).Where("id = ?", cast.ToUint(id)).First(&sp).Error 更新多个字段 err = db.Model(&sp).Updates(map[string] 阅读全文
posted @ 2024-05-07 21:24 潜行1 阅读(22) 评论(0) 推荐(0)