[#265] v2/signature: Support SendLocalTrust request and response

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-03-24 11:10:36 +03:00 committed by Leonard Lyubich
parent 3adfdc5005
commit 1766228cfd

View file

@ -10,6 +10,7 @@ import (
"github.com/nspcc-dev/neofs-api-go/v2/netmap" "github.com/nspcc-dev/neofs-api-go/v2/netmap"
"github.com/nspcc-dev/neofs-api-go/v2/object" "github.com/nspcc-dev/neofs-api-go/v2/object"
"github.com/nspcc-dev/neofs-api-go/v2/refs" "github.com/nspcc-dev/neofs-api-go/v2/refs"
"github.com/nspcc-dev/neofs-api-go/v2/reputation"
"github.com/nspcc-dev/neofs-api-go/v2/session" "github.com/nspcc-dev/neofs-api-go/v2/session"
"github.com/pkg/errors" "github.com/pkg/errors"
) )
@ -374,5 +375,11 @@ func serviceMessageBody(req interface{}) stableMarshaler {
return v.GetBody() return v.GetBody()
case *netmap.NetworkInfoResponse: case *netmap.NetworkInfoResponse:
return v.GetBody() return v.GetBody()
/* Reputation */
case *reputation.SendLocalTrustRequest:
return v.GetBody()
case *reputation.SendLocalTrustResponse:
return v.GetBody()
} }
} }