wfz 3 роки тому
батько
коміт
02fb98a9f4

+ 87 - 75
api/user/user.pb.go

@@ -1255,7 +1255,7 @@ var file_user_proto_rawDesc = []byte{
 	0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75,
 	0x73, 0x22, 0x2a, 0x0a, 0x10, 0x50, 0x61, 0x79, 0x43, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b,
 	0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18,
-	0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 0xbf, 0x25,
+	0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 0xd0, 0x26,
 	0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x7e, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
 	0x55, 0x73, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
 	0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x55, 0x70, 0x64,
@@ -1555,12 +1555,21 @@ var file_user_proto_rawDesc = []byte{
 	0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x46, 0x69,
 	0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
 	0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
-	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x44, 0x42, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42,
-	0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f, 0x67,
-	0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65,
-	0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
-	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62, 0x06,
-	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x44, 0x42, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12,
+	0x8e, 0x01, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
+	0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x28, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x63, 0x6f, 0x6d,
+	0x6d, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
+	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
+	0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x73,
+	0x6f, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x23, 0x82, 0xd3, 0xe4,
+	0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6c,
+	0x69, 0x73, 0x74, 0x2f, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x64, 0x3a, 0x01, 0x2a,
+	0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x2f,
+	0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
+	0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+	0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x62,
+	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -1615,27 +1624,28 @@ var file_user_proto_goTypes = []interface{}{
 	(*common.RoomIDRequest)(nil),                     // 35: api.common.RoomIDRequest
 	(*common.ReportChatRequest)(nil),                 // 36: api.common.ReportChatRequest
 	(*common.FindRecommendRequest)(nil),              // 37: api.common.FindRecommendRequest
-	(*common.PersonMsg)(nil),                         // 38: api.common.PersonMsg
-	(*chat.CheckUserPartnerIsRelationshipReply)(nil), // 39: api.chat.CheckUserPartnerIsRelationshipReply
-	(*chat.RoomReply)(nil),                           // 40: api.chat.RoomReply
-	(*common.AddFriendMessageInfo)(nil),              // 41: api.common.AddFriendMessageInfo
-	(*common.HomeInfo)(nil),                          // 42: api.common.HomeInfo
-	(*common.PersonDBReply)(nil),                     // 43: api.common.PersonDBReply
-	(*statistics.LookAndLikeListReply)(nil),          // 44: api.statistics.LookAndLikeListReply
-	(*statistics.LookAndLikeMessageReply)(nil),       // 45: api.statistics.LookAndLikeMessageReply
-	(*common.WxConfResponse)(nil),                    // 46: api.common.WxConfResponse
-	(*common.TagListReply)(nil),                      // 47: api.common.TagListReply
-	(*common.RecommendPersonListReply)(nil),          // 48: api.common.RecommendPersonListReply
-	(*common.LookedAndLikedNum)(nil),                 // 49: api.common.LookedAndLikedNum
-	(*statistics.LookMessageReply)(nil),              // 50: api.statistics.LookMessageReply
-	(*common.ChatRecordListReply)(nil),               // 51: api.common.ChatRecordListReply
-	(*common.ChatRoomMsg)(nil),                       // 52: api.common.ChatRoomMsg
-	(*common.IsLike)(nil),                            // 53: api.common.IsLike
-	(*common.ChatCardInfo)(nil),                      // 54: api.common.ChatCardInfo
-	(*common.MemeList)(nil),                          // 55: api.common.MemeList
-	(*common.ChatTopicList)(nil),                     // 56: api.common.ChatTopicList
-	(*common.CommonTextList)(nil),                    // 57: api.common.CommonTextList
-	(*common.MemeTitleList)(nil),                     // 58: api.common.MemeTitleList
+	(*chat.FindRecommendPersonListRequest)(nil),      // 38: api.chat.FindRecommendPersonListRequest
+	(*common.PersonMsg)(nil),                         // 39: api.common.PersonMsg
+	(*chat.CheckUserPartnerIsRelationshipReply)(nil), // 40: api.chat.CheckUserPartnerIsRelationshipReply
+	(*chat.RoomReply)(nil),                           // 41: api.chat.RoomReply
+	(*common.AddFriendMessageInfo)(nil),              // 42: api.common.AddFriendMessageInfo
+	(*common.HomeInfo)(nil),                          // 43: api.common.HomeInfo
+	(*common.PersonDBReply)(nil),                     // 44: api.common.PersonDBReply
+	(*statistics.LookAndLikeListReply)(nil),          // 45: api.statistics.LookAndLikeListReply
+	(*statistics.LookAndLikeMessageReply)(nil),       // 46: api.statistics.LookAndLikeMessageReply
+	(*common.WxConfResponse)(nil),                    // 47: api.common.WxConfResponse
+	(*common.TagListReply)(nil),                      // 48: api.common.TagListReply
+	(*common.RecommendPersonListReply)(nil),          // 49: api.common.RecommendPersonListReply
+	(*common.LookedAndLikedNum)(nil),                 // 50: api.common.LookedAndLikedNum
+	(*statistics.LookMessageReply)(nil),              // 51: api.statistics.LookMessageReply
+	(*common.ChatRecordListReply)(nil),               // 52: api.common.ChatRecordListReply
+	(*common.ChatRoomMsg)(nil),                       // 53: api.common.ChatRoomMsg
+	(*common.IsLike)(nil),                            // 54: api.common.IsLike
+	(*common.ChatCardInfo)(nil),                      // 55: api.common.ChatCardInfo
+	(*common.MemeList)(nil),                          // 56: api.common.MemeList
+	(*common.ChatTopicList)(nil),                     // 57: api.common.ChatTopicList
+	(*common.CommonTextList)(nil),                    // 58: api.common.CommonTextList
+	(*common.MemeTitleList)(nil),                     // 59: api.common.MemeTitleList
 }
 var file_user_proto_depIdxs = []int32{
 	2,  // 0: api.user.RechargeList.list:type_name -> api.user.RechargeInfo
@@ -1687,53 +1697,55 @@ var file_user_proto_depIdxs = []int32{
 	13, // 46: api.user.User.FindPayList:input_type -> api.user.FindPayOrderListRequest
 	36, // 47: api.user.User.Report:input_type -> api.common.ReportChatRequest
 	37, // 48: api.user.User.FindRecommendUserDBList:input_type -> api.common.FindRecommendRequest
-	17, // 49: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
-	7,  // 50: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
-	38, // 51: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
-	17, // 52: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
-	17, // 53: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
-	39, // 54: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	40, // 55: api.user.User.CreateUserPersonRoom:output_type -> api.chat.RoomReply
-	41, // 56: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	42, // 57: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
-	43, // 58: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
-	44, // 59: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	44, // 60: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
-	44, // 61: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
-	45, // 62: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
-	46, // 63: api.user.User.WxConf:output_type -> api.common.WxConfResponse
-	47, // 64: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
-	48, // 65: api.user.User.FindOnlineList:output_type -> api.common.RecommendPersonListReply
-	5,  // 66: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	5,  // 67: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
-	49, // 68: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	4,  // 69: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
-	50, // 70: api.user.User.GetUserLookNum:output_type -> api.statistics.LookMessageReply
-	51, // 71: api.user.User.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	52, // 72: api.user.User.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	53, // 73: api.user.User.GetUserIsLike:output_type -> api.common.IsLike
-	17, // 74: api.user.User.UserFinishInformation:output_type -> google.protobuf.Empty
-	3,  // 75: api.user.User.UserInformationStatus:output_type -> api.user.InformationStatus
-	17, // 76: api.user.User.UserGetInformationAward:output_type -> google.protobuf.Empty
-	54, // 77: api.user.User.UserGetChatCard:output_type -> api.common.ChatCardInfo
-	17, // 78: api.user.User.UserLike:output_type -> google.protobuf.Empty
-	17, // 79: api.user.User.UserUnLike:output_type -> google.protobuf.Empty
-	17, // 80: api.user.User.UnlockLookRecord:output_type -> google.protobuf.Empty
-	17, // 81: api.user.User.SendMsgReduceCredit:output_type -> google.protobuf.Empty
-	55, // 82: api.user.User.FindMemeByType:output_type -> api.common.MemeList
-	56, // 83: api.user.User.FindChatTopic:output_type -> api.common.ChatTopicList
-	57, // 84: api.user.User.RandomMeme:output_type -> api.common.CommonTextList
-	57, // 85: api.user.User.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	58, // 86: api.user.User.FindMemeTitle:output_type -> api.common.MemeTitleList
-	17, // 87: api.user.User.UserSetBlackChat:output_type -> google.protobuf.Empty
-	58, // 88: api.user.User.FindChatTopicTitle:output_type -> api.common.MemeTitleList
-	10, // 89: api.user.User.UserRecharge:output_type -> api.user.PayInfo
-	1,  // 90: api.user.User.FindRechargeList:output_type -> api.user.RechargeList
-	12, // 91: api.user.User.FindPayList:output_type -> api.user.PayOrderList
-	17, // 92: api.user.User.Report:output_type -> google.protobuf.Empty
-	43, // 93: api.user.User.FindRecommendUserDBList:output_type -> api.common.PersonDBReply
-	49, // [49:94] is the sub-list for method output_type
-	4,  // [4:49] is the sub-list for method input_type
+	38, // 49: api.user.User.FindRecommendPersonList:input_type -> api.chat.FindRecommendPersonListRequest
+	17, // 50: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
+	7,  // 51: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
+	39, // 52: api.user.User.GetUserDBMsg:output_type -> api.common.PersonMsg
+	17, // 53: api.user.User.SendPhoneCode:output_type -> google.protobuf.Empty
+	17, // 54: api.user.User.CheckPhoneCode:output_type -> google.protobuf.Empty
+	40, // 55: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	41, // 56: api.user.User.CreateUserPersonRoom:output_type -> api.chat.RoomReply
+	42, // 57: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	43, // 58: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
+	44, // 59: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
+	45, // 60: api.user.User.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	45, // 61: api.user.User.FindLikeList:output_type -> api.statistics.LookAndLikeListReply
+	45, // 62: api.user.User.FindLikedList:output_type -> api.statistics.LookAndLikeListReply
+	46, // 63: api.user.User.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
+	47, // 64: api.user.User.WxConf:output_type -> api.common.WxConfResponse
+	48, // 65: api.user.User.FindTagListBySex:output_type -> api.common.TagListReply
+	49, // 66: api.user.User.FindOnlineList:output_type -> api.common.RecommendPersonListReply
+	5,  // 67: api.user.User.FindWithinSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	5,  // 68: api.user.User.FindOverSevenDayRoomList:output_type -> api.user.UserFindChatListReply
+	50, // 69: api.user.User.UserGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	4,  // 70: api.user.User.GetUserBalance:output_type -> api.user.UserBalance
+	51, // 71: api.user.User.GetUserLookNum:output_type -> api.statistics.LookMessageReply
+	52, // 72: api.user.User.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	53, // 73: api.user.User.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	54, // 74: api.user.User.GetUserIsLike:output_type -> api.common.IsLike
+	17, // 75: api.user.User.UserFinishInformation:output_type -> google.protobuf.Empty
+	3,  // 76: api.user.User.UserInformationStatus:output_type -> api.user.InformationStatus
+	17, // 77: api.user.User.UserGetInformationAward:output_type -> google.protobuf.Empty
+	55, // 78: api.user.User.UserGetChatCard:output_type -> api.common.ChatCardInfo
+	17, // 79: api.user.User.UserLike:output_type -> google.protobuf.Empty
+	17, // 80: api.user.User.UserUnLike:output_type -> google.protobuf.Empty
+	17, // 81: api.user.User.UnlockLookRecord:output_type -> google.protobuf.Empty
+	17, // 82: api.user.User.SendMsgReduceCredit:output_type -> google.protobuf.Empty
+	56, // 83: api.user.User.FindMemeByType:output_type -> api.common.MemeList
+	57, // 84: api.user.User.FindChatTopic:output_type -> api.common.ChatTopicList
+	58, // 85: api.user.User.RandomMeme:output_type -> api.common.CommonTextList
+	58, // 86: api.user.User.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	59, // 87: api.user.User.FindMemeTitle:output_type -> api.common.MemeTitleList
+	17, // 88: api.user.User.UserSetBlackChat:output_type -> google.protobuf.Empty
+	59, // 89: api.user.User.FindChatTopicTitle:output_type -> api.common.MemeTitleList
+	10, // 90: api.user.User.UserRecharge:output_type -> api.user.PayInfo
+	1,  // 91: api.user.User.FindRechargeList:output_type -> api.user.RechargeList
+	12, // 92: api.user.User.FindPayList:output_type -> api.user.PayOrderList
+	17, // 93: api.user.User.Report:output_type -> google.protobuf.Empty
+	44, // 94: api.user.User.FindRecommendUserDBList:output_type -> api.common.PersonDBReply
+	49, // 95: api.user.User.FindRecommendPersonList:output_type -> api.common.RecommendPersonListReply
+	50, // [50:96] is the sub-list for method output_type
+	4,  // [4:50] is the sub-list for method input_type
 	4,  // [4:4] is the sub-list for extension type_name
 	4,  // [4:4] is the sub-list for extension extendee
 	0,  // [0:4] is the sub-list for field type_name

+ 7 - 0
api/user/user.proto

@@ -310,6 +310,13 @@ service User {
   };
   // 查询推荐用户的数据
   rpc FindRecommendUserDBList (common.FindRecommendRequest) returns (common.PersonDBReply){};
+  // 查询推荐人的列表
+  rpc FindRecommendPersonList (chat.FindRecommendPersonListRequest) returns (common.RecommendPersonListReply){
+    option (google.api.http) = {
+      post: "/api/user/list/recommend",
+      body:"*"
+    };
+  };
 }
 
 message UserRechargeRequest{

+ 38 - 0
api/user/user_grpc.pb.go

@@ -111,6 +111,8 @@ type UserClient interface {
 	Report(ctx context.Context, in *common.ReportChatRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 查询推荐用户的数据
 	FindRecommendUserDBList(ctx context.Context, in *common.FindRecommendRequest, opts ...grpc.CallOption) (*common.PersonDBReply, error)
+	// 查询推荐人的列表
+	FindRecommendPersonList(ctx context.Context, in *chat.FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error)
 }
 
 type userClient struct {
@@ -526,6 +528,15 @@ func (c *userClient) FindRecommendUserDBList(ctx context.Context, in *common.Fin
 	return out, nil
 }
 
+func (c *userClient) FindRecommendPersonList(ctx context.Context, in *chat.FindRecommendPersonListRequest, opts ...grpc.CallOption) (*common.RecommendPersonListReply, error) {
+	out := new(common.RecommendPersonListReply)
+	err := c.cc.Invoke(ctx, "/api.user.User/FindRecommendPersonList", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // UserServer is the server API for User service.
 // All implementations must embed UnimplementedUserServer
 // for forward compatibility
@@ -619,6 +630,8 @@ type UserServer interface {
 	Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
 	// 查询推荐用户的数据
 	FindRecommendUserDBList(context.Context, *common.FindRecommendRequest) (*common.PersonDBReply, error)
+	// 查询推荐人的列表
+	FindRecommendPersonList(context.Context, *chat.FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error)
 	mustEmbedUnimplementedUserServer()
 }
 
@@ -761,6 +774,9 @@ func (UnimplementedUserServer) Report(context.Context, *common.ReportChatRequest
 func (UnimplementedUserServer) FindRecommendUserDBList(context.Context, *common.FindRecommendRequest) (*common.PersonDBReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method FindRecommendUserDBList not implemented")
 }
+func (UnimplementedUserServer) FindRecommendPersonList(context.Context, *chat.FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindRecommendPersonList not implemented")
+}
 func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
 
 // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
@@ -1584,6 +1600,24 @@ func _User_FindRecommendUserDBList_Handler(srv interface{}, ctx context.Context,
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_FindRecommendPersonList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(chat.FindRecommendPersonListRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).FindRecommendPersonList(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/FindRecommendPersonList",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).FindRecommendPersonList(ctx, req.(*chat.FindRecommendPersonListRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // User_ServiceDesc is the grpc.ServiceDesc for User service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1771,6 +1805,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "FindRecommendUserDBList",
 			Handler:    _User_FindRecommendUserDBList_Handler,
 		},
+		{
+			MethodName: "FindRecommendPersonList",
+			Handler:    _User_FindRecommendPersonList_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "user.proto",

+ 43 - 0
api/user/user_http.pb.go

@@ -46,6 +46,7 @@ type UserHTTPServer interface {
 	FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
 	FindPayList(context.Context, *FindPayOrderListRequest) (*PayOrderList, error)
 	FindRechargeList(context.Context, *emptypb.Empty) (*RechargeList, error)
+	FindRecommendPersonList(context.Context, *chat.FindRecommendPersonListRequest) (*common.RecommendPersonListReply, error)
 	FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
 	FindWithinSevenDayRoomList(context.Context, *common.ListPageRequest) (*UserFindChatListReply, error)
 	GetLookAndLikeStatisticsMessage(context.Context, *emptypb.Empty) (*statistics.LookAndLikeMessageReply, error)
@@ -116,6 +117,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
 	r.POST("/api/user/recharge/list", _User_FindRechargeList0_HTTP_Handler(srv))
 	r.POST("/api/user/pay/list", _User_FindPayList0_HTTP_Handler(srv))
 	r.POST("/api/user/report", _User_Report0_HTTP_Handler(srv))
+	r.POST("/api/user/list/recommend", _User_FindRecommendPersonList0_HTTP_Handler(srv))
 }
 
 func _User_UpdateUserInformation0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
@@ -1225,6 +1227,33 @@ func _User_Report0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error
 	}
 }
 
+func _User_FindRecommendPersonList0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in chat.FindRecommendPersonListRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.user.User/FindRecommendPersonList")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.FindRecommendPersonList(ctx, req.(*chat.FindRecommendPersonListRequest))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
 type UserHTTPClient interface {
 	CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CheckUserPartnerIsRelationship(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
@@ -1242,6 +1271,7 @@ type UserHTTPClient interface {
 	FindOverSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *UserFindChatListReply, err error)
 	FindPayList(ctx context.Context, req *FindPayOrderListRequest, opts ...http.CallOption) (rsp *PayOrderList, err error)
 	FindRechargeList(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *RechargeList, err error)
+	FindRecommendPersonList(ctx context.Context, req *chat.FindRecommendPersonListRequest, opts ...http.CallOption) (rsp *common.RecommendPersonListReply, err error)
 	FindTagListBySex(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *common.TagListReply, err error)
 	FindWithinSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *UserFindChatListReply, err error)
 	GetLookAndLikeStatisticsMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *statistics.LookAndLikeMessageReply, err error)
@@ -1485,6 +1515,19 @@ func (c *UserHTTPClientImpl) FindRechargeList(ctx context.Context, in *emptypb.E
 	return &out, err
 }
 
+func (c *UserHTTPClientImpl) FindRecommendPersonList(ctx context.Context, in *chat.FindRecommendPersonListRequest, opts ...http.CallOption) (*common.RecommendPersonListReply, error) {
+	var out common.RecommendPersonListReply
+	pattern := "/api/user/list/recommend"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.user.User/FindRecommendPersonList"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *UserHTTPClientImpl) FindTagListBySex(ctx context.Context, in *common.SexReq, opts ...http.CallOption) (*common.TagListReply, error) {
 	var out common.TagListReply
 	pattern := "/api/user/list/tag"

+ 6 - 1
js/api/user/user_http_pb.ts

@@ -2,7 +2,7 @@
 import request from '@/libs/request';
 import {UpdateInformationRequest,PersonIDParam,PersonMsg,SendPhoneCodeRequest,CheckPhoneCodeRequest,PartnerIDParam,CreateChatRoomParam,AddFriendMessageInfo,PersonParam,HomeInfo,PersonIDList,PersonDBReply,ListPageRequest,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,RecommendPersonListReply,LookedAndLikedNum,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,ChatCardInfo,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,RoomIDRequest,ReportChatRequest,FindRecommendRequest} from "../common/common_pb";
 import {UserInfo,KeyRequest,UserFindChatListReply,UserBalance,InformationStatus,UserRechargeRequest,PayInfo,RechargeList,FindPayOrderListRequest,PayOrderList} from "./user_pb";
-import {CheckUserPartnerIsRelationshipReply,RoomReply} from "../chat/chat_pb";
+import {CheckUserPartnerIsRelationshipReply,RoomReply,FindRecommendPersonListRequest} from "../chat/chat_pb";
 import {LookAndLikeListReply,LookAndLikeMessageReply,LookMessageReply} from "../statistics/statistics_pb";
 
 const UserService = {
@@ -211,6 +211,11 @@ const UserService = {
 	const res = await request.post('/api/user/report', req);
     return res.data.data;
   },
+  /**  查询推荐人的列表 */
+  FindRecommendPersonList: async (req?: FindRecommendPersonListRequest) => {
+	const res = await request.post<{ data: RecommendPersonListReply, code: string, message: string }>('/api/user/list/recommend', req);
+    return res.data.data;
+  },
 
 };