// Code generated by protoc-gen-go. DO NOT EDIT. // source: common_service.proto // package声明符,用来防止不同的消息类型有命名冲突 package pb import ( context "context" fmt "fmt" proto "github.com/golang/protobuf/proto" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" math "math" v1 "property-applete-gateway/pb/v1" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package func init() { proto.RegisterFile("common_service.proto", fileDescriptor_1c30f963b95fce05) } var fileDescriptor_1c30f963b95fce05 = []byte{ // 317 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x4f, 0x4f, 0xf2, 0x40, 0x10, 0xc6, 0xdf, 0xcb, 0x4b, 0xe2, 0x5e, 0xd0, 0x15, 0x35, 0x01, 0xf1, 0x0f, 0xf1, 0x4a, 0x09, 0x7a, 0xf6, 0x50, 0xa9, 0x37, 0x63, 0x09, 0x84, 0x8b, 0x26, 0x92, 0xb6, 0x3b, 0x31, 0x6b, 0xda, 0xee, 0xba, 0x3b, 0x56, 0xfb, 0xf9, 0xfc, 0x62, 0xa6, 0x5d, 0x36, 0x91, 0xe2, 0xc2, 0x75, 0x7e, 0xcf, 0xfc, 0xda, 0xc9, 0x3e, 0xa4, 0x93, 0x88, 0x2c, 0x13, 0xf9, 0x52, 0x83, 0x2a, 0x78, 0x02, 0x9e, 0x54, 0x02, 0x05, 0x25, 0x32, 0xf6, 0x56, 0x93, 0x6e, 0xbb, 0x18, 0x8f, 0x4c, 0xc8, 0xc0, 0xeb, 0xef, 0xff, 0xa4, 0x35, 0xa9, 0x07, 0xf4, 0x85, 0x74, 0xe6, 0xa5, 0x46, 0xc8, 0xa6, 0xa0, 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0xe3, 0x56, 0xdd, 0xf5, 0x9b, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x28, 0xaf, 0xe7, 0x20, 0x03, 0x00, 0x00, } // 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 // CommonClient is the client API for Common service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CommonClient interface { // 权限总列表 SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) // 添加权限节点 SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) // 更新权限节点 SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) // 删除权限节点 SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) // 省市区 ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) // 街道社区 StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) // 对象存储删除无用的数据 OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) // 对象存储添加到公共区 OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error) } type commonClient struct { cc grpc.ClientConnInterface } func NewCommonClient(cc grpc.ClientConnInterface) CommonClient { return &commonClient{cc} } func (c *commonClient) SystemPermissionList(ctx context.Context, in *v1.SystemPermissionListRequest, opts ...grpc.CallOption) (*v1.SystemPermissionListReply, error) { out := new(v1.SystemPermissionListReply) err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) SystemPermissionAdd(ctx context.Context, in *v1.SystemPermissionAddRequest, opts ...grpc.CallOption) (*v1.SystemPermissionAddReply, error) { out := new(v1.SystemPermissionAddReply) err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) SystemPermissionUpdate(ctx context.Context, in *v1.SystemPermissionUpdateRequest, opts ...grpc.CallOption) (*v1.SystemPermissionUpdateReply, error) { out := new(v1.SystemPermissionUpdateReply) err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionUpdate", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) SystemPermissionDel(ctx context.Context, in *v1.SystemPermissionDelRequest, opts ...grpc.CallOption) (*v1.SystemPermissionDelReply, error) { out := new(v1.SystemPermissionDelReply) err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionDel", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) ProvinceCityArea(ctx context.Context, in *v1.ProvinceCityAreaRequest, opts ...grpc.CallOption) (*v1.ProvinceCityAreaReply, error) { out := new(v1.ProvinceCityAreaReply) err := c.cc.Invoke(ctx, "/pb.service.Common/ProvinceCityArea", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) StreetCommittee(ctx context.Context, in *v1.StreetCommitteeRequest, opts ...grpc.CallOption) (*v1.StreetCommitteeReply, error) { out := new(v1.StreetCommitteeReply) err := c.cc.Invoke(ctx, "/pb.service.Common/StreetCommittee", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, error) { out := new(v1.OssObjDelNotExistReply) err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjDelNotExist", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) OssObjAdd(ctx context.Context, in *v1.OssObjAddRequest, opts ...grpc.CallOption) (*v1.OssObjAddReply, error) { out := new(v1.OssObjAddReply) err := c.cc.Invoke(ctx, "/pb.service.Common/OssObjAdd", in, out, opts...) if err != nil { return nil, err } return out, nil } // CommonServer is the server API for Common service. type CommonServer interface { // 权限总列表 SystemPermissionList(context.Context, *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) // 添加权限节点 SystemPermissionAdd(context.Context, *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) // 更新权限节点 SystemPermissionUpdate(context.Context, *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) // 删除权限节点 SystemPermissionDel(context.Context, *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) // 省市区 ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) // 街道社区 StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) // 对象存储删除无用的数据 OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) // 对象存储添加到公共区 OssObjAdd(context.Context, *v1.OssObjAddRequest) (*v1.OssObjAddReply, error) } // UnimplementedCommonServer can be embedded to have forward compatible implementations. type UnimplementedCommonServer struct { } func (*UnimplementedCommonServer) SystemPermissionList(ctx context.Context, req *v1.SystemPermissionListRequest) (*v1.SystemPermissionListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionList not implemented") } func (*UnimplementedCommonServer) SystemPermissionAdd(ctx context.Context, req *v1.SystemPermissionAddRequest) (*v1.SystemPermissionAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionAdd not implemented") } func (*UnimplementedCommonServer) SystemPermissionUpdate(ctx context.Context, req *v1.SystemPermissionUpdateRequest) (*v1.SystemPermissionUpdateReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionUpdate not implemented") } func (*UnimplementedCommonServer) SystemPermissionDel(ctx context.Context, req *v1.SystemPermissionDelRequest) (*v1.SystemPermissionDelReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionDel not implemented") } func (*UnimplementedCommonServer) ProvinceCityArea(ctx context.Context, req *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ProvinceCityArea not implemented") } func (*UnimplementedCommonServer) StreetCommittee(ctx context.Context, req *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method StreetCommittee not implemented") } func (*UnimplementedCommonServer) OssObjDelNotExist(ctx context.Context, req *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OssObjDelNotExist not implemented") } func (*UnimplementedCommonServer) OssObjAdd(ctx context.Context, req *v1.OssObjAddRequest) (*v1.OssObjAddReply, error) { return nil, status.Errorf(codes.Unimplemented, "method OssObjAdd not implemented") } func RegisterCommonServer(s *grpc.Server, srv CommonServer) { s.RegisterService(&_Common_serviceDesc, srv) } func _Common_SystemPermissionList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemPermissionListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).SystemPermissionList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/SystemPermissionList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).SystemPermissionList(ctx, req.(*v1.SystemPermissionListRequest)) } return interceptor(ctx, in, info, handler) } func _Common_SystemPermissionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemPermissionAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).SystemPermissionAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/SystemPermissionAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).SystemPermissionAdd(ctx, req.(*v1.SystemPermissionAddRequest)) } return interceptor(ctx, in, info, handler) } func _Common_SystemPermissionUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemPermissionUpdateRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).SystemPermissionUpdate(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/SystemPermissionUpdate", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).SystemPermissionUpdate(ctx, req.(*v1.SystemPermissionUpdateRequest)) } return interceptor(ctx, in, info, handler) } func _Common_SystemPermissionDel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemPermissionDelRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).SystemPermissionDel(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/SystemPermissionDel", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).SystemPermissionDel(ctx, req.(*v1.SystemPermissionDelRequest)) } return interceptor(ctx, in, info, handler) } func _Common_ProvinceCityArea_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ProvinceCityAreaRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).ProvinceCityArea(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/ProvinceCityArea", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).ProvinceCityArea(ctx, req.(*v1.ProvinceCityAreaRequest)) } return interceptor(ctx, in, info, handler) } func _Common_StreetCommittee_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.StreetCommitteeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).StreetCommittee(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/StreetCommittee", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).StreetCommittee(ctx, req.(*v1.StreetCommitteeRequest)) } return interceptor(ctx, in, info, handler) } func _Common_OssObjDelNotExist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OssObjDelNotExistRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).OssObjDelNotExist(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/OssObjDelNotExist", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).OssObjDelNotExist(ctx, req.(*v1.OssObjDelNotExistRequest)) } return interceptor(ctx, in, info, handler) } func _Common_OssObjAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.OssObjAddRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).OssObjAdd(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/OssObjAdd", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).OssObjAdd(ctx, req.(*v1.OssObjAddRequest)) } return interceptor(ctx, in, info, handler) } var _Common_serviceDesc = grpc.ServiceDesc{ ServiceName: "pb.service.Common", HandlerType: (*CommonServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SystemPermissionList", Handler: _Common_SystemPermissionList_Handler, }, { MethodName: "SystemPermissionAdd", Handler: _Common_SystemPermissionAdd_Handler, }, { MethodName: "SystemPermissionUpdate", Handler: _Common_SystemPermissionUpdate_Handler, }, { MethodName: "SystemPermissionDel", Handler: _Common_SystemPermissionDel_Handler, }, { MethodName: "ProvinceCityArea", Handler: _Common_ProvinceCityArea_Handler, }, { MethodName: "StreetCommittee", Handler: _Common_StreetCommittee_Handler, }, { MethodName: "OssObjDelNotExist", Handler: _Common_OssObjDelNotExist_Handler, }, { MethodName: "OssObjAdd", Handler: _Common_OssObjAdd_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "common_service.proto", }