- pending store op price change request.

This commit is contained in:
gazebo
2018-12-20 15:51:11 +08:00
parent 55f2445eb4
commit 5119791de2
12 changed files with 367 additions and 2 deletions

View File

@@ -137,6 +137,14 @@ func CreateEntity(db *DaoDB, item interface{}) (err error) {
return err
}
func CreateOrUpdate(db *DaoDB, item interface{}, colConflitAndArgs ...string) (err error) {
if db == nil {
db = GetDB()
}
_, err = db.db.InsertOrUpdate(item, colConflitAndArgs...)
return err
}
func DeleteEntity(db *DaoDB, item interface{}, cols ...string) (num int64, err error) {
if db == nil {
db = GetDB()