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

сделал FindText_FindBy()

This commit is contained in:
Nikitin Aleksandr 2024-12-02 13:32:00 +03:00
parent 0d082a6780
commit 4a3f4ecd74
3 changed files with 9 additions and 9 deletions

View File

@ -19,16 +19,16 @@ func FindText_FindBy(TextProto string, Table1 *types.Table) (string, string) {
Text1 := FindText_FindBy1(TableColumns1)
//проверим такой текст функции уже есть
pos1 := strings.Index(TextProto, Text1)
pos1 := strings.Index(Otvet, Text1)
if pos1 >= 0 {
continue
}
//добавим message
TextMess := AddTextMessageRequestID_Columns(TextProto, TableColumns1.Columns)
TextMess := AddTextMessageRequestID_Columns(Otvet, TableColumns1.Columns)
//проверим такой текст message уже есть
pos1 = strings.Index(TextProto, TextMess)
pos1 = strings.Index(Otvet, TextMess)
if pos1 < 0 {
Otvet = Otvet + "\n" + TextMess
}

View File

@ -20,15 +20,15 @@ func FindText_FindMassBy(TextProto string, Table1 *types.Table) (string, string)
Text1 := FindText_FindMassBy1(TableColumns1)
//проверим такой текст уже есть
pos1 := strings.Index(TextProto, Text1)
pos1 := strings.Index(Otvet, Text1)
if pos1 >= 0 {
continue
}
//добавим message
TextMess := AddTextMessageRequestID_Columns(TextProto, TableColumns1.Columns)
TextMess := AddTextMessageRequestID_Columns(Otvet, TableColumns1.Columns)
//проверим такой текст message уже есть
pos1 = strings.Index(TextProto, TextMess)
pos1 = strings.Index(Otvet, TextMess)
if pos1 < 0 {
Otvet = Otvet + "\n" + TextMess
}

View File

@ -20,16 +20,16 @@ func FindText_FindModelBy(MapAll map[string]*types.Table, TextProto string, Tabl
Text1 := FindText_FindModelBy1(MapAll, TableColumns1.Table, TableColumns1.Column)
//проверим такой текст функции уже есть
pos1 := strings.Index(TextProto, Text1)
pos1 := strings.Index(Otvet, Text1)
if pos1 >= 0 {
continue
}
//добавим message
TextMess := AddTextMessageRequestModel_Column(TextProto, TableColumns1.Column)
TextMess := AddTextMessageRequestModel_Column(Otvet, TableColumns1.Column)
//проверим такой текст message уже есть
pos1 = strings.Index(TextProto, TextMess)
pos1 = strings.Index(Otvet, TextMess)
if pos1 < 0 {
Otvet = TextMess
}