Browse Source

获取聊天的信息

wfz 3 years ago
parent
commit
b5429de3da

+ 94 - 51
api/partner/partner.pb.go

@@ -778,7 +778,7 @@ var file_partner_proto_rawDesc = []byte{
 	0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78,
 	0x22, 0x2b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x50, 0x61, 0x72,
 	0x74, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73,
-	0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0xdb, 0x16,
+	0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0x9c, 0x1a,
 	0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x60, 0x0a, 0x0e, 0x47, 0x65, 0x74,
 	0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x2e, 0x67, 0x6f,
 	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
@@ -960,12 +960,40 @@ var file_partner_proto_rawDesc = []byte{
 	0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
 	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x49, 0x73, 0x4c, 0x69, 0x6b, 0x65, 0x22, 0x1e, 0x82, 0xd3, 0xe4,
 	0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65,
-	0x72, 0x2f, 0x69, 0x73, 0x6c, 0x69, 0x6b, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61,
-	0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 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, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74,
-	0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x72, 0x2f, 0x69, 0x73, 0x6c, 0x69, 0x6b, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x67, 0x0a, 0x0e, 0x46,
+	0x69, 0x6e, 0x64, 0x4d, 0x65, 0x6d, 0x65, 0x42, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x6d, 0x65, 0x52,
+	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x6d, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x26, 0x82, 0xd3,
+	0xe4, 0x93, 0x02, 0x20, 0x22, 0x1b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e,
+	0x65, 0x72, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x2f, 0x6d, 0x65, 0x6d, 0x65, 0x2f, 0x74, 0x79, 0x70,
+	0x65, 0x3a, 0x01, 0x2a, 0x12, 0x71, 0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x74,
+	0x54, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
+	0x6f, 0x6e, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x67, 0x65, 0x41, 0x6e, 0x64, 0x53, 0x65,
+	0x78, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
+	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x68, 0x61, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c,
+	0x69, 0x73, 0x74, 0x22, 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x61, 0x70,
+	0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x2f, 0x74,
+	0x6f, 0x70, 0x69, 0x63, 0x3a, 0x01, 0x2a, 0x12, 0x69, 0x0a, 0x0a, 0x52, 0x61, 0x6e, 0x64, 0x6f,
+	0x6d, 0x4d, 0x65, 0x6d, 0x65, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
+	0x6f, 0x6e, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x4e, 0x75, 0x6d, 0x1a, 0x1a, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
+	0x54, 0x65, 0x78, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22,
+	0x22, 0x1d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x66,
+	0x69, 0x6e, 0x64, 0x2f, 0x6d, 0x65, 0x6d, 0x65, 0x2f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x3a,
+	0x01, 0x2a, 0x12, 0x78, 0x0a, 0x12, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x53, 0x77, 0x69, 0x66,
+	0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
+	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x4e, 0x75, 0x6d, 0x41,
+	0x6e, 0x64, 0x53, 0x65, 0x78, 0x1a, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
+	0x6f, 0x6e, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x54, 0x65, 0x78, 0x74, 0x4c, 0x69, 0x73,
+	0x74, 0x22, 0x29, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x23, 0x22, 0x1e, 0x2f, 0x61, 0x70, 0x69, 0x2f,
+	0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x2f, 0x74, 0x6f, 0x70,
+	0x69, 0x63, 0x2f, 0x72, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b,
+	0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 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, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -1005,21 +1033,28 @@ var file_partner_proto_goTypes = []interface{}{
 	(*common.ListPage2Request)(nil),          // 20: api.common.ListPage2Request
 	(*common.FindChatRecordListRequest)(nil), // 21: api.common.FindChatRecordListRequest
 	(*common.FindChatRoomMsgRequest)(nil),    // 22: api.common.FindChatRoomMsgRequest
-	(*common.PersonMsg)(nil),                 // 23: api.common.PersonMsg
-	(*statistics.LookMessageReply)(nil),      // 24: api.statistics.LookMessageReply
-	(*common.AddFriendMessageInfo)(nil),      // 25: api.common.AddFriendMessageInfo
-	(*common.HomeInfo)(nil),                  // 26: api.common.HomeInfo
-	(*common.LookedAndLikedNum)(nil),         // 27: api.common.LookedAndLikedNum
-	(*statistics.LookAndLikeListReply)(nil),  // 28: api.statistics.LookAndLikeListReply
-	(*common.PersonDBReply)(nil),             // 29: api.common.PersonDBReply
-	(*common.WxConfResponse)(nil),            // 30: api.common.WxConfResponse
-	(*chat.RoomReply)(nil),                   // 31: api.chat.RoomReply
-	(*common.TagListReply)(nil),              // 32: api.common.TagListReply
-	(*common.OnlinePersonListReply)(nil),     // 33: api.common.OnlinePersonListReply
-	(*chat.PartnerFindRoomListReply)(nil),    // 34: api.chat.PartnerFindRoomListReply
-	(*common.ChatRecordListReply)(nil),       // 35: api.common.ChatRecordListReply
-	(*common.ChatRoomMsg)(nil),               // 36: api.common.ChatRoomMsg
-	(*common.IsLike)(nil),                    // 37: api.common.IsLike
+	(*common.MemeRequest)(nil),               // 23: api.common.MemeRequest
+	(*common.ListPageAndSexRequest)(nil),     // 24: api.common.ListPageAndSexRequest
+	(*common.RandomNum)(nil),                 // 25: api.common.RandomNum
+	(*common.RandomNumAndSex)(nil),           // 26: api.common.RandomNumAndSex
+	(*common.PersonMsg)(nil),                 // 27: api.common.PersonMsg
+	(*statistics.LookMessageReply)(nil),      // 28: api.statistics.LookMessageReply
+	(*common.AddFriendMessageInfo)(nil),      // 29: api.common.AddFriendMessageInfo
+	(*common.HomeInfo)(nil),                  // 30: api.common.HomeInfo
+	(*common.LookedAndLikedNum)(nil),         // 31: api.common.LookedAndLikedNum
+	(*statistics.LookAndLikeListReply)(nil),  // 32: api.statistics.LookAndLikeListReply
+	(*common.PersonDBReply)(nil),             // 33: api.common.PersonDBReply
+	(*common.WxConfResponse)(nil),            // 34: api.common.WxConfResponse
+	(*chat.RoomReply)(nil),                   // 35: api.chat.RoomReply
+	(*common.TagListReply)(nil),              // 36: api.common.TagListReply
+	(*common.OnlinePersonListReply)(nil),     // 37: api.common.OnlinePersonListReply
+	(*chat.PartnerFindRoomListReply)(nil),    // 38: api.chat.PartnerFindRoomListReply
+	(*common.ChatRecordListReply)(nil),       // 39: api.common.ChatRecordListReply
+	(*common.ChatRoomMsg)(nil),               // 40: api.common.ChatRoomMsg
+	(*common.IsLike)(nil),                    // 41: api.common.IsLike
+	(*common.MemeList)(nil),                  // 42: api.common.MemeList
+	(*common.ChatTopicList)(nil),             // 43: api.common.ChatTopicList
+	(*common.CommonTextList)(nil),            // 44: api.common.CommonTextList
 }
 var file_partner_proto_depIdxs = []int32{
 	1,  // 0: api.partner.LevelTable.list:type_name -> api.partner.LevelInfo
@@ -1050,35 +1085,43 @@ var file_partner_proto_depIdxs = []int32{
 	2,  // 25: api.partner.Partner.AddPartnerBalance:input_type -> api.partner.AddPartnerBalanceRequest
 	9,  // 26: api.partner.Partner.GetLevelBalanceTable:input_type -> google.protobuf.Empty
 	15, // 27: api.partner.Partner.GetPartnerIsLike:input_type -> api.common.PersonParam
-	3,  // 28: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
-	5,  // 29: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
-	6,  // 30: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
-	23, // 31: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
-	4,  // 32: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
-	24, // 33: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
-	9,  // 34: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
-	9,  // 35: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
-	25, // 36: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	9,  // 37: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
-	7,  // 38: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
-	26, // 39: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
-	27, // 40: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	28, // 41: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	29, // 42: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
-	30, // 43: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
-	31, // 44: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
-	32, // 45: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
-	33, // 46: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
-	34, // 47: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	34, // 48: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	34, // 49: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	35, // 50: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	36, // 51: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	9,  // 52: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
-	0,  // 53: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
-	37, // 54: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
-	28, // [28:55] is the sub-list for method output_type
-	1,  // [1:28] is the sub-list for method input_type
+	23, // 28: api.partner.Partner.FindMemeByType:input_type -> api.common.MemeRequest
+	24, // 29: api.partner.Partner.FindChatTopic:input_type -> api.common.ListPageAndSexRequest
+	25, // 30: api.partner.Partner.RandomMeme:input_type -> api.common.RandomNum
+	26, // 31: api.partner.Partner.RandomSwiftMessage:input_type -> api.common.RandomNumAndSex
+	3,  // 32: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	5,  // 33: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
+	6,  // 34: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
+	27, // 35: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
+	4,  // 36: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
+	28, // 37: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
+	9,  // 38: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
+	9,  // 39: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
+	29, // 40: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	9,  // 41: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
+	7,  // 42: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
+	30, // 43: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
+	31, // 44: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	32, // 45: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	33, // 46: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
+	34, // 47: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
+	35, // 48: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
+	36, // 49: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
+	37, // 50: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
+	38, // 51: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	38, // 52: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	38, // 53: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	39, // 54: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	40, // 55: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	9,  // 56: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
+	0,  // 57: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
+	41, // 58: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
+	42, // 59: api.partner.Partner.FindMemeByType:output_type -> api.common.MemeList
+	43, // 60: api.partner.Partner.FindChatTopic:output_type -> api.common.ChatTopicList
+	44, // 61: api.partner.Partner.RandomMeme:output_type -> api.common.CommonTextList
+	44, // 62: api.partner.Partner.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	32, // [32:63] is the sub-list for method output_type
+	1,  // [1:32] is the sub-list for method input_type
 	1,  // [1:1] is the sub-list for extension type_name
 	1,  // [1:1] is the sub-list for extension extendee
 	0,  // [0:1] is the sub-list for field type_name

+ 28 - 0
api/partner/partner.proto

@@ -170,6 +170,34 @@ service Partner {
       body:"*"
     };
   };
+  // 通过类型获取表情包列表
+  rpc FindMemeByType (common.MemeRequest) returns (common.MemeList){
+    option (google.api.http) = {
+      post: "/api/partner/find/meme/type",
+      body:"*"
+    };
+  };
+  // 获取对方性别的聊天话题
+  rpc FindChatTopic (common.ListPageAndSexRequest) returns (common.ChatTopicList){
+    option (google.api.http) = {
+      post: "/api/partner/find/topic",
+      body:"*"
+    };
+  };
+  // 随机表情包
+  rpc RandomMeme (common.RandomNum) returns (common.CommonTextList){
+    option (google.api.http) = {
+      post: "/api/partner/find/meme/random",
+      body:"*"
+    };
+  };
+  // 随机打招呼
+  rpc RandomSwiftMessage (common.RandomNumAndSex) returns (common.CommonTextList){
+    option (google.api.http) = {
+      post: "/api/partner/find/topic/random",
+      body:"*"
+    };
+  };
 }
 
 message LevelTable{

+ 152 - 0
api/partner/partner_grpc.pb.go

@@ -73,6 +73,14 @@ type PartnerClient interface {
 	GetLevelBalanceTable(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*LevelTable, error)
 	// 接待员查询是否关注某人
 	GetPartnerIsLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.IsLike, error)
+	// 通过类型获取表情包列表
+	FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error)
+	// 获取对方性别的聊天话题
+	FindChatTopic(ctx context.Context, in *common.ListPageAndSexRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error)
+	// 随机表情包
+	RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error)
+	// 随机打招呼
+	RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error)
 }
 
 type partnerClient struct {
@@ -326,6 +334,42 @@ func (c *partnerClient) GetPartnerIsLike(ctx context.Context, in *common.PersonP
 	return out, nil
 }
 
+func (c *partnerClient) FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...grpc.CallOption) (*common.MemeList, error) {
+	out := new(common.MemeList)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/FindMemeByType", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) FindChatTopic(ctx context.Context, in *common.ListPageAndSexRequest, opts ...grpc.CallOption) (*common.ChatTopicList, error) {
+	out := new(common.ChatTopicList)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/FindChatTopic", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...grpc.CallOption) (*common.CommonTextList, error) {
+	out := new(common.CommonTextList)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/RandomMeme", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error) {
+	out := new(common.CommonTextList)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/RandomSwiftMessage", 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
@@ -381,6 +425,14 @@ type PartnerServer interface {
 	GetLevelBalanceTable(context.Context, *emptypb.Empty) (*LevelTable, error)
 	// 接待员查询是否关注某人
 	GetPartnerIsLike(context.Context, *common.PersonParam) (*common.IsLike, error)
+	// 通过类型获取表情包列表
+	FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
+	// 获取对方性别的聊天话题
+	FindChatTopic(context.Context, *common.ListPageAndSexRequest) (*common.ChatTopicList, error)
+	// 随机表情包
+	RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
+	// 随机打招呼
+	RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -469,6 +521,18 @@ func (UnimplementedPartnerServer) GetLevelBalanceTable(context.Context, *emptypb
 func (UnimplementedPartnerServer) GetPartnerIsLike(context.Context, *common.PersonParam) (*common.IsLike, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerIsLike not implemented")
 }
+func (UnimplementedPartnerServer) FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindMemeByType not implemented")
+}
+func (UnimplementedPartnerServer) FindChatTopic(context.Context, *common.ListPageAndSexRequest) (*common.ChatTopicList, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindChatTopic not implemented")
+}
+func (UnimplementedPartnerServer) RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method RandomMeme not implemented")
+}
+func (UnimplementedPartnerServer) RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method RandomSwiftMessage not implemented")
+}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -968,6 +1032,78 @@ func _Partner_GetPartnerIsLike_Handler(srv interface{}, ctx context.Context, dec
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Partner_FindMemeByType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.MemeRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).FindMemeByType(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/FindMemeByType",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).FindMemeByType(ctx, req.(*common.MemeRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_FindChatTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.ListPageAndSexRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).FindChatTopic(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/FindChatTopic",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).FindChatTopic(ctx, req.(*common.ListPageAndSexRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_RandomMeme_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.RandomNum)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).RandomMeme(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/RandomMeme",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).RandomMeme(ctx, req.(*common.RandomNum))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_RandomSwiftMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.RandomNumAndSex)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).RandomSwiftMessage(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/RandomSwiftMessage",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).RandomSwiftMessage(ctx, req.(*common.RandomNumAndSex))
+	}
+	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)
@@ -1083,6 +1219,22 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "GetPartnerIsLike",
 			Handler:    _Partner_GetPartnerIsLike_Handler,
 		},
