This commit is contained in:
白茶清欢 2024-04-14 22:00:46 +08:00
parent fcb092cece
commit 43d5356d9e

View File

@ -79,7 +79,7 @@ func ParseCreateTableSql(sql string) (*BasicTableInfo, error) {
columnDefined, _, getColumnFunc := generateTableColumnDefined(basic.ModelStructName, r.TableSpec.Columns) columnDefined, _, getColumnFunc := generateTableColumnDefined(basic.ModelStructName, r.TableSpec.Columns)
basic.ColumnDescDefined = columnDefined basic.ColumnDescDefined = columnDefined
basic.ModelStruct += getColumnFunc basic.ModelStruct += getColumnFunc
basic.ModelStruct = basic.ColumnDefined + `\n` + basic.ModelStruct basic.ModelStruct = basic.ColumnDescDefined + "\n" + basic.ModelStruct
return basic, nil return basic, nil
} }