// 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-household-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{ // 393 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x51, 0x6f, 0xda, 0x30, 0x10, 0xc7, 0xf7, 0x30, 0xa1, 0xc9, 0x9a, 0x04, 0xf3, 0xd0, 0x84, 0xd8, 0x18, 0x1b, 0x9a, 0xf6, 0x46, 0x10, 0xed, 0x27, 0xa0, 0xd0, 0x4a, 0x95, 0x5a, 0x40, 0x50, 0x5e, 0x5a, 0xa9, 0x28, 0x21, 0xd7, 0x62, 0x94, 0xc4, 0xae, 0x7d, 0xa4, 0xcd, 0x17, 0xe9, 0xe7, 0xad, 0x12, 0xc7, 0x12, 0x04, 0x4c, 0x1e, 0x73, 0xbf, 0xdf, 0xfd, 0xcf, 0x17, 0xc5, 0x21, 0xf5, 0x15, 0x0f, 0x43, 0x1e, 0x2d, 0x15, 0xc8, 0x98, 0xad, 0xc0, 0x11, 0x92, 0x23, 0xa7, 0x44, 0x78, 0x4e, 0x5e, 0x69, 0x56, 0xe3, 0x7e, 0x4f, 0x4b, 0x1a, 0x9e, 0xbd, 0x7f, 0x21, 0x95, 0x61, 0x56, 0xa0, 0x8f, 0xa4, 0x3e, 0x4f, 0x14, 0x42, 0x38, 0x05, 0x19, 0x32, 0xa5, 0x18, 0x8f, 0x6e, 0x98, 0x42, 0xda, 0x71, 0x84, 0xb7, 0x8c, 0xfb, 0xce, 0x31, 0x38, 0x83, 0x97, 0x2d, 0x28, 0x6c, 0xfe, 0x39, 0xe9, 0x88, 0x20, 0xe9, 0x7c, 0xa2, 0x1b, 0xd2, 0x28, 0x62, 0x35, 0xe6, 0x78, 0x27, 0x01, 0xe8, 0x7f, 0x4b, 0xbf, 0x11, 0xcc, 0x9c, 0x7f, 0xa5, 0x9e, 0x9e, 0xf5, 0x40, 0xbe, 0x17, 0x95, 0x81, 0xef, 0xd3, 0xbf, 0x96, 0xf6, 0x81, 0xef, 0x9b, 0x09, 0xed, 0x53, 0x8a, 0x0e, 0xf7, 0xc9, 0x8f, 0x22, 0x5d, 0x08, 0xdf, 0x45, 0xa0, 0xb6, 0xe3, 0x69, 0x6c, 0x46, 0x74, 0x4a, 0x2c, 0xeb, 0x0a, 0x23, 0x08, 0xac, 0x2b, 0x8c, 0x20, 0x28, 0x5b, 0x21, 0x53, 0xac, 0x2b, 0xcc, 0xf8, 0x16, 0x41, 0x5a, 0x57, 0xd0, 0xb8, 0x6c, 0x05, 0x63, 0xe9, 0x29, 0x33, 0x52, 0x9b, 0x4a, 0x1e, 0xb3, 0x68, 0x05, 0x43, 0x86, 0xc9, 0x40, 0x82, 0x4b, 0x7f, 0xe7, 0x9d, 0x45, 0x60, 0x92, 0x7f, 0x59, 0xb9, 0xce, 0x9c, 0x90, 0xea, 0x1c, 0x25, 0x00, 0xa6, 0x5f, 0x2d, 0x43, 0x04, 0xa0, 0x2d, 0x73, 0x98, 0xfd, 0xba, 0x49, 0xfc, 0x69, 0xc3, 0x3a, 0xd0, 0x21, 0x9f, 0xd3, 0x19, 0x94, 0xe6, 0x5a, 0xfa, 0x60, 0x5a, 0x6b, 0x7b, 0x35, 0xed, 0x2f, 0xc8, 0xb7, 0x89, 0x52, 0x13, 0x6f, 0x33, 0x82, 0x60, 0xcc, 0xf1, 0xf2, 0x2d, 0xbd, 0x23, 0xe6, 0x95, 0x1f, 0x10, 0x93, 0xd4, 0xb2, 0x0b, 0x3a, 0xf6, 0x8a, 0x7c, 0xbd, 0x75, 0x11, 0x24, 0x73, 0x83, 0xeb, 0xe8, 0x89, 0xd3, 0x66, 0xde, 0xb0, 0x5b, 0x34, 0x61, 0x8d, 0xa3, 0xec, 0x20, 0x27, 0xbb, 0xbd, 0xc5, 0x9c, 0xdd, 0x5b, 0xdb, 0x38, 0xca, 0xb2, 0x9c, 0x8b, 0xf6, 0x7d, 0x4b, 0x48, 0x2e, 0x40, 0x62, 0xd2, 0x5d, 0xf3, 0xad, 0x82, 0x35, 0x0f, 0xfc, 0xee, 0xb3, 0x8b, 0xf0, 0xea, 0x26, 0x3d, 0xe1, 0x79, 0x95, 0xec, 0x07, 0x72, 0xfe, 0x11, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x8b, 0xb1, 0x16, 0x75, 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) SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, 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) // 获取权限节点路由和方法 SystemPermissionRouter(ctx context.Context, in *v1.SystemPermissionRouterRequest, opts ...grpc.CallOption) (*v1.SystemPermissionRouterReply, 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) City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, error) // 对象存储删除无用的数据 OssObjDelNotExist(ctx context.Context, in *v1.OssObjDelNotExistRequest, opts ...grpc.CallOption) (*v1.OssObjDelNotExistReply, 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) SystemPermissionsNotTree(ctx context.Context, in *v1.SystemPermissionsNotTreeRequest, opts ...grpc.CallOption) (*v1.SystemPermissionsNotTreeReply, error) { out := new(v1.SystemPermissionsNotTreeReply) err := c.cc.Invoke(ctx, "/pb.service.Common/SystemPermissionsNotTree", 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) 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) 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) City(ctx context.Context, in *v1.CityRequest, opts ...grpc.CallOption) (*v1.CityReply, error) { out := new(v1.CityReply) err := c.cc.Invoke(ctx, "/pb.service.Common/City", 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) 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) SystemPermissionsNotTree(context.Context, *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, 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) // 获取权限节点路由和方法 SystemPermissionRouter(context.Context, *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, error) // 省市区 ProvinceCityArea(context.Context, *v1.ProvinceCityAreaRequest) (*v1.ProvinceCityAreaReply, error) // 街道社区 StreetCommittee(context.Context, *v1.StreetCommitteeRequest) (*v1.StreetCommitteeReply, error) City(context.Context, *v1.CityRequest) (*v1.CityReply, error) // 对象存储删除无用的数据 OssObjDelNotExist(context.Context, *v1.OssObjDelNotExistRequest) (*v1.OssObjDelNotExistReply, 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) SystemPermissionsNotTree(ctx context.Context, req *v1.SystemPermissionsNotTreeRequest) (*v1.SystemPermissionsNotTreeReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionsNotTree 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) SystemPermissionRouter(ctx context.Context, req *v1.SystemPermissionRouterRequest) (*v1.SystemPermissionRouterReply, error) { return nil, status.Errorf(codes.Unimplemented, "method SystemPermissionRouter 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) City(ctx context.Context, req *v1.CityRequest) (*v1.CityReply, error) { return nil, status.Errorf(codes.Unimplemented, "method City 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) 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_SystemPermissionsNotTree_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.SystemPermissionsNotTreeRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).SystemPermissionsNotTree(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/SystemPermissionsNotTree", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).SystemPermissionsNotTree(ctx, req.(*v1.SystemPermissionsNotTreeRequest)) } 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_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_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_City_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(v1.CityRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CommonServer).City(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/pb.service.Common/City", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CommonServer).City(ctx, req.(*v1.CityRequest)) } 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_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: "SystemPermissionsNotTree", Handler: _Common_SystemPermissionsNotTree_Handler, }, { MethodName: "SystemPermissionAdd", Handler: _Common_SystemPermissionAdd_Handler, }, { MethodName: "SystemPermissionUpdate", Handler: _Common_SystemPermissionUpdate_Handler, }, { MethodName: "SystemPermissionDel", Handler: _Common_SystemPermissionDel_Handler, }, { MethodName: "SystemPermissionRouter", Handler: _Common_SystemPermissionRouter_Handler, }, { MethodName: "ProvinceCityArea", Handler: _Common_ProvinceCityArea_Handler, }, { MethodName: "StreetCommittee", Handler: _Common_StreetCommittee_Handler, }, { MethodName: "City", Handler: _Common_City_Handler, }, { MethodName: "OssObjDelNotExist", Handler: _Common_OssObjDelNotExist_Handler, }, { MethodName: "MaterialInfo", Handler: _Common_MaterialInfo_Handler, }, { MethodName: "MaterialList", Handler: _Common_MaterialList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "common_service.proto", }