fix: converters (#1413)

* fix: converters

* fix: converters

* comments
This commit is contained in:
Livio Amstutz
2021-03-12 14:06:05 +01:00
committed by GitHub
parent af55c4a65c
commit e9eb5b7848
27 changed files with 149 additions and 58 deletions

View File

@@ -18,6 +18,20 @@ func DomainToDetailsPb(objectDetail *domain.ObjectDetails) *object_pb.ObjectDeta
}
}
func ToViewDetailsPb(
sequence uint64,
creationDate,
changeDate time.Time,
resourceOwner string,
) *object_pb.ObjectDetails {
return &object_pb.ObjectDetails{
Sequence: sequence,
CreationDate: timestamppb.New(creationDate),
ChangeDate: timestamppb.New(changeDate),
ResourceOwner: resourceOwner,
}
}
func ToDetailsPb(
sequence uint64,
changeDate time.Time,