|
@@ -64,7 +64,7 @@ type ChatClient interface {
|
|
|
// 回复小纸条
|
|
// 回复小纸条
|
|
|
PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error)
|
|
PersonReplyScrip(ctx context.Context, in *common.ReplyScripRequest, opts ...grpc.CallOption) (*common.ChatRecordInfo, error)
|
|
|
// 获取假弹窗
|
|
// 获取假弹窗
|
|
|
- GetWindowInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*WindowInfo, error)
|
|
|
|
|
|
|
+ GetWindowInfo(ctx context.Context, in *GetWindowInfoRequest, opts ...grpc.CallOption) (*WindowInfo, error)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type chatClient struct {
|
|
type chatClient struct {
|
|
@@ -273,7 +273,7 @@ func (c *chatClient) PersonReplyScrip(ctx context.Context, in *common.ReplyScrip
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-func (c *chatClient) GetWindowInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*WindowInfo, error) {
|
|
|
|
|
|
|
+func (c *chatClient) GetWindowInfo(ctx context.Context, in *GetWindowInfoRequest, opts ...grpc.CallOption) (*WindowInfo, error) {
|
|
|
out := new(WindowInfo)
|
|
out := new(WindowInfo)
|
|
|
err := c.cc.Invoke(ctx, "/api.chat.Chat/GetWindowInfo", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/api.chat.Chat/GetWindowInfo", in, out, opts...)
|
|
|
if err != nil {
|
|
if err != nil {
|
|
@@ -330,7 +330,7 @@ type ChatServer interface {
|
|
|
// 回复小纸条
|
|
// 回复小纸条
|
|
|
PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error)
|
|
PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error)
|
|
|
// 获取假弹窗
|
|
// 获取假弹窗
|
|
|
- GetWindowInfo(context.Context, *common.PersonParam) (*WindowInfo, error)
|
|
|
|
|
|
|
+ GetWindowInfo(context.Context, *GetWindowInfoRequest) (*WindowInfo, error)
|
|
|
mustEmbedUnimplementedChatServer()
|
|
mustEmbedUnimplementedChatServer()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -404,7 +404,7 @@ func (UnimplementedChatServer) PersonClickLookBack(context.Context, *common.Pers
|
|
|
func (UnimplementedChatServer) PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error) {
|
|
func (UnimplementedChatServer) PersonReplyScrip(context.Context, *common.ReplyScripRequest) (*common.ChatRecordInfo, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method PersonReplyScrip not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method PersonReplyScrip not implemented")
|
|
|
}
|
|
}
|
|
|
-func (UnimplementedChatServer) GetWindowInfo(context.Context, *common.PersonParam) (*WindowInfo, error) {
|
|
|
|
|
|
|
+func (UnimplementedChatServer) GetWindowInfo(context.Context, *GetWindowInfoRequest) (*WindowInfo, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetWindowInfo not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetWindowInfo not implemented")
|
|
|
}
|
|
}
|
|
|
func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
|
|
func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
|
|
@@ -817,7 +817,7 @@ func _Chat_PersonReplyScrip_Handler(srv interface{}, ctx context.Context, dec fu
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(common.PersonParam)
|
|
|
|
|
|
|
+ in := new(GetWindowInfoRequest)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
return nil, err
|
|
|
}
|
|
}
|
|
@@ -829,7 +829,7 @@ func _Chat_GetWindowInfo_Handler(srv interface{}, ctx context.Context, dec func(
|
|
|
FullMethod: "/api.chat.Chat/GetWindowInfo",
|
|
FullMethod: "/api.chat.Chat/GetWindowInfo",
|
|
|
}
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ChatServer).GetWindowInfo(ctx, req.(*common.PersonParam))
|
|
|
|
|
|
|
+ return srv.(ChatServer).GetWindowInfo(ctx, req.(*GetWindowInfoRequest))
|
|
|
}
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|