mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-11 02:40:25 +08:00
使用最新的protoc-gen-go和protoc-gen-go-grpc插件
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.25.0
|
||||
// protoc-gen-go v1.31.0
|
||||
// protoc v3.19.4
|
||||
// source: service_message_recipient.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"
|
||||
@@ -25,10 +20,6 @@ const (
|
||||
_ = 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 CreateMessageRecipientRequest struct {
|
||||
state protoimpl.MessageState
|
||||
@@ -964,275 +955,3 @@ func file_service_message_recipient_proto_init() {
|
||||
file_service_message_recipient_proto_goTypes = nil
|
||||
file_service_message_recipient_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
|
||||
|
||||
// MessageRecipientServiceClient is the client API for MessageRecipientService service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type MessageRecipientServiceClient interface {
|
||||
// 创建接收人
|
||||
CreateMessageRecipient(ctx context.Context, in *CreateMessageRecipientRequest, opts ...grpc.CallOption) (*CreateMessageRecipientResponse, error)
|
||||
// 修改接收人
|
||||
UpdateMessageRecipient(ctx context.Context, in *UpdateMessageRecipientRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 删除接收人
|
||||
DeleteMessageRecipient(ctx context.Context, in *DeleteMessageRecipientRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
||||
// 计算接收人数量
|
||||
CountAllEnabledMessageRecipients(ctx context.Context, in *CountAllEnabledMessageRecipientsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error)
|
||||
// 列出单页接收人
|
||||
ListEnabledMessageRecipients(ctx context.Context, in *ListEnabledMessageRecipientsRequest, opts ...grpc.CallOption) (*ListEnabledMessageRecipientsResponse, error)
|
||||
// 查找单个接收人信息
|
||||
FindEnabledMessageRecipient(ctx context.Context, in *FindEnabledMessageRecipientRequest, opts ...grpc.CallOption) (*FindEnabledMessageRecipientResponse, error)
|
||||
}
|
||||
|
||||
type messageRecipientServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewMessageRecipientServiceClient(cc grpc.ClientConnInterface) MessageRecipientServiceClient {
|
||||
return &messageRecipientServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *messageRecipientServiceClient) CreateMessageRecipient(ctx context.Context, in *CreateMessageRecipientRequest, opts ...grpc.CallOption) (*CreateMessageRecipientResponse, error) {
|
||||
out := new(CreateMessageRecipientResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.MessageRecipientService/createMessageRecipient", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *messageRecipientServiceClient) UpdateMessageRecipient(ctx context.Context, in *UpdateMessageRecipientRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.MessageRecipientService/updateMessageRecipient", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *messageRecipientServiceClient) DeleteMessageRecipient(ctx context.Context, in *DeleteMessageRecipientRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
||||
out := new(RPCSuccess)
|
||||
err := c.cc.Invoke(ctx, "/pb.MessageRecipientService/deleteMessageRecipient", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *messageRecipientServiceClient) CountAllEnabledMessageRecipients(ctx context.Context, in *CountAllEnabledMessageRecipientsRequest, opts ...grpc.CallOption) (*RPCCountResponse, error) {
|
||||
out := new(RPCCountResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.MessageRecipientService/countAllEnabledMessageRecipients", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *messageRecipientServiceClient) ListEnabledMessageRecipients(ctx context.Context, in *ListEnabledMessageRecipientsRequest, opts ...grpc.CallOption) (*ListEnabledMessageRecipientsResponse, error) {
|
||||
out := new(ListEnabledMessageRecipientsResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.MessageRecipientService/listEnabledMessageRecipients", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *messageRecipientServiceClient) FindEnabledMessageRecipient(ctx context.Context, in *FindEnabledMessageRecipientRequest, opts ...grpc.CallOption) (*FindEnabledMessageRecipientResponse, error) {
|
||||
out := new(FindEnabledMessageRecipientResponse)
|
||||
err := c.cc.Invoke(ctx, "/pb.MessageRecipientService/findEnabledMessageRecipient", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// MessageRecipientServiceServer is the server API for MessageRecipientService service.
|
||||
type MessageRecipientServiceServer interface {
|
||||
// 创建接收人
|
||||
CreateMessageRecipient(context.Context, *CreateMessageRecipientRequest) (*CreateMessageRecipientResponse, error)
|
||||
// 修改接收人
|
||||
UpdateMessageRecipient(context.Context, *UpdateMessageRecipientRequest) (*RPCSuccess, error)
|
||||
// 删除接收人
|
||||
DeleteMessageRecipient(context.Context, *DeleteMessageRecipientRequest) (*RPCSuccess, error)
|
||||
// 计算接收人数量
|
||||
CountAllEnabledMessageRecipients(context.Context, *CountAllEnabledMessageRecipientsRequest) (*RPCCountResponse, error)
|
||||
// 列出单页接收人
|
||||
ListEnabledMessageRecipients(context.Context, *ListEnabledMessageRecipientsRequest) (*ListEnabledMessageRecipientsResponse, error)
|
||||
// 查找单个接收人信息
|
||||
FindEnabledMessageRecipient(context.Context, *FindEnabledMessageRecipientRequest) (*FindEnabledMessageRecipientResponse, error)
|
||||
}
|
||||
|
||||
// UnimplementedMessageRecipientServiceServer can be embedded to have forward compatible implementations.
|
||||
type UnimplementedMessageRecipientServiceServer struct {
|
||||
}
|
||||
|
||||
func (*UnimplementedMessageRecipientServiceServer) CreateMessageRecipient(context.Context, *CreateMessageRecipientRequest) (*CreateMessageRecipientResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CreateMessageRecipient not implemented")
|
||||
}
|
||||
func (*UnimplementedMessageRecipientServiceServer) UpdateMessageRecipient(context.Context, *UpdateMessageRecipientRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateMessageRecipient not implemented")
|
||||
}
|
||||
func (*UnimplementedMessageRecipientServiceServer) DeleteMessageRecipient(context.Context, *DeleteMessageRecipientRequest) (*RPCSuccess, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteMessageRecipient not implemented")
|
||||
}
|
||||
func (*UnimplementedMessageRecipientServiceServer) CountAllEnabledMessageRecipients(context.Context, *CountAllEnabledMessageRecipientsRequest) (*RPCCountResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method CountAllEnabledMessageRecipients not implemented")
|
||||
}
|
||||
func (*UnimplementedMessageRecipientServiceServer) ListEnabledMessageRecipients(context.Context, *ListEnabledMessageRecipientsRequest) (*ListEnabledMessageRecipientsResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListEnabledMessageRecipients not implemented")
|
||||
}
|
||||
func (*UnimplementedMessageRecipientServiceServer) FindEnabledMessageRecipient(context.Context, *FindEnabledMessageRecipientRequest) (*FindEnabledMessageRecipientResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledMessageRecipient not implemented")
|
||||
}
|
||||
|
||||
func RegisterMessageRecipientServiceServer(s *grpc.Server, srv MessageRecipientServiceServer) {
|
||||
s.RegisterService(&_MessageRecipientService_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _MessageRecipientService_CreateMessageRecipient_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CreateMessageRecipientRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MessageRecipientServiceServer).CreateMessageRecipient(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.MessageRecipientService/CreateMessageRecipient",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MessageRecipientServiceServer).CreateMessageRecipient(ctx, req.(*CreateMessageRecipientRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MessageRecipientService_UpdateMessageRecipient_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateMessageRecipientRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MessageRecipientServiceServer).UpdateMessageRecipient(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.MessageRecipientService/UpdateMessageRecipient",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MessageRecipientServiceServer).UpdateMessageRecipient(ctx, req.(*UpdateMessageRecipientRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MessageRecipientService_DeleteMessageRecipient_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteMessageRecipientRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MessageRecipientServiceServer).DeleteMessageRecipient(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.MessageRecipientService/DeleteMessageRecipient",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MessageRecipientServiceServer).DeleteMessageRecipient(ctx, req.(*DeleteMessageRecipientRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MessageRecipientService_CountAllEnabledMessageRecipients_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(CountAllEnabledMessageRecipientsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MessageRecipientServiceServer).CountAllEnabledMessageRecipients(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.MessageRecipientService/CountAllEnabledMessageRecipients",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MessageRecipientServiceServer).CountAllEnabledMessageRecipients(ctx, req.(*CountAllEnabledMessageRecipientsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MessageRecipientService_ListEnabledMessageRecipients_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListEnabledMessageRecipientsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MessageRecipientServiceServer).ListEnabledMessageRecipients(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.MessageRecipientService/ListEnabledMessageRecipients",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MessageRecipientServiceServer).ListEnabledMessageRecipients(ctx, req.(*ListEnabledMessageRecipientsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _MessageRecipientService_FindEnabledMessageRecipient_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(FindEnabledMessageRecipientRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(MessageRecipientServiceServer).FindEnabledMessageRecipient(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/pb.MessageRecipientService/FindEnabledMessageRecipient",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MessageRecipientServiceServer).FindEnabledMessageRecipient(ctx, req.(*FindEnabledMessageRecipientRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _MessageRecipientService_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "pb.MessageRecipientService",
|
||||
HandlerType: (*MessageRecipientServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "createMessageRecipient",
|
||||
Handler: _MessageRecipientService_CreateMessageRecipient_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "updateMessageRecipient",
|
||||
Handler: _MessageRecipientService_UpdateMessageRecipient_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "deleteMessageRecipient",
|
||||
Handler: _MessageRecipientService_DeleteMessageRecipient_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "countAllEnabledMessageRecipients",
|
||||
Handler: _MessageRecipientService_CountAllEnabledMessageRecipients_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "listEnabledMessageRecipients",
|
||||
Handler: _MessageRecipientService_ListEnabledMessageRecipients_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "findEnabledMessageRecipient",
|
||||
Handler: _MessageRecipientService_FindEnabledMessageRecipient_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "service_message_recipient.proto",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user