From 3a8f0d7149e120022f1f1d5578c40deb92fb2fd0 Mon Sep 17 00:00:00 2001 From: Nikitin Aleksandr Date: Thu, 8 Feb 2024 12:33:39 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D1=83?= =?UTF-8?q?=D0=B1=D1=80=D0=B0=D0=BB=20.proto=2070?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../grpc/grpc_client/grpc_client_table.go_ | 28 +++++++++---------- .../nrpc/nrpc_client/nrpc_client_table.go_ | 28 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) diff --git a/examples/rapira/templates_main/pkg/network/grpc/grpc_client/grpc_client_table.go_ b/examples/rapira/templates_main/pkg/network/grpc/grpc_client/grpc_client_table.go_ index 8a041aa..a2a4c44 100644 --- a/examples/rapira/templates_main/pkg/network/grpc/grpc_client/grpc_client_table.go_ +++ b/examples/rapira/templates_main/pkg/network/grpc/grpc_client/grpc_client_table.go_ @@ -41,7 +41,7 @@ func (crud Crud_GRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if grpc_client.Client == nil { + if grpc_client.LawsuitStatusTypeClient == nil { grpc_client.Connect() } @@ -57,7 +57,7 @@ func (crud Crud_GRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error { defer ctxCancelFunc() // запрос - Response, err := grpc_client.Client.LawsuitStatusType_Read(ctx, Request) + Response, err := grpc_client.LawsuitStatusTypeClient.Read(ctx, Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -81,7 +81,7 @@ func (crud Crud_GRPC) Create(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if grpc_client.Client == nil { + if grpc_client.LawsuitStatusTypeClient == nil { grpc_client.Connect() } @@ -101,7 +101,7 @@ func (crud Crud_GRPC) Create(m *lawsuit_status_types.LawsuitStatusType) error { defer ctxCancelFunc() // запрос - Response, err := grpc_client.Client.LawsuitStatusType_Create(ctx, Request) + Response, err := grpc_client.LawsuitStatusTypeClient.Create(ctx, Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -125,7 +125,7 @@ func (crud Crud_GRPC) Update(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if grpc_client.Client == nil { + if grpc_client.LawsuitStatusTypeClient == nil { grpc_client.Connect() } @@ -145,7 +145,7 @@ func (crud Crud_GRPC) Update(m *lawsuit_status_types.LawsuitStatusType) error { defer ctxCancelFunc() // запрос - Response, err := grpc_client.Client.LawsuitStatusType_Update(ctx, Request) + Response, err := grpc_client.LawsuitStatusTypeClient.Update(ctx, Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -169,7 +169,7 @@ func (crud Crud_GRPC) Save(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if grpc_client.Client == nil { + if grpc_client.LawsuitStatusTypeClient == nil { grpc_client.Connect() } @@ -189,7 +189,7 @@ func (crud Crud_GRPC) Save(m *lawsuit_status_types.LawsuitStatusType) error { defer ctxCancelFunc() // запрос - Response, err := grpc_client.Client.LawsuitStatusType_Save(ctx, Request) + Response, err := grpc_client.LawsuitStatusTypeClient.Save(ctx, Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -213,7 +213,7 @@ func (crud Crud_GRPC) Delete(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if grpc_client.Client == nil { + if grpc_client.LawsuitStatusTypeClient == nil { grpc_client.Connect() } @@ -229,7 +229,7 @@ func (crud Crud_GRPC) Delete(m *lawsuit_status_types.LawsuitStatusType) error { defer ctxCancelFunc() // запрос - Response, err := grpc_client.Client.LawsuitStatusType_Delete(ctx, Request) + Response, err := grpc_client.LawsuitStatusTypeClient.Delete(ctx, Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -253,7 +253,7 @@ func (crud Crud_GRPC) Restore(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if grpc_client.Client == nil { + if grpc_client.LawsuitStatusTypeClient == nil { grpc_client.Connect() } @@ -269,7 +269,7 @@ func (crud Crud_GRPC) Restore(m *lawsuit_status_types.LawsuitStatusType) error { defer ctxCancelFunc() // запрос - Response, err := grpc_client.Client.LawsuitStatusType_Restore(ctx, Request) + Response, err := grpc_client.LawsuitStatusTypeClient.Restore(ctx, Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -291,7 +291,7 @@ func (crud Crud_GRPC) Restore(m *lawsuit_status_types.LawsuitStatusType) error { // Find_ByExtID - находит модель в БД по ext_id и connection_id func (crud Crud_GRPC) Find_ByExtID(m *lawsuit_status_types.LawsuitStatusType) error { //подключение - if grpc_client.Client == nil { + if grpc_client.LawsuitStatusTypeClient == nil { grpc_client.Connect() } @@ -308,7 +308,7 @@ func (crud Crud_GRPC) Find_ByExtID(m *lawsuit_status_types.LawsuitStatusType) er defer ctxCancelFunc() //запрос - Response, err := grpc_client.Client.LawsuitStatusType_FindByExtID(ctx, Request) + Response, err := grpc_client.LawsuitStatusTypeClient.FindByExtID(ctx, Request) if err != nil { sError := err.Error() if sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { diff --git a/examples/rapira/templates_main/pkg/network/nrpc/nrpc_client/nrpc_client_table.go_ b/examples/rapira/templates_main/pkg/network/nrpc/nrpc_client/nrpc_client_table.go_ index 5f640a6..71898ee 100644 --- a/examples/rapira/templates_main/pkg/network/nrpc/nrpc_client/nrpc_client_table.go_ +++ b/examples/rapira/templates_main/pkg/network/nrpc/nrpc_client/nrpc_client_table.go_ @@ -39,7 +39,7 @@ func (crud Crud_NRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if nrpc_client.Client == nil { + if nrpc_client.LawsuitStatusTypeClient == nil { nrpc_client.Connect() } @@ -51,7 +51,7 @@ func (crud Crud_NRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error { Request.VersionModel = versionModel // запрос - Response, err := nrpc_client.Client.LawsuitStatusType_Read(Request) + Response, err := nrpc_client.LawsuitStatusTypeClient.Read(Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -75,7 +75,7 @@ func (crud Crud_NRPC) Create(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if nrpc_client.Client == nil { + if nrpc_client.LawsuitStatusTypeClient == nil { nrpc_client.Connect() } @@ -91,7 +91,7 @@ func (crud Crud_NRPC) Create(m *lawsuit_status_types.LawsuitStatusType) error { Request.VersionModel = VersionModel // запрос - Response, err := nrpc_client.Client.LawsuitStatusType_Create(Request) + Response, err := nrpc_client.LawsuitStatusTypeClient.Create(Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -115,7 +115,7 @@ func (crud Crud_NRPC) Update(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if nrpc_client.Client == nil { + if nrpc_client.LawsuitStatusTypeClient == nil { nrpc_client.Connect() } @@ -131,7 +131,7 @@ func (crud Crud_NRPC) Update(m *lawsuit_status_types.LawsuitStatusType) error { Request.VersionModel = VersionModel // запрос - Response, err := nrpc_client.Client.LawsuitStatusType_Update(Request) + Response, err := nrpc_client.LawsuitStatusTypeClient.Update(Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -155,7 +155,7 @@ func (crud Crud_NRPC) Save(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if nrpc_client.Client == nil { + if nrpc_client.LawsuitStatusTypeClient == nil { nrpc_client.Connect() } @@ -171,7 +171,7 @@ func (crud Crud_NRPC) Save(m *lawsuit_status_types.LawsuitStatusType) error { Request.VersionModel = VersionModel // запрос - Response, err := nrpc_client.Client.LawsuitStatusType_Save(Request) + Response, err := nrpc_client.LawsuitStatusTypeClient.Save(Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -195,7 +195,7 @@ func (crud Crud_NRPC) Delete(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if nrpc_client.Client == nil { + if nrpc_client.LawsuitStatusTypeClient == nil { nrpc_client.Connect() } @@ -207,7 +207,7 @@ func (crud Crud_NRPC) Delete(m *lawsuit_status_types.LawsuitStatusType) error { Request.VersionModel = VersionModel // запрос - Response, err := nrpc_client.Client.LawsuitStatusType_Delete(Request) + Response, err := nrpc_client.LawsuitStatusTypeClient.Delete(Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -231,7 +231,7 @@ func (crud Crud_NRPC) Restore(m *lawsuit_status_types.LawsuitStatusType) error { // var Otvet lawsuit_status_types.LawsuitStatusType // подключение - if nrpc_client.Client == nil { + if nrpc_client.LawsuitStatusTypeClient == nil { nrpc_client.Connect() } @@ -243,7 +243,7 @@ func (crud Crud_NRPC) Restore(m *lawsuit_status_types.LawsuitStatusType) error { Request.VersionModel = VersionModel // запрос - Response, err := nrpc_client.Client.LawsuitStatusType_Restore(Request) + Response, err := nrpc_client.LawsuitStatusTypeClient.Restore(Request) if err != nil { sError := err.Error() if len(sError) >= len(constants.TEXT_ERROR_MODEL_VERSION) && sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION { @@ -265,7 +265,7 @@ func (crud Crud_NRPC) Restore(m *lawsuit_status_types.LawsuitStatusType) error { // Find_ByExtID - находит модель в БД по ext_id и connection_id func (crud Crud_NRPC) Find_ByExtID(m *lawsuit_status_types.LawsuitStatusType) error { //подключение - if nrpc_client.Client == nil { + if nrpc_client.LawsuitStatusTypeClient == nil { nrpc_client.Connect() } @@ -278,7 +278,7 @@ func (crud Crud_NRPC) Find_ByExtID(m *lawsuit_status_types.LawsuitStatusType) er Request.VersionModel = VersionModel //запрос - Response, err := nrpc_client.Client.LawsuitStatusType_FindByExtID(Request) + Response, err := nrpc_client.LawsuitStatusTypeClient.FindByExtID(Request) if err != nil { sError := err.Error() if sError[0:len(constants.TEXT_ERROR_MODEL_VERSION)] == constants.TEXT_ERROR_MODEL_VERSION {