|
@@ -89,6 +89,8 @@ type ChatClient interface {
|
|
|
// rpc FindPartnerAllUnreadNum (common.PersonIDParam) returns (UnreadNumReply){};
|
|
// rpc FindPartnerAllUnreadNum (common.PersonIDParam) returns (UnreadNumReply){};
|
|
|
// 用户查询与某人的房间
|
|
// 用户查询与某人的房间
|
|
|
GetUserRoomByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserRoomInfo, error)
|
|
GetUserRoomByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserRoomInfo, error)
|
|
|
|
|
+ // 用户查询对某人是否是超级喜欢
|
|
|
|
|
+ GetSuperLoveByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserSuperLoveInfo, error)
|
|
|
// // 接待员查询与某人的房间
|
|
// // 接待员查询与某人的房间
|
|
|
// rpc GetPartnerRoomByPerson (common.UserIDsParam) returns (PartnerRoomInfo){};
|
|
// rpc GetPartnerRoomByPerson (common.UserIDsParam) returns (PartnerRoomInfo){};
|
|
|
// 管理员查询房间列表
|
|
// 管理员查询房间列表
|
|
@@ -418,6 +420,15 @@ func (c *chatClient) GetUserRoomByPerson(ctx context.Context, in *common.UserIDs
|
|
|
return out, nil
|
|
return out, nil
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (c *chatClient) GetSuperLoveByPerson(ctx context.Context, in *common.UserIDsParam, opts ...grpc.CallOption) (*UserSuperLoveInfo, error) {
|
|
|
|
|
+ out := new(UserSuperLoveInfo)
|
|
|
|
|
+ err := c.cc.Invoke(ctx, "/api.chat.Chat/GetSuperLoveByPerson", in, out, opts...)
|
|
|
|
|
+ if err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ return out, nil
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (c *chatClient) ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error) {
|
|
func (c *chatClient) ManagerFindRoomList(ctx context.Context, in *common.ManagerFindRoomListRequest, opts ...grpc.CallOption) (*common.ManagerFindRoomListReply, error) {
|
|
|
out := new(common.ManagerFindRoomListReply)
|
|
out := new(common.ManagerFindRoomListReply)
|
|
|
err := c.cc.Invoke(ctx, "/api.chat.Chat/ManagerFindRoomList", in, out, opts...)
|
|
err := c.cc.Invoke(ctx, "/api.chat.Chat/ManagerFindRoomList", in, out, opts...)
|
|
@@ -581,6 +592,8 @@ type ChatServer interface {
|
|
|
// rpc FindPartnerAllUnreadNum (common.PersonIDParam) returns (UnreadNumReply){};
|
|
// rpc FindPartnerAllUnreadNum (common.PersonIDParam) returns (UnreadNumReply){};
|
|
|
// 用户查询与某人的房间
|
|
// 用户查询与某人的房间
|
|
|
GetUserRoomByPerson(context.Context, *common.UserIDsParam) (*UserRoomInfo, error)
|
|
GetUserRoomByPerson(context.Context, *common.UserIDsParam) (*UserRoomInfo, error)
|
|
|
|
|
+ // 用户查询对某人是否是超级喜欢
|
|
|
|
|
+ GetSuperLoveByPerson(context.Context, *common.UserIDsParam) (*UserSuperLoveInfo, error)
|
|
|
// // 接待员查询与某人的房间
|
|
// // 接待员查询与某人的房间
|
|
|
// rpc GetPartnerRoomByPerson (common.UserIDsParam) returns (PartnerRoomInfo){};
|
|
// rpc GetPartnerRoomByPerson (common.UserIDsParam) returns (PartnerRoomInfo){};
|
|
|
// 管理员查询房间列表
|
|
// 管理员查询房间列表
|
|
@@ -709,6 +722,9 @@ func (UnimplementedChatServer) FindUserAllUnreadNum(context.Context, *common.Per
|
|
|
func (UnimplementedChatServer) GetUserRoomByPerson(context.Context, *common.UserIDsParam) (*UserRoomInfo, error) {
|
|
func (UnimplementedChatServer) GetUserRoomByPerson(context.Context, *common.UserIDsParam) (*UserRoomInfo, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUserRoomByPerson not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUserRoomByPerson not implemented")
|
|
|
}
|
|
}
|
|
|
|
|
+func (UnimplementedChatServer) GetSuperLoveByPerson(context.Context, *common.UserIDsParam) (*UserSuperLoveInfo, error) {
|
|
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetSuperLoveByPerson not implemented")
|
|
|
|
|
+}
|
|
|
func (UnimplementedChatServer) ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error) {
|
|
func (UnimplementedChatServer) ManagerFindRoomList(context.Context, *common.ManagerFindRoomListRequest) (*common.ManagerFindRoomListReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method ManagerFindRoomList not implemented")
|
|
return nil, status.Errorf(codes.Unimplemented, "method ManagerFindRoomList not implemented")
|
|
|
}
|
|
}
|
|
@@ -1346,6 +1362,24 @@ func _Chat_GetUserRoomByPerson_Handler(srv interface{}, ctx context.Context, dec
|
|
|
return interceptor(ctx, in, info, handler)
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func _Chat_GetSuperLoveByPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
+ in := new(common.UserIDsParam)
|
|
|
|
|
+ if err := dec(in); err != nil {
|
|
|
|
|
+ return nil, err
|
|
|
|
|
+ }
|
|
|
|
|
+ if interceptor == nil {
|
|
|
|
|
+ return srv.(ChatServer).GetSuperLoveByPerson(ctx, in)
|
|
|
|
|
+ }
|
|
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
|
|
+ Server: srv,
|
|
|
|
|
+ FullMethod: "/api.chat.Chat/GetSuperLoveByPerson",
|
|
|
|
|
+ }
|
|
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
+ return srv.(ChatServer).GetSuperLoveByPerson(ctx, req.(*common.UserIDsParam))
|
|
|
|
|
+ }
|
|
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func _Chat_ManagerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
func _Chat_ManagerFindRoomList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(common.ManagerFindRoomListRequest)
|
|
in := new(common.ManagerFindRoomListRequest)
|
|
|
if err := dec(in); err != nil {
|
|
if err := dec(in); err != nil {
|
|
@@ -1665,6 +1699,10 @@ var Chat_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetUserRoomByPerson",
|
|
MethodName: "GetUserRoomByPerson",
|
|
|
Handler: _Chat_GetUserRoomByPerson_Handler,
|
|
Handler: _Chat_GetUserRoomByPerson_Handler,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ MethodName: "GetSuperLoveByPerson",
|
|
|
|
|
+ Handler: _Chat_GetSuperLoveByPerson_Handler,
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
MethodName: "ManagerFindRoomList",
|
|
MethodName: "ManagerFindRoomList",
|
|
|
Handler: _Chat_ManagerFindRoomList_Handler,
|
|
Handler: _Chat_ManagerFindRoomList_Handler,
|