mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-11-24 08:22:42 +02:00
сделал Replace_TemplateTableName_to_TableName()
This commit is contained in:
parent
09b50fe1e0
commit
f4f5d67759
@ -1 +1,2 @@
|
||||
[{"Table":"connections","Columns":["branch_id"]}]
|
||||
[{"Table":"connections","Columns":["branch_id"]},
|
||||
{"Table":"file_types","Columns":[]}]
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user