carpool-incentives/grpc/server/incentives.go

14 lines
304 B
Go

package grpcserver
import (
"git.coopgo.io/coopgo-platform/carpool-incentives/grpc/proto"
"git.coopgo.io/coopgo-platform/carpool-incentives/storage"
)
func IncentiveFromStorage(incentive storage.Incentive) proto.Incentive {
return proto.Incentive{
Id: incentive.ID,
Name: incentive.Name,
}
}