Browse Source

更新今日被匹配数并返回用户信息

wfz 3 năm trước cách đây
mục cha
commit
51d58302b3

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 926 - 836
api/user/user.pb.go


+ 10 - 1
api/user/user.proto

@@ -551,6 +551,16 @@ service User {
   rpc SendNewVisitorTemplateReminder (common.PersonIDParam) returns (google.protobuf.Empty){};
   // 更新今日被匹配数
   rpc UpdateUserMatchedNum (UpdateUserMatchedNumRequest) returns (google.protobuf.Empty){};
+  //  更新今日被匹配数并返回用户信息
+  rpc UpdateUserMatchedNumAndReturnUserMsg (UpdateUserMatchedNumRequest) returns (UpdateUserMatchedNumAndReturnUserMsgReply){};
+}
+
+message UpdateUserMatchedNumAndReturnUserMsgReply{
+  int64 todayMatchedNum = 1;// 今日被匹配数
+  string nickname = 2;// 昵称
+  string avatarUrl =3;// 头像链接
+  int64 sex = 4;// 性别
+  int64 age = 5; // 年龄
 }
 
 message GetUserDBMsgFromWebsocketReply{
@@ -562,7 +572,6 @@ message GetUserDBMsgFromWebsocketReply{
 }
 
 message UpdateUserMatchedNumRequest{
-  int64 num = 1;// 今日被匹配数
   string userId = 2;
 }
 

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

@@ -198,6 +198,8 @@ type UserClient interface {
 	SendNewVisitorTemplateReminder(ctx context.Context, in *common.PersonIDParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 更新今日被匹配数
 	UpdateUserMatchedNum(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	//  更新今日被匹配数并返回用户信息
+	UpdateUserMatchedNumAndReturnUserMsg(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
 }
 
 type userClient struct {
@@ -982,6 +984,15 @@ func (c *userClient) UpdateUserMatchedNum(ctx context.Context, in *UpdateUserMat
 	return out, nil
 }
 
+func (c *userClient) UpdateUserMatchedNumAndReturnUserMsg(ctx context.Context, in *UpdateUserMatchedNumRequest, opts ...grpc.CallOption) (*UpdateUserMatchedNumAndReturnUserMsgReply, error) {
+	out := new(UpdateUserMatchedNumAndReturnUserMsgReply)
+	err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserMatchedNumAndReturnUserMsg", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // UserServer is the server API for User service.
 // All implementations must embed UnimplementedUserServer
 // for forward compatibility
@@ -1162,6 +1173,8 @@ type UserServer interface {
 	SendNewVisitorTemplateReminder(context.Context, *common.PersonIDParam) (*emptypb.Empty, error)
 	// 更新今日被匹配数
 	UpdateUserMatchedNum(context.Context, *UpdateUserMatchedNumRequest) (*emptypb.Empty, error)
+	//  更新今日被匹配数并返回用户信息
+	UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error)
 	mustEmbedUnimplementedUserServer()
 }
 
@@ -1427,6 +1440,9 @@ func (UnimplementedUserServer) SendNewVisitorTemplateReminder(context.Context, *
 func (UnimplementedUserServer) UpdateUserMatchedNum(context.Context, *UpdateUserMatchedNumRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UpdateUserMatchedNum not implemented")
 }
+func (UnimplementedUserServer) UpdateUserMatchedNumAndReturnUserMsg(context.Context, *UpdateUserMatchedNumRequest) (*UpdateUserMatchedNumAndReturnUserMsgReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UpdateUserMatchedNumAndReturnUserMsg not implemented")
+}
 func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
 
 // UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
@@ -2988,6 +3004,24 @@ func _User_UpdateUserMatchedNum_Handler(srv interface{}, ctx context.Context, de
 	return interceptor(ctx, in, info, handler)
 }
 
+func _User_UpdateUserMatchedNumAndReturnUserMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UpdateUserMatchedNumRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(UserServer).UpdateUserMatchedNumAndReturnUserMsg(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.user.User/UpdateUserMatchedNumAndReturnUserMsg",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(UserServer).UpdateUserMatchedNumAndReturnUserMsg(ctx, req.(*UpdateUserMatchedNumRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // User_ServiceDesc is the grpc.ServiceDesc for User service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -3339,6 +3373,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "UpdateUserMatchedNum",
 			Handler:    _User_UpdateUserMatchedNum_Handler,
 		},
+		{
+			MethodName: "UpdateUserMatchedNumAndReturnUserMsg",
+			Handler:    _User_UpdateUserMatchedNumAndReturnUserMsg_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "user.proto",

+ 436 - 175
api/websocket/websocket.pb.go

@@ -21,6 +21,132 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
+type FindOnlineCanMatchingPersonReply struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	List []*FindOnlineCanMatchingPersonInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list"`
+}
+
+func (x *FindOnlineCanMatchingPersonReply) Reset() {
+	*x = FindOnlineCanMatchingPersonReply{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_websocket_proto_msgTypes[0]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *FindOnlineCanMatchingPersonReply) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FindOnlineCanMatchingPersonReply) ProtoMessage() {}
+
+func (x *FindOnlineCanMatchingPersonReply) ProtoReflect() protoreflect.Message {
+	mi := &file_websocket_proto_msgTypes[0]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use FindOnlineCanMatchingPersonReply.ProtoReflect.Descriptor instead.
+func (*FindOnlineCanMatchingPersonReply) Descriptor() ([]byte, []int) {
+	return file_websocket_proto_rawDescGZIP(), []int{0}
+}
+
+func (x *FindOnlineCanMatchingPersonReply) GetList() []*FindOnlineCanMatchingPersonInfo {
+	if x != nil {
+		return x.List
+	}
+	return nil
+}
+
+type FindOnlineCanMatchingPersonInfo struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	TodayMatchedNum int64  `protobuf:"varint,1,opt,name=todayMatchedNum,proto3" json:"todayMatchedNum"` // 今日被匹配数
+	PersonId        string `protobuf:"bytes,2,opt,name=personId,proto3" json:"personId"`
+	Weight          int64  `protobuf:"varint,3,opt,name=weight,proto3" json:"weight"`              // 权重
+	WorkingStatus   string `protobuf:"bytes,4,opt,name=workingStatus,proto3" json:"workingStatus"` // 工作状态
+	Sex             int64  `protobuf:"varint,5,opt,name=sex,proto3" json:"sex"`                    // 性别
+}
+
+func (x *FindOnlineCanMatchingPersonInfo) Reset() {
+	*x = FindOnlineCanMatchingPersonInfo{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_websocket_proto_msgTypes[1]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *FindOnlineCanMatchingPersonInfo) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*FindOnlineCanMatchingPersonInfo) ProtoMessage() {}
+
+func (x *FindOnlineCanMatchingPersonInfo) ProtoReflect() protoreflect.Message {
+	mi := &file_websocket_proto_msgTypes[1]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use FindOnlineCanMatchingPersonInfo.ProtoReflect.Descriptor instead.
+func (*FindOnlineCanMatchingPersonInfo) Descriptor() ([]byte, []int) {
+	return file_websocket_proto_rawDescGZIP(), []int{1}
+}
+
+func (x *FindOnlineCanMatchingPersonInfo) GetTodayMatchedNum() int64 {
+	if x != nil {
+		return x.TodayMatchedNum
+	}
+	return 0
+}
+
+func (x *FindOnlineCanMatchingPersonInfo) GetPersonId() string {
+	if x != nil {
+		return x.PersonId
+	}
+	return ""
+}
+
+func (x *FindOnlineCanMatchingPersonInfo) GetWeight() int64 {
+	if x != nil {
+		return x.Weight
+	}
+	return 0
+}
+
+func (x *FindOnlineCanMatchingPersonInfo) GetWorkingStatus() string {
+	if x != nil {
+		return x.WorkingStatus
+	}
+	return ""
+}
+
+func (x *FindOnlineCanMatchingPersonInfo) GetSex() int64 {
+	if x != nil {
+		return x.Sex
+	}
+	return 0
+}
+
 type OnlinePersonReply struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -34,7 +160,7 @@ type OnlinePersonReply struct {
 func (x *OnlinePersonReply) Reset() {
 	*x = OnlinePersonReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[0]
+		mi := &file_websocket_proto_msgTypes[2]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -47,7 +173,7 @@ func (x *OnlinePersonReply) String() string {
 func (*OnlinePersonReply) ProtoMessage() {}
 
 func (x *OnlinePersonReply) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[0]
+	mi := &file_websocket_proto_msgTypes[2]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -60,7 +186,7 @@ func (x *OnlinePersonReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use OnlinePersonReply.ProtoReflect.Descriptor instead.
 func (*OnlinePersonReply) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{0}
+	return file_websocket_proto_rawDescGZIP(), []int{2}
 }
 
 func (x *OnlinePersonReply) GetUserManNum() int64 {
@@ -95,7 +221,7 @@ type CheckIsOnlineRequest struct {
 func (x *CheckIsOnlineRequest) Reset() {
 	*x = CheckIsOnlineRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[1]
+		mi := &file_websocket_proto_msgTypes[3]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -108,7 +234,7 @@ func (x *CheckIsOnlineRequest) String() string {
 func (*CheckIsOnlineRequest) ProtoMessage() {}
 
 func (x *CheckIsOnlineRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[1]
+	mi := &file_websocket_proto_msgTypes[3]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -121,7 +247,7 @@ func (x *CheckIsOnlineRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use CheckIsOnlineRequest.ProtoReflect.Descriptor instead.
 func (*CheckIsOnlineRequest) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{1}
+	return file_websocket_proto_rawDescGZIP(), []int{3}
 }
 
 func (x *CheckIsOnlineRequest) GetUserId() string {
@@ -142,7 +268,7 @@ type CheckIsOnlineByIDsParam struct {
 func (x *CheckIsOnlineByIDsParam) Reset() {
 	*x = CheckIsOnlineByIDsParam{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[2]
+		mi := &file_websocket_proto_msgTypes[4]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -155,7 +281,7 @@ func (x *CheckIsOnlineByIDsParam) String() string {
 func (*CheckIsOnlineByIDsParam) ProtoMessage() {}
 
 func (x *CheckIsOnlineByIDsParam) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[2]
+	mi := &file_websocket_proto_msgTypes[4]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -168,7 +294,7 @@ func (x *CheckIsOnlineByIDsParam) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use CheckIsOnlineByIDsParam.ProtoReflect.Descriptor instead.
 func (*CheckIsOnlineByIDsParam) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{2}
+	return file_websocket_proto_rawDescGZIP(), []int{4}
 }
 
 func (x *CheckIsOnlineByIDsParam) GetUserIds() []string {
@@ -189,7 +315,7 @@ type CheckIsOnlineReply struct {
 func (x *CheckIsOnlineReply) Reset() {
 	*x = CheckIsOnlineReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[3]
+		mi := &file_websocket_proto_msgTypes[5]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -202,7 +328,7 @@ func (x *CheckIsOnlineReply) String() string {
 func (*CheckIsOnlineReply) ProtoMessage() {}
 
 func (x *CheckIsOnlineReply) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[3]
+	mi := &file_websocket_proto_msgTypes[5]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -215,7 +341,7 @@ func (x *CheckIsOnlineReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use CheckIsOnlineReply.ProtoReflect.Descriptor instead.
 func (*CheckIsOnlineReply) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{3}
+	return file_websocket_proto_rawDescGZIP(), []int{5}
 }
 
 func (x *CheckIsOnlineReply) GetIsOnline() bool {
@@ -237,7 +363,7 @@ type UpdateWorkingStatusRequest struct {
 func (x *UpdateWorkingStatusRequest) Reset() {
 	*x = UpdateWorkingStatusRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[4]
+		mi := &file_websocket_proto_msgTypes[6]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -250,7 +376,7 @@ func (x *UpdateWorkingStatusRequest) String() string {
 func (*UpdateWorkingStatusRequest) ProtoMessage() {}
 
 func (x *UpdateWorkingStatusRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[4]
+	mi := &file_websocket_proto_msgTypes[6]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -263,7 +389,7 @@ func (x *UpdateWorkingStatusRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UpdateWorkingStatusRequest.ProtoReflect.Descriptor instead.
 func (*UpdateWorkingStatusRequest) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{4}
+	return file_websocket_proto_rawDescGZIP(), []int{6}
 }
 
 func (x *UpdateWorkingStatusRequest) GetId() string {
@@ -292,7 +418,7 @@ type UpdateWeightRequest struct {
 func (x *UpdateWeightRequest) Reset() {
 	*x = UpdateWeightRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[5]
+		mi := &file_websocket_proto_msgTypes[7]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -305,7 +431,7 @@ func (x *UpdateWeightRequest) String() string {
 func (*UpdateWeightRequest) ProtoMessage() {}
 
 func (x *UpdateWeightRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[5]
+	mi := &file_websocket_proto_msgTypes[7]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -318,7 +444,7 @@ func (x *UpdateWeightRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UpdateWeightRequest.ProtoReflect.Descriptor instead.
 func (*UpdateWeightRequest) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{5}
+	return file_websocket_proto_rawDescGZIP(), []int{7}
 }
 
 func (x *UpdateWeightRequest) GetId() string {
@@ -335,6 +461,61 @@ func (x *UpdateWeightRequest) GetWeight() int64 {
 	return 0
 }
 
+type UpdateTodayMatchedNumRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Id              string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
+	TodayMatchedNum int64  `protobuf:"varint,2,opt,name=todayMatchedNum,proto3" json:"todayMatchedNum"`
+}
+
+func (x *UpdateTodayMatchedNumRequest) Reset() {
+	*x = UpdateTodayMatchedNumRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_websocket_proto_msgTypes[8]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *UpdateTodayMatchedNumRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*UpdateTodayMatchedNumRequest) ProtoMessage() {}
+
+func (x *UpdateTodayMatchedNumRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_websocket_proto_msgTypes[8]
+	if protoimpl.UnsafeEnabled && x != nil {
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		if ms.LoadMessageInfo() == nil {
+			ms.StoreMessageInfo(mi)
+		}
+		return ms
+	}
+	return mi.MessageOf(x)
+}
+
+// Deprecated: Use UpdateTodayMatchedNumRequest.ProtoReflect.Descriptor instead.
+func (*UpdateTodayMatchedNumRequest) Descriptor() ([]byte, []int) {
+	return file_websocket_proto_rawDescGZIP(), []int{8}
+}
+
+func (x *UpdateTodayMatchedNumRequest) GetId() string {
+	if x != nil {
+		return x.Id
+	}
+	return ""
+}
+
+func (x *UpdateTodayMatchedNumRequest) GetTodayMatchedNum() int64 {
+	if x != nil {
+		return x.TodayMatchedNum
+	}
+	return 0
+}
+
 type MessageInfo struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -348,7 +529,7 @@ type MessageInfo struct {
 func (x *MessageInfo) Reset() {
 	*x = MessageInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[6]
+		mi := &file_websocket_proto_msgTypes[9]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -361,7 +542,7 @@ func (x *MessageInfo) String() string {
 func (*MessageInfo) ProtoMessage() {}
 
 func (x *MessageInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[6]
+	mi := &file_websocket_proto_msgTypes[9]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -374,7 +555,7 @@ func (x *MessageInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use MessageInfo.ProtoReflect.Descriptor instead.
 func (*MessageInfo) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{6}
+	return file_websocket_proto_rawDescGZIP(), []int{9}
 }
 
 func (x *MessageInfo) GetRoomId() int64 {
@@ -414,7 +595,7 @@ type SendMsgRequest struct {
 func (x *SendMsgRequest) Reset() {
 	*x = SendMsgRequest{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[7]
+		mi := &file_websocket_proto_msgTypes[10]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -427,7 +608,7 @@ func (x *SendMsgRequest) String() string {
 func (*SendMsgRequest) ProtoMessage() {}
 
 func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[7]
+	mi := &file_websocket_proto_msgTypes[10]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -440,7 +621,7 @@ func (x *SendMsgRequest) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use SendMsgRequest.ProtoReflect.Descriptor instead.
 func (*SendMsgRequest) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{7}
+	return file_websocket_proto_rawDescGZIP(), []int{10}
 }
 
 func (x *SendMsgRequest) GetId() string {
@@ -494,7 +675,7 @@ type SendMsgReply struct {
 func (x *SendMsgReply) Reset() {
 	*x = SendMsgReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[8]
+		mi := &file_websocket_proto_msgTypes[11]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -507,7 +688,7 @@ func (x *SendMsgReply) String() string {
 func (*SendMsgReply) ProtoMessage() {}
 
 func (x *SendMsgReply) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[8]
+	mi := &file_websocket_proto_msgTypes[11]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -520,7 +701,7 @@ func (x *SendMsgReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use SendMsgReply.ProtoReflect.Descriptor instead.
 func (*SendMsgReply) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{8}
+	return file_websocket_proto_rawDescGZIP(), []int{11}
 }
 
 type FindOnlinePersonReply struct {
@@ -534,7 +715,7 @@ type FindOnlinePersonReply struct {
 func (x *FindOnlinePersonReply) Reset() {
 	*x = FindOnlinePersonReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[9]
+		mi := &file_websocket_proto_msgTypes[12]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -547,7 +728,7 @@ func (x *FindOnlinePersonReply) String() string {
 func (*FindOnlinePersonReply) ProtoMessage() {}
 
 func (x *FindOnlinePersonReply) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[9]
+	mi := &file_websocket_proto_msgTypes[12]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -560,7 +741,7 @@ func (x *FindOnlinePersonReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use FindOnlinePersonReply.ProtoReflect.Descriptor instead.
 func (*FindOnlinePersonReply) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{9}
+	return file_websocket_proto_rawDescGZIP(), []int{12}
 }
 
 func (x *FindOnlinePersonReply) GetList() []*OnlinePersonInfo {
@@ -584,7 +765,7 @@ type OnlinePersonInfo struct {
 func (x *OnlinePersonInfo) Reset() {
 	*x = OnlinePersonInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_websocket_proto_msgTypes[10]
+		mi := &file_websocket_proto_msgTypes[13]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -597,7 +778,7 @@ func (x *OnlinePersonInfo) String() string {
 func (*OnlinePersonInfo) ProtoMessage() {}
 
 func (x *OnlinePersonInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_websocket_proto_msgTypes[10]
+	mi := &file_websocket_proto_msgTypes[13]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -610,7 +791,7 @@ func (x *OnlinePersonInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use OnlinePersonInfo.ProtoReflect.Descriptor instead.
 func (*OnlinePersonInfo) Descriptor() ([]byte, []int) {
-	return file_websocket_proto_rawDescGZIP(), []int{10}
+	return file_websocket_proto_rawDescGZIP(), []int{13}
 }
 
 func (x *OnlinePersonInfo) GetPersonId() string {
@@ -647,107 +828,143 @@ var file_websocket_proto_rawDesc = []byte{
 	0x0a, 0x0f, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
 	0x6f, 0x12, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74,
 	0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
-	0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7b, 0x0a,
-	0x11, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70,
-	0x6c, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x4e, 0x75, 0x6d,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x4e,
-	0x75, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x57, 0x6f, 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, 0x22, 0x2e, 0x0a, 0x14, 0x43, 0x68,
-	0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
-	0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x17, 0x43, 0x68,
-	0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x49, 0x44, 0x73,
-	0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73,
-	0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x73, 0x22,
-	0x30, 0x0a, 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65,
-	0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
-	0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
-	0x65, 0x22, 0x52, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69,
-	0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
-	0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
-	0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
-	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53,
-	0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3d, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57,
-	0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02,
-	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
-	0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x77, 0x65,
-	0x69, 0x67, 0x68, 0x74, 0x22, 0x59, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49,
-	0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20,
-	0x01, 0x28, 0x03, 0x52, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d,
-	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65,
-	0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65,
-	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22,
-	0x9e, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65,
-	0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
-	0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61,
-	0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12,
-	0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f,
-	0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c,
-	0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x0c, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67,
-	0x22, 0x0e, 0x0a, 0x0c, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79,
-	0x22, 0x4c, 0x0a, 0x15, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65,
-	0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x33, 0x0a, 0x04, 0x6c, 0x69, 0x73,
-	0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65,
-	0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65,
-	0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x7e,
-	0x0a, 0x10, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e,
-	0x66, 0x6f, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02,
-	0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16,
-	0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
-	0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e,
-	0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77,
-	0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03,
-	0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0xe4,
-	0x04, 0x0a, 0x09, 0x57, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x50, 0x0a, 0x10,
+	0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x66, 0x0a,
+	0x20, 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, 0x12, 0x42, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
+	0x2e, 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, 0x49, 0x6e, 0x66, 0x6f, 0x52,
+	0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xb7, 0x01, 0x0a, 0x1f, 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, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x6f, 0x64,
+	0x61, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01,
+	0x28, 0x03, 0x52, 0x0f, 0x74, 0x6f, 0x64, 0x61, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64,
+	0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18,
+	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12,
+	0x16, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
+	0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69,
+	0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d,
+	0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a,
+	0x03, 0x73, 0x65, 0x78, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x22,
+	0x7b, 0x0a, 0x11, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52,
+	0x65, 0x70, 0x6c, 0x79, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x6e, 0x4e,
+	0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x4d, 0x61,
+	0x6e, 0x4e, 0x75, 0x6d, 0x12, 0x22, 0x0a, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x57, 0x6f, 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, 0x22, 0x2e, 0x0a, 0x14,
+	0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71,
+	0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22, 0x33, 0x0a, 0x17,
+	0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x49,
+	0x44, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49,
+	0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64,
+	0x73, 0x22, 0x30, 0x0a, 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69,
+	0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x73, 0x4f, 0x6e, 0x6c,
+	0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x69, 0x73, 0x4f, 0x6e, 0x6c,
+	0x69, 0x6e, 0x65, 0x22, 0x52, 0x0a, 0x1a, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72,
+	0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
+	0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
+	0x64, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74,
+	0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e,
+	0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3d, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74,
+	0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
+	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16,
+	0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
+	0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x58, 0x0a, 0x1c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
+	0x54, 0x6f, 0x64, 0x61, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x52,
+	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x28, 0x0a, 0x0f, 0x74, 0x6f, 0x64, 0x61, 0x79, 0x4d,
+	0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
+	0x0f, 0x74, 0x6f, 0x64, 0x61, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x4e, 0x75, 0x6d,
+	0x22, 0x59, 0x0a, 0x0b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12,
+	0x16, 0x0a, 0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
+	0x06, 0x72, 0x6f, 0x6f, 0x6d, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
+	0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
+	0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x07, 0x6d, 0x73, 0x67, 0x54, 0x79, 0x70, 0x65, 0x22, 0x9e, 0x01, 0x0a, 0x0e,
+	0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e,
+	0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x16,
+	0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
+	0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03,
+	0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
+	0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18,
+	0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x77, 0x65, 0x62, 0x73,
+	0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
+	0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x67, 0x22, 0x0e, 0x0a, 0x0c,
+	0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x4c, 0x0a, 0x15,
 	0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 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, 0x24, 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, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x47,
-	0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e,
-	0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73,
-	0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77,
-	0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67,
-	0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x13, 0x55, 0x70, 0x64, 0x61, 0x74,
-	0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x29,
-	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x55,
-	0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74,
-	0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
+	0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x33, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20,
+	0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
+	0x6b, 0x65, 0x74, 0x2e, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
+	0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x7e, 0x0a, 0x10, 0x4f, 0x6e,
+	0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a,
+	0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x77, 0x65,
+	0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67,
+	0x68, 0x74, 0x12, 0x24, 0x0a, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61,
+	0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x77, 0x6f, 0x72, 0x6b, 0x69,
+	0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18,
+	0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0xac, 0x06, 0x0a, 0x09, 0x57,
+	0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x12, 0x50, 0x0a, 0x10, 0x46, 0x69, 0x6e, 0x64,
+	0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 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, 0x24, 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, 0x50,
+	0x65, 0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x66, 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, 0x22, 0x00, 0x12, 0x4c, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x69,
-	0x67, 0x68, 0x74, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
-	0x6b, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74,
-	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,
-	0x00, 0x12, 0x59, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69,
-	0x6e, 0x65, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
-	0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65,
-	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65,
-	0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f,
-	0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x12,
-	0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x49,
-	0x44, 0x73, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
-	0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65,
-	0x42, 0x79, 0x49, 0x44, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x26, 0x2e, 0x61, 0x70, 0x69,
-	0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b,
-	0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x49, 0x44, 0x73, 0x50, 0x61, 0x72,
-	0x61, 0x6d, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64, 0x4f, 0x6e, 0x6c, 0x69,
-	0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x12, 0x16, 0x2e, 0x67, 0x6f,
+	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, 0x12, 0x47, 0x0a, 0x07, 0x53, 0x65, 0x6e, 0x64, 0x4d, 0x73, 0x67, 0x12, 0x1d, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x53, 0x65,
+	0x6e, 0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x53, 0x65, 0x6e,
+	0x64, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x12, 0x5a, 0x0a, 0x13, 0x55,
+	0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74,
+	0x75, 0x73, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b,
+	0x65, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67,
+	0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 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, 0x00, 0x12, 0x4c, 0x0a, 0x0c, 0x55, 0x70, 0x64, 0x61, 0x74,
+	0x65, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x22, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65,
+	0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x57, 0x65,
+	0x69, 0x67, 0x68, 0x74, 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, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
-	0x6b, 0x65, 0x74, 0x2e, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
-	0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62,
-	0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x39, 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,
-	0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x3b, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63,
-	0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x70, 0x74, 0x79, 0x22, 0x00, 0x12, 0x5e, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54,
+	0x6f, 0x64, 0x61, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x2b,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x55,
+	0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x6f, 0x64, 0x61, 0x79, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x65,
+	0x64, 0x4e, 0x75, 0x6d, 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, 0x00, 0x12, 0x59, 0x0a, 0x0d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73,
+	0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x12, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62,
+	0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e,
+	0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63,
+	0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
+	0x12, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e,
+	0x65, 0x42, 0x79, 0x49, 0x44, 0x73, 0x12, 0x26, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62,
+	0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e,
+	0x6c, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x49, 0x44, 0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x26,
+	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x43,
+	0x68, 0x65, 0x63, 0x6b, 0x49, 0x73, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x42, 0x79, 0x49, 0x44,
+	0x73, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x13, 0x46, 0x69, 0x6e, 0x64,
+	0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 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, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x77, 0x65,
+	0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x2e, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x65,
+	0x72, 0x73, 0x6f, 0x6e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x4c, 0x0a, 0x0d, 0x61, 0x70, 0x69,
+	0x2e, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x50, 0x01, 0x5a, 0x39, 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, 0x77, 0x65, 0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x3b, 0x77, 0x65,
+	0x62, 0x73, 0x6f, 0x63, 0x6b, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -762,42 +979,50 @@ func file_websocket_proto_rawDescGZIP() []byte {
 	return file_websocket_proto_rawDescData
 }
 
-var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
+var file_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
 var file_websocket_proto_goTypes = []interface{}{
-	(*OnlinePersonReply)(nil),          // 0: api.websocket.OnlinePersonReply
-	(*CheckIsOnlineRequest)(nil),       // 1: api.websocket.CheckIsOnlineRequest
-	(*CheckIsOnlineByIDsParam)(nil),    // 2: api.websocket.CheckIsOnlineByIDsParam
-	(*CheckIsOnlineReply)(nil),         // 3: api.websocket.CheckIsOnlineReply
-	(*UpdateWorkingStatusRequest)(nil), // 4: api.websocket.UpdateWorkingStatusRequest
-	(*UpdateWeightRequest)(nil),        // 5: api.websocket.UpdateWeightRequest
-	(*MessageInfo)(nil),                // 6: api.websocket.MessageInfo
-	(*SendMsgRequest)(nil),             // 7: api.websocket.SendMsgRequest
-	(*SendMsgReply)(nil),               // 8: api.websocket.SendMsgReply
-	(*FindOnlinePersonReply)(nil),      // 9: api.websocket.FindOnlinePersonReply
-	(*OnlinePersonInfo)(nil),           // 10: api.websocket.OnlinePersonInfo
-	(*emptypb.Empty)(nil),              // 11: google.protobuf.Empty
+	(*FindOnlineCanMatchingPersonReply)(nil), // 0: api.websocket.FindOnlineCanMatchingPersonReply
+	(*FindOnlineCanMatchingPersonInfo)(nil),  // 1: api.websocket.FindOnlineCanMatchingPersonInfo
+	(*OnlinePersonReply)(nil),                // 2: api.websocket.OnlinePersonReply
+	(*CheckIsOnlineRequest)(nil),             // 3: api.websocket.CheckIsOnlineRequest
+	(*CheckIsOnlineByIDsParam)(nil),          // 4: api.websocket.CheckIsOnlineByIDsParam
+	(*CheckIsOnlineReply)(nil),               // 5: api.websocket.CheckIsOnlineReply
+	(*UpdateWorkingStatusRequest)(nil),       // 6: api.websocket.UpdateWorkingStatusRequest
+	(*UpdateWeightRequest)(nil),              // 7: api.websocket.UpdateWeightRequest
+	(*UpdateTodayMatchedNumRequest)(nil),     // 8: api.websocket.UpdateTodayMatchedNumRequest
+	(*MessageInfo)(nil),                      // 9: api.websocket.MessageInfo
+	(*SendMsgRequest)(nil),                   // 10: api.websocket.SendMsgRequest
+	(*SendMsgReply)(nil),                     // 11: api.websocket.SendMsgReply
+	(*FindOnlinePersonReply)(nil),            // 12: api.websocket.FindOnlinePersonReply
+	(*OnlinePersonInfo)(nil),                 // 13: api.websocket.OnlinePersonInfo
+	(*emptypb.Empty)(nil),                    // 14: google.protobuf.Empty
 }
 var file_websocket_proto_depIdxs = []int32{
-	10, // 0: api.websocket.FindOnlinePersonReply.list:type_name -> api.websocket.OnlinePersonInfo
-	11, // 1: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
-	7,  // 2: api.websocket.Websocket.SendMsg:input_type -> api.websocket.SendMsgRequest
-	4,  // 3: api.websocket.Websocket.UpdateWorkingStatus:input_type -> api.websocket.UpdateWorkingStatusRequest
-	5,  // 4: api.websocket.Websocket.UpdateWeight:input_type -> api.websocket.UpdateWeightRequest
-	1,  // 5: api.websocket.Websocket.CheckIsOnline:input_type -> api.websocket.CheckIsOnlineRequest
-	2,  // 6: api.websocket.Websocket.CheckIsOnlineByIDs:input_type -> api.websocket.CheckIsOnlineByIDsParam
-	11, // 7: api.websocket.Websocket.FindOnlinePersonNum:input_type -> google.protobuf.Empty
-	9,  // 8: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
-	8,  // 9: api.websocket.Websocket.SendMsg:output_type -> api.websocket.SendMsgReply
-	11, // 10: api.websocket.Websocket.UpdateWorkingStatus:output_type -> google.protobuf.Empty
-	11, // 11: api.websocket.Websocket.UpdateWeight:output_type -> google.protobuf.Empty
-	3,  // 12: api.websocket.Websocket.CheckIsOnline:output_type -> api.websocket.CheckIsOnlineReply
-	2,  // 13: api.websocket.Websocket.CheckIsOnlineByIDs:output_type -> api.websocket.CheckIsOnlineByIDsParam
-	0,  // 14: api.websocket.Websocket.FindOnlinePersonNum:output_type -> api.websocket.OnlinePersonReply
-	8,  // [8:15] is the sub-list for method output_type
-	1,  // [1:8] 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
+	1,  // 0: api.websocket.FindOnlineCanMatchingPersonReply.list:type_name -> api.websocket.FindOnlineCanMatchingPersonInfo
+	13, // 1: api.websocket.FindOnlinePersonReply.list:type_name -> api.websocket.OnlinePersonInfo
+	14, // 2: api.websocket.Websocket.FindOnlinePerson:input_type -> google.protobuf.Empty
+	14, // 3: api.websocket.Websocket.FindOnlineCanMatchingPerson:input_type -> google.protobuf.Empty
+	10, // 4: api.websocket.Websocket.SendMsg:input_type -> api.websocket.SendMsgRequest
+	6,  // 5: api.websocket.Websocket.UpdateWorkingStatus:input_type -> api.websocket.UpdateWorkingStatusRequest
+	7,  // 6: api.websocket.Websocket.UpdateWeight:input_type -> api.websocket.UpdateWeightRequest
+	8,  // 7: api.websocket.Websocket.UpdateTodayMatchedNum:input_type -> api.websocket.UpdateTodayMatchedNumRequest
+	3,  // 8: api.websocket.Websocket.CheckIsOnline:input_type -> api.websocket.CheckIsOnlineRequest
+	4,  // 9: api.websocket.Websocket.CheckIsOnlineByIDs:input_type -> api.websocket.CheckIsOnlineByIDsParam
+	14, // 10: api.websocket.Websocket.FindOnlinePersonNum:input_type -> google.protobuf.Empty
+	12, // 11: api.websocket.Websocket.FindOnlinePerson:output_type -> api.websocket.FindOnlinePersonReply
+	0,  // 12: api.websocket.Websocket.FindOnlineCanMatchingPerson:output_type -> api.websocket.FindOnlineCanMatchingPersonReply
+	11, // 13: api.websocket.Websocket.SendMsg:output_type -> api.websocket.SendMsgReply
+	14, // 14: api.websocket.Websocket.UpdateWorkingStatus:output_type -> google.protobuf.Empty
+	14, // 15: api.websocket.Websocket.UpdateWeight:output_type -> google.protobuf.Empty
+	14, // 16: api.websocket.Websocket.UpdateTodayMatchedNum:output_type -> google.protobuf.Empty
+	5,  // 17: api.websocket.Websocket.CheckIsOnline:output_type -> api.websocket.CheckIsOnlineReply
+	4,  // 18: api.websocket.Websocket.CheckIsOnlineByIDs:output_type -> api.websocket.CheckIsOnlineByIDsParam
+	2,  // 19: api.websocket.Websocket.FindOnlinePersonNum:output_type -> api.websocket.OnlinePersonReply
+	11, // [11:20] is the sub-list for method output_type
+	2,  // [2:11] 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
 }
 
 func init() { file_websocket_proto_init() }
@@ -807,7 +1032,7 @@ func file_websocket_proto_init() {
 	}
 	if !protoimpl.UnsafeEnabled {
 		file_websocket_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*OnlinePersonReply); i {
+			switch v := v.(*FindOnlineCanMatchingPersonReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -819,7 +1044,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*CheckIsOnlineRequest); i {
+			switch v := v.(*FindOnlineCanMatchingPersonInfo); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -831,7 +1056,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*CheckIsOnlineByIDsParam); i {
+			switch v := v.(*OnlinePersonReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -843,7 +1068,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*CheckIsOnlineReply); i {
+			switch v := v.(*CheckIsOnlineRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -855,7 +1080,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*UpdateWorkingStatusRequest); i {
+			switch v := v.(*CheckIsOnlineByIDsParam); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -867,7 +1092,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*UpdateWeightRequest); i {
+			switch v := v.(*CheckIsOnlineReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -879,7 +1104,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*MessageInfo); i {
+			switch v := v.(*UpdateWorkingStatusRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -891,7 +1116,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*SendMsgRequest); i {
+			switch v := v.(*UpdateWeightRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -903,7 +1128,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*SendMsgReply); i {
+			switch v := v.(*UpdateTodayMatchedNumRequest); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -915,7 +1140,7 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*FindOnlinePersonReply); i {
+			switch v := v.(*MessageInfo); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -927,6 +1152,42 @@ func file_websocket_proto_init() {
 			}
 		}
 		file_websocket_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*SendMsgRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_websocket_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*SendMsgReply); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_websocket_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*FindOnlinePersonReply); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_websocket_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*OnlinePersonInfo); i {
 			case 0:
 				return &v.state
@@ -945,7 +1206,7 @@ func file_websocket_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_websocket_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   11,
+			NumMessages:   14,
 			NumExtensions: 0,
 			NumServices:   1,
 		},

+ 20 - 0
api/websocket/websocket.proto

@@ -13,12 +13,16 @@ option java_package = "api.websocket";
 service Websocket {
   // 查询在线人数
   rpc FindOnlinePerson (google.protobuf.Empty) returns (FindOnlinePersonReply);
+  // 查询在线人数
+  rpc FindOnlineCanMatchingPerson (google.protobuf.Empty) returns (FindOnlineCanMatchingPersonReply);
   // 发送消息
   rpc SendMsg (SendMsgRequest) returns (SendMsgReply){};
   // 更新工作状态
   rpc UpdateWorkingStatus (UpdateWorkingStatusRequest) returns (google.protobuf.Empty){};
   // 更新权重
   rpc UpdateWeight (UpdateWeightRequest) returns (google.protobuf.Empty){};
+  // 更新每日被匹配数
+  rpc UpdateTodayMatchedNum (UpdateTodayMatchedNumRequest) returns (google.protobuf.Empty){};
   // 检查是否在线
   rpc CheckIsOnline (CheckIsOnlineRequest) returns (CheckIsOnlineReply){};
   // 检查是否在线
@@ -27,6 +31,18 @@ service Websocket {
   rpc FindOnlinePersonNum (google.protobuf.Empty) returns (OnlinePersonReply);
 }
 
+message FindOnlineCanMatchingPersonReply{
+ repeated FindOnlineCanMatchingPersonInfo list = 1;
+}
+
+message FindOnlineCanMatchingPersonInfo{
+  int64 todayMatchedNum = 1;// 今日被匹配数
+  string personId = 2;
+  int64 weight = 3;// 权重
+  string workingStatus = 4;// 工作状态
+  int64 sex = 5;// 性别
+}
+
 message OnlinePersonReply{
   int64 userManNum = 1; // 男用户在线数
   int64 userWomanNum = 2; // 女用户在线数
@@ -53,6 +69,10 @@ message UpdateWeightRequest{
   string id = 1;
   int64 weight = 2;
 }
+message UpdateTodayMatchedNumRequest{
+  string id = 1;
+  int64 todayMatchedNum = 2;
+}
 
 message MessageInfo{
   int64 roomId = 1; // 房间ID

+ 76 - 0
api/websocket/websocket_grpc.pb.go

@@ -21,12 +21,16 @@ const _ = grpc.SupportPackageIsVersion7
 type WebsocketClient interface {
 	// 查询在线人数
 	FindOnlinePerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlinePersonReply, error)
+	// 查询在线人数
+	FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error)
 	// 发送消息
 	SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*SendMsgReply, error)
 	// 更新工作状态
 	UpdateWorkingStatus(ctx context.Context, in *UpdateWorkingStatusRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 更新权重
 	UpdateWeight(ctx context.Context, in *UpdateWeightRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 更新每日被匹配数
+	UpdateTodayMatchedNum(ctx context.Context, in *UpdateTodayMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 检查是否在线
 	CheckIsOnline(ctx context.Context, in *CheckIsOnlineRequest, opts ...grpc.CallOption) (*CheckIsOnlineReply, error)
 	// 检查是否在线
@@ -52,6 +56,15 @@ func (c *websocketClient) FindOnlinePerson(ctx context.Context, in *emptypb.Empt
 	return out, nil
 }
 
+func (c *websocketClient) FindOnlineCanMatchingPerson(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FindOnlineCanMatchingPersonReply, error) {
+	out := new(FindOnlineCanMatchingPersonReply)
+	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/FindOnlineCanMatchingPerson", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *websocketClient) SendMsg(ctx context.Context, in *SendMsgRequest, opts ...grpc.CallOption) (*SendMsgReply, error) {
 	out := new(SendMsgReply)
 	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/SendMsg", in, out, opts...)
@@ -79,6 +92,15 @@ func (c *websocketClient) UpdateWeight(ctx context.Context, in *UpdateWeightRequ
 	return out, nil
 }
 
+func (c *websocketClient) UpdateTodayMatchedNum(ctx context.Context, in *UpdateTodayMatchedNumRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/UpdateTodayMatchedNum", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 func (c *websocketClient) CheckIsOnline(ctx context.Context, in *CheckIsOnlineRequest, opts ...grpc.CallOption) (*CheckIsOnlineReply, error) {
 	out := new(CheckIsOnlineReply)
 	err := c.cc.Invoke(ctx, "/api.websocket.Websocket/CheckIsOnline", in, out, opts...)
@@ -112,12 +134,16 @@ func (c *websocketClient) FindOnlinePersonNum(ctx context.Context, in *emptypb.E
 type WebsocketServer interface {
 	// 查询在线人数
 	FindOnlinePerson(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error)
+	// 查询在线人数
+	FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error)
 	// 发送消息
 	SendMsg(context.Context, *SendMsgRequest) (*SendMsgReply, error)
 	// 更新工作状态
 	UpdateWorkingStatus(context.Context, *UpdateWorkingStatusRequest) (*emptypb.Empty, error)
 	// 更新权重
 	UpdateWeight(context.Context, *UpdateWeightRequest) (*emptypb.Empty, error)
+	// 更新每日被匹配数
+	UpdateTodayMatchedNum(context.Context, *UpdateTodayMatchedNumRequest) (*emptypb.Empty, error)
 	// 检查是否在线
 	CheckIsOnline(context.Context, *CheckIsOnlineRequest) (*CheckIsOnlineReply, error)
 	// 检查是否在线
@@ -134,6 +160,9 @@ type UnimplementedWebsocketServer struct {
 func (UnimplementedWebsocketServer) FindOnlinePerson(context.Context, *emptypb.Empty) (*FindOnlinePersonReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method FindOnlinePerson not implemented")
 }
+func (UnimplementedWebsocketServer) FindOnlineCanMatchingPerson(context.Context, *emptypb.Empty) (*FindOnlineCanMatchingPersonReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method FindOnlineCanMatchingPerson not implemented")
+}
 func (UnimplementedWebsocketServer) SendMsg(context.Context, *SendMsgRequest) (*SendMsgReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method SendMsg not implemented")
 }
@@ -143,6 +172,9 @@ func (UnimplementedWebsocketServer) UpdateWorkingStatus(context.Context, *Update
 func (UnimplementedWebsocketServer) UpdateWeight(context.Context, *UpdateWeightRequest) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UpdateWeight not implemented")
 }
+func (UnimplementedWebsocketServer) UpdateTodayMatchedNum(context.Context, *UpdateTodayMatchedNumRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UpdateTodayMatchedNum not implemented")
+}
 func (UnimplementedWebsocketServer) CheckIsOnline(context.Context, *CheckIsOnlineRequest) (*CheckIsOnlineReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method CheckIsOnline not implemented")
 }
@@ -183,6 +215,24 @@ func _Websocket_FindOnlinePerson_Handler(srv interface{}, ctx context.Context, d
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Websocket_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.(WebsocketServer).FindOnlineCanMatchingPerson(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.websocket.Websocket/FindOnlineCanMatchingPerson",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(WebsocketServer).FindOnlineCanMatchingPerson(ctx, req.(*emptypb.Empty))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _Websocket_SendMsg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(SendMsgRequest)
 	if err := dec(in); err != nil {
@@ -237,6 +287,24 @@ func _Websocket_UpdateWeight_Handler(srv interface{}, ctx context.Context, dec f
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Websocket_UpdateTodayMatchedNum_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(UpdateTodayMatchedNumRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(WebsocketServer).UpdateTodayMatchedNum(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.websocket.Websocket/UpdateTodayMatchedNum",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(WebsocketServer).UpdateTodayMatchedNum(ctx, req.(*UpdateTodayMatchedNumRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 func _Websocket_CheckIsOnline_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(CheckIsOnlineRequest)
 	if err := dec(in); err != nil {
@@ -302,6 +370,10 @@ var Websocket_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "FindOnlinePerson",
 			Handler:    _Websocket_FindOnlinePerson_Handler,
 		},
+		{
+			MethodName: "FindOnlineCanMatchingPerson",
+			Handler:    _Websocket_FindOnlineCanMatchingPerson_Handler,
+		},
 		{
 			MethodName: "SendMsg",
 			Handler:    _Websocket_SendMsg_Handler,
@@ -314,6 +386,10 @@ var Websocket_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "UpdateWeight",
 			Handler:    _Websocket_UpdateWeight_Handler,
 		},
+		{
+			MethodName: "UpdateTodayMatchedNum",
+			Handler:    _Websocket_UpdateTodayMatchedNum_Handler,
+		},
 		{
 			MethodName: "CheckIsOnline",
 			Handler:    _Websocket_CheckIsOnline_Handler,

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

@@ -1,6 +1,6 @@
 // @ts-ignore
 import request from '@/libs/request';
-import {UserInfo,UserBalance,UserFindChatListReply,CreateScripRequest,DeleteScripRequest,UserFindScripRequest,PersonLookScripRequest,ReplyScripRequest,KeyRequest,InformationStatus,UserRechargeRequest,PayInfo,RechargeList,FindPayOrderListRequest,PayOrderList,FindMatchingAvatarAndNumReply,UserFreeNum,GetUserDBMsgFromWebsocketReply,SendNewMessageUnreadReminderRequest,UpdateUserMatchedNumRequest} from "./user_pb";
+import {UserInfo,UserBalance,UserFindChatListReply,CreateScripRequest,DeleteScripRequest,UserFindScripRequest,PersonLookScripRequest,ReplyScripRequest,KeyRequest,InformationStatus,UserRechargeRequest,PayInfo,RechargeList,FindPayOrderListRequest,PayOrderList,FindMatchingAvatarAndNumReply,UserFreeNum,GetUserDBMsgFromWebsocketReply,SendNewMessageUnreadReminderRequest,UpdateUserMatchedNumRequest,UpdateUserMatchedNumAndReturnUserMsgReply} from "./user_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,ChatCardInfo,ReportChatRequest,FindOverSevenDayAvatarReply,UpdateLastScripIDRequest,ScripID,ScripReply,FindScripRequest,ScripInfo,ChatRecordInfo,RoomIDRequest,PartnerIDParam,AddFriendMessageInfo,ManagerFindPersonListRequest,ManagerFindPersonListReply,ManagerUpdatePersonVoiceRequest,ManagerUpdatePersonPicturesRequest,ManagerUpdatePersonSignatureRequest,ManagerUpdatePersonAvatarRequest,ManagerUpdatePersonNameRequest,ManagerUpdatePersonWeightRequest,ManagerUpdatePersonIsBlackRequest,PersonIDParam,PersonMsg,PersonIDList,PersonDBReply,UpdateLastScripIDDBRequest,FindRecommendRequest,IDParam} from "../common/common_pb";
 import {RoomReply,UnreadNumReply,UserRoomInfo,CheckUserPartnerIsRelationshipReply,WindowInfo,GetRandomMatchingReply} from "../chat/chat_pb";
 import {LookAndLikeListReply,LookAndLikeMessageReply,LookMessageReply} from "../statistics/statistics_pb";

+ 12 - 2
js/api/user/user_pb.ts

@@ -1,5 +1,17 @@
 import {Message} from "../common/common_pb";
 
+export interface UpdateUserMatchedNumAndReturnUserMsgReply{
+    /**  今日被匹配数 */
+    todayMatchedNum?:number;
+    /**  昵称 */
+    nickname?:string;
+    /**  头像链接 */
+    avatarUrl?:string;
+    /**  性别 */
+    sex?:number;
+    /**  年龄 */
+    age?:number;
+}
 export interface GetUserDBMsgFromWebsocketReply{
     /**  id */
     id?:string;
@@ -13,8 +25,6 @@ export interface GetUserDBMsgFromWebsocketReply{
     todayMatchedNum?:number;
 }
 export interface UpdateUserMatchedNumRequest{
-    /**  今日被匹配数 */
-    num?:number;
     userId?:string;
 }
 export interface SendNewMessageUnreadReminderRequest{

+ 18 - 0
js/api/websocket/websocket_pb.ts

@@ -1,3 +1,17 @@
+export interface FindOnlineCanMatchingPersonReply{
+    list?:Array<FindOnlineCanMatchingPersonInfo>;
+}
+export interface FindOnlineCanMatchingPersonInfo{
+    /**  今日被匹配数 */
+    todayMatchedNum?:number;
+    personId?:string;
+    /**  权重 */
+    weight?:number;
+    /**  工作状态 */
+    workingStatus?:string;
+    /**  性别 */
+    sex?:number;
+}
 export interface OnlinePersonReply{
     /**  男用户在线数 */
     userManNum?:number;
@@ -26,6 +40,10 @@ export interface UpdateWeightRequest{
     id?:string;
     weight?:number;
 }
+export interface UpdateTodayMatchedNumRequest{
+    id?:string;
+    todayMatchedNum?:number;
+}
 export interface MessageInfo{
     /**  房间ID */
     roomId?:number;

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác