You've already forked crud_generator
mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-07-16 02:54:19 +02:00
сделал crud_starter_tables
This commit is contained in:
@ -575,6 +575,15 @@
|
|||||||
"guregu_type": "null.Int",
|
"guregu_type": "null.Int",
|
||||||
"go_nullable_type": "sql.NullInt64",
|
"go_nullable_type": "sql.NullInt64",
|
||||||
"swagger_type": "int64"
|
"swagger_type": "int64"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"sql_type": "timetz",
|
||||||
|
"go_type": "time.Time",
|
||||||
|
"json_type": "Text",
|
||||||
|
"protobuf_type": "google.protobuf.Timestamp",
|
||||||
|
"guregu_type": "null.Time",
|
||||||
|
"go_nullable_type": "time.Time",
|
||||||
|
"swagger_type": "time.Time"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -645,14 +645,14 @@ func FillTypeGo(SettingsFill types.SettingsFillFromDatabase, Column1 *types.Colu
|
|||||||
|
|
||||||
SQLMapping1, ok := SettingsFill.MapDBTypes[Column1.Type]
|
SQLMapping1, ok := SettingsFill.MapDBTypes[Column1.Type]
|
||||||
if ok == false {
|
if ok == false {
|
||||||
log.Panic("FillTypeGo() Column1.Type: ", Column1.Type, " error: not found")
|
log.Panic("FillTypeGo() Column1.Type: ", Column1.Type, ", error: not found")
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnName := Column1.Name
|
ColumnName := Column1.Name
|
||||||
Type_go := SQLMapping1.GoType
|
Type_go := SQLMapping1.GoType
|
||||||
Column1.TypeGo = Type_go
|
Column1.TypeGo = Type_go
|
||||||
if Type_go == "" {
|
if Type_go == "" {
|
||||||
err = errors.New("FillTypeGo() error: Column: " + ColumnName + " Type: " + Column1.Type + " TypeGo= \"\"")
|
err = errors.New("FillTypeGo() error: Column: " + ColumnName + ", Type: " + Column1.Type + ", TypeGo= \"\"")
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user