1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-11-27 08:40:53 +02:00

сделал Replace_TemplateTableName_to_TableName()

This commit is contained in:
Nikitin Aleksandr 2024-09-09 13:01:00 +03:00
parent 09b50fe1e0
commit f4f5d67759
2 changed files with 4 additions and 3 deletions

View File

@ -1 +1,2 @@
[{"Table":"connections","Columns":["branch_id"]}]
[{"Table":"connections","Columns":["branch_id"]},
{"Table":"file_types","Columns":[]}]

View File

@ -3068,10 +3068,10 @@ func Replace_TemplateModel_to_Model(Text, ModelName string) string {
}
// Replace_TemplateTableName_to_TableName - заменяет текст имя таблицы в шаблоне на имя таблицы новое
func Replace_TemplateTableName_to_TableName(Text, ModelName string) string {
func Replace_TemplateTableName_to_TableName(Text, TableName string) string {
Otvet := Text
Otvet = strings.ReplaceAll(Otvet, config.Settings.TEXT_TEMPLATE_MODEL, ModelName)
Otvet = strings.ReplaceAll(Otvet, config.Settings.TEXT_TEMPLATE_TABLENAME, TableName)
return Otvet
}