|
@@ -50,7 +50,7 @@ func (u UserDb) UserUpdate(id interface{}, user *model.User, forceColumns ...str |
|
|
err error |
|
|
err error |
|
|
) |
|
|
) |
|
|
if forceColumns != nil { |
|
|
if forceColumns != nil { |
|
|
affected, err = u.Db.Where("id=?", id).Cols(forceColumns...).Update(user) |
|
|
|
|
|
|
|
|
affected, err = u.Db.Where("id=?", id).MustCols(forceColumns...).Update(user) |
|
|
} else { |
|
|
} else { |
|
|
affected, err = u.Db.Where("id=?", id).Update(user) |
|
|
affected, err = u.Db.Where("id=?", id).Update(user) |
|
|
} |
|
|
} |
|
|