wfz 3 жил өмнө
parent
commit
59c1bea1ff

+ 52 - 42
api/chat/chat.pb.go

@@ -1737,7 +1737,7 @@ var file_chat_proto_rawDesc = []byte{
 	0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x10, 0x0a, 0x03,
 	0x73, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x14,
 	0x0a, 0x05, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x72,
-	0x65, 0x70, 0x6c, 0x79, 0x32, 0x81, 0x10, 0x0a, 0x04, 0x43, 0x68, 0x61, 0x74, 0x12, 0x7a, 0x0a,
+	0x65, 0x70, 0x6c, 0x79, 0x32, 0xda, 0x10, 0x0a, 0x04, 0x43, 0x68, 0x61, 0x74, 0x12, 0x7a, 0x0a,
 	0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
 	0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12,
 	0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x55, 0x73, 0x65,
@@ -1865,11 +1865,17 @@ var file_chat_proto_rawDesc = []byte{
 	0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71,
 	0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e,
 	0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e,
-	0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e,
-	0x63, 0x68, 0x61, 0x74, 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, 0x63, 0x68,
-	0x61, 0x74, 0x3b, 0x63, 0x68, 0x61, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x57, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x4d,
+	0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e,
+	0x66, 0x6f, 0x12, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
+	0x53, 0x65, 0x78, 0x52, 0x65, 0x71, 0x1a, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x50,
+	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22,
+	0x00, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 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, 0x63, 0x68, 0x61, 0x74, 0x3b, 0x63, 0x68, 0x61, 0x74,
+	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -1919,15 +1925,17 @@ var file_chat_proto_goTypes = []interface{}{
 	(*common.PersonParam)(nil),                   // 30: api.common.PersonParam
 	(*common.ReplyScripRequest)(nil),             // 31: api.common.ReplyScripRequest
 	(*common.MatchingRequest)(nil),               // 32: api.common.MatchingRequest
-	(*common.RecommendPersonListReply)(nil),      // 33: api.common.RecommendPersonListReply
-	(*common.ChatRecordListReply)(nil),           // 34: api.common.ChatRecordListReply
-	(*common.ChatRoomMsg)(nil),                   // 35: api.common.ChatRoomMsg
-	(*emptypb.Empty)(nil),                        // 36: google.protobuf.Empty
-	(*common.RoomChatMsg)(nil),                   // 37: api.common.RoomChatMsg
-	(*common.ScripID)(nil),                       // 38: api.common.ScripID
-	(*common.ScripReply)(nil),                    // 39: api.common.ScripReply
-	(*common.ScripInfo)(nil),                     // 40: api.common.ScripInfo
-	(*common.ChatRecordInfo)(nil),                // 41: api.common.ChatRecordInfo
+	(*common.SexReq)(nil),                        // 33: api.common.SexReq
+	(*common.RecommendPersonListReply)(nil),      // 34: api.common.RecommendPersonListReply
+	(*common.ChatRecordListReply)(nil),           // 35: api.common.ChatRecordListReply
+	(*common.ChatRoomMsg)(nil),                   // 36: api.common.ChatRoomMsg
+	(*emptypb.Empty)(nil),                        // 37: google.protobuf.Empty
+	(*common.RoomChatMsg)(nil),                   // 38: api.common.RoomChatMsg
+	(*common.ScripID)(nil),                       // 39: api.common.ScripID
+	(*common.ScripReply)(nil),                    // 40: api.common.ScripReply
+	(*common.ScripInfo)(nil),                     // 41: api.common.ScripInfo
+	(*common.ChatRecordInfo)(nil),                // 42: api.common.ChatRecordInfo
+	(*common.GetMatchingPartnerInfoReply)(nil),   // 43: api.common.GetMatchingPartnerInfoReply
 }
 var file_chat_proto_depIdxs = []int32{
 	9,  // 0: api.chat.UserFindRoomListReply.list:type_name -> api.chat.UserRoomInfo
@@ -1957,33 +1965,35 @@ var file_chat_proto_depIdxs = []int32{
 	31, // 24: api.chat.Chat.PersonReplyScrip:input_type -> api.common.ReplyScripRequest
 	32, // 25: api.chat.Chat.GetWindowInfo:input_type -> api.common.MatchingRequest
 	32, // 26: api.chat.Chat.GetRandomMatching:input_type -> api.common.MatchingRequest
-	16, // 27: api.chat.Chat.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	17, // 28: api.chat.Chat.CreateChatRoom:output_type -> api.chat.RoomReply
-	33, // 29: api.chat.Chat.FindOnlinePersonList:output_type -> api.common.RecommendPersonListReply
-	33, // 30: api.chat.Chat.FindRecommendPersonList:output_type -> api.common.RecommendPersonListReply
-	10, // 31: api.chat.Chat.PartnerFindRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	8,  // 32: api.chat.Chat.UserFindRoomList:output_type -> api.chat.UserFindRoomListReply
-	15, // 33: api.chat.Chat.Receive:output_type -> api.chat.ReceiveReply
-	34, // 34: api.chat.Chat.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	35, // 35: api.chat.Chat.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	36, // 36: api.chat.Chat.SetBlackChat:output_type -> google.protobuf.Empty
-	36, // 37: api.chat.Chat.DeleteChat:output_type -> google.protobuf.Empty
-	36, // 38: api.chat.Chat.Report:output_type -> google.protobuf.Empty
-	4,  // 39: api.chat.Chat.PartnerGetAward:output_type -> api.chat.PartnerGetAwardReply
-	37, // 40: api.chat.Chat.FindRoomCardMsg:output_type -> api.common.RoomChatMsg
-	1,  // 41: api.chat.Chat.FindNotReplyNum:output_type -> api.chat.FindNotReplyNumReply
-	38, // 42: api.chat.Chat.CreateScrip:output_type -> api.common.ScripID
-	36, // 43: api.chat.Chat.DeleteScrip:output_type -> google.protobuf.Empty
-	39, // 44: api.chat.Chat.FindMyScrip:output_type -> api.common.ScripReply
-	39, // 45: api.chat.Chat.FindOtherScrip:output_type -> api.common.ScripReply
-	39, // 46: api.chat.Chat.FindRecommendScrip:output_type -> api.common.ScripReply
-	36, // 47: api.chat.Chat.PersonLookScrip:output_type -> google.protobuf.Empty
-	40, // 48: api.chat.Chat.PersonClickLookBack:output_type -> api.common.ScripInfo
-	41, // 49: api.chat.Chat.PersonReplyScrip:output_type -> api.common.ChatRecordInfo
-	20, // 50: api.chat.Chat.GetWindowInfo:output_type -> api.chat.WindowInfo
-	0,  // 51: api.chat.Chat.GetRandomMatching:output_type -> api.chat.GetRandomMatchingReply
-	27, // [27:52] is the sub-list for method output_type
-	2,  // [2:27] is the sub-list for method input_type
+	33, // 27: api.chat.Chat.GetMatchingPartnerInfo:input_type -> api.common.SexReq
+	16, // 28: api.chat.Chat.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	17, // 29: api.chat.Chat.CreateChatRoom:output_type -> api.chat.RoomReply
+	34, // 30: api.chat.Chat.FindOnlinePersonList:output_type -> api.common.RecommendPersonListReply
+	34, // 31: api.chat.Chat.FindRecommendPersonList:output_type -> api.common.RecommendPersonListReply
+	10, // 32: api.chat.Chat.PartnerFindRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	8,  // 33: api.chat.Chat.UserFindRoomList:output_type -> api.chat.UserFindRoomListReply
+	15, // 34: api.chat.Chat.Receive:output_type -> api.chat.ReceiveReply
+	35, // 35: api.chat.Chat.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	36, // 36: api.chat.Chat.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	37, // 37: api.chat.Chat.SetBlackChat:output_type -> google.protobuf.Empty
+	37, // 38: api.chat.Chat.DeleteChat:output_type -> google.protobuf.Empty
+	37, // 39: api.chat.Chat.Report:output_type -> google.protobuf.Empty
+	4,  // 40: api.chat.Chat.PartnerGetAward:output_type -> api.chat.PartnerGetAwardReply
+	38, // 41: api.chat.Chat.FindRoomCardMsg:output_type -> api.common.RoomChatMsg
+	1,  // 42: api.chat.Chat.FindNotReplyNum:output_type -> api.chat.FindNotReplyNumReply
+	39, // 43: api.chat.Chat.CreateScrip:output_type -> api.common.ScripID
+	37, // 44: api.chat.Chat.DeleteScrip:output_type -> google.protobuf.Empty
+	40, // 45: api.chat.Chat.FindMyScrip:output_type -> api.common.ScripReply
+	40, // 46: api.chat.Chat.FindOtherScrip:output_type -> api.common.ScripReply
+	40, // 47: api.chat.Chat.FindRecommendScrip:output_type -> api.common.ScripReply
+	37, // 48: api.chat.Chat.PersonLookScrip:output_type -> google.protobuf.Empty
+	41, // 49: api.chat.Chat.PersonClickLookBack:output_type -> api.common.ScripInfo
+	42, // 50: api.chat.Chat.PersonReplyScrip:output_type -> api.common.ChatRecordInfo
+	20, // 51: api.chat.Chat.GetWindowInfo:output_type -> api.chat.WindowInfo
+	0,  // 52: api.chat.Chat.GetRandomMatching:output_type -> api.chat.GetRandomMatchingReply
+	43, // 53: api.chat.Chat.GetMatchingPartnerInfo:output_type -> api.common.GetMatchingPartnerInfoReply
+	28, // [28:54] is the sub-list for method output_type
+	2,  // [2:28] is the sub-list for method input_type
 	2,  // [2:2] is the sub-list for extension type_name
 	2,  // [2:2] is the sub-list for extension extendee
 	0,  // [0:2] is the sub-list for field type_name

+ 2 - 0
api/chat/chat.proto

@@ -61,6 +61,8 @@ service Chat {
   rpc GetWindowInfo (common.MatchingRequest) returns (chat.WindowInfo){};
   // 随机匹配
   rpc GetRandomMatching (common.MatchingRequest) returns (GetRandomMatchingReply){};
+  // 随机匹配接待员
+  rpc GetMatchingPartnerInfo (common.SexReq) returns (common.GetMatchingPartnerInfoReply){};
 }
 
 message GetRandomMatchingReply{

+ 38 - 0
api/chat/chat_grpc.pb.go

@@ -69,6 +69,8 @@ type ChatClient interface {
 	GetWindowInfo(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*WindowInfo, error)
 	// 随机匹配
 	GetRandomMatching(ctx context.Context, in *common.MatchingRequest, opts ...grpc.CallOption) (*GetRandomMatchingReply, error)
+	// 随机匹配接待员
+	GetMatchingPartnerInfo(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error)
 }
 
 type chatClient struct {
@@ -304,6 +306,15 @@ func (c *chatClient) GetRandomMatching(ctx context.Context, in *common.MatchingR
 	return out, nil
 }
 
+func (c *chatClient) GetMatchingPartnerInfo(ctx context.Context, in *common.SexReq, opts ...grpc.CallOption) (*common.GetMatchingPartnerInfoReply, error) {
+	out := new(common.GetMatchingPartnerInfoReply)
+	err := c.cc.Invoke(ctx, "/api.chat.Chat/GetMatchingPartnerInfo", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // ChatServer is the server API for Chat service.
 // All implementations must embed UnimplementedChatServer
 // for forward compatibility
@@ -357,6 +368,8 @@ type ChatServer interface {
 	GetWindowInfo(context.Context, *common.MatchingRequest) (*WindowInfo, error)
 	// 随机匹配
 	GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error)
+	// 随机匹配接待员
+	GetMatchingPartnerInfo(context.Context, *common.SexReq) (*common.GetMatchingPartnerInfoReply, error)
 	mustEmbedUnimplementedChatServer()
 }
 
@@ -439,6 +452,9 @@ func (UnimplementedChatServer) GetWindowInfo(context.Context, *common.MatchingRe
 func (UnimplementedChatServer) GetRandomMatching(context.Context, *common.MatchingRequest) (*GetRandomMatchingReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetRandomMatching not implemented")
 }
+func (UnimplementedChatServer) GetMatchingPartnerInfo(context.Context, *common.SexReq) (*common.GetMatchingPartnerInfoReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetMatchingPartnerInfo not implemented")
+}
 func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
 
 // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
@@ -902,6 +918,24 @@ func _Chat_GetRandomMatching_Handler(srv interface{}, ctx context.Context, dec f
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Chat_GetMatchingPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.SexReq)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ChatServer).GetMatchingPartnerInfo(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.chat.Chat/GetMatchingPartnerInfo",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ChatServer).GetMatchingPartnerInfo(ctx, req.(*common.SexReq))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1009,6 +1043,10 @@ var Chat_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "GetRandomMatching",
 			Handler:    _Chat_GetRandomMatching_Handler,
 		},
+		{
+			MethodName: "GetMatchingPartnerInfo",
+			Handler:    _Chat_GetMatchingPartnerInfo_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "chat.proto",

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 174 - 103
api/common/common.pb.go


+ 7 - 0
api/common/common.proto

@@ -243,6 +243,13 @@ message SexReq{
   int64 sex = 1;
 }
 
+message GetMatchingPartnerInfoReply{
+  string id = 1; // id
+  string nickname = 2;// 昵称
+  string avatarUrl =3;// 头像链接
+  int64 sex = 4;// 性别
+}
+
 message RandomIntroduceReply{
   string introduce = 1;
 }

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 470 - 608
api/partner/partner.pb.go


+ 0 - 13
api/partner/partner.proto

@@ -319,8 +319,6 @@ service Partner {
   rpc AddPartnerBalance(AddPartnerBalanceRequest)returns (google.protobuf.Empty){};
   // 获取接待员的确认通过页面信息
   rpc GetPartnerCircleInfo (common.PartnerIDParam) returns (common.AddFriendMessageInfo);
-  // 随机接待员
-  rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
 }
 
 message PartnerWithdrawRecordListReply{
@@ -416,17 +414,6 @@ message PartnerDBBalance{
   int64 callBenefit = 4;// 语音通话收益
 }
 
-message RandomPartnerInfo{
-  string id = 1; // id
-  string nickname = 2;// 昵称
-  string avatarUrl =3;// 头像链接
-  int64 sex = 4;// 性别
-}
-
-message GetRandomPartnerRequest{
-  int64 sex = 1;// 性别
-}
-
 message PartnerApplyWithdrawRequest{
   int64 templateId = 1;// 提现模板id
 }

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

@@ -118,8 +118,6 @@ type PartnerClient interface {
 	AddPartnerBalance(ctx context.Context, in *AddPartnerBalanceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 获取接待员的确认通过页面信息
 	GetPartnerCircleInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error)
-	// 随机接待员
-	GetRandomPartnerInfo(ctx context.Context, in *GetRandomPartnerRequest, opts ...grpc.CallOption) (*RandomPartnerInfo, error)
 }
 
 type partnerClient struct {
@@ -553,15 +551,6 @@ func (c *partnerClient) GetPartnerCircleInfo(ctx context.Context, in *common.Par
 	return out, nil
 }
 
-func (c *partnerClient) GetRandomPartnerInfo(ctx context.Context, in *GetRandomPartnerRequest, opts ...grpc.CallOption) (*RandomPartnerInfo, error) {
-	out := new(RandomPartnerInfo)
-	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetRandomPartnerInfo", 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
@@ -662,8 +651,6 @@ type PartnerServer interface {
 	AddPartnerBalance(context.Context, *AddPartnerBalanceRequest) (*emptypb.Empty, error)
 	// 获取接待员的确认通过页面信息
 	GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error)
-	// 随机接待员
-	GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -812,9 +799,6 @@ func (UnimplementedPartnerServer) AddPartnerBalance(context.Context, *AddPartner
 func (UnimplementedPartnerServer) GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
 }
-func (UnimplementedPartnerServer) GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method GetRandomPartnerInfo not implemented")
-}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -1674,24 +1658,6 @@ func _Partner_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context,
 	return interceptor(ctx, in, info, handler)
 }
 
-func _Partner_GetRandomPartnerInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(GetRandomPartnerRequest)
-	if err := dec(in); err != nil {
-		return nil, err
-	}
-	if interceptor == nil {
-		return srv.(PartnerServer).GetRandomPartnerInfo(ctx, in)
-	}
-	info := &grpc.UnaryServerInfo{
-		Server:     srv,
-		FullMethod: "/api.partner.Partner/GetRandomPartnerInfo",
-	}
-	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(PartnerServer).GetRandomPartnerInfo(ctx, req.(*GetRandomPartnerRequest))
-	}
-	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)
@@ -1887,10 +1853,6 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "GetPartnerCircleInfo",
 			Handler:    _Partner_GetPartnerCircleInfo_Handler,
 		},
-		{
-			MethodName: "GetRandomPartnerInfo",
-			Handler:    _Partner_GetRandomPartnerInfo_Handler,
-		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

+ 10 - 0
js/api/common/common_pb.ts

@@ -311,6 +311,16 @@ export interface TagList{
 export interface SexReq{
     sex?:number;
 }
+export interface GetMatchingPartnerInfoReply{
+    /**  id */
+    id?:string;
+    /**  昵称 */
+    nickname?:string;
+    /**  头像链接 */
+    avatarUrl?:string;
+    /**  性别 */
+    sex?:number;
+}
 export interface RandomIntroduceReply{
     introduce?:string;
 }

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

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {PartnerInfo,PartnerBalance,PartnerMessage,LevelTable,PartnerGetAwardRequest,PartnerUpdateWorkingStatusRequest,PartnerApplyWithdrawRequest,PartnerWithdrawTemplateListReply,PartnerWithdrawRecordListReply,PartnerDBBalance,AddPartnerBalanceRequest,GetRandomPartnerRequest,RandomPartnerInfo} from "./partner_pb";
+import {PartnerInfo,PartnerBalance,PartnerMessage,LevelTable,PartnerGetAwardRequest,PartnerUpdateWorkingStatusRequest,PartnerApplyWithdrawRequest,PartnerWithdrawTemplateListReply,PartnerWithdrawRecordListReply,PartnerDBBalance,AddPartnerBalanceRequest} from "./partner_pb";
 import {SendPhoneCodeRequest,CheckPhoneCodeRequest,UpdateInformationRequest,CreateChatRoomParam,PersonParam,HomeInfo,LookedAndLikedNum,ListPageRequest,WxConfReq,WxConfResponse,SexReq,TagListReply,ListPage2Request,RecommendPersonListReply,FindChatRecordListRequest,ChatRecordListReply,FindChatRoomMsgRequest,ChatRoomMsg,IsLike,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,PartnerChatCardInfo,ReportChatRequest,FindOverSevenDayAvatarReply,UpdateLastScripIDRequest,PersonIDParam,PersonMsg,PersonIDList,PersonDBReply,UpdateLastScripIDDBRequest,FindRecommendRequest,PartnerIDParam,AddFriendMessageInfo} from "../common/common_pb";
 import {RoomReply,PartnerFindRoomListReply,FindNotReplyNumReply} from "../chat/chat_pb";
 import {LookAndLikeListReply,LookMessageReply} from "../statistics/statistics_pb";

+ 0 - 14
js/api/partner/partner_pb.ts

@@ -125,20 +125,6 @@ export interface PartnerDBBalance{
     /**  语音通话收益 */
     callBenefit?:number;
 }
-export interface RandomPartnerInfo{
-    /**  id */
-    id?:string;
-    /**  昵称 */
-    nickname?:string;
-    /**  头像链接 */
-    avatarUrl?:string;
-    /**  性别 */
-    sex?:number;
-}
-export interface GetRandomPartnerRequest{
-    /**  性别 */
-    sex?:number;
-}
 export interface PartnerApplyWithdrawRequest{
     /**  提现模板id */
     templateId?:number;

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно