// 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-system-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{ // 392 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x41, 0x6f, 0xda, 0x30, 0x18, 0x86, 0x77, 0x62, 0x9a, 0x35, 0x8d, 0xcd, 0x63, 0x1b, 0xca, 0x60, 0x6b, 0x51, 0xaf, 0x04, 0xd1, 0x9e, 0x7b, 0x48, 0xa1, 0x95, 0x2a, 0x41, 0x41, 0x20, 0x2e, 0xad, 0x54, 0xe4, 0x24, 0x5f, 0x91, 0xdb, 0x24, 0x76, 0x6d, 0x37, 0x6d, 0xfe, 0x76, 0x7f, 0x41, 0x45, 0x8c, 0x11, 0x24, 0x18, 0xae, 0xdf, 0xf3, 0xfa, 0xb1, 0x5f, 0xf8, 0x14, 0x54, 0x0b, 0x58, 0x1c, 0xb3, 0x64, 0x2e, 0x41, 0xa4, 0x34, 0x00, 0x97, 0x0b, 0xa6, 0x18, 0x46, 0xdc, 0x77, 0x57, 0x13, 0xa7, 0x9a, 0x76, 0x3b, 0x3a, 0xa4, 0xe1, 0xe9, 0xfb, 0x67, 0x54, 0xe9, 0xe5, 0x03, 0x7c, 0x8f, 0x6a, 0xd3, 0x4c, 0x2a, 0x88, 0xc7, 0x20, 0x62, 0x2a, 0x25, 0x65, 0xc9, 0x80, 0x4a, 0x85, 0x5b, 0x2e, 0xf7, 0xe7, 0x69, 0xd7, 0xdd, 0x05, 0x27, 0xf0, 0xfc, 0x02, 0x52, 0x39, 0x47, 0x7b, 0x33, 0x3c, 0xca, 0x5a, 0x9f, 0xf0, 0x1d, 0xfa, 0x59, 0xc4, 0x5e, 0x18, 0xe2, 0x63, 0xcb, 0x51, 0x2f, 0x0c, 0x8d, 0xfd, 0xff, 0xbe, 0x88, 0x96, 0x87, 0xe8, 0x77, 0x91, 0xce, 0x78, 0x48, 0x14, 0xe0, 0x13, 0xcb, 0x61, 0x8d, 0xcd, 0x15, 0xad, 0x03, 0x29, 0x6b, 0x85, 0x3e, 0x44, 0xd6, 0x0a, 0x7d, 0x88, 0x0e, 0x55, 0xc8, 0x23, 0x5a, 0x3e, 0x41, 0xdf, 0xc7, 0x82, 0xa5, 0x34, 0x09, 0xa0, 0x47, 0x55, 0xe6, 0x09, 0x20, 0xf8, 0xdf, 0xea, 0x58, 0x11, 0x18, 0x6d, 0xc3, 0xca, 0xb5, 0x73, 0x84, 0xaa, 0x53, 0x25, 0x00, 0xd4, 0xf2, 0x3f, 0xa6, 0x4a, 0x01, 0xe0, 0xa6, 0x79, 0xc9, 0xf6, 0xdc, 0x18, 0xff, 0xda, 0xb0, 0x16, 0xce, 0xd0, 0x8f, 0x91, 0x94, 0x23, 0xff, 0xb1, 0x0f, 0xd1, 0x0d, 0x53, 0x97, 0x6f, 0xcb, 0x0d, 0x31, 0xe5, 0x4a, 0xc4, 0x48, 0x9b, 0xf6, 0x80, 0xd6, 0x9e, 0xa3, 0x2f, 0x9a, 0x2d, 0x37, 0xe2, 0xcf, 0x56, 0x7a, 0x63, 0x0f, 0x7e, 0x95, 0xc1, 0xba, 0xa6, 0xc7, 0x79, 0x44, 0x03, 0xa2, 0xcc, 0xd6, 0x9a, 0x2b, 0x0b, 0xf3, 0x62, 0xcd, 0x12, 0xd6, 0xc2, 0x01, 0xfa, 0x36, 0x94, 0x8b, 0x31, 0x09, 0x9e, 0xc8, 0x02, 0x72, 0x9f, 0xf9, 0xa5, 0xb7, 0xc7, 0x46, 0xe7, 0x58, 0xa8, 0xb6, 0x5d, 0xa1, 0xaf, 0x43, 0xa2, 0x40, 0x50, 0x12, 0x5d, 0x27, 0x0f, 0x0c, 0xaf, 0xd3, 0x1b, 0x43, 0x63, 0xaa, 0xef, 0x64, 0x25, 0x4f, 0xfe, 0xa6, 0xa2, 0x67, 0xf3, 0x45, 0xf5, 0x9d, 0x2c, 0xf7, 0x5c, 0x34, 0x6e, 0x1d, 0x2e, 0x18, 0x07, 0xa1, 0xb2, 0xb6, 0xcc, 0x17, 0xb2, 0xbd, 0x20, 0x0a, 0x5e, 0x49, 0xd6, 0xe1, 0xbe, 0x5f, 0xc9, 0xbf, 0x0c, 0x67, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x52, 0x7b, 0x2a, 0x57, 0x4e, 0x04, 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) // 应用 ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error) // 短信套餐 MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error) MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error) MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, 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 } func (c *commonClient) ApplicationList(ctx context.Context, in *v1.ApplicationListRequest, opts ...grpc.CallOption) (*v1.ApplicationListReply, error) { out := new(v1.ApplicationListReply) err := c.cc.Invoke(ctx, "/pb.service.Common/ApplicationList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) MsgPackageList(ctx context.Context, in *v1.MsgPackageListRequest, opts ...grpc.CallOption) (*v1.MsgPackageListReply, error) { out := new(v1.MsgPackageListReply) err := c.cc.Invoke(ctx, "/pb.service.Common/MsgPackageList", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) MaterialInfo(ctx context.Context, in *v1.MaterialInfoRequest, opts ...grpc.CallOption) (*v1.MaterialInfoReply, error) { out := new(v1.MaterialInfoReply) err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialInfo", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *commonClient) MaterialList(ctx context.Context, in *v1.MaterialListRequest, opts ...grpc.CallOption) (*v1.MaterialListReply, error) { out := new(v1.MaterialListReply) err := c.cc.Invoke(ctx, "/pb.service.Common/MaterialList", 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) // 应用 ApplicationList(context.Context, *v1.ApplicationListRequest) (*v1.ApplicationListReply, error) // 短信套餐 MsgPackageList(context.Context, *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error) MaterialInfo(context.Context, *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error) MaterialList(context.Context, *v1.MaterialListRequest) (*v1.MaterialListReply, 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 (*UnimplementedCommonServer) ApplicationList(ctx context.Context, req *v1.ApplicationListRequest) (*v1.ApplicationListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method ApplicationList not implemented") } func (*UnimplementedCommonServer) MsgPackageList(ctx context.Context, req *v1.MsgPackageListRequest) (*v1.MsgPackageListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method MsgPackageList not implemented") } func (*UnimplementedCommonServer) MaterialInfo(ctx context.Context, req *v1.MaterialInfoRequest) (*v1.MaterialInfoReply, error) { return nil, status.Errorf(codes.Unimplemented, "method MaterialInfo not implemented") } func (*UnimplementedCommonServer) MaterialList(ctx context.Context, req *v1.MaterialListRequest) (*v1.MaterialListReply, error) { return nil, status.Errorf(codes.Unimplemented, "method MaterialList 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) } func _Common_ApplicationList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.ApplicationListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).ApplicationList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/ApplicationList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).ApplicationList(ctx, req.(*v1.ApplicationListRequest)) } return interceptor(ctx, in, info, handler) } func _Common_MsgPackageList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.MsgPackageListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).MsgPackageList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/MsgPackageList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).MsgPackageList(ctx, req.(*v1.MsgPackageListRequest)) } return interceptor(ctx, in, info, handler) } func _Common_MaterialInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.MaterialInfoRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).MaterialInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/MaterialInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).MaterialInfo(ctx, req.(*v1.MaterialInfoRequest)) } return interceptor(ctx, in, info, handler) } func _Common_MaterialList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.MaterialListRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).MaterialList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/MaterialList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).MaterialList(ctx, req.(*v1.MaterialListRequest)) } 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, }, { MethodName: "ApplicationList", Handler: _Common_ApplicationList_Handler, }, { MethodName: "MsgPackageList", Handler: _Common_MsgPackageList_Handler, }, { MethodName: "MaterialInfo", Handler: _Common_MaterialInfo_Handler, }, { MethodName: "MaterialList", Handler: _Common_MaterialList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "common_service.proto", }