carpool-incentives/grpc/server/incentives.go

14 lines
304 B
Go
Raw Normal View History

2023-03-12 23:23:59 +00:00
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,
}
}