1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-11-21 05:05:52 +02:00

сделал CreateFiles_FindModelBy()

This commit is contained in:
Nikitin Aleksandr 2024-11-02 13:40:06 +03:00
parent decc46e081
commit b0bd1d9d7d
2 changed files with 8 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import (
"gitlab.aescorp.ru/dsp_dev/claim/sync_service/pkg/object_model/entities/lawsuit_status_types"
)
// ObjectLawsuitStatusType - объект для таблицы lawsuit_status_types: Статусы дел (справочник).
// ObjectLawsuitStatusType - объект для таблицы lawsuit_status_types: //TextDescription
type ObjectLawsuitStatusType struct {
lawsuit_status_types.LawsuitStatusType
//TextNewFields

View File

@ -61,6 +61,9 @@ func CreateFiles(MapAll map[string]*types.Table, Table1 *types.Table) error {
////замена импортов на новые URL
//TextGo = create_files.Replace_RepositoryImportsURL(TextGo)
//заменим имя модели
TextGo = create_files.Replace_ModelAndTableName(TextGo, Table1)
//uuid
TextGo = create_files.CheckAndAdd_ImportUUID_FromText(TextGo)
@ -128,7 +131,11 @@ func CreateFiles1(MapAll map[string]*types.Table, Table1 *types.Table, TextGo st
}
//новые поля
Otvet = strings.ReplaceAll(Otvet, "//TextNewFields\n", TextField)
//описание таблицы
Otvet = strings.ReplaceAll(Otvet, "//TextDescription", Table1.Comment)
return Otvet
}