From 05cab1df897b273a805cc9aa918d996876cce5e9 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Sat, 7 Mar 2026 21:25:32 +0700 Subject: [PATCH] fix --- api/main.proto | 66 ++++--- internal/services/mappers.go | 8 + internal/services/services.go | 5 + proto/main.pb.go | 344 +++++++++++++++++++++------------- proto/main.swagger.json | 23 +++ 5 files changed, 287 insertions(+), 159 deletions(-) diff --git a/api/main.proto b/api/main.proto index e8a65c1..58f64fc 100644 --- a/api/main.proto +++ b/api/main.proto @@ -86,7 +86,7 @@ service EveningDetective { rpc UpdateNode(UpdateNodeReq) returns (UpdateNodeRsp) { option (google.api.http) = { - put: "/graph/nodes", + put : "/graph/nodes", body: "*" }; } @@ -109,8 +109,8 @@ message AddTeamsRsp { } message TeamFull { - int64 id = 1; - string name = 2; + int64 id = 1; + string name = 2; string password = 3; } @@ -127,24 +127,30 @@ message GetTeamsCSVRsp { } message TeamAdvanced { - int64 id = 1; - string name = 2; - string password = 3; - string url = 4; - int64 spendTime = 5; + int64 id = 1; + string name = 2; + string password = 3; + string url = 4; + int64 spendTime = 5; repeated Application applications = 6; } message Application { - int64 id = 1; - string name = 2; + int64 id = 1; + string name = 2; string state = 3; } +message Door { + string code = 1; + string name = 2; + bool show = 3; +} + message GetTeamReq {} message GetTeamRsp { - string name = 1; + string name = 1; repeated Action actions = 2; } @@ -155,19 +161,21 @@ message AddActionReq { message AddActionRsp {} message Action { - int64 id = 1; - string place = 2; - string name = 3; - string text = 4; + int64 id = 1; + string place = 2; + string name = 3; + string text = 4; repeated Application applications = 5; + bool hidden = 6; + repeated Door doors = 7; } message GetGameReq {} message GetGameRsp { - string state = 1; + string state = 1; string startAt = 2; - string endAt = 3; + string endAt = 3; } message GameStartReq {} @@ -181,7 +189,7 @@ message GameStopReq { message GameStopRsp {} message GiveApplicationsReq { - int64 teamId = 1; + int64 teamId = 1; repeated Application applications = 2; } @@ -196,30 +204,30 @@ message DownloadTeamsQrCodesFileRsp { message GetGraphReq {} message GetGraphRsp { - repeated GraphNode nodes = 1; - repeated Edge edges = 2; - int32 countNodes = 3; - int32 countEdges = 4; + repeated GraphNode nodes = 1; + repeated Edge edges = 2; + int32 countNodes = 3; + int32 countEdges = 4; message Edge { - string from = 1; - string to = 2; + string from = 1; + string to = 2; string arrows = 3; - string type = 4; + string type = 4; } } message UpdateNodeReq { - string code = 1; + string code = 1; GraphNode node = 2; } message UpdateNodeRsp {} message GraphNode { - string code = 1; - string name = 2; - string text = 3; + string code = 1; + string name = 2; + string text = 3; repeated GraphApplication applications = 4; } diff --git a/internal/services/mappers.go b/internal/services/mappers.go index b374b3c..3b79fc2 100644 --- a/internal/services/mappers.go +++ b/internal/services/mappers.go @@ -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 { diff --git a/internal/services/services.go b/internal/services/services.go index 5f1642d..0a6c203 100644 --- a/internal/services/services.go +++ b/internal/services/services.go @@ -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{ diff --git a/proto/main.pb.go b/proto/main.pb.go index 8dc6763..ea829b1 100644 --- a/proto/main.pb.go +++ b/proto/main.pb.go @@ -590,6 +590,66 @@ func (x *Application) GetState() string { return "" } +type Door struct { + state protoimpl.MessageState `protogen:"open.v1"` + Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Show bool `protobuf:"varint,3,opt,name=show,proto3" json:"show,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Door) Reset() { + *x = Door{} + mi := &file_main_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Door) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Door) ProtoMessage() {} + +func (x *Door) ProtoReflect() protoreflect.Message { + mi := &file_main_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Door.ProtoReflect.Descriptor instead. +func (*Door) Descriptor() ([]byte, []int) { + return file_main_proto_rawDescGZIP(), []int{12} +} + +func (x *Door) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *Door) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Door) GetShow() bool { + if x != nil { + return x.Show + } + return false +} + type GetTeamReq struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -598,7 +658,7 @@ type GetTeamReq struct { func (x *GetTeamReq) Reset() { *x = GetTeamReq{} - mi := &file_main_proto_msgTypes[12] + mi := &file_main_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -610,7 +670,7 @@ func (x *GetTeamReq) String() string { func (*GetTeamReq) ProtoMessage() {} func (x *GetTeamReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[12] + mi := &file_main_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -623,7 +683,7 @@ func (x *GetTeamReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTeamReq.ProtoReflect.Descriptor instead. func (*GetTeamReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{12} + return file_main_proto_rawDescGZIP(), []int{13} } type GetTeamRsp struct { @@ -636,7 +696,7 @@ type GetTeamRsp struct { func (x *GetTeamRsp) Reset() { *x = GetTeamRsp{} - mi := &file_main_proto_msgTypes[13] + mi := &file_main_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -648,7 +708,7 @@ func (x *GetTeamRsp) String() string { func (*GetTeamRsp) ProtoMessage() {} func (x *GetTeamRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[13] + mi := &file_main_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -661,7 +721,7 @@ func (x *GetTeamRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetTeamRsp.ProtoReflect.Descriptor instead. func (*GetTeamRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{13} + return file_main_proto_rawDescGZIP(), []int{14} } func (x *GetTeamRsp) GetName() string { @@ -687,7 +747,7 @@ type AddActionReq struct { func (x *AddActionReq) Reset() { *x = AddActionReq{} - mi := &file_main_proto_msgTypes[14] + mi := &file_main_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -699,7 +759,7 @@ func (x *AddActionReq) String() string { func (*AddActionReq) ProtoMessage() {} func (x *AddActionReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[14] + mi := &file_main_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -712,7 +772,7 @@ func (x *AddActionReq) ProtoReflect() protoreflect.Message { // Deprecated: Use AddActionReq.ProtoReflect.Descriptor instead. func (*AddActionReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{14} + return file_main_proto_rawDescGZIP(), []int{15} } func (x *AddActionReq) GetPlace() string { @@ -730,7 +790,7 @@ type AddActionRsp struct { func (x *AddActionRsp) Reset() { *x = AddActionRsp{} - mi := &file_main_proto_msgTypes[15] + mi := &file_main_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -742,7 +802,7 @@ func (x *AddActionRsp) String() string { func (*AddActionRsp) ProtoMessage() {} func (x *AddActionRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[15] + mi := &file_main_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -755,7 +815,7 @@ func (x *AddActionRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use AddActionRsp.ProtoReflect.Descriptor instead. func (*AddActionRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{15} + return file_main_proto_rawDescGZIP(), []int{16} } type Action struct { @@ -765,13 +825,15 @@ type Action struct { Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,omitempty"` Applications []*Application `protobuf:"bytes,5,rep,name=applications,proto3" json:"applications,omitempty"` + Hidden bool `protobuf:"varint,6,opt,name=hidden,proto3" json:"hidden,omitempty"` + Doors []*Door `protobuf:"bytes,7,rep,name=doors,proto3" json:"doors,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Action) Reset() { *x = Action{} - mi := &file_main_proto_msgTypes[16] + mi := &file_main_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -783,7 +845,7 @@ func (x *Action) String() string { func (*Action) ProtoMessage() {} func (x *Action) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[16] + mi := &file_main_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -796,7 +858,7 @@ func (x *Action) ProtoReflect() protoreflect.Message { // Deprecated: Use Action.ProtoReflect.Descriptor instead. func (*Action) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{16} + return file_main_proto_rawDescGZIP(), []int{17} } func (x *Action) GetId() int64 { @@ -834,6 +896,20 @@ func (x *Action) GetApplications() []*Application { return nil } +func (x *Action) GetHidden() bool { + if x != nil { + return x.Hidden + } + return false +} + +func (x *Action) GetDoors() []*Door { + if x != nil { + return x.Doors + } + return nil +} + type GetGameReq struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields @@ -842,7 +918,7 @@ type GetGameReq struct { func (x *GetGameReq) Reset() { *x = GetGameReq{} - mi := &file_main_proto_msgTypes[17] + mi := &file_main_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -854,7 +930,7 @@ func (x *GetGameReq) String() string { func (*GetGameReq) ProtoMessage() {} func (x *GetGameReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[17] + mi := &file_main_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -867,7 +943,7 @@ func (x *GetGameReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGameReq.ProtoReflect.Descriptor instead. func (*GetGameReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{17} + return file_main_proto_rawDescGZIP(), []int{18} } type GetGameRsp struct { @@ -881,7 +957,7 @@ type GetGameRsp struct { func (x *GetGameRsp) Reset() { *x = GetGameRsp{} - mi := &file_main_proto_msgTypes[18] + mi := &file_main_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -893,7 +969,7 @@ func (x *GetGameRsp) String() string { func (*GetGameRsp) ProtoMessage() {} func (x *GetGameRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[18] + mi := &file_main_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -906,7 +982,7 @@ func (x *GetGameRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGameRsp.ProtoReflect.Descriptor instead. func (*GetGameRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{18} + return file_main_proto_rawDescGZIP(), []int{19} } func (x *GetGameRsp) GetState() string { @@ -938,7 +1014,7 @@ type GameStartReq struct { func (x *GameStartReq) Reset() { *x = GameStartReq{} - mi := &file_main_proto_msgTypes[19] + mi := &file_main_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -950,7 +1026,7 @@ func (x *GameStartReq) String() string { func (*GameStartReq) ProtoMessage() {} func (x *GameStartReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[19] + mi := &file_main_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -963,7 +1039,7 @@ func (x *GameStartReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GameStartReq.ProtoReflect.Descriptor instead. func (*GameStartReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{19} + return file_main_proto_rawDescGZIP(), []int{20} } type GameStartRsp struct { @@ -974,7 +1050,7 @@ type GameStartRsp struct { func (x *GameStartRsp) Reset() { *x = GameStartRsp{} - mi := &file_main_proto_msgTypes[20] + mi := &file_main_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -986,7 +1062,7 @@ func (x *GameStartRsp) String() string { func (*GameStartRsp) ProtoMessage() {} func (x *GameStartRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[20] + mi := &file_main_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -999,7 +1075,7 @@ func (x *GameStartRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use GameStartRsp.ProtoReflect.Descriptor instead. func (*GameStartRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{20} + return file_main_proto_rawDescGZIP(), []int{21} } type GameStopReq struct { @@ -1011,7 +1087,7 @@ type GameStopReq struct { func (x *GameStopReq) Reset() { *x = GameStopReq{} - mi := &file_main_proto_msgTypes[21] + mi := &file_main_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1023,7 +1099,7 @@ func (x *GameStopReq) String() string { func (*GameStopReq) ProtoMessage() {} func (x *GameStopReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[21] + mi := &file_main_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1036,7 +1112,7 @@ func (x *GameStopReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GameStopReq.ProtoReflect.Descriptor instead. func (*GameStopReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{21} + return file_main_proto_rawDescGZIP(), []int{22} } func (x *GameStopReq) GetTimeSeconds() int64 { @@ -1054,7 +1130,7 @@ type GameStopRsp struct { func (x *GameStopRsp) Reset() { *x = GameStopRsp{} - mi := &file_main_proto_msgTypes[22] + mi := &file_main_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1066,7 +1142,7 @@ func (x *GameStopRsp) String() string { func (*GameStopRsp) ProtoMessage() {} func (x *GameStopRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[22] + mi := &file_main_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1079,7 +1155,7 @@ func (x *GameStopRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use GameStopRsp.ProtoReflect.Descriptor instead. func (*GameStopRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{22} + return file_main_proto_rawDescGZIP(), []int{23} } type GiveApplicationsReq struct { @@ -1092,7 +1168,7 @@ type GiveApplicationsReq struct { func (x *GiveApplicationsReq) Reset() { *x = GiveApplicationsReq{} - mi := &file_main_proto_msgTypes[23] + mi := &file_main_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1104,7 +1180,7 @@ func (x *GiveApplicationsReq) String() string { func (*GiveApplicationsReq) ProtoMessage() {} func (x *GiveApplicationsReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[23] + mi := &file_main_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1117,7 +1193,7 @@ func (x *GiveApplicationsReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GiveApplicationsReq.ProtoReflect.Descriptor instead. func (*GiveApplicationsReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{23} + return file_main_proto_rawDescGZIP(), []int{24} } func (x *GiveApplicationsReq) GetTeamId() int64 { @@ -1142,7 +1218,7 @@ type GiveApplicationsRsp struct { func (x *GiveApplicationsRsp) Reset() { *x = GiveApplicationsRsp{} - mi := &file_main_proto_msgTypes[24] + mi := &file_main_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1154,7 +1230,7 @@ func (x *GiveApplicationsRsp) String() string { func (*GiveApplicationsRsp) ProtoMessage() {} func (x *GiveApplicationsRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[24] + mi := &file_main_proto_msgTypes[25] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1167,7 +1243,7 @@ func (x *GiveApplicationsRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use GiveApplicationsRsp.ProtoReflect.Descriptor instead. func (*GiveApplicationsRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{24} + return file_main_proto_rawDescGZIP(), []int{25} } type DownloadTeamsQrCodesFileReq struct { @@ -1178,7 +1254,7 @@ type DownloadTeamsQrCodesFileReq struct { func (x *DownloadTeamsQrCodesFileReq) Reset() { *x = DownloadTeamsQrCodesFileReq{} - mi := &file_main_proto_msgTypes[25] + mi := &file_main_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1190,7 +1266,7 @@ func (x *DownloadTeamsQrCodesFileReq) String() string { func (*DownloadTeamsQrCodesFileReq) ProtoMessage() {} func (x *DownloadTeamsQrCodesFileReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[25] + mi := &file_main_proto_msgTypes[26] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1203,7 +1279,7 @@ func (x *DownloadTeamsQrCodesFileReq) ProtoReflect() protoreflect.Message { // Deprecated: Use DownloadTeamsQrCodesFileReq.ProtoReflect.Descriptor instead. func (*DownloadTeamsQrCodesFileReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{25} + return file_main_proto_rawDescGZIP(), []int{26} } type DownloadTeamsQrCodesFileRsp struct { @@ -1215,7 +1291,7 @@ type DownloadTeamsQrCodesFileRsp struct { func (x *DownloadTeamsQrCodesFileRsp) Reset() { *x = DownloadTeamsQrCodesFileRsp{} - mi := &file_main_proto_msgTypes[26] + mi := &file_main_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1227,7 +1303,7 @@ func (x *DownloadTeamsQrCodesFileRsp) String() string { func (*DownloadTeamsQrCodesFileRsp) ProtoMessage() {} func (x *DownloadTeamsQrCodesFileRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[26] + mi := &file_main_proto_msgTypes[27] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1240,7 +1316,7 @@ func (x *DownloadTeamsQrCodesFileRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use DownloadTeamsQrCodesFileRsp.ProtoReflect.Descriptor instead. func (*DownloadTeamsQrCodesFileRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{26} + return file_main_proto_rawDescGZIP(), []int{27} } func (x *DownloadTeamsQrCodesFileRsp) GetResult() []byte { @@ -1258,7 +1334,7 @@ type GetGraphReq struct { func (x *GetGraphReq) Reset() { *x = GetGraphReq{} - mi := &file_main_proto_msgTypes[27] + mi := &file_main_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1270,7 +1346,7 @@ func (x *GetGraphReq) String() string { func (*GetGraphReq) ProtoMessage() {} func (x *GetGraphReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[27] + mi := &file_main_proto_msgTypes[28] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1283,7 +1359,7 @@ func (x *GetGraphReq) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGraphReq.ProtoReflect.Descriptor instead. func (*GetGraphReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{27} + return file_main_proto_rawDescGZIP(), []int{28} } type GetGraphRsp struct { @@ -1298,7 +1374,7 @@ type GetGraphRsp struct { func (x *GetGraphRsp) Reset() { *x = GetGraphRsp{} - mi := &file_main_proto_msgTypes[28] + mi := &file_main_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1310,7 +1386,7 @@ func (x *GetGraphRsp) String() string { func (*GetGraphRsp) ProtoMessage() {} func (x *GetGraphRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[28] + mi := &file_main_proto_msgTypes[29] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1323,7 +1399,7 @@ func (x *GetGraphRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGraphRsp.ProtoReflect.Descriptor instead. func (*GetGraphRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{28} + return file_main_proto_rawDescGZIP(), []int{29} } func (x *GetGraphRsp) GetNodes() []*GraphNode { @@ -1364,7 +1440,7 @@ type UpdateNodeReq struct { func (x *UpdateNodeReq) Reset() { *x = UpdateNodeReq{} - mi := &file_main_proto_msgTypes[29] + mi := &file_main_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1376,7 +1452,7 @@ func (x *UpdateNodeReq) String() string { func (*UpdateNodeReq) ProtoMessage() {} func (x *UpdateNodeReq) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[29] + mi := &file_main_proto_msgTypes[30] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1389,7 +1465,7 @@ func (x *UpdateNodeReq) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNodeReq.ProtoReflect.Descriptor instead. func (*UpdateNodeReq) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{29} + return file_main_proto_rawDescGZIP(), []int{30} } func (x *UpdateNodeReq) GetCode() string { @@ -1414,7 +1490,7 @@ type UpdateNodeRsp struct { func (x *UpdateNodeRsp) Reset() { *x = UpdateNodeRsp{} - mi := &file_main_proto_msgTypes[30] + mi := &file_main_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1426,7 +1502,7 @@ func (x *UpdateNodeRsp) String() string { func (*UpdateNodeRsp) ProtoMessage() {} func (x *UpdateNodeRsp) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[30] + mi := &file_main_proto_msgTypes[31] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1439,7 +1515,7 @@ func (x *UpdateNodeRsp) ProtoReflect() protoreflect.Message { // Deprecated: Use UpdateNodeRsp.ProtoReflect.Descriptor instead. func (*UpdateNodeRsp) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{30} + return file_main_proto_rawDescGZIP(), []int{31} } type GraphNode struct { @@ -1454,7 +1530,7 @@ type GraphNode struct { func (x *GraphNode) Reset() { *x = GraphNode{} - mi := &file_main_proto_msgTypes[31] + mi := &file_main_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1466,7 +1542,7 @@ func (x *GraphNode) String() string { func (*GraphNode) ProtoMessage() {} func (x *GraphNode) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[31] + mi := &file_main_proto_msgTypes[32] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1479,7 +1555,7 @@ func (x *GraphNode) ProtoReflect() protoreflect.Message { // Deprecated: Use GraphNode.ProtoReflect.Descriptor instead. func (*GraphNode) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{31} + return file_main_proto_rawDescGZIP(), []int{32} } func (x *GraphNode) GetCode() string { @@ -1519,7 +1595,7 @@ type GraphApplication struct { func (x *GraphApplication) Reset() { *x = GraphApplication{} - mi := &file_main_proto_msgTypes[32] + mi := &file_main_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1531,7 +1607,7 @@ func (x *GraphApplication) String() string { func (*GraphApplication) ProtoMessage() {} func (x *GraphApplication) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[32] + mi := &file_main_proto_msgTypes[33] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1544,7 +1620,7 @@ func (x *GraphApplication) ProtoReflect() protoreflect.Message { // Deprecated: Use GraphApplication.ProtoReflect.Descriptor instead. func (*GraphApplication) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{32} + return file_main_proto_rawDescGZIP(), []int{33} } func (x *GraphApplication) GetName() string { @@ -1566,7 +1642,7 @@ type GetGraphRsp_Edge struct { func (x *GetGraphRsp_Edge) Reset() { *x = GetGraphRsp_Edge{} - mi := &file_main_proto_msgTypes[33] + mi := &file_main_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1578,7 +1654,7 @@ func (x *GetGraphRsp_Edge) String() string { func (*GetGraphRsp_Edge) ProtoMessage() {} func (x *GetGraphRsp_Edge) ProtoReflect() protoreflect.Message { - mi := &file_main_proto_msgTypes[33] + mi := &file_main_proto_msgTypes[34] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1591,7 +1667,7 @@ func (x *GetGraphRsp_Edge) ProtoReflect() protoreflect.Message { // Deprecated: Use GetGraphRsp_Edge.ProtoReflect.Descriptor instead. func (*GetGraphRsp_Edge) Descriptor() ([]byte, []int) { - return file_main_proto_rawDescGZIP(), []int{28, 0} + return file_main_proto_rawDescGZIP(), []int{29, 0} } func (x *GetGraphRsp_Edge) GetFrom() string { @@ -1656,7 +1732,11 @@ const file_main_proto_rawDesc = "" + "\vApplication\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n" + - "\x05state\x18\x03 \x01(\tR\x05state\"\f\n" + + "\x05state\x18\x03 \x01(\tR\x05state\"B\n" + + "\x04Door\x12\x12\n" + + "\x04code\x18\x01 \x01(\tR\x04code\x12\x12\n" + + "\x04name\x18\x02 \x01(\tR\x04name\x12\x12\n" + + "\x04show\x18\x03 \x01(\bR\x04show\"\f\n" + "\n" + "GetTeamReq\"[\n" + "\n" + @@ -1665,13 +1745,15 @@ const file_main_proto_rawDesc = "" + "\aactions\x18\x02 \x03(\v2\x1f.crabs.evening_detective.ActionR\aactions\"$\n" + "\fAddActionReq\x12\x14\n" + "\x05place\x18\x01 \x01(\tR\x05place\"\x0e\n" + - "\fAddActionRsp\"\xa0\x01\n" + + "\fAddActionRsp\"\xed\x01\n" + "\x06Action\x12\x0e\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" + "\x05place\x18\x02 \x01(\tR\x05place\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + "\x04text\x18\x04 \x01(\tR\x04text\x12H\n" + - "\fapplications\x18\x05 \x03(\v2$.crabs.evening_detective.ApplicationR\fapplications\"\f\n" + + "\fapplications\x18\x05 \x03(\v2$.crabs.evening_detective.ApplicationR\fapplications\x12\x16\n" + + "\x06hidden\x18\x06 \x01(\bR\x06hidden\x123\n" + + "\x05doors\x18\a \x03(\v2\x1d.crabs.evening_detective.DoorR\x05doors\"\f\n" + "\n" + "GetGameReq\"R\n" + "\n" + @@ -1747,7 +1829,7 @@ func file_main_proto_rawDescGZIP() []byte { return file_main_proto_rawDescData } -var file_main_proto_msgTypes = make([]protoimpl.MessageInfo, 34) +var file_main_proto_msgTypes = make([]protoimpl.MessageInfo, 35) var file_main_proto_goTypes = []any{ (*PingReq)(nil), // 0: crabs.evening_detective.PingReq (*PingRsp)(nil), // 1: crabs.evening_detective.PingRsp @@ -1761,72 +1843,74 @@ var file_main_proto_goTypes = []any{ (*GetTeamsCSVRsp)(nil), // 9: crabs.evening_detective.GetTeamsCSVRsp (*TeamAdvanced)(nil), // 10: crabs.evening_detective.TeamAdvanced (*Application)(nil), // 11: crabs.evening_detective.Application - (*GetTeamReq)(nil), // 12: crabs.evening_detective.GetTeamReq - (*GetTeamRsp)(nil), // 13: crabs.evening_detective.GetTeamRsp - (*AddActionReq)(nil), // 14: crabs.evening_detective.AddActionReq - (*AddActionRsp)(nil), // 15: crabs.evening_detective.AddActionRsp - (*Action)(nil), // 16: crabs.evening_detective.Action - (*GetGameReq)(nil), // 17: crabs.evening_detective.GetGameReq - (*GetGameRsp)(nil), // 18: crabs.evening_detective.GetGameRsp - (*GameStartReq)(nil), // 19: crabs.evening_detective.GameStartReq - (*GameStartRsp)(nil), // 20: crabs.evening_detective.GameStartRsp - (*GameStopReq)(nil), // 21: crabs.evening_detective.GameStopReq - (*GameStopRsp)(nil), // 22: crabs.evening_detective.GameStopRsp - (*GiveApplicationsReq)(nil), // 23: crabs.evening_detective.GiveApplicationsReq - (*GiveApplicationsRsp)(nil), // 24: crabs.evening_detective.GiveApplicationsRsp - (*DownloadTeamsQrCodesFileReq)(nil), // 25: crabs.evening_detective.DownloadTeamsQrCodesFileReq - (*DownloadTeamsQrCodesFileRsp)(nil), // 26: crabs.evening_detective.DownloadTeamsQrCodesFileRsp - (*GetGraphReq)(nil), // 27: crabs.evening_detective.GetGraphReq - (*GetGraphRsp)(nil), // 28: crabs.evening_detective.GetGraphRsp - (*UpdateNodeReq)(nil), // 29: crabs.evening_detective.UpdateNodeReq - (*UpdateNodeRsp)(nil), // 30: crabs.evening_detective.UpdateNodeRsp - (*GraphNode)(nil), // 31: crabs.evening_detective.GraphNode - (*GraphApplication)(nil), // 32: crabs.evening_detective.GraphApplication - (*GetGraphRsp_Edge)(nil), // 33: crabs.evening_detective.GetGraphRsp.Edge + (*Door)(nil), // 12: crabs.evening_detective.Door + (*GetTeamReq)(nil), // 13: crabs.evening_detective.GetTeamReq + (*GetTeamRsp)(nil), // 14: crabs.evening_detective.GetTeamRsp + (*AddActionReq)(nil), // 15: crabs.evening_detective.AddActionReq + (*AddActionRsp)(nil), // 16: crabs.evening_detective.AddActionRsp + (*Action)(nil), // 17: crabs.evening_detective.Action + (*GetGameReq)(nil), // 18: crabs.evening_detective.GetGameReq + (*GetGameRsp)(nil), // 19: crabs.evening_detective.GetGameRsp + (*GameStartReq)(nil), // 20: crabs.evening_detective.GameStartReq + (*GameStartRsp)(nil), // 21: crabs.evening_detective.GameStartRsp + (*GameStopReq)(nil), // 22: crabs.evening_detective.GameStopReq + (*GameStopRsp)(nil), // 23: crabs.evening_detective.GameStopRsp + (*GiveApplicationsReq)(nil), // 24: crabs.evening_detective.GiveApplicationsReq + (*GiveApplicationsRsp)(nil), // 25: crabs.evening_detective.GiveApplicationsRsp + (*DownloadTeamsQrCodesFileReq)(nil), // 26: crabs.evening_detective.DownloadTeamsQrCodesFileReq + (*DownloadTeamsQrCodesFileRsp)(nil), // 27: crabs.evening_detective.DownloadTeamsQrCodesFileRsp + (*GetGraphReq)(nil), // 28: crabs.evening_detective.GetGraphReq + (*GetGraphRsp)(nil), // 29: crabs.evening_detective.GetGraphRsp + (*UpdateNodeReq)(nil), // 30: crabs.evening_detective.UpdateNodeReq + (*UpdateNodeRsp)(nil), // 31: crabs.evening_detective.UpdateNodeRsp + (*GraphNode)(nil), // 32: crabs.evening_detective.GraphNode + (*GraphApplication)(nil), // 33: crabs.evening_detective.GraphApplication + (*GetGraphRsp_Edge)(nil), // 34: crabs.evening_detective.GetGraphRsp.Edge } var file_main_proto_depIdxs = []int32{ 3, // 0: crabs.evening_detective.AddTeamsReq.teams:type_name -> crabs.evening_detective.Team 5, // 1: crabs.evening_detective.AddTeamsRsp.teams:type_name -> crabs.evening_detective.TeamFull 10, // 2: crabs.evening_detective.GetTeamsRsp.teams:type_name -> crabs.evening_detective.TeamAdvanced 11, // 3: crabs.evening_detective.TeamAdvanced.applications:type_name -> crabs.evening_detective.Application - 16, // 4: crabs.evening_detective.GetTeamRsp.actions:type_name -> crabs.evening_detective.Action + 17, // 4: crabs.evening_detective.GetTeamRsp.actions:type_name -> crabs.evening_detective.Action 11, // 5: crabs.evening_detective.Action.applications:type_name -> crabs.evening_detective.Application - 11, // 6: crabs.evening_detective.GiveApplicationsReq.applications:type_name -> crabs.evening_detective.Application - 31, // 7: crabs.evening_detective.GetGraphRsp.nodes:type_name -> crabs.evening_detective.GraphNode - 33, // 8: crabs.evening_detective.GetGraphRsp.edges:type_name -> crabs.evening_detective.GetGraphRsp.Edge - 31, // 9: crabs.evening_detective.UpdateNodeReq.node:type_name -> crabs.evening_detective.GraphNode - 32, // 10: crabs.evening_detective.GraphNode.applications:type_name -> crabs.evening_detective.GraphApplication - 0, // 11: crabs.evening_detective.EveningDetective.Ping:input_type -> crabs.evening_detective.PingReq - 2, // 12: crabs.evening_detective.EveningDetective.AddTeams:input_type -> crabs.evening_detective.AddTeamsReq - 6, // 13: crabs.evening_detective.EveningDetective.GetTeams:input_type -> crabs.evening_detective.GetTeamsReq - 8, // 14: crabs.evening_detective.EveningDetective.GetTeamsCSV:input_type -> crabs.evening_detective.GetTeamsCSVReq - 12, // 15: crabs.evening_detective.EveningDetective.GetTeam:input_type -> crabs.evening_detective.GetTeamReq - 14, // 16: crabs.evening_detective.EveningDetective.AddAction:input_type -> crabs.evening_detective.AddActionReq - 17, // 17: crabs.evening_detective.EveningDetective.GetGame:input_type -> crabs.evening_detective.GetGameReq - 19, // 18: crabs.evening_detective.EveningDetective.GameStart:input_type -> crabs.evening_detective.GameStartReq - 21, // 19: crabs.evening_detective.EveningDetective.GameStop:input_type -> crabs.evening_detective.GameStopReq - 23, // 20: crabs.evening_detective.EveningDetective.GiveApplications:input_type -> crabs.evening_detective.GiveApplicationsReq - 25, // 21: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:input_type -> crabs.evening_detective.DownloadTeamsQrCodesFileReq - 27, // 22: crabs.evening_detective.EveningDetective.GetGraph:input_type -> crabs.evening_detective.GetGraphReq - 29, // 23: crabs.evening_detective.EveningDetective.UpdateNode:input_type -> crabs.evening_detective.UpdateNodeReq - 1, // 24: crabs.evening_detective.EveningDetective.Ping:output_type -> crabs.evening_detective.PingRsp - 4, // 25: crabs.evening_detective.EveningDetective.AddTeams:output_type -> crabs.evening_detective.AddTeamsRsp - 7, // 26: crabs.evening_detective.EveningDetective.GetTeams:output_type -> crabs.evening_detective.GetTeamsRsp - 9, // 27: crabs.evening_detective.EveningDetective.GetTeamsCSV:output_type -> crabs.evening_detective.GetTeamsCSVRsp - 13, // 28: crabs.evening_detective.EveningDetective.GetTeam:output_type -> crabs.evening_detective.GetTeamRsp - 15, // 29: crabs.evening_detective.EveningDetective.AddAction:output_type -> crabs.evening_detective.AddActionRsp - 18, // 30: crabs.evening_detective.EveningDetective.GetGame:output_type -> crabs.evening_detective.GetGameRsp - 20, // 31: crabs.evening_detective.EveningDetective.GameStart:output_type -> crabs.evening_detective.GameStartRsp - 22, // 32: crabs.evening_detective.EveningDetective.GameStop:output_type -> crabs.evening_detective.GameStopRsp - 24, // 33: crabs.evening_detective.EveningDetective.GiveApplications:output_type -> crabs.evening_detective.GiveApplicationsRsp - 26, // 34: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:output_type -> crabs.evening_detective.DownloadTeamsQrCodesFileRsp - 28, // 35: crabs.evening_detective.EveningDetective.GetGraph:output_type -> crabs.evening_detective.GetGraphRsp - 30, // 36: crabs.evening_detective.EveningDetective.UpdateNode:output_type -> crabs.evening_detective.UpdateNodeRsp - 24, // [24:37] is the sub-list for method output_type - 11, // [11:24] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 12, // 6: crabs.evening_detective.Action.doors:type_name -> crabs.evening_detective.Door + 11, // 7: crabs.evening_detective.GiveApplicationsReq.applications:type_name -> crabs.evening_detective.Application + 32, // 8: crabs.evening_detective.GetGraphRsp.nodes:type_name -> crabs.evening_detective.GraphNode + 34, // 9: crabs.evening_detective.GetGraphRsp.edges:type_name -> crabs.evening_detective.GetGraphRsp.Edge + 32, // 10: crabs.evening_detective.UpdateNodeReq.node:type_name -> crabs.evening_detective.GraphNode + 33, // 11: crabs.evening_detective.GraphNode.applications:type_name -> crabs.evening_detective.GraphApplication + 0, // 12: crabs.evening_detective.EveningDetective.Ping:input_type -> crabs.evening_detective.PingReq + 2, // 13: crabs.evening_detective.EveningDetective.AddTeams:input_type -> crabs.evening_detective.AddTeamsReq + 6, // 14: crabs.evening_detective.EveningDetective.GetTeams:input_type -> crabs.evening_detective.GetTeamsReq + 8, // 15: crabs.evening_detective.EveningDetective.GetTeamsCSV:input_type -> crabs.evening_detective.GetTeamsCSVReq + 13, // 16: crabs.evening_detective.EveningDetective.GetTeam:input_type -> crabs.evening_detective.GetTeamReq + 15, // 17: crabs.evening_detective.EveningDetective.AddAction:input_type -> crabs.evening_detective.AddActionReq + 18, // 18: crabs.evening_detective.EveningDetective.GetGame:input_type -> crabs.evening_detective.GetGameReq + 20, // 19: crabs.evening_detective.EveningDetective.GameStart:input_type -> crabs.evening_detective.GameStartReq + 22, // 20: crabs.evening_detective.EveningDetective.GameStop:input_type -> crabs.evening_detective.GameStopReq + 24, // 21: crabs.evening_detective.EveningDetective.GiveApplications:input_type -> crabs.evening_detective.GiveApplicationsReq + 26, // 22: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:input_type -> crabs.evening_detective.DownloadTeamsQrCodesFileReq + 28, // 23: crabs.evening_detective.EveningDetective.GetGraph:input_type -> crabs.evening_detective.GetGraphReq + 30, // 24: crabs.evening_detective.EveningDetective.UpdateNode:input_type -> crabs.evening_detective.UpdateNodeReq + 1, // 25: crabs.evening_detective.EveningDetective.Ping:output_type -> crabs.evening_detective.PingRsp + 4, // 26: crabs.evening_detective.EveningDetective.AddTeams:output_type -> crabs.evening_detective.AddTeamsRsp + 7, // 27: crabs.evening_detective.EveningDetective.GetTeams:output_type -> crabs.evening_detective.GetTeamsRsp + 9, // 28: crabs.evening_detective.EveningDetective.GetTeamsCSV:output_type -> crabs.evening_detective.GetTeamsCSVRsp + 14, // 29: crabs.evening_detective.EveningDetective.GetTeam:output_type -> crabs.evening_detective.GetTeamRsp + 16, // 30: crabs.evening_detective.EveningDetective.AddAction:output_type -> crabs.evening_detective.AddActionRsp + 19, // 31: crabs.evening_detective.EveningDetective.GetGame:output_type -> crabs.evening_detective.GetGameRsp + 21, // 32: crabs.evening_detective.EveningDetective.GameStart:output_type -> crabs.evening_detective.GameStartRsp + 23, // 33: crabs.evening_detective.EveningDetective.GameStop:output_type -> crabs.evening_detective.GameStopRsp + 25, // 34: crabs.evening_detective.EveningDetective.GiveApplications:output_type -> crabs.evening_detective.GiveApplicationsRsp + 27, // 35: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:output_type -> crabs.evening_detective.DownloadTeamsQrCodesFileRsp + 29, // 36: crabs.evening_detective.EveningDetective.GetGraph:output_type -> crabs.evening_detective.GetGraphRsp + 31, // 37: crabs.evening_detective.EveningDetective.UpdateNode:output_type -> crabs.evening_detective.UpdateNodeRsp + 25, // [25:38] is the sub-list for method output_type + 12, // [12:25] is the sub-list for method input_type + 12, // [12:12] is the sub-list for extension type_name + 12, // [12:12] is the sub-list for extension extendee + 0, // [0:12] is the sub-list for field type_name } func init() { file_main_proto_init() } @@ -1840,7 +1924,7 @@ func file_main_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_main_proto_rawDesc), len(file_main_proto_rawDesc)), NumEnums: 0, - NumMessages: 34, + NumMessages: 35, NumExtensions: 0, NumServices: 1, }, diff --git a/proto/main.swagger.json b/proto/main.swagger.json index 11c08d0..778975a 100644 --- a/proto/main.swagger.json +++ b/proto/main.swagger.json @@ -402,6 +402,15 @@ "items": { "$ref": "#/definitions/evening_detectiveApplication" } + }, + "hidden": { + "type": "boolean" + }, + "doors": { + "type": "array", + "items": { + "$ref": "#/definitions/evening_detectiveDoor" + } } } }, @@ -453,6 +462,20 @@ } } }, + "evening_detectiveDoor": { + "type": "object", + "properties": { + "code": { + "type": "string" + }, + "name": { + "type": "string" + }, + "show": { + "type": "boolean" + } + } + }, "evening_detectiveDownloadTeamsQrCodesFileRsp": { "type": "object", "properties": {