|
|
@@ -84,7 +84,7 @@ type PartnerClient interface {
|
|
|
// 表情包分类名
|
|
|
FindMemeTitle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.MemeTitleList, error)
|
|
|
// 接待员获取聊天对象的资料卡片
|
|
|
- PartnerGetChatCard(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ChatCardInfo, error)
|
|
|
+ PartnerGetChatCard(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.PartnerChatCardInfo, error)
|
|
|
// 聊天话题分类名
|
|
|
FindChatTopicTitle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.MemeTitleList, error)
|
|
|
// 接待员关注某人
|
|
|
@@ -95,6 +95,8 @@ type PartnerClient interface {
|
|
|
Report(ctx context.Context, in *common.ReportChatRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 拉黑某人
|
|
|
PartnerSetBlackChat(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
+ // 接待员领取开通奖励
|
|
|
+ PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
|
|
|
|
type partnerClient struct {
|
|
|
@@ -393,8 +395,8 @@ func (c *partnerClient) FindMemeTitle(ctx context.Context, in *emptypb.Empty, op
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *partnerClient) PartnerGetChatCard(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ChatCardInfo, error) {
|
|
|
- out := new(common.ChatCardInfo)
|
|
|
+func (c *partnerClient) PartnerGetChatCard(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.PartnerChatCardInfo, error) {
|
|
|
+ out := new(common.PartnerChatCardInfo)
|
|
|
err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerGetChatCard", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
@@ -447,6 +449,15 @@ func (c *partnerClient) PartnerSetBlackChat(ctx context.Context, in *common.Room
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *partnerClient) PartnerGetAward(ctx context.Context, in *PartnerGetAwardRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+ out := new(emptypb.Empty)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerGetAward", 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 compatibility
|
|
|
@@ -513,7 +524,7 @@ type PartnerServer interface {
|
|
|
// 表情包分类名
|
|
|
FindMemeTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
|
|
|
// 接待员获取聊天对象的资料卡片
|
|
|
- PartnerGetChatCard(context.Context, *common.PersonParam) (*common.ChatCardInfo, error)
|
|
|
+ PartnerGetChatCard(context.Context, *common.PersonParam) (*common.PartnerChatCardInfo, error)
|
|
|
// 聊天话题分类名
|
|
|
FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
|
|
|
// 接待员关注某人
|
|
|
@@ -524,6 +535,8 @@ type PartnerServer interface {
|
|
|
Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
|
|
|
// 拉黑某人
|
|
|
PartnerSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
|
|
|
+ // 接待员领取开通奖励
|
|
|
+ PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*emptypb.Empty, error)
|
|
|
mustEmbedUnimplementedPartnerServer()
|
|
|
}
|
|
|
|
|
|
@@ -627,7 +640,7 @@ func (UnimplementedPartnerServer) RandomSwiftMessage(context.Context, *common.Ra
|
|
|
func (UnimplementedPartnerServer) FindMemeTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindMemeTitle not implemented")
|
|
|
}
|
|
|
-func (UnimplementedPartnerServer) PartnerGetChatCard(context.Context, *common.PersonParam) (*common.ChatCardInfo, error) {
|
|
|
+func (UnimplementedPartnerServer) PartnerGetChatCard(context.Context, *common.PersonParam) (*common.PartnerChatCardInfo, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method PartnerGetChatCard not implemented")
|
|
|
}
|
|
|
func (UnimplementedPartnerServer) FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error) {
|
|
|
@@ -645,6 +658,9 @@ func (UnimplementedPartnerServer) Report(context.Context, *common.ReportChatRequ
|
|
|
func (UnimplementedPartnerServer) PartnerSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method PartnerSetBlackChat not implemented")
|
|
|
}
|
|
|
+func (UnimplementedPartnerServer) PartnerGetAward(context.Context, *PartnerGetAwardRequest) (*emptypb.Empty, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method PartnerGetAward not implemented")
|
|
|
+}
|
|
|
func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
|
|
|
|
|
|
// UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
|
|
|
@@ -1342,6 +1358,24 @@ func _Partner_PartnerSetBlackChat_Handler(srv interface{}, ctx context.Context,
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Partner_PartnerGetAward_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(PartnerGetAwardRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(PartnerServer).PartnerGetAward(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.partner.Partner/PartnerGetAward",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(PartnerServer).PartnerGetAward(ctx, req.(*PartnerGetAwardRequest))
|
|
|
+ }
|
|
|
+ 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)
|
|
|
@@ -1501,6 +1535,10 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "PartnerSetBlackChat",
|
|
|
Handler: _Partner_PartnerSetBlackChat_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "PartnerGetAward",
|
|
|
+ Handler: _Partner_PartnerGetAward_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "partner.proto",
|