|
@ -19,8 +19,10 @@ func XormOneDb(db *gocloud.DBHelper, id, data interface{}, columns ...interface{ |
|
|
col := "id" |
|
|
col := "id" |
|
|
if len(columns) > 0 { |
|
|
if len(columns) > 0 { |
|
|
cols, ok := columns[0].(string) |
|
|
cols, ok := columns[0].(string) |
|
|
if ok && cols != "" { |
|
|
|
|
|
col = cols |
|
|
|
|
|
|
|
|
if ok { |
|
|
|
|
|
if cols != "" { |
|
|
|
|
|
col = cols |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
ses = ses.Table(columns[0]) |
|
|
ses = ses.Table(columns[0]) |
|
|
} |
|
|
} |
|
|