1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2025-01-06 01:23:15 +02:00

сделал FindText_ConvertToString()

This commit is contained in:
Nikitin Aleksandr 2024-12-11 14:54:45 +03:00
parent 40b0e32bb9
commit 4425f061bb
2 changed files with 3 additions and 2 deletions

View File

@ -2534,7 +2534,8 @@ func FindText_ConvertToString(Column1 *types.Column, VariableName string) string
if Column1 == nil {
return Otvet
}
Otvet = VariableName + "." + Column1.NameGo
Otvet = VariableName
//Otvet = VariableName + "." + Column1.NameGo
switch Column1.TypeGo {
case "time.Time":
Otvet = VariableName + ".String()"

View File

@ -35,7 +35,7 @@ func StringIdentifier(` + TextNamesTypes + `) string {
continue
}
TextConvert := create_files.FindText_ConvertToString(Column1, Column1.NameGo)
Text = Text + "\tOtvet = Otvet + " + `"_" + ` + TextConvert + "\n"
Text = Text + "\tOtvet = Otvet + " + TextConvert + ` + "_"` + "\n"
}
Text = Text + `