generated from VLADIMIR/template
clear
This commit is contained in:
@@ -2,7 +2,7 @@ package services
|
||||
|
||||
import (
|
||||
"evening_detective/internal/models"
|
||||
"evening_detective/internal/services/story_service"
|
||||
story_service_models "evening_detective/internal/services/story_service/models"
|
||||
"evening_detective/proto"
|
||||
"strings"
|
||||
)
|
||||
@@ -29,19 +29,19 @@ func mapProtoTeamsToTeam(team *proto.Team) *models.Team {
|
||||
}
|
||||
}
|
||||
|
||||
func mapPlaceToProtoAction(place *story_service.Place) *proto.Action {
|
||||
func mapPlaceToProtoAction(place *story_service_models.Place) *proto.Action {
|
||||
return &proto.Action{
|
||||
Place: place.Code,
|
||||
}
|
||||
}
|
||||
|
||||
func mapStoryApplicationToProtoApplication(application *story_service.Application) *proto.Application {
|
||||
func mapStoryApplicationToProtoApplication(application *story_service_models.Application) *proto.Application {
|
||||
return &proto.Application{
|
||||
Name: application.Name,
|
||||
}
|
||||
}
|
||||
|
||||
func mapStoryApplicationsToApplications(applications []*story_service.Application) []*models.Application {
|
||||
func mapStoryApplicationsToApplications(applications []*story_service_models.Application) []*models.Application {
|
||||
res := make([]*models.Application, 0, len(applications))
|
||||
for _, application := range applications {
|
||||
res = append(res, mapStoryApplicationToApplication(application))
|
||||
@@ -49,7 +49,7 @@ func mapStoryApplicationsToApplications(applications []*story_service.Applicatio
|
||||
return res
|
||||
}
|
||||
|
||||
func mapStoryApplicationToApplication(application *story_service.Application) *models.Application {
|
||||
func mapStoryApplicationToApplication(application *story_service_models.Application) *models.Application {
|
||||
return &models.Application{
|
||||
Name: application.Name,
|
||||
State: "NEW",
|
||||
|
||||
Reference in New Issue
Block a user