generated from VLADIMIR/template
add team service
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
package app
|
||||
|
||||
import (
|
||||
"evening_detective_server/internal/services/game_service"
|
||||
"evening_detective_server/internal/modules/game_model"
|
||||
"evening_detective_server/proto"
|
||||
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
||||
func mapGame(
|
||||
o *game_service.Game,
|
||||
o *game_model.Game,
|
||||
) *proto.Game {
|
||||
var startedAt *timestamppb.Timestamp
|
||||
if o.StartedAt != nil {
|
||||
@@ -38,7 +38,7 @@ func mapGame(
|
||||
}
|
||||
|
||||
func mapGames(
|
||||
o []*game_service.Game,
|
||||
o []*game_model.Game,
|
||||
) []*proto.Game {
|
||||
res := make([]*proto.Game, 0, len(o))
|
||||
for _, item := range o {
|
||||
|
||||
Reference in New Issue
Block a user