|
@ -14,6 +14,8 @@ func XormOneDb(db *gocloud.DBHelper, id, data interface{}, columns ...interface{ |
|
|
return false |
|
|
return false |
|
|
} |
|
|
} |
|
|
ses := db.GetDB().NewSession() |
|
|
ses := db.GetDB().NewSession() |
|
|
|
|
|
defer ses.Close() |
|
|
|
|
|
|
|
|
col := "id" |
|
|
col := "id" |
|
|
if len(columns) > 0 { |
|
|
if len(columns) > 0 { |
|
|
cols, ok := columns[0].(string) |
|
|
cols, ok := columns[0].(string) |
|
|