feat:#36 added new event grpc message

This commit is contained in:
Elmar Kresse
2024-06-18 12:50:21 +02:00
parent 56e77630b5
commit 08140b5802
14 changed files with 510 additions and 50 deletions

View File

@@ -23,3 +23,11 @@ func eventToProto(event *model.Event) *pb.Event {
Semester: event.Semester,
}
}
func eventsToProto(events model.Events) []*pb.Event {
protoEvents := make([]*pb.Event, 0)
for _, event := range events {
protoEvents = append(protoEvents, eventToProto(&event))
}
return protoEvents
}