Browse Source

查询在线可匹配人数

wfz 2 years ago
parent
commit
2c64099564

+ 57 - 45
api/manager/manager.pb.go

@@ -536,8 +536,8 @@ var file_manager_proto_rawDesc = []byte{
 	0x6d, 0x61, 0x6e, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x75, 0x73,
 	0x65, 0x72, 0x57, 0x6f, 0x6d, 0x61, 0x6e, 0x4e, 0x75, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73,
 	0x65, 0x72, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
-	0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x32, 0xc1,
-	0x26, 0x0a, 0x07, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x8a, 0x01, 0x0a, 0x13, 0x4d,
+	0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x4f, 0x74, 0x68, 0x65, 0x72, 0x4e, 0x75, 0x6d, 0x32, 0xd6,
+	0x27, 0x0a, 0x07, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x8a, 0x01, 0x0a, 0x13, 0x4d,
 	0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x46, 0x69, 0x6e, 0x64, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x69,
 	0x73, 0x74, 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
 	0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f,
@@ -845,12 +845,21 @@ var file_manager_proto_rawDesc = []byte{
 	0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x22,
 	0x22, 0x1d, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x2f, 0x75,
 	0x73, 0x65, 0x72, 0x2f, 0x75, 0x6e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x3a,
-	0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x6d, 0x61, 0x6e, 0x61, 0x67, 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, 0x6d, 0x61, 0x6e, 0x61, 0x67,
-	0x65, 0x72, 0x3b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
-	0x6f, 0x33,
+	0x01, 0x2a, 0x12, 0x92, 0x01, 0x0a, 0x1b, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
+	0x65, 0x43, 0x61, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x50, 0x65, 0x72, 0x73,
+	0x6f, 0x6e, 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, 0x2f, 0x2e, 0x61, 0x70, 0x69,
+	0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x4f,
+	0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x61, 0x6e, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67,
+	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x2a, 0x82, 0xd3, 0xe4,
+	0x93, 0x02, 0x24, 0x22, 0x1f, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65,
+	0x72, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x69, 0x6e, 0x67, 0x2f,
+	0x6c, 0x69, 0x73, 0x74, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x6d,
+	0x61, 0x6e, 0x61, 0x67, 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,
+	0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x3b, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x62,
+	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -911,6 +920,7 @@ var file_manager_proto_goTypes = []interface{}{
 	(*common.ManagerFindReportListReply)(nil),            // 41: api.common.ManagerFindReportListReply
 	(*common.ManagerFindReportDetailsListReply)(nil),     // 42: api.common.ManagerFindReportDetailsListReply
 	(*websocket.FindOnlinePersonReply)(nil),              // 43: api.websocket.FindOnlinePersonReply
+	(*websocket.FindOnlineCanMatchingPersonReply)(nil),   // 44: api.websocket.FindOnlineCanMatchingPersonReply
 }
 var file_manager_proto_depIdxs = []int32{
 	8,  // 0: api.manager.Manager.ManagerFindUserList:input_type -> api.common.ManagerFindPersonListRequest
@@ -948,43 +958,45 @@ var file_manager_proto_depIdxs = []int32{
 	32, // 32: api.manager.Manager.ManagerFindReportDetailsList:input_type -> api.common.ManagerFindReportDetailsListRequest
 	1,  // 33: api.manager.Manager.FindOnlinePerson:input_type -> api.manager.FindOnlinePersonRequest
 	0,  // 34: api.manager.Manager.ManagerUserUnsubscribe:input_type -> api.manager.ManagerUserUnsubscribeRequest
-	33, // 35: api.manager.Manager.ManagerFindUserList:output_type -> api.common.ManagerFindPersonListReply
-	33, // 36: api.manager.Manager.ManagerFindInformationUserList:output_type -> api.common.ManagerFindPersonListReply
-	34, // 37: api.manager.Manager.ManagerFindIsCheckQualityUserList:output_type -> api.common.ManagerFindPersonListReply2
-	33, // 38: api.manager.Manager.ManagerFindHighQualityUserList:output_type -> api.common.ManagerFindPersonListReply
-	35, // 39: api.manager.Manager.ManagerFindCanHandpickUserList:output_type -> api.common.ManagerFindCanHandpickUserListReply
-	22, // 40: api.manager.Manager.ManagerSetHandpickUser:output_type -> google.protobuf.Empty
-	22, // 41: api.manager.Manager.ManagerSetHandpickUserOne:output_type -> google.protobuf.Empty
-	22, // 42: api.manager.Manager.ManagerMarkHighQualityUser:output_type -> google.protobuf.Empty
-	22, // 43: api.manager.Manager.ManagerReMarkHighQualityUser:output_type -> google.protobuf.Empty
-	22, // 44: api.manager.Manager.ManagerMarkHighQualityUserOne:output_type -> google.protobuf.Empty
-	22, // 45: api.manager.Manager.ManagerSetUserBlack:output_type -> google.protobuf.Empty
-	22, // 46: api.manager.Manager.ManagerDeleteHighQualityUser:output_type -> google.protobuf.Empty
-	22, // 47: api.manager.Manager.ManagerUpdateUserSex:output_type -> google.protobuf.Empty
-	22, // 48: api.manager.Manager.ManagerUpdateUserVoice:output_type -> google.protobuf.Empty
-	22, // 49: api.manager.Manager.ManagerUpdateUserPictures:output_type -> google.protobuf.Empty
-	22, // 50: api.manager.Manager.ManagerUpdateUserSignature:output_type -> google.protobuf.Empty
-	22, // 51: api.manager.Manager.ManagerUpdateUserAvatar:output_type -> google.protobuf.Empty
-	22, // 52: api.manager.Manager.ManagerUpdateUserName:output_type -> google.protobuf.Empty
-	22, // 53: api.manager.Manager.ManagerUpdateUserWeight:output_type -> google.protobuf.Empty
-	22, // 54: api.manager.Manager.ManagerUpdateUserIsBlack:output_type -> google.protobuf.Empty
-	22, // 55: api.manager.Manager.ManagerUpdateUserCredit:output_type -> google.protobuf.Empty
-	36, // 56: api.manager.Manager.ManagerLogin:output_type -> api.common.LoginToken
-	7,  // 57: api.manager.Manager.OnlinePerson:output_type -> api.manager.OnlinePersonReply
-	37, // 58: api.manager.Manager.ManagerFindRoomList:output_type -> api.common.ManagerFindRoomListReply
-	38, // 59: api.manager.Manager.ManagerFindChatRecordList:output_type -> api.common.ChatRecordListReply
-	39, // 60: api.manager.Manager.ManagerFindScripList:output_type -> api.common.ManagerScripReply
-	40, // 61: api.manager.Manager.ManagerFindScripListV2:output_type -> api.common.ManagerScripV2Reply
-	22, // 62: api.manager.Manager.ManagerUpdateScripText:output_type -> google.protobuf.Empty
-	22, // 63: api.manager.Manager.ManagerUpdateScripPicture:output_type -> google.protobuf.Empty
-	22, // 64: api.manager.Manager.ManagerDeleteScrip:output_type -> google.protobuf.Empty
-	22, // 65: api.manager.Manager.ManagerDeleteScripMore:output_type -> google.protobuf.Empty
-	41, // 66: api.manager.Manager.ManagerFindReportList:output_type -> api.common.ManagerFindReportListReply
-	42, // 67: api.manager.Manager.ManagerFindReportDetailsList:output_type -> api.common.ManagerFindReportDetailsListReply
-	43, // 68: api.manager.Manager.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
-	22, // 69: api.manager.Manager.ManagerUserUnsubscribe:output_type -> google.protobuf.Empty
-	35, // [35:70] is the sub-list for method output_type
-	0,  // [0:35] is the sub-list for method input_type
+	22, // 35: api.manager.Manager.FindOnlineCanMatchingPerson:input_type -> google.protobuf.Empty
+	33, // 36: api.manager.Manager.ManagerFindUserList:output_type -> api.common.ManagerFindPersonListReply
+	33, // 37: api.manager.Manager.ManagerFindInformationUserList:output_type -> api.common.ManagerFindPersonListReply
+	34, // 38: api.manager.Manager.ManagerFindIsCheckQualityUserList:output_type -> api.common.ManagerFindPersonListReply2
+	33, // 39: api.manager.Manager.ManagerFindHighQualityUserList:output_type -> api.common.ManagerFindPersonListReply
+	35, // 40: api.manager.Manager.ManagerFindCanHandpickUserList:output_type -> api.common.ManagerFindCanHandpickUserListReply
+	22, // 41: api.manager.Manager.ManagerSetHandpickUser:output_type -> google.protobuf.Empty
+	22, // 42: api.manager.Manager.ManagerSetHandpickUserOne:output_type -> google.protobuf.Empty
+	22, // 43: api.manager.Manager.ManagerMarkHighQualityUser:output_type -> google.protobuf.Empty
+	22, // 44: api.manager.Manager.ManagerReMarkHighQualityUser:output_type -> google.protobuf.Empty
+	22, // 45: api.manager.Manager.ManagerMarkHighQualityUserOne:output_type -> google.protobuf.Empty
+	22, // 46: api.manager.Manager.ManagerSetUserBlack:output_type -> google.protobuf.Empty
+	22, // 47: api.manager.Manager.ManagerDeleteHighQualityUser:output_type -> google.protobuf.Empty
+	22, // 48: api.manager.Manager.ManagerUpdateUserSex:output_type -> google.protobuf.Empty
+	22, // 49: api.manager.Manager.ManagerUpdateUserVoice:output_type -> google.protobuf.Empty
+	22, // 50: api.manager.Manager.ManagerUpdateUserPictures:output_type -> google.protobuf.Empty
+	22, // 51: api.manager.Manager.ManagerUpdateUserSignature:output_type -> google.protobuf.Empty
+	22, // 52: api.manager.Manager.ManagerUpdateUserAvatar:output_type -> google.protobuf.Empty
+	22, // 53: api.manager.Manager.ManagerUpdateUserName:output_type -> google.protobuf.Empty
+	22, // 54: api.manager.Manager.ManagerUpdateUserWeight:output_type -> google.protobuf.Empty
+	22, // 55: api.manager.Manager.ManagerUpdateUserIsBlack:output_type -> google.protobuf.Empty
+	22, // 56: api.manager.Manager.ManagerUpdateUserCredit:output_type -> google.protobuf.Empty
+	36, // 57: api.manager.Manager.ManagerLogin:output_type -> api.common.LoginToken
+	7,  // 58: api.manager.Manager.OnlinePerson:output_type -> api.manager.OnlinePersonReply
+	37, // 59: api.manager.Manager.ManagerFindRoomList:output_type -> api.common.ManagerFindRoomListReply
+	38, // 60: api.manager.Manager.ManagerFindChatRecordList:output_type -> api.common.ChatRecordListReply
+	39, // 61: api.manager.Manager.ManagerFindScripList:output_type -> api.common.ManagerScripReply
+	40, // 62: api.manager.Manager.ManagerFindScripListV2:output_type -> api.common.ManagerScripV2Reply
+	22, // 63: api.manager.Manager.ManagerUpdateScripText:output_type -> google.protobuf.Empty
+	22, // 64: api.manager.Manager.ManagerUpdateScripPicture:output_type -> google.protobuf.Empty
+	22, // 65: api.manager.Manager.ManagerDeleteScrip:output_type -> google.protobuf.Empty
+	22, // 66: api.manager.Manager.ManagerDeleteScripMore:output_type -> google.protobuf.Empty
+	41, // 67: api.manager.Manager.ManagerFindReportList:output_type -> api.common.ManagerFindReportListReply
+	42, // 68: api.manager.Manager.ManagerFindReportDetailsList:output_type -> api.common.ManagerFindReportDetailsListReply
+	43, // 69: api.manager.Manager.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
+	22, // 70: api.manager.Manager.ManagerUserUnsubscribe:output_type -> google.protobuf.Empty
+	44, // 71: api.manager.Manager.FindOnlineCanMatchingPerson:output_type -> api.websocket.FindOnlineCanMatchingPersonReply
+	36, // [36:72] is the sub-list for method output_type
+	0,  // [0:36] is the sub-list for method input_type
 	0,  // [0:0] is the sub-list for extension type_name
 	0,  // [0:0] is the sub-list for extension extendee
 	0,  // [0:0] is the sub-list for field type_name

+ 7 - 0
api/manager/manager.proto

@@ -258,6 +258,13 @@ service Manager {
       body:"*"
     };
   };
+  // 查询在线可匹配人数
+  rpc FindOnlineCanMatchingPerson (google.protobuf.Empty) returns (websocket.FindOnlineCanMatchingPersonReply){
+    option (google.api.http) = {
+      post: "/api/manager/user/matching/list",
+      body:"*"
+    };
+  };
 }
 
 message ManagerUserUnsubscribeRequest{

+ 38 - 0
api/manager/manager_grpc.pb.go

@@ -91,6 +91,8 @@ type ManagerClient interface {
 	FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...grpc.CallOption) (*websocket.FindOnlinePersonReply, error)
 	// 管理员注销用户
 	ManagerUserUnsubscribe(ctx context.Context, in *ManagerUserUnsubscribeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 查询在线可匹配人数
+	FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*websocket.FindOnlineCanMatchingPersonReply, error)
 }
 
 type managerClient struct {
@@ -416,6 +418,15 @@ func (c *managerClient) ManagerUserUnsubscribe(ctx context.Context, in *ManagerU
 	return out, nil
 }
 
+func (c *managerClient) FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*websocket.FindOnlineCanMatchingPersonReply, error) {
+	out := new(websocket.FindOnlineCanMatchingPersonReply)
+	err := c.cc.Invoke(ctx, "/api.manager.Manager/FindOnlineCanMatchingPerson", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // ManagerServer is the server API for Manager service.
 // All implementations must embed UnimplementedManagerServer
 // for forward compatibility
@@ -490,6 +501,8 @@ type ManagerServer interface {
 	FindOnlinePerson(context.Context, *FindOnlinePersonRequest) (*websocket.FindOnlinePersonReply, error)
 	// 管理员注销用户
 	ManagerUserUnsubscribe(context.Context, *ManagerUserUnsubscribeRequest) (*emptypb.Empty, error)
+	// 查询在线可匹配人数
+	FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*websocket.FindOnlineCanMatchingPersonReply, error)
 	mustEmbedUnimplementedManagerServer()
 }
 
@@ -602,6 +615,9 @@ func (UnimplementedManagerServer) FindOnlinePerson(context.Context, *FindOnlineP
 func (UnimplementedManagerServer) ManagerUserUnsubscribe(context.Context, *ManagerUserUnsubscribeRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method ManagerUserUnsubscribe not implemented")
 }
+func (UnimplementedManagerServer) FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*websocket.FindOnlineCanMatchingPersonReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindOnlineCanMatchingPerson not implemented")
+}
 func (UnimplementedManagerServer) mustEmbedUnimplementedManagerServer() {}
 
 // UnsafeManagerServer may be embedded to opt out of forward compatibility for this service.
@@ -1245,6 +1261,24 @@ func _Manager_ManagerUserUnsubscribe_Handler(srv interface{}, ctx context.Contex
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Manager_FindOnlineCanMatchingPerson_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(emptypb.Empty)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ManagerServer).FindOnlineCanMatchingPerson(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.manager.Manager/FindOnlineCanMatchingPerson",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ManagerServer).FindOnlineCanMatchingPerson(ctx, req.(*emptypb.Empty))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Manager_ServiceDesc is the grpc.ServiceDesc for Manager service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1392,6 +1426,10 @@ var Manager_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "ManagerUserUnsubscribe",
 			Handler:    _Manager_ManagerUserUnsubscribe_Handler,
 		},
+		{
+			MethodName: "FindOnlineCanMatchingPerson",
+			Handler:    _Manager_FindOnlineCanMatchingPerson_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "manager.proto",

+ 43 - 0
api/manager/manager_http.pb.go

@@ -29,6 +29,7 @@ var _ = new(base.Html)
 const _ = http.SupportPackageIsVersion1
 
 type ManagerHTTPServer interface {
+	FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*websocket.FindOnlineCanMatchingPersonReply, error)
 	FindOnlinePerson(context.Context, *FindOnlinePersonRequest) (*websocket.FindOnlinePersonReply, error)
 	ManagerDeleteHighQualityUser(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
 	ManagerDeleteScrip(context.Context, *common.IDParam) (*emptypb.Empty, error)
@@ -103,6 +104,7 @@ func RegisterManagerHTTPServer(s *http.Server, srv ManagerHTTPServer) {
 	r.POST("/api/manager/report/details/list", _Manager_ManagerFindReportDetailsList0_HTTP_Handler(srv))
 	r.POST("/api/manager/online/details/list", _Manager_FindOnlinePerson0_HTTP_Handler(srv))
 	r.POST("/api/manager/user/unsubscribe", _Manager_ManagerUserUnsubscribe0_HTTP_Handler(srv))
+	r.POST("/api/manager/user/matching/list", _Manager_FindOnlineCanMatchingPerson0_HTTP_Handler(srv))
 }
 
 func _Manager_ManagerFindUserList0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
@@ -1050,7 +1052,35 @@ func _Manager_ManagerUserUnsubscribe0_HTTP_Handler(srv ManagerHTTPServer) func(c
 	}
 }
 
+func _Manager_FindOnlineCanMatchingPerson0_HTTP_Handler(srv ManagerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		var in emptypb.Empty
+		if err := ctx.Bind(&in); err != nil {
+			return err
+		}
+		if err := ctx.BindQuery(&in); err != nil {
+			return err
+		}
+		http.SetOperation(ctx, "/api.manager.Manager/FindOnlineCanMatchingPerson")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.FindOnlineCanMatchingPerson(ctx, req.(*emptypb.Empty))
+		})
+		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 ManagerHTTPClient interface {
+	FindOnlineCanMatchingPerson(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *websocket.FindOnlineCanMatchingPersonReply, err error)
 	FindOnlinePerson(ctx context.Context, req *FindOnlinePersonRequest, opts ...http.CallOption) (rsp *websocket.FindOnlinePersonReply, err error)
 	ManagerDeleteHighQualityUser(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	ManagerDeleteScrip(ctx context.Context, req *common.IDParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
@@ -1096,6 +1126,19 @@ func NewManagerHTTPClient(client *http.Client) ManagerHTTPClient {
 	return &ManagerHTTPClientImpl{client}
 }
 
+func (c *ManagerHTTPClientImpl) FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*websocket.FindOnlineCanMatchingPersonReply, error) {
+	var out websocket.FindOnlineCanMatchingPersonReply
+	pattern := "/api/manager/user/matching/list"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.manager.Manager/FindOnlineCanMatchingPerson"))
+	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 *ManagerHTTPClientImpl) FindOnlinePerson(ctx context.Context, in *FindOnlinePersonRequest, opts ...http.CallOption) (*websocket.FindOnlinePersonReply, error) {
 	var out websocket.FindOnlinePersonReply
 	pattern := "/api/manager/online/details/list"

+ 6 - 1
js/api/manager/manager_http_pb.ts

@@ -2,7 +2,7 @@
 import request from '@/libs/request';
 import {ManagerFindPersonListRequest,ManagerFindPersonListReply,ManagerFindPersonListReply2,ManagerFindCanHandpickUserListRequest,ManagerFindCanHandpickUserListReply,ManagerSetHandpickUserRequest,ManagerSetHandpickUserOneRequest,PersonIDParam,PersonIDList,ManagerUpdatePersonVoiceRequest,ManagerUpdatePersonPicturesRequest,ManagerUpdatePersonSignatureRequest,ManagerUpdatePersonAvatarRequest,ManagerUpdatePersonNameRequest,ManagerUpdatePersonWeightRequest,ManagerUpdatePersonIsBlackRequest,ManagerLoginRequest,LoginToken,ManagerFindRoomListRequest,ManagerFindRoomListReply,ManagerFindChatRecordListRequest,ChatRecordListReply,ManagerFindScripListRequest,ManagerScripReply,ManagerFindScripListV2Request,ManagerScripV2Reply,ManagerUpdateScripTextRequest,ManagerUpdateScripPictureRequest,IDParam,Ids,ManagerFindReportListRequest,ManagerFindReportListReply,ManagerFindReportDetailsListRequest,ManagerFindReportDetailsListReply} from "../common/common_pb";
 import {ManagerFindIsCheckQualityUserListRequest,ManagerMarkHighQualityUserRequest,ManagerReMarkHighQualityUserRequest,ManagerUpdateUserSexRequest,ManagerUpdateUserCreditRequest,OnlinePersonReply,FindOnlinePersonRequest,ManagerUserUnsubscribeRequest} from "./manager_pb";
-import {FindOnlinePersonReply} from "../websocket/websocket_pb";
+import {FindOnlinePersonReply,FindOnlineCanMatchingPersonReply} from "../websocket/websocket_pb";
 
 const ManagerService = {
   /**  管理员查询用户列表 */
@@ -180,6 +180,11 @@ const ManagerService = {
 	const res = await request.post('/api/manager/user/unsubscribe', req);
     return res.data.data;
   },
+  /**  查询在线可匹配人数 */
+  FindOnlineCanMatchingPerson: async (req?: undefined) => {
+	const res = await request.post<{ data: FindOnlineCanMatchingPersonReply, code: string, message: string }>('/api/manager/user/matching/list', req);
+    return res.data.data;
+  },
 
 };