This commit is contained in:
Владимир Фёдоров 2026-03-07 21:25:32 +07:00
parent 2e8afd3948
commit 05cab1df89
5 changed files with 287 additions and 159 deletions

View File

@ -86,7 +86,7 @@ service EveningDetective {
rpc UpdateNode(UpdateNodeReq) returns (UpdateNodeRsp) { rpc UpdateNode(UpdateNodeReq) returns (UpdateNodeRsp) {
option (google.api.http) = { option (google.api.http) = {
put: "/graph/nodes", put : "/graph/nodes",
body: "*" body: "*"
}; };
} }
@ -109,8 +109,8 @@ message AddTeamsRsp {
} }
message TeamFull { message TeamFull {
int64 id = 1; int64 id = 1;
string name = 2; string name = 2;
string password = 3; string password = 3;
} }
@ -127,24 +127,30 @@ message GetTeamsCSVRsp {
} }
message TeamAdvanced { message TeamAdvanced {
int64 id = 1; int64 id = 1;
string name = 2; string name = 2;
string password = 3; string password = 3;
string url = 4; string url = 4;
int64 spendTime = 5; int64 spendTime = 5;
repeated Application applications = 6; repeated Application applications = 6;
} }
message Application { message Application {
int64 id = 1; int64 id = 1;
string name = 2; string name = 2;
string state = 3; string state = 3;
} }
message Door {
string code = 1;
string name = 2;
bool show = 3;
}
message GetTeamReq {} message GetTeamReq {}
message GetTeamRsp { message GetTeamRsp {
string name = 1; string name = 1;
repeated Action actions = 2; repeated Action actions = 2;
} }
@ -155,19 +161,21 @@ message AddActionReq {
message AddActionRsp {} message AddActionRsp {}
message Action { message Action {
int64 id = 1; int64 id = 1;
string place = 2; string place = 2;
string name = 3; string name = 3;
string text = 4; string text = 4;
repeated Application applications = 5; repeated Application applications = 5;
bool hidden = 6;
repeated Door doors = 7;
} }
message GetGameReq {} message GetGameReq {}
message GetGameRsp { message GetGameRsp {
string state = 1; string state = 1;
string startAt = 2; string startAt = 2;
string endAt = 3; string endAt = 3;
} }
message GameStartReq {} message GameStartReq {}
@ -181,7 +189,7 @@ message GameStopReq {
message GameStopRsp {} message GameStopRsp {}
message GiveApplicationsReq { message GiveApplicationsReq {
int64 teamId = 1; int64 teamId = 1;
repeated Application applications = 2; repeated Application applications = 2;
} }
@ -196,30 +204,30 @@ message DownloadTeamsQrCodesFileRsp {
message GetGraphReq {} message GetGraphReq {}
message GetGraphRsp { message GetGraphRsp {
repeated GraphNode nodes = 1; repeated GraphNode nodes = 1;
repeated Edge edges = 2; repeated Edge edges = 2;
int32 countNodes = 3; int32 countNodes = 3;
int32 countEdges = 4; int32 countEdges = 4;
message Edge { message Edge {
string from = 1; string from = 1;
string to = 2; string to = 2;
string arrows = 3; string arrows = 3;
string type = 4; string type = 4;
} }
} }
message UpdateNodeReq { message UpdateNodeReq {
string code = 1; string code = 1;
GraphNode node = 2; GraphNode node = 2;
} }
message UpdateNodeRsp {} message UpdateNodeRsp {}
message GraphNode { message GraphNode {
string code = 1; string code = 1;
string name = 2; string name = 2;
string text = 3; string text = 3;
repeated GraphApplication applications = 4; repeated GraphApplication applications = 4;
} }

View File

@ -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 { func mapStoryApplicationsToApplications(applications []*story_service_models.Application) []*models.Application {
res := make([]*models.Application, 0, len(applications)) res := make([]*models.Application, 0, len(applications))
for _, application := range applications { for _, application := range applications {

View File

@ -147,6 +147,11 @@ func (s *Services) GetTeam(ctx context.Context, req *proto.GetTeamReq) (*proto.G
for _, application := range place.Applications { for _, application := range place.Applications {
newAction.Applications = append(newAction.Applications, mapStoryApplicationToProtoApplication(application)) 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) res = append(res, newAction)
} }
return &proto.GetTeamRsp{ return &proto.GetTeamRsp{

View File

@ -590,6 +590,66 @@ func (x *Application) GetState() string {
return "" 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 { type GetTeamReq struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -598,7 +658,7 @@ type GetTeamReq struct {
func (x *GetTeamReq) Reset() { func (x *GetTeamReq) Reset() {
*x = GetTeamReq{} *x = GetTeamReq{}
mi := &file_main_proto_msgTypes[12] mi := &file_main_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -610,7 +670,7 @@ func (x *GetTeamReq) String() string {
func (*GetTeamReq) ProtoMessage() {} func (*GetTeamReq) ProtoMessage() {}
func (x *GetTeamReq) ProtoReflect() protoreflect.Message { func (x *GetTeamReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[12] mi := &file_main_proto_msgTypes[13]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -623,7 +683,7 @@ func (x *GetTeamReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetTeamReq.ProtoReflect.Descriptor instead. // Deprecated: Use GetTeamReq.ProtoReflect.Descriptor instead.
func (*GetTeamReq) Descriptor() ([]byte, []int) { func (*GetTeamReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{12} return file_main_proto_rawDescGZIP(), []int{13}
} }
type GetTeamRsp struct { type GetTeamRsp struct {
@ -636,7 +696,7 @@ type GetTeamRsp struct {
func (x *GetTeamRsp) Reset() { func (x *GetTeamRsp) Reset() {
*x = GetTeamRsp{} *x = GetTeamRsp{}
mi := &file_main_proto_msgTypes[13] mi := &file_main_proto_msgTypes[14]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -648,7 +708,7 @@ func (x *GetTeamRsp) String() string {
func (*GetTeamRsp) ProtoMessage() {} func (*GetTeamRsp) ProtoMessage() {}
func (x *GetTeamRsp) ProtoReflect() protoreflect.Message { func (x *GetTeamRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[13] mi := &file_main_proto_msgTypes[14]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -661,7 +721,7 @@ func (x *GetTeamRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetTeamRsp.ProtoReflect.Descriptor instead. // Deprecated: Use GetTeamRsp.ProtoReflect.Descriptor instead.
func (*GetTeamRsp) Descriptor() ([]byte, []int) { func (*GetTeamRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{13} return file_main_proto_rawDescGZIP(), []int{14}
} }
func (x *GetTeamRsp) GetName() string { func (x *GetTeamRsp) GetName() string {
@ -687,7 +747,7 @@ type AddActionReq struct {
func (x *AddActionReq) Reset() { func (x *AddActionReq) Reset() {
*x = AddActionReq{} *x = AddActionReq{}
mi := &file_main_proto_msgTypes[14] mi := &file_main_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -699,7 +759,7 @@ func (x *AddActionReq) String() string {
func (*AddActionReq) ProtoMessage() {} func (*AddActionReq) ProtoMessage() {}
func (x *AddActionReq) ProtoReflect() protoreflect.Message { func (x *AddActionReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[14] mi := &file_main_proto_msgTypes[15]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -712,7 +772,7 @@ func (x *AddActionReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddActionReq.ProtoReflect.Descriptor instead. // Deprecated: Use AddActionReq.ProtoReflect.Descriptor instead.
func (*AddActionReq) Descriptor() ([]byte, []int) { func (*AddActionReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{14} return file_main_proto_rawDescGZIP(), []int{15}
} }
func (x *AddActionReq) GetPlace() string { func (x *AddActionReq) GetPlace() string {
@ -730,7 +790,7 @@ type AddActionRsp struct {
func (x *AddActionRsp) Reset() { func (x *AddActionRsp) Reset() {
*x = AddActionRsp{} *x = AddActionRsp{}
mi := &file_main_proto_msgTypes[15] mi := &file_main_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -742,7 +802,7 @@ func (x *AddActionRsp) String() string {
func (*AddActionRsp) ProtoMessage() {} func (*AddActionRsp) ProtoMessage() {}
func (x *AddActionRsp) ProtoReflect() protoreflect.Message { func (x *AddActionRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[15] mi := &file_main_proto_msgTypes[16]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -755,7 +815,7 @@ func (x *AddActionRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use AddActionRsp.ProtoReflect.Descriptor instead. // Deprecated: Use AddActionRsp.ProtoReflect.Descriptor instead.
func (*AddActionRsp) Descriptor() ([]byte, []int) { func (*AddActionRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{15} return file_main_proto_rawDescGZIP(), []int{16}
} }
type Action struct { type Action struct {
@ -765,13 +825,15 @@ type Action struct {
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Text string `protobuf:"bytes,4,opt,name=text,proto3" json:"text,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"` 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 unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
} }
func (x *Action) Reset() { func (x *Action) Reset() {
*x = Action{} *x = Action{}
mi := &file_main_proto_msgTypes[16] mi := &file_main_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -783,7 +845,7 @@ func (x *Action) String() string {
func (*Action) ProtoMessage() {} func (*Action) ProtoMessage() {}
func (x *Action) ProtoReflect() protoreflect.Message { func (x *Action) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[16] mi := &file_main_proto_msgTypes[17]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -796,7 +858,7 @@ func (x *Action) ProtoReflect() protoreflect.Message {
// Deprecated: Use Action.ProtoReflect.Descriptor instead. // Deprecated: Use Action.ProtoReflect.Descriptor instead.
func (*Action) Descriptor() ([]byte, []int) { func (*Action) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{16} return file_main_proto_rawDescGZIP(), []int{17}
} }
func (x *Action) GetId() int64 { func (x *Action) GetId() int64 {
@ -834,6 +896,20 @@ func (x *Action) GetApplications() []*Application {
return nil 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 { type GetGameReq struct {
state protoimpl.MessageState `protogen:"open.v1"` state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
@ -842,7 +918,7 @@ type GetGameReq struct {
func (x *GetGameReq) Reset() { func (x *GetGameReq) Reset() {
*x = GetGameReq{} *x = GetGameReq{}
mi := &file_main_proto_msgTypes[17] mi := &file_main_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -854,7 +930,7 @@ func (x *GetGameReq) String() string {
func (*GetGameReq) ProtoMessage() {} func (*GetGameReq) ProtoMessage() {}
func (x *GetGameReq) ProtoReflect() protoreflect.Message { func (x *GetGameReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[17] mi := &file_main_proto_msgTypes[18]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -867,7 +943,7 @@ func (x *GetGameReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetGameReq.ProtoReflect.Descriptor instead. // Deprecated: Use GetGameReq.ProtoReflect.Descriptor instead.
func (*GetGameReq) Descriptor() ([]byte, []int) { func (*GetGameReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{17} return file_main_proto_rawDescGZIP(), []int{18}
} }
type GetGameRsp struct { type GetGameRsp struct {
@ -881,7 +957,7 @@ type GetGameRsp struct {
func (x *GetGameRsp) Reset() { func (x *GetGameRsp) Reset() {
*x = GetGameRsp{} *x = GetGameRsp{}
mi := &file_main_proto_msgTypes[18] mi := &file_main_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -893,7 +969,7 @@ func (x *GetGameRsp) String() string {
func (*GetGameRsp) ProtoMessage() {} func (*GetGameRsp) ProtoMessage() {}
func (x *GetGameRsp) ProtoReflect() protoreflect.Message { func (x *GetGameRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[18] mi := &file_main_proto_msgTypes[19]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -906,7 +982,7 @@ func (x *GetGameRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetGameRsp.ProtoReflect.Descriptor instead. // Deprecated: Use GetGameRsp.ProtoReflect.Descriptor instead.
func (*GetGameRsp) Descriptor() ([]byte, []int) { func (*GetGameRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{18} return file_main_proto_rawDescGZIP(), []int{19}
} }
func (x *GetGameRsp) GetState() string { func (x *GetGameRsp) GetState() string {
@ -938,7 +1014,7 @@ type GameStartReq struct {
func (x *GameStartReq) Reset() { func (x *GameStartReq) Reset() {
*x = GameStartReq{} *x = GameStartReq{}
mi := &file_main_proto_msgTypes[19] mi := &file_main_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -950,7 +1026,7 @@ func (x *GameStartReq) String() string {
func (*GameStartReq) ProtoMessage() {} func (*GameStartReq) ProtoMessage() {}
func (x *GameStartReq) ProtoReflect() protoreflect.Message { func (x *GameStartReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[19] mi := &file_main_proto_msgTypes[20]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -963,7 +1039,7 @@ func (x *GameStartReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GameStartReq.ProtoReflect.Descriptor instead. // Deprecated: Use GameStartReq.ProtoReflect.Descriptor instead.
func (*GameStartReq) Descriptor() ([]byte, []int) { func (*GameStartReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{19} return file_main_proto_rawDescGZIP(), []int{20}
} }
type GameStartRsp struct { type GameStartRsp struct {
@ -974,7 +1050,7 @@ type GameStartRsp struct {
func (x *GameStartRsp) Reset() { func (x *GameStartRsp) Reset() {
*x = GameStartRsp{} *x = GameStartRsp{}
mi := &file_main_proto_msgTypes[20] mi := &file_main_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -986,7 +1062,7 @@ func (x *GameStartRsp) String() string {
func (*GameStartRsp) ProtoMessage() {} func (*GameStartRsp) ProtoMessage() {}
func (x *GameStartRsp) ProtoReflect() protoreflect.Message { func (x *GameStartRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[20] mi := &file_main_proto_msgTypes[21]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -999,7 +1075,7 @@ func (x *GameStartRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use GameStartRsp.ProtoReflect.Descriptor instead. // Deprecated: Use GameStartRsp.ProtoReflect.Descriptor instead.
func (*GameStartRsp) Descriptor() ([]byte, []int) { func (*GameStartRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{20} return file_main_proto_rawDescGZIP(), []int{21}
} }
type GameStopReq struct { type GameStopReq struct {
@ -1011,7 +1087,7 @@ type GameStopReq struct {
func (x *GameStopReq) Reset() { func (x *GameStopReq) Reset() {
*x = GameStopReq{} *x = GameStopReq{}
mi := &file_main_proto_msgTypes[21] mi := &file_main_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1023,7 +1099,7 @@ func (x *GameStopReq) String() string {
func (*GameStopReq) ProtoMessage() {} func (*GameStopReq) ProtoMessage() {}
func (x *GameStopReq) ProtoReflect() protoreflect.Message { func (x *GameStopReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[21] mi := &file_main_proto_msgTypes[22]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1036,7 +1112,7 @@ func (x *GameStopReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GameStopReq.ProtoReflect.Descriptor instead. // Deprecated: Use GameStopReq.ProtoReflect.Descriptor instead.
func (*GameStopReq) Descriptor() ([]byte, []int) { func (*GameStopReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{21} return file_main_proto_rawDescGZIP(), []int{22}
} }
func (x *GameStopReq) GetTimeSeconds() int64 { func (x *GameStopReq) GetTimeSeconds() int64 {
@ -1054,7 +1130,7 @@ type GameStopRsp struct {
func (x *GameStopRsp) Reset() { func (x *GameStopRsp) Reset() {
*x = GameStopRsp{} *x = GameStopRsp{}
mi := &file_main_proto_msgTypes[22] mi := &file_main_proto_msgTypes[23]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1066,7 +1142,7 @@ func (x *GameStopRsp) String() string {
func (*GameStopRsp) ProtoMessage() {} func (*GameStopRsp) ProtoMessage() {}
func (x *GameStopRsp) ProtoReflect() protoreflect.Message { func (x *GameStopRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[22] mi := &file_main_proto_msgTypes[23]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1079,7 +1155,7 @@ func (x *GameStopRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use GameStopRsp.ProtoReflect.Descriptor instead. // Deprecated: Use GameStopRsp.ProtoReflect.Descriptor instead.
func (*GameStopRsp) Descriptor() ([]byte, []int) { func (*GameStopRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{22} return file_main_proto_rawDescGZIP(), []int{23}
} }
type GiveApplicationsReq struct { type GiveApplicationsReq struct {
@ -1092,7 +1168,7 @@ type GiveApplicationsReq struct {
func (x *GiveApplicationsReq) Reset() { func (x *GiveApplicationsReq) Reset() {
*x = GiveApplicationsReq{} *x = GiveApplicationsReq{}
mi := &file_main_proto_msgTypes[23] mi := &file_main_proto_msgTypes[24]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1104,7 +1180,7 @@ func (x *GiveApplicationsReq) String() string {
func (*GiveApplicationsReq) ProtoMessage() {} func (*GiveApplicationsReq) ProtoMessage() {}
func (x *GiveApplicationsReq) ProtoReflect() protoreflect.Message { func (x *GiveApplicationsReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[23] mi := &file_main_proto_msgTypes[24]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1117,7 +1193,7 @@ func (x *GiveApplicationsReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GiveApplicationsReq.ProtoReflect.Descriptor instead. // Deprecated: Use GiveApplicationsReq.ProtoReflect.Descriptor instead.
func (*GiveApplicationsReq) Descriptor() ([]byte, []int) { func (*GiveApplicationsReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{23} return file_main_proto_rawDescGZIP(), []int{24}
} }
func (x *GiveApplicationsReq) GetTeamId() int64 { func (x *GiveApplicationsReq) GetTeamId() int64 {
@ -1142,7 +1218,7 @@ type GiveApplicationsRsp struct {
func (x *GiveApplicationsRsp) Reset() { func (x *GiveApplicationsRsp) Reset() {
*x = GiveApplicationsRsp{} *x = GiveApplicationsRsp{}
mi := &file_main_proto_msgTypes[24] mi := &file_main_proto_msgTypes[25]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1154,7 +1230,7 @@ func (x *GiveApplicationsRsp) String() string {
func (*GiveApplicationsRsp) ProtoMessage() {} func (*GiveApplicationsRsp) ProtoMessage() {}
func (x *GiveApplicationsRsp) ProtoReflect() protoreflect.Message { func (x *GiveApplicationsRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[24] mi := &file_main_proto_msgTypes[25]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1167,7 +1243,7 @@ func (x *GiveApplicationsRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use GiveApplicationsRsp.ProtoReflect.Descriptor instead. // Deprecated: Use GiveApplicationsRsp.ProtoReflect.Descriptor instead.
func (*GiveApplicationsRsp) Descriptor() ([]byte, []int) { func (*GiveApplicationsRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{24} return file_main_proto_rawDescGZIP(), []int{25}
} }
type DownloadTeamsQrCodesFileReq struct { type DownloadTeamsQrCodesFileReq struct {
@ -1178,7 +1254,7 @@ type DownloadTeamsQrCodesFileReq struct {
func (x *DownloadTeamsQrCodesFileReq) Reset() { func (x *DownloadTeamsQrCodesFileReq) Reset() {
*x = DownloadTeamsQrCodesFileReq{} *x = DownloadTeamsQrCodesFileReq{}
mi := &file_main_proto_msgTypes[25] mi := &file_main_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1190,7 +1266,7 @@ func (x *DownloadTeamsQrCodesFileReq) String() string {
func (*DownloadTeamsQrCodesFileReq) ProtoMessage() {} func (*DownloadTeamsQrCodesFileReq) ProtoMessage() {}
func (x *DownloadTeamsQrCodesFileReq) ProtoReflect() protoreflect.Message { func (x *DownloadTeamsQrCodesFileReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[25] mi := &file_main_proto_msgTypes[26]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1203,7 +1279,7 @@ func (x *DownloadTeamsQrCodesFileReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use DownloadTeamsQrCodesFileReq.ProtoReflect.Descriptor instead. // Deprecated: Use DownloadTeamsQrCodesFileReq.ProtoReflect.Descriptor instead.
func (*DownloadTeamsQrCodesFileReq) Descriptor() ([]byte, []int) { func (*DownloadTeamsQrCodesFileReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{25} return file_main_proto_rawDescGZIP(), []int{26}
} }
type DownloadTeamsQrCodesFileRsp struct { type DownloadTeamsQrCodesFileRsp struct {
@ -1215,7 +1291,7 @@ type DownloadTeamsQrCodesFileRsp struct {
func (x *DownloadTeamsQrCodesFileRsp) Reset() { func (x *DownloadTeamsQrCodesFileRsp) Reset() {
*x = DownloadTeamsQrCodesFileRsp{} *x = DownloadTeamsQrCodesFileRsp{}
mi := &file_main_proto_msgTypes[26] mi := &file_main_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1227,7 +1303,7 @@ func (x *DownloadTeamsQrCodesFileRsp) String() string {
func (*DownloadTeamsQrCodesFileRsp) ProtoMessage() {} func (*DownloadTeamsQrCodesFileRsp) ProtoMessage() {}
func (x *DownloadTeamsQrCodesFileRsp) ProtoReflect() protoreflect.Message { func (x *DownloadTeamsQrCodesFileRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[26] mi := &file_main_proto_msgTypes[27]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1240,7 +1316,7 @@ func (x *DownloadTeamsQrCodesFileRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use DownloadTeamsQrCodesFileRsp.ProtoReflect.Descriptor instead. // Deprecated: Use DownloadTeamsQrCodesFileRsp.ProtoReflect.Descriptor instead.
func (*DownloadTeamsQrCodesFileRsp) Descriptor() ([]byte, []int) { func (*DownloadTeamsQrCodesFileRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{26} return file_main_proto_rawDescGZIP(), []int{27}
} }
func (x *DownloadTeamsQrCodesFileRsp) GetResult() []byte { func (x *DownloadTeamsQrCodesFileRsp) GetResult() []byte {
@ -1258,7 +1334,7 @@ type GetGraphReq struct {
func (x *GetGraphReq) Reset() { func (x *GetGraphReq) Reset() {
*x = GetGraphReq{} *x = GetGraphReq{}
mi := &file_main_proto_msgTypes[27] mi := &file_main_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1270,7 +1346,7 @@ func (x *GetGraphReq) String() string {
func (*GetGraphReq) ProtoMessage() {} func (*GetGraphReq) ProtoMessage() {}
func (x *GetGraphReq) ProtoReflect() protoreflect.Message { func (x *GetGraphReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[27] mi := &file_main_proto_msgTypes[28]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1283,7 +1359,7 @@ func (x *GetGraphReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetGraphReq.ProtoReflect.Descriptor instead. // Deprecated: Use GetGraphReq.ProtoReflect.Descriptor instead.
func (*GetGraphReq) Descriptor() ([]byte, []int) { func (*GetGraphReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{27} return file_main_proto_rawDescGZIP(), []int{28}
} }
type GetGraphRsp struct { type GetGraphRsp struct {
@ -1298,7 +1374,7 @@ type GetGraphRsp struct {
func (x *GetGraphRsp) Reset() { func (x *GetGraphRsp) Reset() {
*x = GetGraphRsp{} *x = GetGraphRsp{}
mi := &file_main_proto_msgTypes[28] mi := &file_main_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1310,7 +1386,7 @@ func (x *GetGraphRsp) String() string {
func (*GetGraphRsp) ProtoMessage() {} func (*GetGraphRsp) ProtoMessage() {}
func (x *GetGraphRsp) ProtoReflect() protoreflect.Message { func (x *GetGraphRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[28] mi := &file_main_proto_msgTypes[29]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1323,7 +1399,7 @@ func (x *GetGraphRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetGraphRsp.ProtoReflect.Descriptor instead. // Deprecated: Use GetGraphRsp.ProtoReflect.Descriptor instead.
func (*GetGraphRsp) Descriptor() ([]byte, []int) { func (*GetGraphRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{28} return file_main_proto_rawDescGZIP(), []int{29}
} }
func (x *GetGraphRsp) GetNodes() []*GraphNode { func (x *GetGraphRsp) GetNodes() []*GraphNode {
@ -1364,7 +1440,7 @@ type UpdateNodeReq struct {
func (x *UpdateNodeReq) Reset() { func (x *UpdateNodeReq) Reset() {
*x = UpdateNodeReq{} *x = UpdateNodeReq{}
mi := &file_main_proto_msgTypes[29] mi := &file_main_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1376,7 +1452,7 @@ func (x *UpdateNodeReq) String() string {
func (*UpdateNodeReq) ProtoMessage() {} func (*UpdateNodeReq) ProtoMessage() {}
func (x *UpdateNodeReq) ProtoReflect() protoreflect.Message { func (x *UpdateNodeReq) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[29] mi := &file_main_proto_msgTypes[30]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1389,7 +1465,7 @@ func (x *UpdateNodeReq) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateNodeReq.ProtoReflect.Descriptor instead. // Deprecated: Use UpdateNodeReq.ProtoReflect.Descriptor instead.
func (*UpdateNodeReq) Descriptor() ([]byte, []int) { func (*UpdateNodeReq) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{29} return file_main_proto_rawDescGZIP(), []int{30}
} }
func (x *UpdateNodeReq) GetCode() string { func (x *UpdateNodeReq) GetCode() string {
@ -1414,7 +1490,7 @@ type UpdateNodeRsp struct {
func (x *UpdateNodeRsp) Reset() { func (x *UpdateNodeRsp) Reset() {
*x = UpdateNodeRsp{} *x = UpdateNodeRsp{}
mi := &file_main_proto_msgTypes[30] mi := &file_main_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1426,7 +1502,7 @@ func (x *UpdateNodeRsp) String() string {
func (*UpdateNodeRsp) ProtoMessage() {} func (*UpdateNodeRsp) ProtoMessage() {}
func (x *UpdateNodeRsp) ProtoReflect() protoreflect.Message { func (x *UpdateNodeRsp) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[30] mi := &file_main_proto_msgTypes[31]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1439,7 +1515,7 @@ func (x *UpdateNodeRsp) ProtoReflect() protoreflect.Message {
// Deprecated: Use UpdateNodeRsp.ProtoReflect.Descriptor instead. // Deprecated: Use UpdateNodeRsp.ProtoReflect.Descriptor instead.
func (*UpdateNodeRsp) Descriptor() ([]byte, []int) { func (*UpdateNodeRsp) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{30} return file_main_proto_rawDescGZIP(), []int{31}
} }
type GraphNode struct { type GraphNode struct {
@ -1454,7 +1530,7 @@ type GraphNode struct {
func (x *GraphNode) Reset() { func (x *GraphNode) Reset() {
*x = GraphNode{} *x = GraphNode{}
mi := &file_main_proto_msgTypes[31] mi := &file_main_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1466,7 +1542,7 @@ func (x *GraphNode) String() string {
func (*GraphNode) ProtoMessage() {} func (*GraphNode) ProtoMessage() {}
func (x *GraphNode) ProtoReflect() protoreflect.Message { func (x *GraphNode) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[31] mi := &file_main_proto_msgTypes[32]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1479,7 +1555,7 @@ func (x *GraphNode) ProtoReflect() protoreflect.Message {
// Deprecated: Use GraphNode.ProtoReflect.Descriptor instead. // Deprecated: Use GraphNode.ProtoReflect.Descriptor instead.
func (*GraphNode) Descriptor() ([]byte, []int) { func (*GraphNode) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{31} return file_main_proto_rawDescGZIP(), []int{32}
} }
func (x *GraphNode) GetCode() string { func (x *GraphNode) GetCode() string {
@ -1519,7 +1595,7 @@ type GraphApplication struct {
func (x *GraphApplication) Reset() { func (x *GraphApplication) Reset() {
*x = GraphApplication{} *x = GraphApplication{}
mi := &file_main_proto_msgTypes[32] mi := &file_main_proto_msgTypes[33]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1531,7 +1607,7 @@ func (x *GraphApplication) String() string {
func (*GraphApplication) ProtoMessage() {} func (*GraphApplication) ProtoMessage() {}
func (x *GraphApplication) ProtoReflect() protoreflect.Message { func (x *GraphApplication) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[32] mi := &file_main_proto_msgTypes[33]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1544,7 +1620,7 @@ func (x *GraphApplication) ProtoReflect() protoreflect.Message {
// Deprecated: Use GraphApplication.ProtoReflect.Descriptor instead. // Deprecated: Use GraphApplication.ProtoReflect.Descriptor instead.
func (*GraphApplication) Descriptor() ([]byte, []int) { func (*GraphApplication) Descriptor() ([]byte, []int) {
return file_main_proto_rawDescGZIP(), []int{32} return file_main_proto_rawDescGZIP(), []int{33}
} }
func (x *GraphApplication) GetName() string { func (x *GraphApplication) GetName() string {
@ -1566,7 +1642,7 @@ type GetGraphRsp_Edge struct {
func (x *GetGraphRsp_Edge) Reset() { func (x *GetGraphRsp_Edge) Reset() {
*x = GetGraphRsp_Edge{} *x = GetGraphRsp_Edge{}
mi := &file_main_proto_msgTypes[33] mi := &file_main_proto_msgTypes[34]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -1578,7 +1654,7 @@ func (x *GetGraphRsp_Edge) String() string {
func (*GetGraphRsp_Edge) ProtoMessage() {} func (*GetGraphRsp_Edge) ProtoMessage() {}
func (x *GetGraphRsp_Edge) ProtoReflect() protoreflect.Message { func (x *GetGraphRsp_Edge) ProtoReflect() protoreflect.Message {
mi := &file_main_proto_msgTypes[33] mi := &file_main_proto_msgTypes[34]
if x != nil { if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -1591,7 +1667,7 @@ func (x *GetGraphRsp_Edge) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetGraphRsp_Edge.ProtoReflect.Descriptor instead. // Deprecated: Use GetGraphRsp_Edge.ProtoReflect.Descriptor instead.
func (*GetGraphRsp_Edge) Descriptor() ([]byte, []int) { 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 { func (x *GetGraphRsp_Edge) GetFrom() string {
@ -1656,7 +1732,11 @@ const file_main_proto_rawDesc = "" +
"\vApplication\x12\x0e\n" + "\vApplication\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x14\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" + "\n" +
"GetTeamReq\"[\n" + "GetTeamReq\"[\n" +
"\n" + "\n" +
@ -1665,13 +1745,15 @@ const file_main_proto_rawDesc = "" +
"\aactions\x18\x02 \x03(\v2\x1f.crabs.evening_detective.ActionR\aactions\"$\n" + "\aactions\x18\x02 \x03(\v2\x1f.crabs.evening_detective.ActionR\aactions\"$\n" +
"\fAddActionReq\x12\x14\n" + "\fAddActionReq\x12\x14\n" +
"\x05place\x18\x01 \x01(\tR\x05place\"\x0e\n" + "\x05place\x18\x01 \x01(\tR\x05place\"\x0e\n" +
"\fAddActionRsp\"\xa0\x01\n" + "\fAddActionRsp\"\xed\x01\n" +
"\x06Action\x12\x0e\n" + "\x06Action\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" + "\x02id\x18\x01 \x01(\x03R\x02id\x12\x14\n" +
"\x05place\x18\x02 \x01(\tR\x05place\x12\x12\n" + "\x05place\x18\x02 \x01(\tR\x05place\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" + "\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" +
"\x04text\x18\x04 \x01(\tR\x04text\x12H\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" + "\n" +
"GetGameReq\"R\n" + "GetGameReq\"R\n" +
"\n" + "\n" +
@ -1747,7 +1829,7 @@ func file_main_proto_rawDescGZIP() []byte {
return file_main_proto_rawDescData 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{ var file_main_proto_goTypes = []any{
(*PingReq)(nil), // 0: crabs.evening_detective.PingReq (*PingReq)(nil), // 0: crabs.evening_detective.PingReq
(*PingRsp)(nil), // 1: crabs.evening_detective.PingRsp (*PingRsp)(nil), // 1: crabs.evening_detective.PingRsp
@ -1761,72 +1843,74 @@ var file_main_proto_goTypes = []any{
(*GetTeamsCSVRsp)(nil), // 9: crabs.evening_detective.GetTeamsCSVRsp (*GetTeamsCSVRsp)(nil), // 9: crabs.evening_detective.GetTeamsCSVRsp
(*TeamAdvanced)(nil), // 10: crabs.evening_detective.TeamAdvanced (*TeamAdvanced)(nil), // 10: crabs.evening_detective.TeamAdvanced
(*Application)(nil), // 11: crabs.evening_detective.Application (*Application)(nil), // 11: crabs.evening_detective.Application
(*GetTeamReq)(nil), // 12: crabs.evening_detective.GetTeamReq (*Door)(nil), // 12: crabs.evening_detective.Door
(*GetTeamRsp)(nil), // 13: crabs.evening_detective.GetTeamRsp (*GetTeamReq)(nil), // 13: crabs.evening_detective.GetTeamReq
(*AddActionReq)(nil), // 14: crabs.evening_detective.AddActionReq (*GetTeamRsp)(nil), // 14: crabs.evening_detective.GetTeamRsp
(*AddActionRsp)(nil), // 15: crabs.evening_detective.AddActionRsp (*AddActionReq)(nil), // 15: crabs.evening_detective.AddActionReq
(*Action)(nil), // 16: crabs.evening_detective.Action (*AddActionRsp)(nil), // 16: crabs.evening_detective.AddActionRsp
(*GetGameReq)(nil), // 17: crabs.evening_detective.GetGameReq (*Action)(nil), // 17: crabs.evening_detective.Action
(*GetGameRsp)(nil), // 18: crabs.evening_detective.GetGameRsp (*GetGameReq)(nil), // 18: crabs.evening_detective.GetGameReq
(*GameStartReq)(nil), // 19: crabs.evening_detective.GameStartReq (*GetGameRsp)(nil), // 19: crabs.evening_detective.GetGameRsp
(*GameStartRsp)(nil), // 20: crabs.evening_detective.GameStartRsp (*GameStartReq)(nil), // 20: crabs.evening_detective.GameStartReq
(*GameStopReq)(nil), // 21: crabs.evening_detective.GameStopReq (*GameStartRsp)(nil), // 21: crabs.evening_detective.GameStartRsp
(*GameStopRsp)(nil), // 22: crabs.evening_detective.GameStopRsp (*GameStopReq)(nil), // 22: crabs.evening_detective.GameStopReq
(*GiveApplicationsReq)(nil), // 23: crabs.evening_detective.GiveApplicationsReq (*GameStopRsp)(nil), // 23: crabs.evening_detective.GameStopRsp
(*GiveApplicationsRsp)(nil), // 24: crabs.evening_detective.GiveApplicationsRsp (*GiveApplicationsReq)(nil), // 24: crabs.evening_detective.GiveApplicationsReq
(*DownloadTeamsQrCodesFileReq)(nil), // 25: crabs.evening_detective.DownloadTeamsQrCodesFileReq (*GiveApplicationsRsp)(nil), // 25: crabs.evening_detective.GiveApplicationsRsp
(*DownloadTeamsQrCodesFileRsp)(nil), // 26: crabs.evening_detective.DownloadTeamsQrCodesFileRsp (*DownloadTeamsQrCodesFileReq)(nil), // 26: crabs.evening_detective.DownloadTeamsQrCodesFileReq
(*GetGraphReq)(nil), // 27: crabs.evening_detective.GetGraphReq (*DownloadTeamsQrCodesFileRsp)(nil), // 27: crabs.evening_detective.DownloadTeamsQrCodesFileRsp
(*GetGraphRsp)(nil), // 28: crabs.evening_detective.GetGraphRsp (*GetGraphReq)(nil), // 28: crabs.evening_detective.GetGraphReq
(*UpdateNodeReq)(nil), // 29: crabs.evening_detective.UpdateNodeReq (*GetGraphRsp)(nil), // 29: crabs.evening_detective.GetGraphRsp
(*UpdateNodeRsp)(nil), // 30: crabs.evening_detective.UpdateNodeRsp (*UpdateNodeReq)(nil), // 30: crabs.evening_detective.UpdateNodeReq
(*GraphNode)(nil), // 31: crabs.evening_detective.GraphNode (*UpdateNodeRsp)(nil), // 31: crabs.evening_detective.UpdateNodeRsp
(*GraphApplication)(nil), // 32: crabs.evening_detective.GraphApplication (*GraphNode)(nil), // 32: crabs.evening_detective.GraphNode
(*GetGraphRsp_Edge)(nil), // 33: crabs.evening_detective.GetGraphRsp.Edge (*GraphApplication)(nil), // 33: crabs.evening_detective.GraphApplication
(*GetGraphRsp_Edge)(nil), // 34: crabs.evening_detective.GetGraphRsp.Edge
} }
var file_main_proto_depIdxs = []int32{ var file_main_proto_depIdxs = []int32{
3, // 0: crabs.evening_detective.AddTeamsReq.teams:type_name -> crabs.evening_detective.Team 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 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 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 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, // 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 12, // 6: crabs.evening_detective.Action.doors:type_name -> crabs.evening_detective.Door
31, // 7: crabs.evening_detective.GetGraphRsp.nodes:type_name -> crabs.evening_detective.GraphNode 11, // 7: crabs.evening_detective.GiveApplicationsReq.applications:type_name -> crabs.evening_detective.Application
33, // 8: crabs.evening_detective.GetGraphRsp.edges:type_name -> crabs.evening_detective.GetGraphRsp.Edge 32, // 8: crabs.evening_detective.GetGraphRsp.nodes:type_name -> crabs.evening_detective.GraphNode
31, // 9: crabs.evening_detective.UpdateNodeReq.node: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.GraphNode.applications:type_name -> crabs.evening_detective.GraphApplication 32, // 10: crabs.evening_detective.UpdateNodeReq.node:type_name -> crabs.evening_detective.GraphNode
0, // 11: crabs.evening_detective.EveningDetective.Ping:input_type -> crabs.evening_detective.PingReq 33, // 11: crabs.evening_detective.GraphNode.applications:type_name -> crabs.evening_detective.GraphApplication
2, // 12: crabs.evening_detective.EveningDetective.AddTeams:input_type -> crabs.evening_detective.AddTeamsReq 0, // 12: crabs.evening_detective.EveningDetective.Ping:input_type -> crabs.evening_detective.PingReq
6, // 13: crabs.evening_detective.EveningDetective.GetTeams:input_type -> crabs.evening_detective.GetTeamsReq 2, // 13: crabs.evening_detective.EveningDetective.AddTeams:input_type -> crabs.evening_detective.AddTeamsReq
8, // 14: crabs.evening_detective.EveningDetective.GetTeamsCSV:input_type -> crabs.evening_detective.GetTeamsCSVReq 6, // 14: crabs.evening_detective.EveningDetective.GetTeams:input_type -> crabs.evening_detective.GetTeamsReq
12, // 15: crabs.evening_detective.EveningDetective.GetTeam:input_type -> crabs.evening_detective.GetTeamReq 8, // 15: crabs.evening_detective.EveningDetective.GetTeamsCSV:input_type -> crabs.evening_detective.GetTeamsCSVReq
14, // 16: crabs.evening_detective.EveningDetective.AddAction:input_type -> crabs.evening_detective.AddActionReq 13, // 16: crabs.evening_detective.EveningDetective.GetTeam:input_type -> crabs.evening_detective.GetTeamReq
17, // 17: crabs.evening_detective.EveningDetective.GetGame:input_type -> crabs.evening_detective.GetGameReq 15, // 17: crabs.evening_detective.EveningDetective.AddAction:input_type -> crabs.evening_detective.AddActionReq
19, // 18: crabs.evening_detective.EveningDetective.GameStart:input_type -> crabs.evening_detective.GameStartReq 18, // 18: crabs.evening_detective.EveningDetective.GetGame:input_type -> crabs.evening_detective.GetGameReq
21, // 19: crabs.evening_detective.EveningDetective.GameStop:input_type -> crabs.evening_detective.GameStopReq 20, // 19: crabs.evening_detective.EveningDetective.GameStart:input_type -> crabs.evening_detective.GameStartReq
23, // 20: crabs.evening_detective.EveningDetective.GiveApplications:input_type -> crabs.evening_detective.GiveApplicationsReq 22, // 20: crabs.evening_detective.EveningDetective.GameStop:input_type -> crabs.evening_detective.GameStopReq
25, // 21: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:input_type -> crabs.evening_detective.DownloadTeamsQrCodesFileReq 24, // 21: crabs.evening_detective.EveningDetective.GiveApplications:input_type -> crabs.evening_detective.GiveApplicationsReq
27, // 22: crabs.evening_detective.EveningDetective.GetGraph:input_type -> crabs.evening_detective.GetGraphReq 26, // 22: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:input_type -> crabs.evening_detective.DownloadTeamsQrCodesFileReq
29, // 23: crabs.evening_detective.EveningDetective.UpdateNode:input_type -> crabs.evening_detective.UpdateNodeReq 28, // 23: crabs.evening_detective.EveningDetective.GetGraph:input_type -> crabs.evening_detective.GetGraphReq
1, // 24: crabs.evening_detective.EveningDetective.Ping:output_type -> crabs.evening_detective.PingRsp 30, // 24: crabs.evening_detective.EveningDetective.UpdateNode:input_type -> crabs.evening_detective.UpdateNodeReq
4, // 25: crabs.evening_detective.EveningDetective.AddTeams:output_type -> crabs.evening_detective.AddTeamsRsp 1, // 25: crabs.evening_detective.EveningDetective.Ping:output_type -> crabs.evening_detective.PingRsp
7, // 26: crabs.evening_detective.EveningDetective.GetTeams:output_type -> crabs.evening_detective.GetTeamsRsp 4, // 26: crabs.evening_detective.EveningDetective.AddTeams:output_type -> crabs.evening_detective.AddTeamsRsp
9, // 27: crabs.evening_detective.EveningDetective.GetTeamsCSV:output_type -> crabs.evening_detective.GetTeamsCSVRsp 7, // 27: crabs.evening_detective.EveningDetective.GetTeams:output_type -> crabs.evening_detective.GetTeamsRsp
13, // 28: crabs.evening_detective.EveningDetective.GetTeam:output_type -> crabs.evening_detective.GetTeamRsp 9, // 28: crabs.evening_detective.EveningDetective.GetTeamsCSV:output_type -> crabs.evening_detective.GetTeamsCSVRsp
15, // 29: crabs.evening_detective.EveningDetective.AddAction:output_type -> crabs.evening_detective.AddActionRsp 14, // 29: crabs.evening_detective.EveningDetective.GetTeam:output_type -> crabs.evening_detective.GetTeamRsp
18, // 30: crabs.evening_detective.EveningDetective.GetGame:output_type -> crabs.evening_detective.GetGameRsp 16, // 30: crabs.evening_detective.EveningDetective.AddAction:output_type -> crabs.evening_detective.AddActionRsp
20, // 31: crabs.evening_detective.EveningDetective.GameStart:output_type -> crabs.evening_detective.GameStartRsp 19, // 31: crabs.evening_detective.EveningDetective.GetGame:output_type -> crabs.evening_detective.GetGameRsp
22, // 32: crabs.evening_detective.EveningDetective.GameStop:output_type -> crabs.evening_detective.GameStopRsp 21, // 32: crabs.evening_detective.EveningDetective.GameStart:output_type -> crabs.evening_detective.GameStartRsp
24, // 33: crabs.evening_detective.EveningDetective.GiveApplications:output_type -> crabs.evening_detective.GiveApplicationsRsp 23, // 33: crabs.evening_detective.EveningDetective.GameStop:output_type -> crabs.evening_detective.GameStopRsp
26, // 34: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:output_type -> crabs.evening_detective.DownloadTeamsQrCodesFileRsp 25, // 34: crabs.evening_detective.EveningDetective.GiveApplications:output_type -> crabs.evening_detective.GiveApplicationsRsp
28, // 35: crabs.evening_detective.EveningDetective.GetGraph:output_type -> crabs.evening_detective.GetGraphRsp 27, // 35: crabs.evening_detective.EveningDetective.DownloadTeamsQrCodesFile:output_type -> crabs.evening_detective.DownloadTeamsQrCodesFileRsp
30, // 36: crabs.evening_detective.EveningDetective.UpdateNode:output_type -> crabs.evening_detective.UpdateNodeRsp 29, // 36: crabs.evening_detective.EveningDetective.GetGraph:output_type -> crabs.evening_detective.GetGraphRsp
24, // [24:37] is the sub-list for method output_type 31, // 37: crabs.evening_detective.EveningDetective.UpdateNode:output_type -> crabs.evening_detective.UpdateNodeRsp
11, // [11:24] is the sub-list for method input_type 25, // [25:38] is the sub-list for method output_type
11, // [11:11] is the sub-list for extension type_name 12, // [12:25] is the sub-list for method input_type
11, // [11:11] is the sub-list for extension extendee 12, // [12:12] is the sub-list for extension type_name
0, // [0:11] is the sub-list for field 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() } func init() { file_main_proto_init() }
@ -1840,7 +1924,7 @@ func file_main_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_main_proto_rawDesc), len(file_main_proto_rawDesc)), RawDescriptor: unsafe.Slice(unsafe.StringData(file_main_proto_rawDesc), len(file_main_proto_rawDesc)),
NumEnums: 0, NumEnums: 0,
NumMessages: 34, NumMessages: 35,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },

View File

@ -402,6 +402,15 @@
"items": { "items": {
"$ref": "#/definitions/evening_detectiveApplication" "$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": { "evening_detectiveDownloadTeamsQrCodesFileRsp": {
"type": "object", "type": "object",
"properties": { "properties": {