generated from VLADIMIR/template
add format string
This commit is contained in:
@@ -175,7 +175,7 @@ func (s *StoryService) updatePlace(ctx context.Context, code string, node *Graph
|
||||
if s.story.Places[i].Code == code {
|
||||
s.story.Places[i] = models.NewPlace(
|
||||
node.Code,
|
||||
node.Name,
|
||||
s.formatter.FormatString(node.Name),
|
||||
s.formatter.FormatText(node.Text),
|
||||
models.WithPlaceImage(node.Image),
|
||||
models.WithPlaceApplication(s.getApplications(node)...),
|
||||
@@ -189,7 +189,7 @@ func (s *StoryService) updatePlace(ctx context.Context, code string, node *Graph
|
||||
if s.story.Places[i].Code == node.Code {
|
||||
s.story.Places[i] = models.NewPlace(
|
||||
code,
|
||||
node.Name,
|
||||
s.formatter.FormatString(node.Name),
|
||||
s.formatter.FormatText(node.Text),
|
||||
models.WithPlaceImage(node.Image),
|
||||
models.WithPlaceApplication(s.getApplications(node)...),
|
||||
@@ -208,7 +208,7 @@ func (s *StoryService) getApplications(node *GraphNode) []*models.Application {
|
||||
nodeApplications = append(
|
||||
nodeApplications,
|
||||
&models.Application{
|
||||
Name: application.Name,
|
||||
Name: s.formatter.FormatString(application.Name),
|
||||
},
|
||||
)
|
||||
}
|
||||
@@ -222,7 +222,7 @@ func (s *StoryService) getDoors(node *GraphNode) []*models.Door {
|
||||
nodeDoors,
|
||||
&models.Door{
|
||||
Code: door.Code,
|
||||
Name: door.Name,
|
||||
Name: s.formatter.FormatString(door.Name),
|
||||
Show: door.Show,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user