1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-22 00:36:41 +02:00

сделал mutex_GetVersionModel

This commit is contained in:
Nikitin Aleksandr 2024-01-23 17:23:21 +03:00
parent dc7df48dd7
commit 67682e3d65
2 changed files with 4 additions and 4 deletions

View File

@ -46,11 +46,11 @@ func (crud Crud_GRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error {
}
// подготовка запроса
var VersionModel = crud.GetVersionModel()
var versionModel = crud.GetVersionModel()
Request := &grpc_proto.RequestId{}
Request.ID = int64(m.ID)
Request.VersionModel = VersionModel
Request.VersionModel = versionModel
ctxMain := context.Background()
ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*time.Duration(constants.TIMEOUT_SECONDS))

View File

@ -44,11 +44,11 @@ func (crud Crud_NRPC) Read(m *lawsuit_status_types.LawsuitStatusType) error {
}
// подготовка запроса
var VersionModel = crud.GetVersionModel()
var versionModel = crud.GetVersionModel()
Request := &grpc_proto.RequestId{}
Request.ID = int64(m.ID)
Request.VersionModel = VersionModel
Request.VersionModel = versionModel
// запрос
Response, err := nrpc_client.Client.LawsuitStatusType_Read(Request)