generated from VLADIMIR/template
fix
This commit is contained in:
@@ -41,6 +41,14 @@ func mapStoryApplicationToProtoApplication(application *story_service_models.App
|
||||
}
|
||||
}
|
||||
|
||||
func mapStoryDoorToProtoDoor(door *story_service_models.Door) *proto.Door {
|
||||
return &proto.Door{
|
||||
Code: door.Code,
|
||||
Name: door.Name,
|
||||
Show: door.Show,
|
||||
}
|
||||
}
|
||||
|
||||
func mapStoryApplicationsToApplications(applications []*story_service_models.Application) []*models.Application {
|
||||
res := make([]*models.Application, 0, len(applications))
|
||||
for _, application := range applications {
|
||||
|
||||
@@ -147,6 +147,11 @@ func (s *Services) GetTeam(ctx context.Context, req *proto.GetTeamReq) (*proto.G
|
||||
for _, application := range place.Applications {
|
||||
newAction.Applications = append(newAction.Applications, mapStoryApplicationToProtoApplication(application))
|
||||
}
|
||||
newAction.Hidden = place.Hidden
|
||||
newAction.Doors = make([]*proto.Door, 0, len(place.Doors))
|
||||
for _, door := range place.Doors {
|
||||
newAction.Doors = append(newAction.Doors, mapStoryDoorToProtoDoor(door))
|
||||
}
|
||||
res = append(res, newAction)
|
||||
}
|
||||
return &proto.GetTeamRsp{
|
||||
|
||||
Reference in New Issue
Block a user