Browse Source

接待员拉黑

wfz 3 years ago
parent
commit
2a8fe00c7b

+ 75 - 66
api/partner/partner.pb.go

@@ -788,7 +788,7 @@ var file_partner_proto_rawDesc = []byte{
 	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, 0x87, 0x1f, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74,
+	0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0xf4, 0x1f, 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, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e,
@@ -1037,12 +1037,18 @@ var file_partner_proto_rawDesc = []byte{
 	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
 	0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13, 0x2f, 0x61, 0x70, 0x69, 0x2f,
 	0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 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,
+	0x2a, 0x12, 0x6b, 0x0a, 0x13, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x53, 0x65, 0x74, 0x42,
+	0x6c, 0x61, 0x63, 0x6b, 0x43, 0x68, 0x61, 0x74, 0x12, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63,
+	0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
+	0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x21, 0x82, 0xd3, 0xe4,
+	0x93, 0x02, 0x1b, 0x22, 0x16, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x2f, 0x73, 0x65, 0x74, 0x2f, 0x62, 0x6c, 0x61, 0x63, 0x6b, 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 (
@@ -1087,26 +1093,27 @@ var file_partner_proto_goTypes = []interface{}{
 	(*common.RandomNum)(nil),                 // 25: api.common.RandomNum
 	(*common.RandomNumAndSex)(nil),           // 26: api.common.RandomNumAndSex
 	(*common.ReportChatRequest)(nil),         // 27: api.common.ReportChatRequest
-	(*common.PersonMsg)(nil),                 // 28: api.common.PersonMsg
-	(*statistics.LookMessageReply)(nil),      // 29: api.statistics.LookMessageReply
-	(*common.AddFriendMessageInfo)(nil),      // 30: api.common.AddFriendMessageInfo
-	(*common.HomeInfo)(nil),                  // 31: api.common.HomeInfo
-	(*common.LookedAndLikedNum)(nil),         // 32: api.common.LookedAndLikedNum
-	(*statistics.LookAndLikeListReply)(nil),  // 33: api.statistics.LookAndLikeListReply
-	(*common.PersonDBReply)(nil),             // 34: api.common.PersonDBReply
-	(*common.WxConfResponse)(nil),            // 35: api.common.WxConfResponse
-	(*chat.RoomReply)(nil),                   // 36: api.chat.RoomReply
-	(*common.TagListReply)(nil),              // 37: api.common.TagListReply
-	(*common.OnlinePersonListReply)(nil),     // 38: api.common.OnlinePersonListReply
-	(*chat.PartnerFindRoomListReply)(nil),    // 39: api.chat.PartnerFindRoomListReply
-	(*common.ChatRecordListReply)(nil),       // 40: api.common.ChatRecordListReply
-	(*common.ChatRoomMsg)(nil),               // 41: api.common.ChatRoomMsg
-	(*common.IsLike)(nil),                    // 42: api.common.IsLike
-	(*common.MemeList)(nil),                  // 43: api.common.MemeList
-	(*common.ChatTopicList)(nil),             // 44: api.common.ChatTopicList
-	(*common.CommonTextList)(nil),            // 45: api.common.CommonTextList
-	(*common.MemeTitleList)(nil),             // 46: api.common.MemeTitleList
-	(*common.ChatCardInfo)(nil),              // 47: api.common.ChatCardInfo
+	(*common.RoomIDRequest)(nil),             // 28: api.common.RoomIDRequest
+	(*common.PersonMsg)(nil),                 // 29: api.common.PersonMsg
+	(*statistics.LookMessageReply)(nil),      // 30: api.statistics.LookMessageReply
+	(*common.AddFriendMessageInfo)(nil),      // 31: api.common.AddFriendMessageInfo
+	(*common.HomeInfo)(nil),                  // 32: api.common.HomeInfo
+	(*common.LookedAndLikedNum)(nil),         // 33: api.common.LookedAndLikedNum
+	(*statistics.LookAndLikeListReply)(nil),  // 34: api.statistics.LookAndLikeListReply
+	(*common.PersonDBReply)(nil),             // 35: api.common.PersonDBReply
+	(*common.WxConfResponse)(nil),            // 36: api.common.WxConfResponse
+	(*chat.RoomReply)(nil),                   // 37: api.chat.RoomReply
+	(*common.TagListReply)(nil),              // 38: api.common.TagListReply
+	(*common.OnlinePersonListReply)(nil),     // 39: api.common.OnlinePersonListReply
+	(*chat.PartnerFindRoomListReply)(nil),    // 40: api.chat.PartnerFindRoomListReply
+	(*common.ChatRecordListReply)(nil),       // 41: api.common.ChatRecordListReply
+	(*common.ChatRoomMsg)(nil),               // 42: api.common.ChatRoomMsg
+	(*common.IsLike)(nil),                    // 43: api.common.IsLike
+	(*common.MemeList)(nil),                  // 44: api.common.MemeList
+	(*common.ChatTopicList)(nil),             // 45: api.common.ChatTopicList
+	(*common.CommonTextList)(nil),            // 46: api.common.CommonTextList
+	(*common.MemeTitleList)(nil),             // 47: api.common.MemeTitleList
+	(*common.ChatCardInfo)(nil),              // 48: api.common.ChatCardInfo
 }
 var file_partner_proto_depIdxs = []int32{
 	1,  // 0: api.partner.LevelTable.list:type_name -> api.partner.LevelInfo
@@ -1147,45 +1154,47 @@ var file_partner_proto_depIdxs = []int32{
 	15, // 35: api.partner.Partner.PartnerLike:input_type -> api.common.PersonParam
 	15, // 36: api.partner.Partner.PartnerUnLike:input_type -> api.common.PersonParam
 	27, // 37: api.partner.Partner.Report:input_type -> api.common.ReportChatRequest
-	3,  // 38: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
-	5,  // 39: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
-	6,  // 40: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
-	28, // 41: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
-	4,  // 42: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
-	29, // 43: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
-	9,  // 44: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
-	9,  // 45: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
-	30, // 46: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	9,  // 47: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
-	7,  // 48: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
-	31, // 49: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
-	32, // 50: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	33, // 51: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	34, // 52: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
-	35, // 53: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
-	36, // 54: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
-	37, // 55: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
-	38, // 56: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
-	39, // 57: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	39, // 58: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	39, // 59: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	40, // 60: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	41, // 61: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	9,  // 62: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
-	0,  // 63: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
-	42, // 64: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
-	43, // 65: api.partner.Partner.FindMemeByType:output_type -> api.common.MemeList
-	44, // 66: api.partner.Partner.FindChatTopic:output_type -> api.common.ChatTopicList
-	45, // 67: api.partner.Partner.RandomMeme:output_type -> api.common.CommonTextList
-	45, // 68: api.partner.Partner.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	46, // 69: api.partner.Partner.FindMemeTitle:output_type -> api.common.MemeTitleList
-	47, // 70: api.partner.Partner.PartnerGetChatCard:output_type -> api.common.ChatCardInfo
-	46, // 71: api.partner.Partner.FindChatTopicTitle:output_type -> api.common.MemeTitleList
-	9,  // 72: api.partner.Partner.PartnerLike:output_type -> google.protobuf.Empty
-	9,  // 73: api.partner.Partner.PartnerUnLike:output_type -> google.protobuf.Empty
-	9,  // 74: api.partner.Partner.Report:output_type -> google.protobuf.Empty
-	38, // [38:75] is the sub-list for method output_type
-	1,  // [1:38] is the sub-list for method input_type
+	28, // 38: api.partner.Partner.PartnerSetBlackChat:input_type -> api.common.RoomIDRequest
+	3,  // 39: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	5,  // 40: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
+	6,  // 41: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
+	29, // 42: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
+	4,  // 43: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
+	30, // 44: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
+	9,  // 45: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
+	9,  // 46: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
+	31, // 47: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	9,  // 48: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
+	7,  // 49: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
+	32, // 50: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
+	33, // 51: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	34, // 52: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	35, // 53: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
+	36, // 54: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
+	37, // 55: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
+	38, // 56: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
+	39, // 57: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
+	40, // 58: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	40, // 59: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	40, // 60: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	41, // 61: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	42, // 62: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	9,  // 63: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
+	0,  // 64: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
+	43, // 65: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
+	44, // 66: api.partner.Partner.FindMemeByType:output_type -> api.common.MemeList
+	45, // 67: api.partner.Partner.FindChatTopic:output_type -> api.common.ChatTopicList
+	46, // 68: api.partner.Partner.RandomMeme:output_type -> api.common.CommonTextList
+	46, // 69: api.partner.Partner.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	47, // 70: api.partner.Partner.FindMemeTitle:output_type -> api.common.MemeTitleList
+	48, // 71: api.partner.Partner.PartnerGetChatCard:output_type -> api.common.ChatCardInfo
+	47, // 72: api.partner.Partner.FindChatTopicTitle:output_type -> api.common.MemeTitleList
+	9,  // 73: api.partner.Partner.PartnerLike:output_type -> google.protobuf.Empty
+	9,  // 74: api.partner.Partner.PartnerUnLike:output_type -> google.protobuf.Empty
+	9,  // 75: api.partner.Partner.Report:output_type -> google.protobuf.Empty
+	9,  // 76: api.partner.Partner.PartnerSetBlackChat:output_type -> google.protobuf.Empty
+	39, // [39:77] is the sub-list for method output_type
+	1,  // [1:39] 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

+ 7 - 0
api/partner/partner.proto

@@ -240,6 +240,13 @@ service Partner {
       body:"*"
     };
   };
+  // 拉黑某人
+  rpc PartnerSetBlackChat (common.RoomIDRequest) returns (google.protobuf.Empty){
+    option (google.api.http) = {
+      post: "/api/partner/set/black",
+      body:"*"
+    };
+  };
 }
 
 message LevelTable{

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

@@ -93,6 +93,8 @@ type PartnerClient interface {
 	PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 举报某人
 	Report(ctx context.Context, in *common.ReportChatRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 拉黑某人
+	PartnerSetBlackChat(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type partnerClient struct {
@@ -436,6 +438,15 @@ func (c *partnerClient) Report(ctx context.Context, in *common.ReportChatRequest
 	return out, nil
 }
 
+func (c *partnerClient) PartnerSetBlackChat(ctx context.Context, in *common.RoomIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerSetBlackChat", 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
@@ -511,6 +522,8 @@ type PartnerServer interface {
 	PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
 	// 举报某人
 	Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error)
+	// 拉黑某人
+	PartnerSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -629,6 +642,9 @@ func (UnimplementedPartnerServer) PartnerUnLike(context.Context, *common.PersonP
 func (UnimplementedPartnerServer) Report(context.Context, *common.ReportChatRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
 }
+func (UnimplementedPartnerServer) PartnerSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PartnerSetBlackChat not implemented")
+}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -1308,6 +1324,24 @@ func _Partner_Report_Handler(srv interface{}, ctx context.Context, dec func(inte
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Partner_PartnerSetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.RoomIDRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(PartnerServer).PartnerSetBlackChat(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/PartnerSetBlackChat",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).PartnerSetBlackChat(ctx, req.(*common.RoomIDRequest))
+	}
+	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)
@@ -1463,6 +1497,10 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "Report",
 			Handler:    _Partner_Report_Handler,
 		},
+		{
+			MethodName: "PartnerSetBlackChat",
+			Handler:    _Partner_PartnerSetBlackChat_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

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

@@ -54,6 +54,7 @@ type PartnerHTTPServer interface {
 	PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
 	PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
 	PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
+	PartnerSetBlackChat(context.Context, *common.RoomIDRequest) (*emptypb.Empty, error)
 	PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
 	RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
 	RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
@@ -96,6 +97,7 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r.POST("/api/partner/like", _Partner_PartnerLike0_HTTP_Handler(srv))
 	r.POST("/api/partner/unlike", _Partner_PartnerUnLike0_HTTP_Handler(srv))
 	r.POST("/api/partner/report", _Partner_Report0_HTTP_Handler(srv))
+	r.POST("/api/partner/set/black", _Partner_PartnerSetBlackChat0_HTTP_Handler(srv))
 }
 
 func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
@@ -935,6 +937,33 @@ func _Partner_Report0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context)
 	}
 }
 
+func _Partner_PartnerSetBlackChat0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in common.RoomIDRequest
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.partner.Partner/PartnerSetBlackChat")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.PartnerSetBlackChat(ctx, req.(*common.RoomIDRequest))
+		})
+		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)
@@ -960,6 +989,7 @@ type PartnerHTTPClient interface {
 	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)
 	PartnerLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
+	PartnerSetBlackChat(ctx context.Context, req *common.RoomIDRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	PartnerUnLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, 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)
@@ -1289,6 +1319,19 @@ func (c *PartnerHTTPClientImpl) PartnerLike(ctx context.Context, in *common.Pers
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) PartnerSetBlackChat(ctx context.Context, in *common.RoomIDRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/partner/set/black"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/PartnerSetBlackChat"))
+	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) PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
 	var out emptypb.Empty
 	pattern := "/api/partner/unlike"

+ 6 - 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,MemeRequest,MemeList,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,ChatCardInfo,ReportChatRequest} 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,FindChatTopicRequest,ChatTopicList,RandomNum,CommonTextList,RandomNumAndSex,MemeTitleList,ChatCardInfo,ReportChatRequest,RoomIDRequest} from "../common/common_pb";
 import {LookMessageReply,LookAndLikeListReply} from "../statistics/statistics_pb";
 import {RoomReply,PartnerFindRoomListReply} from "../chat/chat_pb";
 
@@ -161,6 +161,11 @@ const PartnerService = {
 	const res = await request.post('/api/partner/report', req);
     return res.data.data;
   },
+  /**  拉黑某人 */
+  PartnerSetBlackChat: async (req?: RoomIDRequest) => {
+	const res = await request.post('/api/partner/set/black', req);
+    return res.data.data;
+  },
 
 };