|
|
@@ -176,7 +176,7 @@ type UserClient interface {
|
|
|
// 好友访问提醒
|
|
|
SendNewVisitorTemplateReminder(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 用户已读
|
|
|
- UserRead(ctx context.Context, in *UserReadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
+ UserRead(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
}
|
|
|
|
|
|
type userClient struct {
|
|
|
@@ -862,7 +862,7 @@ func (c *userClient) SendNewVisitorTemplateReminder(ctx context.Context, in *com
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *userClient) UserRead(ctx context.Context, in *UserReadRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
+func (c *userClient) UserRead(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.user.User/UserRead", in, out, opts...)
|
|
|
if err != nil {
|
|
|
@@ -1029,7 +1029,7 @@ type UserServer interface {
|
|
|
// 好友访问提醒
|
|
|
SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
// 用户已读
|
|
|
- UserRead(context.Context, *UserReadRequest) (*emptypb.Empty, error)
|
|
|
+ UserRead(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
|
|
|
mustEmbedUnimplementedUserServer()
|
|
|
}
|
|
|
|
|
|
@@ -1262,7 +1262,7 @@ func (UnimplementedUserServer) SendNewMessageUnreadReminder(context.Context, *Se
|
|
|
func (UnimplementedUserServer) SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SendNewVisitorTemplateReminder not implemented")
|
|
|
}
|
|
|
-func (UnimplementedUserServer) UserRead(context.Context, *UserReadRequest) (*emptypb.Empty, error) {
|
|
|
+func (UnimplementedUserServer) UserRead(context.Context, *common.PersonIDParam) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UserRead not implemented")
|
|
|
}
|
|
|
func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
|
|
|
@@ -2629,7 +2629,7 @@ func _User_SendNewVisitorTemplateReminder_Handler(srv interface{}, ctx context.C
|
|
|
}
|
|
|
|
|
|
func _User_UserRead_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(UserReadRequest)
|
|
|
+ in := new(common.PersonIDParam)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -2641,7 +2641,7 @@ func _User_UserRead_Handler(srv interface{}, ctx context.Context, dec func(inter
|
|
|
FullMethod: "/api.user.User/UserRead",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(UserServer).UserRead(ctx, req.(*UserReadRequest))
|
|
|
+ return srv.(UserServer).UserRead(ctx, req.(*common.PersonIDParam))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|