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:
parent
40b0e32bb9
commit
4425f061bb
@ -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()"
|
||||
|
@ -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 + `
|
||||
|
Loading…
Reference in New Issue
Block a user