generated from VLADIMIR/template
add stat and fix get place
This commit is contained in:
+24
-2
@@ -1290,6 +1290,8 @@ type GetGraphRsp struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Nodes []*GetGraphRsp_Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
||||
Edges []*GetGraphRsp_Edge `protobuf:"bytes,2,rep,name=edges,proto3" json:"edges,omitempty"`
|
||||
CountNodes int32 `protobuf:"varint,3,opt,name=countNodes,proto3" json:"countNodes,omitempty"`
|
||||
CountEdges int32 `protobuf:"varint,4,opt,name=countEdges,proto3" json:"countEdges,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -1338,6 +1340,20 @@ func (x *GetGraphRsp) GetEdges() []*GetGraphRsp_Edge {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *GetGraphRsp) GetCountNodes() int32 {
|
||||
if x != nil {
|
||||
return x.CountNodes
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetGraphRsp) GetCountEdges() int32 {
|
||||
if x != nil {
|
||||
return x.CountEdges
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type GetGraphRsp_Node struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
@@ -1519,10 +1535,16 @@ const file_main_proto_rawDesc = "" +
|
||||
"\x1bDownloadTeamsQrCodesFileReq\"5\n" +
|
||||
"\x1bDownloadTeamsQrCodesFileRsp\x12\x16\n" +
|
||||
"\x06result\x18\x01 \x01(\fR\x06result\"\r\n" +
|
||||
"\vGetGraphReq\"\x81\x02\n" +
|
||||
"\vGetGraphReq\"\xc1\x02\n" +
|
||||
"\vGetGraphRsp\x12?\n" +
|
||||
"\x05nodes\x18\x01 \x03(\v2).crabs.evening_detective.GetGraphRsp.NodeR\x05nodes\x12?\n" +
|
||||
"\x05edges\x18\x02 \x03(\v2).crabs.evening_detective.GetGraphRsp.EdgeR\x05edges\x1a,\n" +
|
||||
"\x05edges\x18\x02 \x03(\v2).crabs.evening_detective.GetGraphRsp.EdgeR\x05edges\x12\x1e\n" +
|
||||
"\n" +
|
||||
"countNodes\x18\x03 \x01(\x05R\n" +
|
||||
"countNodes\x12\x1e\n" +
|
||||
"\n" +
|
||||
"countEdges\x18\x04 \x01(\x05R\n" +
|
||||
"countEdges\x1a,\n" +
|
||||
"\x04Node\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x14\n" +
|
||||
"\x05label\x18\x02 \x01(\tR\x05label\x1aB\n" +
|
||||
|
||||
@@ -487,6 +487,14 @@
|
||||
"items": {
|
||||
"$ref": "#/definitions/GetGraphRspEdge"
|
||||
}
|
||||
},
|
||||
"countNodes": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"countEdges": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user