update go mod

This commit is contained in:
2023-10-13 22:16:48 +08:00
parent 73949714fc
commit ed988d07c9
3 changed files with 64 additions and 22 deletions

View File

@ -42,9 +42,9 @@ func (b *BaseDao) Create(dbInstance *gorm.DB, data interface{}, optionList ...Se
// Author : go_developer@163.com<白茶清欢>
//
// Date : 8:12 下午 2021/8/8
func (b *BaseDao) Update(dbInstance *gorm.DB, updateDate interface{}, optionFuncList ...SetOption) (int64, error) {
func (b *BaseDao) Update(dbInstance *gorm.DB, updateData interface{}, optionFuncList ...SetOption) (int64, error) {
dbInstance = b.setTxCondition(dbInstance, optionFuncList...)
r := dbInstance.Updates(updateDate)
r := dbInstance.Updates(updateData)
return r.RowsAffected, r.Error
}