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:
parent
decc46e081
commit
b0bd1d9d7d
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user