mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-08 20:57:45 +02:00
feat:#36 added new event grpc message
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user