数据库支持更新一条数据
This commit is contained in:
@ -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 删除数据
|
||||
|
Reference in New Issue
Block a user