mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 18:20:47 +00:00
代码生成类型匹配
This commit is contained in:
@@ -42,7 +42,10 @@ func SelectDbTableColumnsByName(tableName string) ([]*Entity, error) {
|
||||
g.Log().Error(err)
|
||||
return nil, gerror.New("查询列信息失败")
|
||||
}
|
||||
result.Structs(&entity)
|
||||
err = result.Structs(&entity)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return entity, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user