| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT.package partnerimport (	context "context"	common "git.ikuban.com/server/pw-protobuf/api/common"	statistics "git.ikuban.com/server/pw-protobuf/api/statistics"	grpc "google.golang.org/grpc"	codes "google.golang.org/grpc/codes"	status "google.golang.org/grpc/status"	emptypb "google.golang.org/protobuf/types/known/emptypb")// This is a compile-time assertion to ensure that this generated file// is compatible with the grpc package it is being compiled against.// Requires gRPC-Go v1.32.0 or later.const _ = grpc.SupportPackageIsVersion7// PartnerClient is the client API for Partner service.//// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.type PartnerClient interface {	// 获取接待员的个人信息	GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerInfo, error)	// 获取接待员访问数详情	GetPartnerLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error)	// 接待员发送验证码	SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	// 接待员验证验证码	CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	// 获取接待员的确认通过页面信息	GetPartnerCircleInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error)	// 更新接待员的信息	UpdatePartnerInformation(ctx context.Context, in *UpdatePartnerInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	GetRandomPartnerInfo(ctx context.Context, in *GetRandomPartnerRequest, opts ...grpc.CallOption) (*RandomPartnerInfo, error)	// 接待员获取主页信息	PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error)	// 查看看过我的列表	FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error)	// 通过接待员IDs查看接待员信息列表	FindPartnerDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error)}type partnerClient struct {	cc grpc.ClientConnInterface}func NewPartnerClient(cc grpc.ClientConnInterface) PartnerClient {	return &partnerClient{cc}}func (c *partnerClient) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PartnerInfo, error) {	out := new(PartnerInfo)	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerInfo", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) GetPartnerLookNum(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*statistics.LookMessageReply, error) {	out := new(statistics.LookMessageReply)	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerLookNum", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.partner.Partner/SendPhoneCode", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) CheckPhoneCode(ctx context.Context, in *common.CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.partner.Partner/CheckPhoneCode", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) GetPartnerCircleInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error) {	out := new(common.AddFriendMessageInfo)	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerCircleInfo", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) UpdatePartnerInformation(ctx context.Context, in *UpdatePartnerInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.partner.Partner/UpdatePartnerInformation", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) GetRandomPartnerInfo(ctx context.Context, in *GetRandomPartnerRequest, opts ...grpc.CallOption) (*RandomPartnerInfo, error) {	out := new(RandomPartnerInfo)	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetRandomPartnerInfo", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {	out := new(common.HomeInfo)	err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerGetHomeInfo", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...grpc.CallOption) (*statistics.LookAndLikeListReply, error) {	out := new(statistics.LookAndLikeListReply)	err := c.cc.Invoke(ctx, "/api.partner.Partner/FindLookList", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *partnerClient) FindPartnerDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error) {	out := new(common.PersonDBReply)	err := c.cc.Invoke(ctx, "/api.partner.Partner/FindPartnerDBList", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}// PartnerServer is the server API for Partner service.// All implementations must embed UnimplementedPartnerServer// for forward compatibilitytype PartnerServer interface {	// 获取接待员的个人信息	GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)	// 获取接待员访问数详情	GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error)	// 接待员发送验证码	SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)	// 接待员验证验证码	CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error)	// 获取接待员的确认通过页面信息	GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error)	// 更新接待员的信息	UpdatePartnerInformation(context.Context, *UpdatePartnerInformationRequest) (*emptypb.Empty, error)	GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error)	// 接待员获取主页信息	PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)	// 查看看过我的列表	FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)	// 通过接待员IDs查看接待员信息列表	FindPartnerDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)	mustEmbedUnimplementedPartnerServer()}// UnimplementedPartnerServer must be embedded to have forward compatible implementations.type UnimplementedPartnerServer struct {}func (UnimplementedPartnerServer) GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerInfo not implemented")}func (UnimplementedPartnerServer) GetPartnerLookNum(context.Context, *emptypb.Empty) (*statistics.LookMessageReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerLookNum not implemented")}func (UnimplementedPartnerServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")}func (UnimplementedPartnerServer) CheckPhoneCode(context.Context, *common.CheckPhoneCodeRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")}func (UnimplementedPartnerServer) GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")}func (UnimplementedPartnerServer) UpdatePartnerInformation(context.Context, *UpdatePartnerInformationRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method UpdatePartnerInformation not implemented")}func (UnimplementedPartnerServer) GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetRandomPartnerInfo not implemented")}func (UnimplementedPartnerServer) PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method PartnerGetHomeInfo not implemented")}func (UnimplementedPartnerServer) FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method FindLookList not implemented")}func (UnimplementedPartnerServer) FindPartnerDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method FindPartnerDBList not implemented")}func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}// UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.// Use of this interface is not recommended, as added methods to PartnerServer will// result in compilation errors.type UnsafePartnerServer interface {	mustEmbedUnimplementedPartnerServer()}func RegisterPartnerServer(s grpc.ServiceRegistrar, srv PartnerServer) {	s.RegisterService(&Partner_ServiceDesc, srv)}func _Partner_GetPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(emptypb.Empty)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).GetPartnerInfo(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/GetPartnerInfo",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).GetPartnerInfo(ctx, req.(*emptypb.Empty))	}	return interceptor(ctx, in, info, handler)}func _Partner_GetPartnerLookNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(emptypb.Empty)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).GetPartnerLookNum(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/GetPartnerLookNum",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).GetPartnerLookNum(ctx, req.(*emptypb.Empty))	}	return interceptor(ctx, in, info, handler)}func _Partner_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(common.SendPhoneCodeRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).SendPhoneCode(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/SendPhoneCode",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).SendPhoneCode(ctx, req.(*common.SendPhoneCodeRequest))	}	return interceptor(ctx, in, info, handler)}func _Partner_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(common.CheckPhoneCodeRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).CheckPhoneCode(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/CheckPhoneCode",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).CheckPhoneCode(ctx, req.(*common.CheckPhoneCodeRequest))	}	return interceptor(ctx, in, info, handler)}func _Partner_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(common.PartnerIDParam)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).GetPartnerCircleInfo(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/GetPartnerCircleInfo",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).GetPartnerCircleInfo(ctx, req.(*common.PartnerIDParam))	}	return interceptor(ctx, in, info, handler)}func _Partner_UpdatePartnerInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(UpdatePartnerInformationRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).UpdatePartnerInformation(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/UpdatePartnerInformation",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).UpdatePartnerInformation(ctx, req.(*UpdatePartnerInformationRequest))	}	return interceptor(ctx, in, info, handler)}func _Partner_GetRandomPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(GetRandomPartnerRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).GetRandomPartnerInfo(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/GetRandomPartnerInfo",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).GetRandomPartnerInfo(ctx, req.(*GetRandomPartnerRequest))	}	return interceptor(ctx, in, info, handler)}func _Partner_PartnerGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(common.PersonParam)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).PartnerGetHomeInfo(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/PartnerGetHomeInfo",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).PartnerGetHomeInfo(ctx, req.(*common.PersonParam))	}	return interceptor(ctx, in, info, handler)}func _Partner_FindLookList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(common.ListPageRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).FindLookList(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/FindLookList",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).FindLookList(ctx, req.(*common.ListPageRequest))	}	return interceptor(ctx, in, info, handler)}func _Partner_FindPartnerDBList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(common.PersonIDList)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(PartnerServer).FindPartnerDBList(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.partner.Partner/FindPartnerDBList",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(PartnerServer).FindPartnerDBList(ctx, req.(*common.PersonIDList))	}	return interceptor(ctx, in, info, handler)}// Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)var Partner_ServiceDesc = grpc.ServiceDesc{	ServiceName: "api.partner.Partner",	HandlerType: (*PartnerServer)(nil),	Methods: []grpc.MethodDesc{		{			MethodName: "GetPartnerInfo",			Handler:    _Partner_GetPartnerInfo_Handler,		},		{			MethodName: "GetPartnerLookNum",			Handler:    _Partner_GetPartnerLookNum_Handler,		},		{			MethodName: "SendPhoneCode",			Handler:    _Partner_SendPhoneCode_Handler,		},		{			MethodName: "CheckPhoneCode",			Handler:    _Partner_CheckPhoneCode_Handler,		},		{			MethodName: "GetPartnerCircleInfo",			Handler:    _Partner_GetPartnerCircleInfo_Handler,		},		{			MethodName: "UpdatePartnerInformation",			Handler:    _Partner_UpdatePartnerInformation_Handler,		},		{			MethodName: "GetRandomPartnerInfo",			Handler:    _Partner_GetRandomPartnerInfo_Handler,		},		{			MethodName: "PartnerGetHomeInfo",			Handler:    _Partner_PartnerGetHomeInfo_Handler,		},		{			MethodName: "FindLookList",			Handler:    _Partner_FindLookList_Handler,		},		{			MethodName: "FindPartnerDBList",			Handler:    _Partner_FindPartnerDBList_Handler,		},	},	Streams:  []grpc.StreamDesc{},	Metadata: "partner.proto",}
 |