+		{
+			MethodName: "FindMemeByType",
+			Handler:    _Partner_FindMemeByType_Handler,
+		},
+		{
+			MethodName: "FindChatTopic",
+			Handler:    _Partner_FindChatTopic_Handler,
+		},
+		{
+			MethodName: "RandomMeme",
+			Handler:    _Partner_RandomMeme_Handler,
+		},
+		{
+			MethodName: "RandomSwiftMessage",
+			Handler:    _Partner_RandomSwiftMessage_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

+ 172 - 0
api/partner/partner_http.pb.go

@@ -34,7 +34,9 @@ type PartnerHTTPServer interface {
 	CreateUserPartnerRoom(context.Context, *common.PersonIDParam) (*chat.RoomReply, error)
 	FindChatRecordList(context.Context, *common.FindChatRecordListRequest) (*common.ChatRecordListReply, error)
 	FindChatRoomMsg(context.Context, *common.FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
+	FindChatTopic(context.Context, *common.ListPageAndSexRequest) (*common.ChatTopicList, error)
 	FindLookList(context.Context, *common.ListPageRequest) (*statistics.LookAndLikeListReply, error)
+	FindMemeByType(context.Context, *common.MemeRequest) (*common.MemeList, error)
 	FindOnlineList(context.Context, *common.ListPage2Request) (*common.OnlinePersonListReply, error)
 	FindOverSevenDayRoomList(context.Context, *common.ListPageRequest) (*chat.PartnerFindRoomListReply, error)
 	FindTagListBySex(context.Context, *common.SexReq) (*common.TagListReply, error)
@@ -48,6 +50,8 @@ type PartnerHTTPServer interface {
 	GetPartnerMessage(context.Context, *emptypb.Empty) (*PartnerMessage, error)
 	PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
 	PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
+	RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
+	RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
 	SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
 	UpdatePartnerInformation(context.Context, *common.UpdateInformationRequest) (*emptypb.Empty, error)
 	WxConf(context.Context, *common.WxConfReq) (*common.WxConfResponse, error)
@@ -76,6 +80,10 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r.POST("/api/partner/chat/room/msg", _Partner_FindChatRoomMsg0_HTTP_Handler(srv))
 	r.POST("/api/partner/level/table", _Partner_GetLevelBalanceTable0_HTTP_Handler(srv))
 	r.POST("/api/partner/islike", _Partner_GetPartnerIsLike0_HTTP_Handler(srv))
+	r.POST("/api/partner/find/meme/type", _Partner_FindMemeByType0_HTTP_Handler(srv))
+	r.POST("/api/partner/find/topic", _Partner_FindChatTopic0_HTTP_Handler(srv))
+	r.POST("/api/partner/find/meme/random", _Partner_RandomMeme0_HTTP_Handler(srv))
+	r.POST("/api/partner/find/topic/random", _Partner_RandomSwiftMessage0_HTTP_Handler(srv))
 }
 
 func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
@@ -645,12 +653,122 @@ func _Partner_GetPartnerIsLike0_HTTP_Handler(srv PartnerHTTPServer) func(ctx htt
 	}
 }
 
+func _Partner_FindMemeByType0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.MemeRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/FindMemeByType")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.FindMemeByType(ctx, req.(*common.MemeRequest))
+		})
+		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)
+	}
+}
+
+func _Partner_FindChatTopic0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.ListPageAndSexRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/FindChatTopic")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.FindChatTopic(ctx, req.(*common.ListPageAndSexRequest))
+		})
+		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)
+	}
+}
+
+func _Partner_RandomMeme0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.RandomNum
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/RandomMeme")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.RandomMeme(ctx, req.(*common.RandomNum))
+		})
+		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)
+	}
+}
+
+func _Partner_RandomSwiftMessage0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.RandomNumAndSex
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/RandomSwiftMessage")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.RandomSwiftMessage(ctx, req.(*common.RandomNumAndSex))
+		})
+		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 PartnerHTTPClient interface {
 	CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CreateUserPartnerRoom(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
 	FindChatRecordList(ctx context.Context, req *common.FindChatRecordListRequest, opts ...http.CallOption) (rsp *common.ChatRecordListReply, err error)
 	FindChatRoomMsg(ctx context.Context, req *common.FindChatRoomMsgRequest, opts ...http.CallOption) (rsp *common.ChatRoomMsg, err error)
+	FindChatTopic(ctx context.Context, req *common.ListPageAndSexRequest, opts ...http.CallOption) (rsp *common.ChatTopicList, err error)
 	FindLookList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *statistics.LookAndLikeListReply, err error)
+	FindMemeByType(ctx context.Context, req *common.MemeRequest, opts ...http.CallOption) (rsp *common.MemeList, err error)
 	FindOnlineList(ctx context.Context, req *common.ListPage2Request, opts ...http.CallOption) (rsp *common.OnlinePersonListReply, err error)
 	FindOverSevenDayRoomList(ctx context.Context, req *common.ListPageRequest, opts ...http.CallOption) (rsp *chat.PartnerFindRoomListReply, err error)
 	FindTagListBySex(ctx context.Context, req *common.SexReq, opts ...http.CallOption) (rsp *common.TagListReply, err error)
@@ -664,6 +782,8 @@ type PartnerHTTPClient interface {
 	GetPartnerMessage(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerMessage, err error)
 	PartnerGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
 	PartnerGetPersonLikedAndLooked(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.LookedAndLikedNum, err error)
+	RandomMeme(ctx context.Context, req *common.RandomNum, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
+	RandomSwiftMessage(ctx context.Context, req *common.RandomNumAndSex, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
 	SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	UpdatePartnerInformation(ctx context.Context, req *common.UpdateInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	WxConf(ctx context.Context, req *common.WxConfReq, opts ...http.CallOption) (rsp *common.WxConfResponse, err error)
@@ -729,6 +849,19 @@ func (c *PartnerHTTPClientImpl) FindChatRoomMsg(ctx context.Context, in *common.
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) FindChatTopic(ctx context.Context, in *common.ListPageAndSexRequest, opts ...http.CallOption) (*common.ChatTopicList, error) {
+	var out common.ChatTopicList
+	pattern := "/api/partner/find/topic"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/FindChatTopic"))
+	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 *PartnerHTTPClientImpl) FindLookList(ctx context.Context, in *common.ListPageRequest, opts ...http.CallOption) (*statistics.LookAndLikeListReply, error) {
 	var out statistics.LookAndLikeListReply
 	pattern := "/api/partner/list/look"
@@ -742,6 +875,19 @@ func (c *PartnerHTTPClientImpl) FindLookList(ctx context.Context, in *common.Lis
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) FindMemeByType(ctx context.Context, in *common.MemeRequest, opts ...http.CallOption) (*common.MemeList, error) {
+	var out common.MemeList
+	pattern := "/api/partner/find/meme/type"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/FindMemeByType"))
+	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 *PartnerHTTPClientImpl) FindOnlineList(ctx context.Context, in *common.ListPage2Request, opts ...http.CallOption) (*common.OnlinePersonListReply, error) {
 	var out common.OnlinePersonListReply
 	pattern := "/api/partner/list/online"
@@ -911,6 +1057,32 @@ func (c *PartnerHTTPClientImpl) PartnerGetPersonLikedAndLooked(ctx context.Conte
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...http.CallOption) (*common.CommonTextList, error) {
+	var out common.CommonTextList
+	pattern := "/api/partner/find/meme/random"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/RandomMeme"))
+	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 *PartnerHTTPClientImpl) RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...http.CallOption) (*common.CommonTextList, error) {
+	var out common.CommonTextList
+	pattern := "/api/partner/find/topic/random"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/RandomSwiftMessage"))
+	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 *PartnerHTTPClientImpl) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
 	var out emptypb.Empty
 	pattern := "/api/partner/code/send"

+ 21 - 1
js/api/partner/partner_http_pb.ts

@@ -1,7 +1,7 @@
 // @ts-ignore
 import request from '@/libs/request';
 import {PartnerInfo,PartnerBalance,PartnerDBBalance,PartnerMessage,GetRandomPartnerRequest,RandomPartnerInfo,AddPartnerBalanceRequest,LevelTable} from "./partner_pb";
-import {PartnerIDParam,PersonIDParam,PersonMsg,SendPhoneCodeRequest,CheckPhoneCodeRequest,AddFriendMessageInfo,UpdateInformationRequest,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,PersonIDList,PersonDBReply,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,OnlinePersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike} from "../common/common_pb";
+import {PartnerIDParam,PersonIDParam,PersonMsg,SendPhoneCodeRequest,CheckPhoneCodeRequest,AddFriendMessageInfo,UpdateInformationRequest,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,PersonIDList,PersonDBReply,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,OnlinePersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,MemeRequest,MemeList,ListPageAndSexRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex} from "../common/common_pb";
 import {LookMessageReply,LookAndLikeListReply} from "../statistics/statistics_pb";
 import {RoomReply,PartnerFindRoomListReply} from "../chat/chat_pb";
 
@@ -111,6 +111,26 @@ const PartnerService = {
 	const res = await request.post<{ data: IsLike, code: string, message: string }>('/api/partner/islike', req);
     return res.data.data;
   },
+  /**  通过类型获取表情包列表 */
+  FindMemeByType: async (req?: MemeRequest) => {
+	const res = await request.post<{ data: MemeList, code: string, message: string }>('/api/partner/find/meme/type', req);
+    return res.data.data;
+  },
+  /**  获取对方性别的聊天话题 */
+  FindChatTopic: async (req?: ListPageAndSexRequest) => {
+	const res = await request.post<{ data: ChatTopicList, code: string, message: string }>('/api/partner/find/topic', req);
+    return res.data.data;
+  },
+  /**  随机表情包 */
+  RandomMeme: async (req?: RandomNum) => {
+	const res = await request.post<{ data: CommonTextList, code: string, message: string }>('/api/partner/find/meme/random', req);
+    return res.data.data;
+  },
+  /**  随机打招呼 */
+  RandomSwiftMessage: async (req?: RandomNumAndSex) => {
+	const res = await request.post<{ data: CommonTextList, code: string, message: string }>('/api/partner/find/topic/random', req);
+    return res.data.data;
+  },
 
 };