作者 tangxvhui

调整合并冲突

@@ -44,11 +44,7 @@ func (repository *ArticleRepository) Update(ctx context.Context, conn transactio @@ -44,11 +44,7 @@ func (repository *ArticleRepository) Update(ctx context.Context, conn transactio
44 return nil, err 44 return nil, err
45 } 45 }
46 queryFunc := func() (interface{}, error) { 46 queryFunc := func() (interface{}, error) {
47 -<<<<<<< HEAD  
48 - tx = tx.Model(m).Save(m)  
49 -=======  
50 tx = tx.Model(m).Select("*").Updates(m) 47 tx = tx.Model(m).Select("*").Updates(m)
51 ->>>>>>> dev  
52 return nil, tx.Error 48 return nil, tx.Error
53 } 49 }
54 if _, err = repository.Query(queryFunc, m.CacheKeyFunc()); err != nil { 50 if _, err = repository.Query(queryFunc, m.CacheKeyFunc()); err != nil {