数据库支持更新一条数据

This commit is contained in:
2024-01-13 17:08:47 +08:00
parent a76c0a7f8b
commit 1a63a89faf
4 changed files with 49 additions and 13 deletions

View File

@ -22,6 +22,8 @@ type Base interface {
Create(dbInstance *gorm.DB, data interface{}, optionList ...database.SetOption) error
// Update 更新数据
Update(dbInstance *gorm.DB, updateData interface{}, optionFuncList ...database.SetOption) (int64, error)
// UpdateOne 更新一条数据
UpdateOne(dbInstance *gorm.DB, updateData interface{}, optionFuncList ...database.SetOption) (int64, error)
// List 查询数据列表
List(dbInstance *gorm.DB, result interface{}, optionFuncList ...database.SetOption) error
// Delete 删除数据