From 98ada58d9350ce4162a12213a0e57b53926de9f0 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Mon, 29 Nov 2021 20:36:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/rpc/pb/model_authority_key.pb.go | 14 ++++++++++++-- pkg/rpc/protos/models/model_authority_key.proto | 1 + 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pkg/rpc/pb/model_authority_key.pb.go b/pkg/rpc/pb/model_authority_key.pb.go index d3919c3..bcb9dd9 100644 --- a/pkg/rpc/pb/model_authority_key.pb.go +++ b/pkg/rpc/pb/model_authority_key.pb.go @@ -39,6 +39,7 @@ type AuthorityKey struct { UpdatedAt int64 `protobuf:"varint,6,opt,name=updatedAt,proto3" json:"updatedAt,omitempty"` Company string `protobuf:"bytes,7,opt,name=company,proto3" json:"company,omitempty"` Nodes int32 `protobuf:"varint,8,opt,name=nodes,proto3" json:"nodes,omitempty"` + Components []string `protobuf:"bytes,9,rep,name=components,proto3" json:"components,omitempty"` } func (x *AuthorityKey) Reset() { @@ -129,12 +130,19 @@ func (x *AuthorityKey) GetNodes() int32 { return 0 } +func (x *AuthorityKey) GetComponents() []string { + if x != nil { + return x.Components + } + return nil +} + var File_models_model_authority_key_proto protoreflect.FileDescriptor var file_models_model_authority_key_proto_rawDesc = []byte{ 0x0a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xe2, 0x01, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x6f, + 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0x82, 0x02, 0x0a, 0x0c, 0x41, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x74, 0x79, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x61, 0x79, 0x46, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, @@ -148,7 +156,9 @@ var file_models_model_authority_key_proto_rawDesc = []byte{ 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x6e, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, + 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, + 0x0a, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x6e, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/pkg/rpc/protos/models/model_authority_key.proto b/pkg/rpc/protos/models/model_authority_key.proto index ee78254..aebb53a 100644 --- a/pkg/rpc/protos/models/model_authority_key.proto +++ b/pkg/rpc/protos/models/model_authority_key.proto @@ -13,4 +13,5 @@ message AuthorityKey { int64 updatedAt = 6; string company = 7; int32 nodes = 8; + repeated string components = 9; }