add online games

This commit is contained in:
2026-09-13 01:02:40 +07:00
parent 3e555c9944
commit 0723644d3f
14 changed files with 170 additions and 12 deletions
+1
View File
@@ -25,6 +25,7 @@ func mapGame(
Description: o.Description,
StartAt: timestamppb.New(o.StartAt),
Status: o.Status,
Format: o.Format,
Scenario: mapScenario(o.Scenario),
Teams: mapTeams(o.Teams),
StartedAt: startedAt,
+2
View File
@@ -1152,6 +1152,7 @@ func (s *server) AddGame(ctx context.Context, req *proto.AddGameReq) (*proto.Add
req.Description,
req.StartAt.AsTime(),
req.ScenarioId,
req.Format,
)
if err != nil {
return &proto.AddGameRsp{
@@ -1274,6 +1275,7 @@ func (s *server) UpdateGame(ctx context.Context, req *proto.UpdateGameReq) (*pro
req.Description,
req.StartAt.AsTime(),
req.ScenarioId,
req.Format,
)
if err != nil {
return &proto.UpdateGameRsp{