mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2025-01-03 01:22:21 +02:00
сделал mutex_GetVersionModel
This commit is contained in:
parent
dc7df48dd7
commit
67682e3d65
@ -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 := &grpc_proto.RequestId{}
|
||||||
Request.ID = int64(m.ID)
|
Request.ID = int64(m.ID)
|
||||||
Request.VersionModel = VersionModel
|
Request.VersionModel = versionModel
|
||||||
|
|
||||||
ctxMain := context.Background()
|
ctxMain := context.Background()
|
||||||
ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*time.Duration(constants.TIMEOUT_SECONDS))
|
ctx, ctxCancelFunc := context.WithTimeout(ctxMain, time.Second*time.Duration(constants.TIMEOUT_SECONDS))
|
||||||
|
@ -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 := &grpc_proto.RequestId{}
|
||||||
Request.ID = int64(m.ID)
|
Request.ID = int64(m.ID)
|
||||||
Request.VersionModel = VersionModel
|
Request.VersionModel = versionModel
|
||||||
|
|
||||||
// запрос
|
// запрос
|
||||||
Response, err := nrpc_client.Client.LawsuitStatusType_Read(Request)
|
Response, err := nrpc_client.Client.LawsuitStatusType_Read(Request)
|
||||||
|
Loading…
Reference in New Issue
Block a user