diff --git a/pkg/rpc/pb/model_acme_provider.pb.go b/pkg/rpc/pb/model_acme_provider.pb.go new file mode 100644 index 0000000..4974d3e --- /dev/null +++ b/pkg/rpc/pb/model_acme_provider.pb.go @@ -0,0 +1,197 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.3 +// source: models/model_acme_provider.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type ACMEProvider struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + ApiURL string `protobuf:"bytes,5,opt,name=apiURL,proto3" json:"apiURL,omitempty"` + RequireEAB bool `protobuf:"varint,6,opt,name=requireEAB,proto3" json:"requireEAB,omitempty"` + EabDescription string `protobuf:"bytes,7,opt,name=eabDescription,proto3" json:"eabDescription,omitempty"` +} + +func (x *ACMEProvider) Reset() { + *x = ACMEProvider{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_acme_provider_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ACMEProvider) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ACMEProvider) ProtoMessage() {} + +func (x *ACMEProvider) ProtoReflect() protoreflect.Message { + mi := &file_models_model_acme_provider_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ACMEProvider.ProtoReflect.Descriptor instead. +func (*ACMEProvider) Descriptor() ([]byte, []int) { + return file_models_model_acme_provider_proto_rawDescGZIP(), []int{0} +} + +func (x *ACMEProvider) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ACMEProvider) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + +func (x *ACMEProvider) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ACMEProvider) GetApiURL() string { + if x != nil { + return x.ApiURL + } + return "" +} + +func (x *ACMEProvider) GetRequireEAB() bool { + if x != nil { + return x.RequireEAB + } + return false +} + +func (x *ACMEProvider) GetEabDescription() string { + if x != nil { + return x.EabDescription + } + return "" +} + +var File_models_model_acme_provider_proto protoreflect.FileDescriptor + +var file_models_model_acme_provider_proto_rawDesc = []byte{ + 0x0a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, + 0x63, 0x6d, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x22, 0xb8, 0x01, 0x0a, 0x0c, 0x41, 0x43, 0x4d, 0x45, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, + 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x70, 0x69, 0x55, 0x52, 0x4c, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x06, 0x61, 0x70, 0x69, 0x55, 0x52, 0x4c, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x65, 0x71, + 0x75, 0x69, 0x72, 0x65, 0x45, 0x41, 0x42, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x72, + 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x45, 0x41, 0x42, 0x12, 0x26, 0x0a, 0x0e, 0x65, 0x61, 0x62, + 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x65, 0x61, 0x62, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_models_model_acme_provider_proto_rawDescOnce sync.Once + file_models_model_acme_provider_proto_rawDescData = file_models_model_acme_provider_proto_rawDesc +) + +func file_models_model_acme_provider_proto_rawDescGZIP() []byte { + file_models_model_acme_provider_proto_rawDescOnce.Do(func() { + file_models_model_acme_provider_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_acme_provider_proto_rawDescData) + }) + return file_models_model_acme_provider_proto_rawDescData +} + +var file_models_model_acme_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_acme_provider_proto_goTypes = []interface{}{ + (*ACMEProvider)(nil), // 0: pb.ACMEProvider +} +var file_models_model_acme_provider_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_models_model_acme_provider_proto_init() } +func file_models_model_acme_provider_proto_init() { + if File_models_model_acme_provider_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_models_model_acme_provider_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACMEProvider); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_acme_provider_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_acme_provider_proto_goTypes, + DependencyIndexes: file_models_model_acme_provider_proto_depIdxs, + MessageInfos: file_models_model_acme_provider_proto_msgTypes, + }.Build() + File_models_model_acme_provider_proto = out.File + file_models_model_acme_provider_proto_rawDesc = nil + file_models_model_acme_provider_proto_goTypes = nil + file_models_model_acme_provider_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_acme_provider_account.pb.go b/pkg/rpc/pb/model_acme_provider_account.pb.go new file mode 100644 index 0000000..7840e07 --- /dev/null +++ b/pkg/rpc/pb/model_acme_provider_account.pb.go @@ -0,0 +1,221 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.3 +// source: models/model_acme_provider_account.proto + +package pb + +import ( + proto "github.com/golang/protobuf/proto" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type ACMEProviderAccount struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + IsOn bool `protobuf:"varint,3,opt,name=isOn,proto3" json:"isOn,omitempty"` + ProviderCode string `protobuf:"bytes,4,opt,name=providerCode,proto3" json:"providerCode,omitempty"` + EabKid string `protobuf:"bytes,5,opt,name=eabKid,proto3" json:"eabKid,omitempty"` + EabKey string `protobuf:"bytes,6,opt,name=eabKey,proto3" json:"eabKey,omitempty"` + Error string `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` + AcmeProvider *ACMEProvider `protobuf:"bytes,30,opt,name=acmeProvider,proto3" json:"acmeProvider,omitempty"` +} + +func (x *ACMEProviderAccount) Reset() { + *x = ACMEProviderAccount{} + if protoimpl.UnsafeEnabled { + mi := &file_models_model_acme_provider_account_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ACMEProviderAccount) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ACMEProviderAccount) ProtoMessage() {} + +func (x *ACMEProviderAccount) ProtoReflect() protoreflect.Message { + mi := &file_models_model_acme_provider_account_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ACMEProviderAccount.ProtoReflect.Descriptor instead. +func (*ACMEProviderAccount) Descriptor() ([]byte, []int) { + return file_models_model_acme_provider_account_proto_rawDescGZIP(), []int{0} +} + +func (x *ACMEProviderAccount) GetId() int64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ACMEProviderAccount) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ACMEProviderAccount) GetIsOn() bool { + if x != nil { + return x.IsOn + } + return false +} + +func (x *ACMEProviderAccount) GetProviderCode() string { + if x != nil { + return x.ProviderCode + } + return "" +} + +func (x *ACMEProviderAccount) GetEabKid() string { + if x != nil { + return x.EabKid + } + return "" +} + +func (x *ACMEProviderAccount) GetEabKey() string { + if x != nil { + return x.EabKey + } + return "" +} + +func (x *ACMEProviderAccount) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +func (x *ACMEProviderAccount) GetAcmeProvider() *ACMEProvider { + if x != nil { + return x.AcmeProvider + } + return nil +} + +var File_models_model_acme_provider_account_proto protoreflect.FileDescriptor + +var file_models_model_acme_provider_account_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, + 0x63, 0x6d, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x20, + 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x63, 0x6d, + 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x22, 0xed, 0x01, 0x0a, 0x13, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, + 0x69, 0x73, 0x4f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6e, + 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x61, 0x62, 0x4b, 0x69, 0x64, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x61, 0x62, 0x4b, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, + 0x65, 0x61, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x61, + 0x62, 0x4b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x34, 0x0a, 0x0c, 0x61, 0x63, + 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x52, 0x0c, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_models_model_acme_provider_account_proto_rawDescOnce sync.Once + file_models_model_acme_provider_account_proto_rawDescData = file_models_model_acme_provider_account_proto_rawDesc +) + +func file_models_model_acme_provider_account_proto_rawDescGZIP() []byte { + file_models_model_acme_provider_account_proto_rawDescOnce.Do(func() { + file_models_model_acme_provider_account_proto_rawDescData = protoimpl.X.CompressGZIP(file_models_model_acme_provider_account_proto_rawDescData) + }) + return file_models_model_acme_provider_account_proto_rawDescData +} + +var file_models_model_acme_provider_account_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_models_model_acme_provider_account_proto_goTypes = []interface{}{ + (*ACMEProviderAccount)(nil), // 0: pb.ACMEProviderAccount + (*ACMEProvider)(nil), // 1: pb.ACMEProvider +} +var file_models_model_acme_provider_account_proto_depIdxs = []int32{ + 1, // 0: pb.ACMEProviderAccount.acmeProvider:type_name -> pb.ACMEProvider + 1, // [1:1] is the sub-list for method output_type + 1, // [1:1] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_models_model_acme_provider_account_proto_init() } +func file_models_model_acme_provider_account_proto_init() { + if File_models_model_acme_provider_account_proto != nil { + return + } + file_models_model_acme_provider_proto_init() + if !protoimpl.UnsafeEnabled { + file_models_model_acme_provider_account_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ACMEProviderAccount); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_models_model_acme_provider_account_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_models_model_acme_provider_account_proto_goTypes, + DependencyIndexes: file_models_model_acme_provider_account_proto_depIdxs, + MessageInfos: file_models_model_acme_provider_account_proto_msgTypes, + }.Build() + File_models_model_acme_provider_account_proto = out.File + file_models_model_acme_provider_account_proto_rawDesc = nil + file_models_model_acme_provider_account_proto_goTypes = nil + file_models_model_acme_provider_account_proto_depIdxs = nil +} diff --git a/pkg/rpc/pb/model_acme_user.pb.go b/pkg/rpc/pb/model_acme_user.pb.go index 9249d11..10c31fe 100644 --- a/pkg/rpc/pb/model_acme_user.pb.go +++ b/pkg/rpc/pb/model_acme_user.pb.go @@ -30,10 +30,13 @@ type ACMEUser struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + CreatedAt int64 `protobuf:"varint,4,opt,name=createdAt,proto3" json:"createdAt,omitempty"` + AcmeProviderCode string `protobuf:"bytes,5,opt,name=acmeProviderCode,proto3" json:"acmeProviderCode,omitempty"` + AcmeProvider *ACMEProvider `protobuf:"bytes,30,opt,name=acmeProvider,proto3" json:"acmeProvider,omitempty"` + AcmeProviderAccount *ACMEProviderAccount `protobuf:"bytes,31,opt,name=acmeProviderAccount,proto3" json:"acmeProviderAccount,omitempty"` } func (x *ACMEUser) Reset() { @@ -96,20 +99,56 @@ func (x *ACMEUser) GetCreatedAt() int64 { return 0 } +func (x *ACMEUser) GetAcmeProviderCode() string { + if x != nil { + return x.AcmeProviderCode + } + return "" +} + +func (x *ACMEUser) GetAcmeProvider() *ACMEProvider { + if x != nil { + return x.AcmeProvider + } + return nil +} + +func (x *ACMEUser) GetAcmeProviderAccount() *ACMEProviderAccount { + if x != nil { + return x.AcmeProviderAccount + } + return nil +} + var File_models_model_acme_user_proto protoreflect.FileDescriptor var file_models_model_acme_user_proto_rawDesc = []byte{ 0x0a, 0x1c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, - 0x70, 0x62, 0x22, 0x70, 0x0a, 0x08, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, - 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, - 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x64, 0x41, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x70, 0x62, 0x1a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, + 0x5f, 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x5f, 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, + 0x02, 0x0a, 0x08, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x65, + 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, 0x69, + 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x63, 0x6d, + 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x34, 0x0a, + 0x0c, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x1e, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x13, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x13, 0x61, 0x63, 0x6d, 0x65, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x06, + 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -126,14 +165,18 @@ func file_models_model_acme_user_proto_rawDescGZIP() []byte { var file_models_model_acme_user_proto_msgTypes = make([]protoimpl.MessageInfo, 1) var file_models_model_acme_user_proto_goTypes = []interface{}{ - (*ACMEUser)(nil), // 0: pb.ACMEUser + (*ACMEUser)(nil), // 0: pb.ACMEUser + (*ACMEProvider)(nil), // 1: pb.ACMEProvider + (*ACMEProviderAccount)(nil), // 2: pb.ACMEProviderAccount } var file_models_model_acme_user_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name + 1, // 0: pb.ACMEUser.acmeProvider:type_name -> pb.ACMEProvider + 2, // 1: pb.ACMEUser.acmeProviderAccount:type_name -> pb.ACMEProviderAccount + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name } func init() { file_models_model_acme_user_proto_init() } @@ -141,6 +184,8 @@ func file_models_model_acme_user_proto_init() { if File_models_model_acme_user_proto != nil { return } + file_models_model_acme_provider_proto_init() + file_models_model_acme_provider_account_proto_init() if !protoimpl.UnsafeEnabled { file_models_model_acme_user_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACMEUser); i { diff --git a/pkg/rpc/pb/service_acme_provider.pb.go b/pkg/rpc/pb/service_acme_provider.pb.go new file mode 100644 index 0000000..a8f889d --- /dev/null +++ b/pkg/rpc/pb/service_acme_provider.pb.go @@ -0,0 +1,483 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.3 +// source: service_acme_provider.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 查找所有的服务商 +type FindAllACMEProvidersRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FindAllACMEProvidersRequest) Reset() { + *x = FindAllACMEProvidersRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllACMEProvidersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllACMEProvidersRequest) ProtoMessage() {} + +func (x *FindAllACMEProvidersRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllACMEProvidersRequest.ProtoReflect.Descriptor instead. +func (*FindAllACMEProvidersRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_proto_rawDescGZIP(), []int{0} +} + +type FindAllACMEProvidersResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviders []*ACMEProvider `protobuf:"bytes,1,rep,name=acmeProviders,proto3" json:"acmeProviders,omitempty"` +} + +func (x *FindAllACMEProvidersResponse) Reset() { + *x = FindAllACMEProvidersResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllACMEProvidersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllACMEProvidersResponse) ProtoMessage() {} + +func (x *FindAllACMEProvidersResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllACMEProvidersResponse.ProtoReflect.Descriptor instead. +func (*FindAllACMEProvidersResponse) Descriptor() ([]byte, []int) { + return file_service_acme_provider_proto_rawDescGZIP(), []int{1} +} + +func (x *FindAllACMEProvidersResponse) GetAcmeProviders() []*ACMEProvider { + if x != nil { + return x.AcmeProviders + } + return nil +} + +// 根据代号查找服务商 +type FindACMEProviderWithCodeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderCode string `protobuf:"bytes,1,opt,name=acmeProviderCode,proto3" json:"acmeProviderCode,omitempty"` +} + +func (x *FindACMEProviderWithCodeRequest) Reset() { + *x = FindACMEProviderWithCodeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindACMEProviderWithCodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindACMEProviderWithCodeRequest) ProtoMessage() {} + +func (x *FindACMEProviderWithCodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindACMEProviderWithCodeRequest.ProtoReflect.Descriptor instead. +func (*FindACMEProviderWithCodeRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_proto_rawDescGZIP(), []int{2} +} + +func (x *FindACMEProviderWithCodeRequest) GetAcmeProviderCode() string { + if x != nil { + return x.AcmeProviderCode + } + return "" +} + +type FindACMEProviderWithCodeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProvider *ACMEProvider `protobuf:"bytes,1,opt,name=acmeProvider,proto3" json:"acmeProvider,omitempty"` +} + +func (x *FindACMEProviderWithCodeResponse) Reset() { + *x = FindACMEProviderWithCodeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindACMEProviderWithCodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindACMEProviderWithCodeResponse) ProtoMessage() {} + +func (x *FindACMEProviderWithCodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindACMEProviderWithCodeResponse.ProtoReflect.Descriptor instead. +func (*FindACMEProviderWithCodeResponse) Descriptor() ([]byte, []int) { + return file_service_acme_provider_proto_rawDescGZIP(), []int{3} +} + +func (x *FindACMEProviderWithCodeResponse) GetAcmeProvider() *ACMEProvider { + if x != nil { + return x.AcmeProvider + } + return nil +} + +var File_service_acme_provider_proto protoreflect.FileDescriptor + +var file_service_acme_provider_proto_rawDesc = []byte{ + 0x0a, 0x1b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, + 0x62, 0x1a, 0x20, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, + 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x22, 0x1d, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, + 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x22, 0x56, 0x0a, 0x1c, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, + 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x36, 0x0a, 0x0d, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x41, + 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0d, 0x61, 0x63, 0x6d, + 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x22, 0x4d, 0x0a, 0x1f, 0x46, 0x69, + 0x6e, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x57, 0x69, + 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, + 0x10, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x58, 0x0a, 0x20, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x57, 0x69, 0x74, + 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x34, 0x0a, + 0x0c, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x52, 0x0c, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x32, 0xd7, 0x01, 0x0a, 0x13, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x59, 0x0a, 0x14, 0x66, + 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x73, 0x12, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, + 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x18, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x43, + 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, + 0x64, 0x65, 0x12, 0x23, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x43, 0x4d, 0x45, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x57, 0x69, 0x74, 0x68, 0x43, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x57, 0x69, 0x74, + 0x68, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, + 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_acme_provider_proto_rawDescOnce sync.Once + file_service_acme_provider_proto_rawDescData = file_service_acme_provider_proto_rawDesc +) + +func file_service_acme_provider_proto_rawDescGZIP() []byte { + file_service_acme_provider_proto_rawDescOnce.Do(func() { + file_service_acme_provider_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_acme_provider_proto_rawDescData) + }) + return file_service_acme_provider_proto_rawDescData +} + +var file_service_acme_provider_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_service_acme_provider_proto_goTypes = []interface{}{ + (*FindAllACMEProvidersRequest)(nil), // 0: pb.FindAllACMEProvidersRequest + (*FindAllACMEProvidersResponse)(nil), // 1: pb.FindAllACMEProvidersResponse + (*FindACMEProviderWithCodeRequest)(nil), // 2: pb.FindACMEProviderWithCodeRequest + (*FindACMEProviderWithCodeResponse)(nil), // 3: pb.FindACMEProviderWithCodeResponse + (*ACMEProvider)(nil), // 4: pb.ACMEProvider +} +var file_service_acme_provider_proto_depIdxs = []int32{ + 4, // 0: pb.FindAllACMEProvidersResponse.acmeProviders:type_name -> pb.ACMEProvider + 4, // 1: pb.FindACMEProviderWithCodeResponse.acmeProvider:type_name -> pb.ACMEProvider + 0, // 2: pb.ACMEProviderService.findAllACMEProviders:input_type -> pb.FindAllACMEProvidersRequest + 2, // 3: pb.ACMEProviderService.findACMEProviderWithCode:input_type -> pb.FindACMEProviderWithCodeRequest + 1, // 4: pb.ACMEProviderService.findAllACMEProviders:output_type -> pb.FindAllACMEProvidersResponse + 3, // 5: pb.ACMEProviderService.findACMEProviderWithCode:output_type -> pb.FindACMEProviderWithCodeResponse + 4, // [4:6] is the sub-list for method output_type + 2, // [2:4] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_service_acme_provider_proto_init() } +func file_service_acme_provider_proto_init() { + if File_service_acme_provider_proto != nil { + return + } + file_models_model_acme_provider_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_acme_provider_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllACMEProvidersRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllACMEProvidersResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindACMEProviderWithCodeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindACMEProviderWithCodeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_acme_provider_proto_rawDesc, + NumEnums: 0, + NumMessages: 4, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_acme_provider_proto_goTypes, + DependencyIndexes: file_service_acme_provider_proto_depIdxs, + MessageInfos: file_service_acme_provider_proto_msgTypes, + }.Build() + File_service_acme_provider_proto = out.File + file_service_acme_provider_proto_rawDesc = nil + file_service_acme_provider_proto_goTypes = nil + file_service_acme_provider_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ACMEProviderServiceClient is the client API for ACMEProviderService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ACMEProviderServiceClient interface { + // 查找所有的服务商 + FindAllACMEProviders(ctx context.Context, in *FindAllACMEProvidersRequest, opts ...grpc.CallOption) (*FindAllACMEProvidersResponse, error) + // 根据代号查找服务商 + FindACMEProviderWithCode(ctx context.Context, in *FindACMEProviderWithCodeRequest, opts ...grpc.CallOption) (*FindACMEProviderWithCodeResponse, error) +} + +type aCMEProviderServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewACMEProviderServiceClient(cc grpc.ClientConnInterface) ACMEProviderServiceClient { + return &aCMEProviderServiceClient{cc} +} + +func (c *aCMEProviderServiceClient) FindAllACMEProviders(ctx context.Context, in *FindAllACMEProvidersRequest, opts ...grpc.CallOption) (*FindAllACMEProvidersResponse, error) { + out := new(FindAllACMEProvidersResponse) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderService/findAllACMEProviders", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aCMEProviderServiceClient) FindACMEProviderWithCode(ctx context.Context, in *FindACMEProviderWithCodeRequest, opts ...grpc.CallOption) (*FindACMEProviderWithCodeResponse, error) { + out := new(FindACMEProviderWithCodeResponse) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderService/findACMEProviderWithCode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ACMEProviderServiceServer is the server API for ACMEProviderService service. +type ACMEProviderServiceServer interface { + // 查找所有的服务商 + FindAllACMEProviders(context.Context, *FindAllACMEProvidersRequest) (*FindAllACMEProvidersResponse, error) + // 根据代号查找服务商 + FindACMEProviderWithCode(context.Context, *FindACMEProviderWithCodeRequest) (*FindACMEProviderWithCodeResponse, error) +} + +// UnimplementedACMEProviderServiceServer can be embedded to have forward compatible implementations. +type UnimplementedACMEProviderServiceServer struct { +} + +func (*UnimplementedACMEProviderServiceServer) FindAllACMEProviders(context.Context, *FindAllACMEProvidersRequest) (*FindAllACMEProvidersResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllACMEProviders not implemented") +} +func (*UnimplementedACMEProviderServiceServer) FindACMEProviderWithCode(context.Context, *FindACMEProviderWithCodeRequest) (*FindACMEProviderWithCodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindACMEProviderWithCode not implemented") +} + +func RegisterACMEProviderServiceServer(s *grpc.Server, srv ACMEProviderServiceServer) { + s.RegisterService(&_ACMEProviderService_serviceDesc, srv) +} + +func _ACMEProviderService_FindAllACMEProviders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllACMEProvidersRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderServiceServer).FindAllACMEProviders(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderService/FindAllACMEProviders", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderServiceServer).FindAllACMEProviders(ctx, req.(*FindAllACMEProvidersRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ACMEProviderService_FindACMEProviderWithCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindACMEProviderWithCodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderServiceServer).FindACMEProviderWithCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderService/FindACMEProviderWithCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderServiceServer).FindACMEProviderWithCode(ctx, req.(*FindACMEProviderWithCodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ACMEProviderService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.ACMEProviderService", + HandlerType: (*ACMEProviderServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "findAllACMEProviders", + Handler: _ACMEProviderService_FindAllACMEProviders_Handler, + }, + { + MethodName: "findACMEProviderWithCode", + Handler: _ACMEProviderService_FindACMEProviderWithCode_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_acme_provider.proto", +} diff --git a/pkg/rpc/pb/service_acme_provider_acount.pb.go b/pkg/rpc/pb/service_acme_provider_acount.pb.go new file mode 100644 index 0000000..6ed1ee5 --- /dev/null +++ b/pkg/rpc/pb/service_acme_provider_acount.pb.go @@ -0,0 +1,1264 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.12.3 +// source: service_acme_provider_acount.proto + +package pb + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +// 创建服务商 +type CreateACMEProviderAccountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + ProviderCode string `protobuf:"bytes,2,opt,name=providerCode,proto3" json:"providerCode,omitempty"` + EabKid string `protobuf:"bytes,3,opt,name=eabKid,proto3" json:"eabKid,omitempty"` + EabKey string `protobuf:"bytes,4,opt,name=eabKey,proto3" json:"eabKey,omitempty"` +} + +func (x *CreateACMEProviderAccountRequest) Reset() { + *x = CreateACMEProviderAccountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateACMEProviderAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateACMEProviderAccountRequest) ProtoMessage() {} + +func (x *CreateACMEProviderAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateACMEProviderAccountRequest.ProtoReflect.Descriptor instead. +func (*CreateACMEProviderAccountRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{0} +} + +func (x *CreateACMEProviderAccountRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateACMEProviderAccountRequest) GetProviderCode() string { + if x != nil { + return x.ProviderCode + } + return "" +} + +func (x *CreateACMEProviderAccountRequest) GetEabKid() string { + if x != nil { + return x.EabKid + } + return "" +} + +func (x *CreateACMEProviderAccountRequest) GetEabKey() string { + if x != nil { + return x.EabKey + } + return "" +} + +type CreateACMEProviderAccountResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderAccountId int64 `protobuf:"varint,1,opt,name=acmeProviderAccountId,proto3" json:"acmeProviderAccountId,omitempty"` +} + +func (x *CreateACMEProviderAccountResponse) Reset() { + *x = CreateACMEProviderAccountResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateACMEProviderAccountResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateACMEProviderAccountResponse) ProtoMessage() {} + +func (x *CreateACMEProviderAccountResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateACMEProviderAccountResponse.ProtoReflect.Descriptor instead. +func (*CreateACMEProviderAccountResponse) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{1} +} + +func (x *CreateACMEProviderAccountResponse) GetAcmeProviderAccountId() int64 { + if x != nil { + return x.AcmeProviderAccountId + } + return 0 +} + +// 使用代号查找服务商账号 +type FindAllACMEProviderAccountsWithProviderCodeRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderCode string `protobuf:"bytes,1,opt,name=acmeProviderCode,proto3" json:"acmeProviderCode,omitempty"` +} + +func (x *FindAllACMEProviderAccountsWithProviderCodeRequest) Reset() { + *x = FindAllACMEProviderAccountsWithProviderCodeRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllACMEProviderAccountsWithProviderCodeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllACMEProviderAccountsWithProviderCodeRequest) ProtoMessage() {} + +func (x *FindAllACMEProviderAccountsWithProviderCodeRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllACMEProviderAccountsWithProviderCodeRequest.ProtoReflect.Descriptor instead. +func (*FindAllACMEProviderAccountsWithProviderCodeRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{2} +} + +func (x *FindAllACMEProviderAccountsWithProviderCodeRequest) GetAcmeProviderCode() string { + if x != nil { + return x.AcmeProviderCode + } + return "" +} + +type FindAllACMEProviderAccountsWithProviderCodeResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderAccounts []*ACMEProviderAccount `protobuf:"bytes,1,rep,name=acmeProviderAccounts,proto3" json:"acmeProviderAccounts,omitempty"` +} + +func (x *FindAllACMEProviderAccountsWithProviderCodeResponse) Reset() { + *x = FindAllACMEProviderAccountsWithProviderCodeResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindAllACMEProviderAccountsWithProviderCodeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindAllACMEProviderAccountsWithProviderCodeResponse) ProtoMessage() {} + +func (x *FindAllACMEProviderAccountsWithProviderCodeResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindAllACMEProviderAccountsWithProviderCodeResponse.ProtoReflect.Descriptor instead. +func (*FindAllACMEProviderAccountsWithProviderCodeResponse) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{3} +} + +func (x *FindAllACMEProviderAccountsWithProviderCodeResponse) GetAcmeProviderAccounts() []*ACMEProviderAccount { + if x != nil { + return x.AcmeProviderAccounts + } + return nil +} + +// 修改服务商账号 +type UpdateACMEProviderAccountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderAccountId int64 `protobuf:"varint,1,opt,name=acmeProviderAccountId,proto3" json:"acmeProviderAccountId,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + EabKid string `protobuf:"bytes,3,opt,name=eabKid,proto3" json:"eabKid,omitempty"` + EabKey string `protobuf:"bytes,4,opt,name=eabKey,proto3" json:"eabKey,omitempty"` +} + +func (x *UpdateACMEProviderAccountRequest) Reset() { + *x = UpdateACMEProviderAccountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateACMEProviderAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateACMEProviderAccountRequest) ProtoMessage() {} + +func (x *UpdateACMEProviderAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateACMEProviderAccountRequest.ProtoReflect.Descriptor instead. +func (*UpdateACMEProviderAccountRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{4} +} + +func (x *UpdateACMEProviderAccountRequest) GetAcmeProviderAccountId() int64 { + if x != nil { + return x.AcmeProviderAccountId + } + return 0 +} + +func (x *UpdateACMEProviderAccountRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpdateACMEProviderAccountRequest) GetEabKid() string { + if x != nil { + return x.EabKid + } + return "" +} + +func (x *UpdateACMEProviderAccountRequest) GetEabKey() string { + if x != nil { + return x.EabKey + } + return "" +} + +// 删除服务商账号 +type DeleteACMEProviderAccountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderAccountId int64 `protobuf:"varint,1,opt,name=acmeProviderAccountId,proto3" json:"acmeProviderAccountId,omitempty"` +} + +func (x *DeleteACMEProviderAccountRequest) Reset() { + *x = DeleteACMEProviderAccountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteACMEProviderAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteACMEProviderAccountRequest) ProtoMessage() {} + +func (x *DeleteACMEProviderAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteACMEProviderAccountRequest.ProtoReflect.Descriptor instead. +func (*DeleteACMEProviderAccountRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{5} +} + +func (x *DeleteACMEProviderAccountRequest) GetAcmeProviderAccountId() int64 { + if x != nil { + return x.AcmeProviderAccountId + } + return 0 +} + +// 查找单个服务商账号 +type FindEnabledACMEProviderAccountRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderAccountId int64 `protobuf:"varint,1,opt,name=acmeProviderAccountId,proto3" json:"acmeProviderAccountId,omitempty"` +} + +func (x *FindEnabledACMEProviderAccountRequest) Reset() { + *x = FindEnabledACMEProviderAccountRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindEnabledACMEProviderAccountRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindEnabledACMEProviderAccountRequest) ProtoMessage() {} + +func (x *FindEnabledACMEProviderAccountRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindEnabledACMEProviderAccountRequest.ProtoReflect.Descriptor instead. +func (*FindEnabledACMEProviderAccountRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{6} +} + +func (x *FindEnabledACMEProviderAccountRequest) GetAcmeProviderAccountId() int64 { + if x != nil { + return x.AcmeProviderAccountId + } + return 0 +} + +type FindEnabledACMEProviderAccountResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderAccount *ACMEProviderAccount `protobuf:"bytes,1,opt,name=acmeProviderAccount,proto3" json:"acmeProviderAccount,omitempty"` +} + +func (x *FindEnabledACMEProviderAccountResponse) Reset() { + *x = FindEnabledACMEProviderAccountResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FindEnabledACMEProviderAccountResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FindEnabledACMEProviderAccountResponse) ProtoMessage() {} + +func (x *FindEnabledACMEProviderAccountResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FindEnabledACMEProviderAccountResponse.ProtoReflect.Descriptor instead. +func (*FindEnabledACMEProviderAccountResponse) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{7} +} + +func (x *FindEnabledACMEProviderAccountResponse) GetAcmeProviderAccount() *ACMEProviderAccount { + if x != nil { + return x.AcmeProviderAccount + } + return nil +} + +// 计算所有服务商账号数量 +type CountAllEnabledACMEProviderAccountsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CountAllEnabledACMEProviderAccountsRequest) Reset() { + *x = CountAllEnabledACMEProviderAccountsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CountAllEnabledACMEProviderAccountsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CountAllEnabledACMEProviderAccountsRequest) ProtoMessage() {} + +func (x *CountAllEnabledACMEProviderAccountsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CountAllEnabledACMEProviderAccountsRequest.ProtoReflect.Descriptor instead. +func (*CountAllEnabledACMEProviderAccountsRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{8} +} + +// 列出单页服务商账号 +type ListEnabledACMEProviderAccountsRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` + Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` +} + +func (x *ListEnabledACMEProviderAccountsRequest) Reset() { + *x = ListEnabledACMEProviderAccountsRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListEnabledACMEProviderAccountsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEnabledACMEProviderAccountsRequest) ProtoMessage() {} + +func (x *ListEnabledACMEProviderAccountsRequest) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListEnabledACMEProviderAccountsRequest.ProtoReflect.Descriptor instead. +func (*ListEnabledACMEProviderAccountsRequest) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{9} +} + +func (x *ListEnabledACMEProviderAccountsRequest) GetOffset() int64 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *ListEnabledACMEProviderAccountsRequest) GetSize() int64 { + if x != nil { + return x.Size + } + return 0 +} + +type ListEnabledACMEProviderAccountsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AcmeProviderAccounts []*ACMEProviderAccount `protobuf:"bytes,1,rep,name=acmeProviderAccounts,proto3" json:"acmeProviderAccounts,omitempty"` +} + +func (x *ListEnabledACMEProviderAccountsResponse) Reset() { + *x = ListEnabledACMEProviderAccountsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_service_acme_provider_acount_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListEnabledACMEProviderAccountsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListEnabledACMEProviderAccountsResponse) ProtoMessage() {} + +func (x *ListEnabledACMEProviderAccountsResponse) ProtoReflect() protoreflect.Message { + mi := &file_service_acme_provider_acount_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListEnabledACMEProviderAccountsResponse.ProtoReflect.Descriptor instead. +func (*ListEnabledACMEProviderAccountsResponse) Descriptor() ([]byte, []int) { + return file_service_acme_provider_acount_proto_rawDescGZIP(), []int{10} +} + +func (x *ListEnabledACMEProviderAccountsResponse) GetAcmeProviderAccounts() []*ACMEProviderAccount { + if x != nil { + return x.AcmeProviderAccounts + } + return nil +} + +var File_service_acme_provider_acount_proto protoreflect.FileDescriptor + +var file_service_acme_provider_acount_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x70, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x61, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x19, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, + 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, + 0x6c, 0x5f, 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, + 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x01, + 0x0a, 0x20, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x61, + 0x62, 0x4b, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x61, 0x62, 0x4b, + 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x61, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x65, 0x61, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x59, 0x0a, 0x21, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x34, 0x0a, 0x15, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, + 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x60, 0x0a, 0x32, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10, 0x61, + 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x82, 0x01, 0x0a, 0x33, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x4b, 0x0a, 0x14, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x14, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x9c, 0x01, 0x0a, + 0x20, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x15, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, + 0x61, 0x62, 0x4b, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x61, 0x62, + 0x4b, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x61, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x61, 0x62, 0x4b, 0x65, 0x79, 0x22, 0x58, 0x0a, 0x20, 0x44, + 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x34, 0x0a, 0x15, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, + 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x5d, 0x0a, 0x25, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, + 0x0a, 0x15, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x61, + 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x49, 0x64, 0x22, 0x73, 0x0a, 0x26, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, + 0x0a, 0x13, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, + 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, + 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x13, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x2c, 0x0a, 0x2a, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x54, 0x0a, 0x26, 0x4c, 0x69, 0x73, 0x74, 0x45, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x76, 0x0a, + 0x27, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4b, 0x0a, 0x14, 0x61, 0x63, 0x6d, 0x65, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, + 0x14, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x32, 0xaf, 0x06, 0x0a, 0x1a, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x68, 0x0a, 0x19, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, + 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x12, 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, + 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x9e, + 0x01, 0x0a, 0x2b, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x57, 0x69, + 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x36, + 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x57, + 0x69, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, + 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x57, 0x69, 0x74, 0x68, 0x50, 0x72, 0x6f, 0x76, 0x69, + 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x51, 0x0a, 0x19, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x24, 0x2e, 0x70, + 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x12, 0x51, 0x0a, 0x19, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x24, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, + 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x77, 0x0a, 0x1e, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x29, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, + 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, + 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6b, + 0x0a, 0x23, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, + 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, + 0x41, 0x6c, 0x6c, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7a, 0x0a, 0x1f, 0x6c, + 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, 0x72, + 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x2a, + 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, + 0x43, 0x4d, 0x45, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x70, 0x62, 0x2e, + 0x4c, 0x69, 0x73, 0x74, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x50, + 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_service_acme_provider_acount_proto_rawDescOnce sync.Once + file_service_acme_provider_acount_proto_rawDescData = file_service_acme_provider_acount_proto_rawDesc +) + +func file_service_acme_provider_acount_proto_rawDescGZIP() []byte { + file_service_acme_provider_acount_proto_rawDescOnce.Do(func() { + file_service_acme_provider_acount_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_acme_provider_acount_proto_rawDescData) + }) + return file_service_acme_provider_acount_proto_rawDescData +} + +var file_service_acme_provider_acount_proto_msgTypes = make([]protoimpl.MessageInfo, 11) +var file_service_acme_provider_acount_proto_goTypes = []interface{}{ + (*CreateACMEProviderAccountRequest)(nil), // 0: pb.CreateACMEProviderAccountRequest + (*CreateACMEProviderAccountResponse)(nil), // 1: pb.CreateACMEProviderAccountResponse + (*FindAllACMEProviderAccountsWithProviderCodeRequest)(nil), // 2: pb.FindAllACMEProviderAccountsWithProviderCodeRequest + (*FindAllACMEProviderAccountsWithProviderCodeResponse)(nil), // 3: pb.FindAllACMEProviderAccountsWithProviderCodeResponse + (*UpdateACMEProviderAccountRequest)(nil), // 4: pb.UpdateACMEProviderAccountRequest + (*DeleteACMEProviderAccountRequest)(nil), // 5: pb.DeleteACMEProviderAccountRequest + (*FindEnabledACMEProviderAccountRequest)(nil), // 6: pb.FindEnabledACMEProviderAccountRequest + (*FindEnabledACMEProviderAccountResponse)(nil), // 7: pb.FindEnabledACMEProviderAccountResponse + (*CountAllEnabledACMEProviderAccountsRequest)(nil), // 8: pb.CountAllEnabledACMEProviderAccountsRequest + (*ListEnabledACMEProviderAccountsRequest)(nil), // 9: pb.ListEnabledACMEProviderAccountsRequest + (*ListEnabledACMEProviderAccountsResponse)(nil), // 10: pb.ListEnabledACMEProviderAccountsResponse + (*ACMEProviderAccount)(nil), // 11: pb.ACMEProviderAccount + (*RPCSuccess)(nil), // 12: pb.RPCSuccess + (*RPCCountResponse)(nil), // 13: pb.RPCCountResponse +} +var file_service_acme_provider_acount_proto_depIdxs = []int32{ + 11, // 0: pb.FindAllACMEProviderAccountsWithProviderCodeResponse.acmeProviderAccounts:type_name -> pb.ACMEProviderAccount + 11, // 1: pb.FindEnabledACMEProviderAccountResponse.acmeProviderAccount:type_name -> pb.ACMEProviderAccount + 11, // 2: pb.ListEnabledACMEProviderAccountsResponse.acmeProviderAccounts:type_name -> pb.ACMEProviderAccount + 0, // 3: pb.ACMEProviderAccountService.createACMEProviderAccount:input_type -> pb.CreateACMEProviderAccountRequest + 2, // 4: pb.ACMEProviderAccountService.findAllACMEProviderAccountsWithProviderCode:input_type -> pb.FindAllACMEProviderAccountsWithProviderCodeRequest + 4, // 5: pb.ACMEProviderAccountService.updateACMEProviderAccount:input_type -> pb.UpdateACMEProviderAccountRequest + 5, // 6: pb.ACMEProviderAccountService.deleteACMEProviderAccount:input_type -> pb.DeleteACMEProviderAccountRequest + 6, // 7: pb.ACMEProviderAccountService.findEnabledACMEProviderAccount:input_type -> pb.FindEnabledACMEProviderAccountRequest + 8, // 8: pb.ACMEProviderAccountService.countAllEnabledACMEProviderAccounts:input_type -> pb.CountAllEnabledACMEProviderAccountsRequest + 9, // 9: pb.ACMEProviderAccountService.listEnabledACMEProviderAccounts:input_type -> pb.ListEnabledACMEProviderAccountsRequest + 1, // 10: pb.ACMEProviderAccountService.createACMEProviderAccount:output_type -> pb.CreateACMEProviderAccountResponse + 3, // 11: pb.ACMEProviderAccountService.findAllACMEProviderAccountsWithProviderCode:output_type -> pb.FindAllACMEProviderAccountsWithProviderCodeResponse + 12, // 12: pb.ACMEProviderAccountService.updateACMEProviderAccount:output_type -> pb.RPCSuccess + 12, // 13: pb.ACMEProviderAccountService.deleteACMEProviderAccount:output_type -> pb.RPCSuccess + 7, // 14: pb.ACMEProviderAccountService.findEnabledACMEProviderAccount:output_type -> pb.FindEnabledACMEProviderAccountResponse + 13, // 15: pb.ACMEProviderAccountService.countAllEnabledACMEProviderAccounts:output_type -> pb.RPCCountResponse + 10, // 16: pb.ACMEProviderAccountService.listEnabledACMEProviderAccounts:output_type -> pb.ListEnabledACMEProviderAccountsResponse + 10, // [10:17] is the sub-list for method output_type + 3, // [3:10] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_service_acme_provider_acount_proto_init() } +func file_service_acme_provider_acount_proto_init() { + if File_service_acme_provider_acount_proto != nil { + return + } + file_models_rpc_messages_proto_init() + file_models_model_acme_provider_account_proto_init() + if !protoimpl.UnsafeEnabled { + file_service_acme_provider_acount_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateACMEProviderAccountRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateACMEProviderAccountResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllACMEProviderAccountsWithProviderCodeRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindAllACMEProviderAccountsWithProviderCodeResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateACMEProviderAccountRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteACMEProviderAccountRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindEnabledACMEProviderAccountRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FindEnabledACMEProviderAccountResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CountAllEnabledACMEProviderAccountsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListEnabledACMEProviderAccountsRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_service_acme_provider_acount_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListEnabledACMEProviderAccountsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_service_acme_provider_acount_proto_rawDesc, + NumEnums: 0, + NumMessages: 11, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_service_acme_provider_acount_proto_goTypes, + DependencyIndexes: file_service_acme_provider_acount_proto_depIdxs, + MessageInfos: file_service_acme_provider_acount_proto_msgTypes, + }.Build() + File_service_acme_provider_acount_proto = out.File + file_service_acme_provider_acount_proto_rawDesc = nil + file_service_acme_provider_acount_proto_goTypes = nil + file_service_acme_provider_acount_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion6 + +// ACMEProviderAccountServiceClient is the client API for ACMEProviderAccountService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type ACMEProviderAccountServiceClient interface { + // 创建服务商账号 + CreateACMEProviderAccount(ctx context.Context, in *CreateACMEProviderAccountRequest, opts ...grpc.CallOption) (*CreateACMEProviderAccountResponse, error) + // 使用代号查找服务商账号 + FindAllACMEProviderAccountsWithProviderCode(ctx context.Context, in *FindAllACMEProviderAccountsWithProviderCodeRequest, opts ...grpc.CallOption) (*FindAllACMEProviderAccountsWithProviderCodeResponse, error) + // 修改服务商账号 + UpdateACMEProviderAccount(ctx context.Context, in *UpdateACMEProviderAccountRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 删除服务商账号 + DeleteACMEProviderAccount(ctx context.Context, in *DeleteACMEProviderAccountRequest, opts ...grpc.CallOption) (*RPCSuccess, error) + // 查找单个服务商账号 + FindEnabledACMEProviderAccount(ctx context.Context, in *FindEnabledACMEProviderAccountRequest, opts ...grpc.CallOption) (*FindEnabledACMEProviderAccountResponse, error) + // 计算所有服务商账号数量 + CountAllEnabledACMEProviderAccounts(ctx context.Context, in *CountAllEnabledACMEProviderAccountsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) + // 列出单页服务商账号 + ListEnabledACMEProviderAccounts(ctx context.Context, in *ListEnabledACMEProviderAccountsRequest, opts ...grpc.CallOption) (*ListEnabledACMEProviderAccountsResponse, error) +} + +type aCMEProviderAccountServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewACMEProviderAccountServiceClient(cc grpc.ClientConnInterface) ACMEProviderAccountServiceClient { + return &aCMEProviderAccountServiceClient{cc} +} + +func (c *aCMEProviderAccountServiceClient) CreateACMEProviderAccount(ctx context.Context, in *CreateACMEProviderAccountRequest, opts ...grpc.CallOption) (*CreateACMEProviderAccountResponse, error) { + out := new(CreateACMEProviderAccountResponse) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderAccountService/createACMEProviderAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aCMEProviderAccountServiceClient) FindAllACMEProviderAccountsWithProviderCode(ctx context.Context, in *FindAllACMEProviderAccountsWithProviderCodeRequest, opts ...grpc.CallOption) (*FindAllACMEProviderAccountsWithProviderCodeResponse, error) { + out := new(FindAllACMEProviderAccountsWithProviderCodeResponse) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderAccountService/findAllACMEProviderAccountsWithProviderCode", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aCMEProviderAccountServiceClient) UpdateACMEProviderAccount(ctx context.Context, in *UpdateACMEProviderAccountRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderAccountService/updateACMEProviderAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aCMEProviderAccountServiceClient) DeleteACMEProviderAccount(ctx context.Context, in *DeleteACMEProviderAccountRequest, opts ...grpc.CallOption) (*RPCSuccess, error) { + out := new(RPCSuccess) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderAccountService/deleteACMEProviderAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aCMEProviderAccountServiceClient) FindEnabledACMEProviderAccount(ctx context.Context, in *FindEnabledACMEProviderAccountRequest, opts ...grpc.CallOption) (*FindEnabledACMEProviderAccountResponse, error) { + out := new(FindEnabledACMEProviderAccountResponse) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderAccountService/findEnabledACMEProviderAccount", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aCMEProviderAccountServiceClient) CountAllEnabledACMEProviderAccounts(ctx context.Context, in *CountAllEnabledACMEProviderAccountsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) { + out := new(RPCCountResponse) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderAccountService/countAllEnabledACMEProviderAccounts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *aCMEProviderAccountServiceClient) ListEnabledACMEProviderAccounts(ctx context.Context, in *ListEnabledACMEProviderAccountsRequest, opts ...grpc.CallOption) (*ListEnabledACMEProviderAccountsResponse, error) { + out := new(ListEnabledACMEProviderAccountsResponse) + err := c.cc.Invoke(ctx, "/pb.ACMEProviderAccountService/listEnabledACMEProviderAccounts", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ACMEProviderAccountServiceServer is the server API for ACMEProviderAccountService service. +type ACMEProviderAccountServiceServer interface { + // 创建服务商账号 + CreateACMEProviderAccount(context.Context, *CreateACMEProviderAccountRequest) (*CreateACMEProviderAccountResponse, error) + // 使用代号查找服务商账号 + FindAllACMEProviderAccountsWithProviderCode(context.Context, *FindAllACMEProviderAccountsWithProviderCodeRequest) (*FindAllACMEProviderAccountsWithProviderCodeResponse, error) + // 修改服务商账号 + UpdateACMEProviderAccount(context.Context, *UpdateACMEProviderAccountRequest) (*RPCSuccess, error) + // 删除服务商账号 + DeleteACMEProviderAccount(context.Context, *DeleteACMEProviderAccountRequest) (*RPCSuccess, error) + // 查找单个服务商账号 + FindEnabledACMEProviderAccount(context.Context, *FindEnabledACMEProviderAccountRequest) (*FindEnabledACMEProviderAccountResponse, error) + // 计算所有服务商账号数量 + CountAllEnabledACMEProviderAccounts(context.Context, *CountAllEnabledACMEProviderAccountsRequest) (*RPCCountResponse, error) + // 列出单页服务商账号 + ListEnabledACMEProviderAccounts(context.Context, *ListEnabledACMEProviderAccountsRequest) (*ListEnabledACMEProviderAccountsResponse, error) +} + +// UnimplementedACMEProviderAccountServiceServer can be embedded to have forward compatible implementations. +type UnimplementedACMEProviderAccountServiceServer struct { +} + +func (*UnimplementedACMEProviderAccountServiceServer) CreateACMEProviderAccount(context.Context, *CreateACMEProviderAccountRequest) (*CreateACMEProviderAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CreateACMEProviderAccount not implemented") +} +func (*UnimplementedACMEProviderAccountServiceServer) FindAllACMEProviderAccountsWithProviderCode(context.Context, *FindAllACMEProviderAccountsWithProviderCodeRequest) (*FindAllACMEProviderAccountsWithProviderCodeResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindAllACMEProviderAccountsWithProviderCode not implemented") +} +func (*UnimplementedACMEProviderAccountServiceServer) UpdateACMEProviderAccount(context.Context, *UpdateACMEProviderAccountRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateACMEProviderAccount not implemented") +} +func (*UnimplementedACMEProviderAccountServiceServer) DeleteACMEProviderAccount(context.Context, *DeleteACMEProviderAccountRequest) (*RPCSuccess, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteACMEProviderAccount not implemented") +} +func (*UnimplementedACMEProviderAccountServiceServer) FindEnabledACMEProviderAccount(context.Context, *FindEnabledACMEProviderAccountRequest) (*FindEnabledACMEProviderAccountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method FindEnabledACMEProviderAccount not implemented") +} +func (*UnimplementedACMEProviderAccountServiceServer) CountAllEnabledACMEProviderAccounts(context.Context, *CountAllEnabledACMEProviderAccountsRequest) (*RPCCountResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledACMEProviderAccounts not implemented") +} +func (*UnimplementedACMEProviderAccountServiceServer) ListEnabledACMEProviderAccounts(context.Context, *ListEnabledACMEProviderAccountsRequest) (*ListEnabledACMEProviderAccountsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListEnabledACMEProviderAccounts not implemented") +} + +func RegisterACMEProviderAccountServiceServer(s *grpc.Server, srv ACMEProviderAccountServiceServer) { + s.RegisterService(&_ACMEProviderAccountService_serviceDesc, srv) +} + +func _ACMEProviderAccountService_CreateACMEProviderAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateACMEProviderAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderAccountServiceServer).CreateACMEProviderAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderAccountService/CreateACMEProviderAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderAccountServiceServer).CreateACMEProviderAccount(ctx, req.(*CreateACMEProviderAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ACMEProviderAccountService_FindAllACMEProviderAccountsWithProviderCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindAllACMEProviderAccountsWithProviderCodeRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderAccountServiceServer).FindAllACMEProviderAccountsWithProviderCode(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderAccountService/FindAllACMEProviderAccountsWithProviderCode", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderAccountServiceServer).FindAllACMEProviderAccountsWithProviderCode(ctx, req.(*FindAllACMEProviderAccountsWithProviderCodeRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ACMEProviderAccountService_UpdateACMEProviderAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateACMEProviderAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderAccountServiceServer).UpdateACMEProviderAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderAccountService/UpdateACMEProviderAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderAccountServiceServer).UpdateACMEProviderAccount(ctx, req.(*UpdateACMEProviderAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ACMEProviderAccountService_DeleteACMEProviderAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteACMEProviderAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderAccountServiceServer).DeleteACMEProviderAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderAccountService/DeleteACMEProviderAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderAccountServiceServer).DeleteACMEProviderAccount(ctx, req.(*DeleteACMEProviderAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ACMEProviderAccountService_FindEnabledACMEProviderAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(FindEnabledACMEProviderAccountRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderAccountServiceServer).FindEnabledACMEProviderAccount(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderAccountService/FindEnabledACMEProviderAccount", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderAccountServiceServer).FindEnabledACMEProviderAccount(ctx, req.(*FindEnabledACMEProviderAccountRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ACMEProviderAccountService_CountAllEnabledACMEProviderAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CountAllEnabledACMEProviderAccountsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderAccountServiceServer).CountAllEnabledACMEProviderAccounts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderAccountService/CountAllEnabledACMEProviderAccounts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderAccountServiceServer).CountAllEnabledACMEProviderAccounts(ctx, req.(*CountAllEnabledACMEProviderAccountsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ACMEProviderAccountService_ListEnabledACMEProviderAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListEnabledACMEProviderAccountsRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ACMEProviderAccountServiceServer).ListEnabledACMEProviderAccounts(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/pb.ACMEProviderAccountService/ListEnabledACMEProviderAccounts", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ACMEProviderAccountServiceServer).ListEnabledACMEProviderAccounts(ctx, req.(*ListEnabledACMEProviderAccountsRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _ACMEProviderAccountService_serviceDesc = grpc.ServiceDesc{ + ServiceName: "pb.ACMEProviderAccountService", + HandlerType: (*ACMEProviderAccountServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "createACMEProviderAccount", + Handler: _ACMEProviderAccountService_CreateACMEProviderAccount_Handler, + }, + { + MethodName: "findAllACMEProviderAccountsWithProviderCode", + Handler: _ACMEProviderAccountService_FindAllACMEProviderAccountsWithProviderCode_Handler, + }, + { + MethodName: "updateACMEProviderAccount", + Handler: _ACMEProviderAccountService_UpdateACMEProviderAccount_Handler, + }, + { + MethodName: "deleteACMEProviderAccount", + Handler: _ACMEProviderAccountService_DeleteACMEProviderAccount_Handler, + }, + { + MethodName: "findEnabledACMEProviderAccount", + Handler: _ACMEProviderAccountService_FindEnabledACMEProviderAccount_Handler, + }, + { + MethodName: "countAllEnabledACMEProviderAccounts", + Handler: _ACMEProviderAccountService_CountAllEnabledACMEProviderAccounts_Handler, + }, + { + MethodName: "listEnabledACMEProviderAccounts", + Handler: _ACMEProviderAccountService_ListEnabledACMEProviderAccounts_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "service_acme_provider_acount.proto", +} diff --git a/pkg/rpc/pb/service_acme_user.pb.go b/pkg/rpc/pb/service_acme_user.pb.go index 551f752..84588f6 100644 --- a/pkg/rpc/pb/service_acme_user.pb.go +++ b/pkg/rpc/pb/service_acme_user.pb.go @@ -35,8 +35,10 @@ type CreateACMEUserRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` + Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` + AcmeProviderCode string `protobuf:"bytes,3,opt,name=acmeProviderCode,proto3" json:"acmeProviderCode,omitempty"` + AcmeProviderAccountId int64 `protobuf:"varint,4,opt,name=acmeProviderAccountId,proto3" json:"acmeProviderAccountId,omitempty"` } func (x *CreateACMEUserRequest) Reset() { @@ -85,6 +87,20 @@ func (x *CreateACMEUserRequest) GetDescription() string { return "" } +func (x *CreateACMEUserRequest) GetAcmeProviderCode() string { + if x != nil { + return x.AcmeProviderCode + } + return "" +} + +func (x *CreateACMEUserRequest) GetAcmeProviderAccountId() int64 { + if x != nil { + return x.AcmeProviderAccountId + } + return 0 +} + type CreateACMEUserResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -512,8 +528,9 @@ type FindAllACMEUsersRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"` - UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` + AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"` + UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"` + AcmeProviderCode string `protobuf:"bytes,3,opt,name=acmeProviderCode,proto3" json:"acmeProviderCode,omitempty"` } func (x *FindAllACMEUsersRequest) Reset() { @@ -562,6 +579,13 @@ func (x *FindAllACMEUsersRequest) GetUserId() int64 { return 0 } +func (x *FindAllACMEUsersRequest) GetAcmeProviderCode() string { + if x != nil { + return x.AcmeProviderCode + } + return "" +} + type FindAllACMEUsersResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -617,92 +641,101 @@ var file_service_acme_user_proto_rawDesc = []byte{ 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x72, 0x70, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x2f, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x5f, 0x61, 0x63, 0x6d, 0x65, 0x5f, 0x75, 0x73, 0x65, 0x72, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4f, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x38, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x22, 0x59, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, - 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, - 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x37, 0x0a, 0x15, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, - 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x15, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x63, - 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, - 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, - 0x22, 0x74, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, - 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, - 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x43, - 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2a, 0x0a, 0x09, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, - 0x52, 0x09, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x22, 0x3c, 0x0a, 0x1a, 0x46, - 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, - 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x6d, - 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, - 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x1b, 0x46, 0x69, 0x6e, - 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x61, 0x63, 0x6d, 0x65, - 0x55, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, - 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x08, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, - 0x65, 0x72, 0x22, 0x4b, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, - 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, - 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, - 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, - 0x46, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x61, - 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, - 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x09, 0x61, 0x63, - 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x32, 0x84, 0x04, 0x0a, 0x0f, 0x41, 0x43, 0x4d, 0x45, - 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x19, 0x2e, - 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, - 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb1, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x14, 0x0a, 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, + 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x63, 0x6d, 0x65, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x10, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, + 0x43, 0x6f, 0x64, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, + 0x69, 0x64, 0x65, 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x15, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, + 0x72, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x43, - 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, - 0x73, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, - 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, - 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, - 0x0a, 0x0e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, - 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x63, 0x6d, 0x65, 0x55, - 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, - 0x2e, 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, - 0x72, 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, - 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, - 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x64, 0x45, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, - 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, - 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, - 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, - 0x65, 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x22, 0x59, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x43, + 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, + 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x37, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x63, 0x6d, 0x65, + 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x63, + 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x15, 0x43, 0x6f, 0x75, 0x6e, + 0x74, 0x41, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, + 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, + 0x72, 0x49, 0x64, 0x22, 0x74, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, + 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, + 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, + 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x16, 0x0a, + 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6f, + 0x66, 0x66, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x22, 0x43, 0x0a, 0x15, 0x4c, 0x69, 0x73, + 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x09, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x22, 0x3c, + 0x0a, 0x1a, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, + 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, 0x0a, 0x0a, + 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, + 0x52, 0x0a, 0x61, 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x1b, + 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x55, + 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x61, + 0x63, 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, + 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x08, 0x61, 0x63, 0x6d, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x22, 0x77, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, - 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, - 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, + 0x65, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, + 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10, 0x61, 0x63, 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, + 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x61, 0x63, + 0x6d, 0x65, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x22, 0x46, + 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x09, 0x61, 0x63, + 0x6d, 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, + 0x70, 0x62, 0x2e, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x09, 0x61, 0x63, 0x6d, + 0x65, 0x55, 0x73, 0x65, 0x72, 0x73, 0x32, 0x84, 0x04, 0x0a, 0x0f, 0x41, 0x43, 0x4d, 0x45, 0x55, + 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0e, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x70, + 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0e, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x43, 0x4d, + 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, + 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x12, 0x3b, 0x0a, 0x0e, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, + 0x65, 0x72, 0x12, 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x43, + 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e, 0x2e, + 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x41, 0x0a, + 0x0e, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x12, + 0x19, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x63, 0x6d, 0x65, 0x55, 0x73, + 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x70, 0x62, 0x2e, + 0x52, 0x50, 0x43, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x44, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, + 0x73, 0x12, 0x18, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, + 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x70, 0x62, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x13, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x12, 0x1e, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, + 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, + 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x43, + 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, + 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, + 0x72, 0x73, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, + 0x43, 0x4d, 0x45, 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x6c, 0x6c, 0x41, 0x43, 0x4d, 0x45, + 0x55, 0x73, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x06, 0x5a, + 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pkg/rpc/protos/models/model_acme_provider.proto b/pkg/rpc/protos/models/model_acme_provider.proto new file mode 100644 index 0000000..44c4f76 --- /dev/null +++ b/pkg/rpc/protos/models/model_acme_provider.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +message ACMEProvider { + string name = 1; + string code = 2; + string description = 4; + string apiURL = 5; + bool requireEAB = 6; + string eabDescription = 7; +} \ No newline at end of file diff --git a/pkg/rpc/protos/models/model_acme_provider_account.proto b/pkg/rpc/protos/models/model_acme_provider_account.proto new file mode 100644 index 0000000..479b340 --- /dev/null +++ b/pkg/rpc/protos/models/model_acme_provider_account.proto @@ -0,0 +1,18 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_acme_provider.proto"; + +message ACMEProviderAccount { + int64 id = 1; + string name = 2; + bool isOn = 3; + string providerCode = 4; + string eabKid = 5; + string eabKey = 6; + string error = 7; + + ACMEProvider acmeProvider = 30; +} diff --git a/pkg/rpc/protos/models/model_acme_user.proto b/pkg/rpc/protos/models/model_acme_user.proto index e2cf5b6..eae0d3b 100644 --- a/pkg/rpc/protos/models/model_acme_user.proto +++ b/pkg/rpc/protos/models/model_acme_user.proto @@ -3,9 +3,16 @@ option go_package = "./pb"; package pb; +import "models/model_acme_provider.proto"; +import "models/model_acme_provider_account.proto"; + message ACMEUser { int64 id = 1; string email = 2; string description = 3; int64 createdAt = 4; + string acmeProviderCode = 5; + + ACMEProvider acmeProvider = 30; + ACMEProviderAccount acmeProviderAccount = 31; } \ No newline at end of file diff --git a/pkg/rpc/protos/service_acme_provider.proto b/pkg/rpc/protos/service_acme_provider.proto new file mode 100644 index 0000000..2d30c74 --- /dev/null +++ b/pkg/rpc/protos/service_acme_provider.proto @@ -0,0 +1,33 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/model_acme_provider.proto"; + +// ACME服务商 +service ACMEProviderService { + // 查找所有的服务商 + rpc findAllACMEProviders(FindAllACMEProvidersRequest) returns (FindAllACMEProvidersResponse); + + // 根据代号查找服务商 + rpc findACMEProviderWithCode(FindACMEProviderWithCodeRequest) returns (FindACMEProviderWithCodeResponse); +} + +// 查找所有的服务商 +message FindAllACMEProvidersRequest { + +} + +message FindAllACMEProvidersResponse { + repeated ACMEProvider acmeProviders = 1; +} + +// 根据代号查找服务商 +message FindACMEProviderWithCodeRequest{ + string acmeProviderCode = 1; +} + +message FindACMEProviderWithCodeResponse { + ACMEProvider acmeProvider = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_acme_provider_acount.proto b/pkg/rpc/protos/service_acme_provider_acount.proto new file mode 100644 index 0000000..46fa787 --- /dev/null +++ b/pkg/rpc/protos/service_acme_provider_acount.proto @@ -0,0 +1,89 @@ +syntax = "proto3"; +option go_package = "./pb"; + +package pb; + +import "models/rpc_messages.proto"; +import "models/model_acme_provider_account.proto"; + +// ACME服务商账号 +service ACMEProviderAccountService { + // 创建服务商账号 + rpc createACMEProviderAccount(CreateACMEProviderAccountRequest) returns (CreateACMEProviderAccountResponse); + + // 使用代号查找服务商账号 + rpc findAllACMEProviderAccountsWithProviderCode(FindAllACMEProviderAccountsWithProviderCodeRequest) returns (FindAllACMEProviderAccountsWithProviderCodeResponse); + + // 修改服务商账号 + rpc updateACMEProviderAccount(UpdateACMEProviderAccountRequest) returns (RPCSuccess); + + // 删除服务商账号 + rpc deleteACMEProviderAccount(DeleteACMEProviderAccountRequest) returns (RPCSuccess); + + // 查找单个服务商账号 + rpc findEnabledACMEProviderAccount(FindEnabledACMEProviderAccountRequest) returns (FindEnabledACMEProviderAccountResponse); + + // 计算所有服务商账号数量 + rpc countAllEnabledACMEProviderAccounts(CountAllEnabledACMEProviderAccountsRequest) returns (RPCCountResponse); + + // 列出单页服务商账号 + rpc listEnabledACMEProviderAccounts(ListEnabledACMEProviderAccountsRequest) returns (ListEnabledACMEProviderAccountsResponse); +} + +// 创建服务商 +message CreateACMEProviderAccountRequest { + string name = 1; + string providerCode = 2; + string eabKid = 3; + string eabKey = 4; +} + +message CreateACMEProviderAccountResponse { + int64 acmeProviderAccountId = 1; +} + +// 使用代号查找服务商账号 +message FindAllACMEProviderAccountsWithProviderCodeRequest { + string acmeProviderCode = 1; +} + +message FindAllACMEProviderAccountsWithProviderCodeResponse { + repeated ACMEProviderAccount acmeProviderAccounts = 1; +} + +// 修改服务商账号 +message UpdateACMEProviderAccountRequest { + int64 acmeProviderAccountId = 1; + string name = 2; + string eabKid = 3; + string eabKey = 4; +} + +// 删除服务商账号 +message DeleteACMEProviderAccountRequest { + int64 acmeProviderAccountId = 1; +} + +// 查找单个服务商账号 +message FindEnabledACMEProviderAccountRequest { + int64 acmeProviderAccountId = 1; +} + +message FindEnabledACMEProviderAccountResponse { + ACMEProviderAccount acmeProviderAccount = 1; +} + +// 计算所有服务商账号数量 +message CountAllEnabledACMEProviderAccountsRequest { + +} + +// 列出单页服务商账号 +message ListEnabledACMEProviderAccountsRequest { + int64 offset = 1; + int64 size = 2; +} + +message ListEnabledACMEProviderAccountsResponse { + repeated ACMEProviderAccount acmeProviderAccounts = 1; +} \ No newline at end of file diff --git a/pkg/rpc/protos/service_acme_user.proto b/pkg/rpc/protos/service_acme_user.proto index 52678ca..11e8502 100644 --- a/pkg/rpc/protos/service_acme_user.proto +++ b/pkg/rpc/protos/service_acme_user.proto @@ -34,6 +34,8 @@ service ACMEUserService { message CreateACMEUserRequest { string email = 1; string description = 2; + string acmeProviderCode = 3; + int64 acmeProviderAccountId = 4; } message CreateACMEUserResponse { @@ -82,6 +84,7 @@ message FindEnabledACMEUserResponse { message FindAllACMEUsersRequest { int64 adminId = 1; int64 userId = 2; + string acmeProviderCode = 3; } message FindAllACMEUsersResponse {