mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-08 04:39:13 +02:00
feat:#36 updated feed service with more protobuf endpoints
This commit is contained in:
@@ -31,3 +31,13 @@ func eventsToProto(events model.Events) []*pb.Event {
|
||||
}
|
||||
return protoEvents
|
||||
}
|
||||
|
||||
func feedToProto(feed *model.Feed) *pb.Feed {
|
||||
return &pb.Feed{
|
||||
Id: feed.Id,
|
||||
Created: feed.Created.String(),
|
||||
Updated: feed.Updated.String(),
|
||||
Retrieved: feed.Retrieved.String(),
|
||||
Modules: feed.Modules,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user