123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- // 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-device/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{
- // 230 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0x49, 0xce, 0xcf, 0xcd,
- 0xcd, 0xcf, 0x8b, 0x2f, 0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9,
- 0x17, 0xe2, 0x2a, 0x48, 0xd2, 0x83, 0x8a, 0x48, 0xf1, 0x97, 0x19, 0xea, 0x43, 0x14, 0x41, 0x24,
- 0x8d, 0x0e, 0x30, 0x71, 0xb1, 0x39, 0x83, 0x05, 0x84, 0xac, 0xb8, 0x38, 0x02, 0x8a, 0xf2, 0xcb,
- 0x32, 0xf3, 0x92, 0x53, 0x85, 0xc4, 0xf4, 0x0a, 0x92, 0xe2, 0xcb, 0x0c, 0xf5, 0x60, 0x02, 0x41,
- 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x52, 0x22, 0x18, 0xe2, 0x05, 0x39, 0x95, 0x4a, 0x0c, 0x42,
- 0x29, 0x5c, 0x62, 0xc1, 0x95, 0xc5, 0x25, 0xa9, 0xb9, 0x01, 0xa9, 0x45, 0xb9, 0x99, 0xc5, 0xc5,
- 0x99, 0xf9, 0x79, 0x41, 0xf9, 0xa5, 0x25, 0xa9, 0x45, 0x42, 0x2a, 0x50, 0x1d, 0xd8, 0xa5, 0x61,
- 0xe6, 0x2a, 0x11, 0x50, 0x05, 0xb1, 0x25, 0x94, 0x4b, 0xd0, 0xbf, 0xb8, 0xd8, 0x3f, 0x29, 0xcb,
- 0x25, 0x35, 0xc7, 0x2f, 0xbf, 0xc4, 0xb5, 0x22, 0xb3, 0xb8, 0x44, 0x48, 0x1e, 0xaa, 0x15, 0x43,
- 0x06, 0x66, 0xb6, 0x2c, 0x6e, 0x05, 0x10, 0x63, 0x6d, 0xb9, 0x38, 0x21, 0x72, 0x8e, 0x29, 0x29,
- 0x42, 0xe2, 0x28, 0xaa, 0x1d, 0x53, 0x52, 0x60, 0xc6, 0x88, 0x62, 0x4a, 0x80, 0xb5, 0x3b, 0x89,
- 0x44, 0x09, 0x15, 0x14, 0xe5, 0x17, 0xa4, 0x16, 0x95, 0x54, 0xea, 0xa6, 0xa4, 0x82, 0x82, 0x59,
- 0xbf, 0x20, 0x29, 0x89, 0x0d, 0x1c, 0xbe, 0xc6, 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7c, 0x4c,
- 0x6d, 0x3e, 0x94, 0x01, 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 {
- //
- Province(ctx context.Context, in *v1.ProvinceRequest, opts ...grpc.CallOption) (*v1.ProvinceReply, error)
- // 获取权限节点路由和方法对应的code
- SystemPermissionRouter(ctx context.Context, in *v1.SystemPermissionRouterRequest, opts ...grpc.CallOption) (*v1.SystemPermissionRouterReply, 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) Province(ctx context.Context, in *v1.ProvinceRequest, opts ...grpc.CallOption) (*v1.ProvinceReply, error) {
- out := new(v1.ProvinceReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/Province", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *commonClient) SystemPermissionRouter(ctx context.Context, in *v1.SystemPermissionRouterRequest, opts ...grpc.CallOption) (*v1.SystemPermissionRouterReply, error) {
- out := new(v1.SystemPermissionRouterReply)
- err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionRouter", 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 {
- //
- Province(context.Context, *v1.ProvinceRequest) (*v1.ProvinceReply, error)
- // 获取权限节点路由和方法对应的code
- SystemPermissionRouter(context.Context, *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, 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) Province(ctx context.Context, req *v1.ProvinceRequest) (*v1.ProvinceReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Province not implemented")
- }
- func (*UnimplementedCommonServer) SystemPermissionRouter(ctx context.Context, req *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, error) {
- return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionRouter 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_Province_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.ProvinceRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).Province(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/Province",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).Province(ctx, req.(*v1.ProvinceRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _Common_SystemPermissionRouter_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(v1.SystemPermissionRouterRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(CommonServer).SystemPermissionRouter(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.service.Common/SystemPermissionRouter",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(CommonServer).SystemPermissionRouter(ctx, req.(*v1.SystemPermissionRouterRequest))
- }
- 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: "Province",
- Handler: _Common_Province_Handler,
- },
- {
- MethodName: "SystemPermissionRouter",
- Handler: _Common_SystemPermissionRouter_Handler,
- },
- {
- MethodName: "OssObjDelNotExist",
- Handler: _Common_OssObjDelNotExist_Handler,
- },
- {
- MethodName: "OssObjAdd",
- Handler: _Common_OssObjAdd_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "common_service.proto",
- }
|