Răsfoiți Sursa

查看主页的逻辑

wfz 3 ani în urmă
părinte
comite
1cd45a3991

+ 159 - 87
api/common/common.pb.go

@@ -177,6 +177,61 @@ func (x *PartnerIDParam) GetPartnerID() string {
 	return ""
 }
 
+type PersonParam struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	PersonID   string `protobuf:"bytes,1,opt,name=personID,proto3" json:"personID"`     // 查询目标的ID
+	PersonType string `protobuf:"bytes,2,opt,name=personType,proto3" json:"personType"` // 类型
+}
+
+func (x *PersonParam) Reset() {
+	*x = PersonParam{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_common_proto_msgTypes[3]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *PersonParam) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*PersonParam) ProtoMessage() {}
+
+func (x *PersonParam) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[3]
+	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 PersonParam.ProtoReflect.Descriptor instead.
+func (*PersonParam) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{3}
+}
+
+func (x *PersonParam) GetPersonID() string {
+	if x != nil {
+		return x.PersonID
+	}
+	return ""
+}
+
+func (x *PersonParam) GetPersonType() string {
+	if x != nil {
+		return x.PersonType
+	}
+	return ""
+}
+
 type UserIDParam struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
@@ -188,7 +243,7 @@ type UserIDParam struct {
 func (x *UserIDParam) Reset() {
 	*x = UserIDParam{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_common_proto_msgTypes[3]
+		mi := &file_common_proto_msgTypes[4]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -201,7 +256,7 @@ func (x *UserIDParam) String() string {
 func (*UserIDParam) ProtoMessage() {}
 
 func (x *UserIDParam) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[3]
+	mi := &file_common_proto_msgTypes[4]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -214,7 +269,7 @@ func (x *UserIDParam) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use UserIDParam.ProtoReflect.Descriptor instead.
 func (*UserIDParam) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{3}
+	return file_common_proto_rawDescGZIP(), []int{4}
 }
 
 func (x *UserIDParam) GetUserId() string {
@@ -248,7 +303,7 @@ type HomeInfo struct {
 func (x *HomeInfo) Reset() {
 	*x = HomeInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_common_proto_msgTypes[4]
+		mi := &file_common_proto_msgTypes[5]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -261,7 +316,7 @@ func (x *HomeInfo) String() string {
 func (*HomeInfo) ProtoMessage() {}
 
 func (x *HomeInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[4]
+	mi := &file_common_proto_msgTypes[5]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -274,7 +329,7 @@ func (x *HomeInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use HomeInfo.ProtoReflect.Descriptor instead.
 func (*HomeInfo) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{4}
+	return file_common_proto_rawDescGZIP(), []int{5}
 }
 
 func (x *HomeInfo) GetId() string {
@@ -384,7 +439,7 @@ type AddFriendMessageInfo struct {
 func (x *AddFriendMessageInfo) Reset() {
 	*x = AddFriendMessageInfo{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_common_proto_msgTypes[5]
+		mi := &file_common_proto_msgTypes[6]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -397,7 +452,7 @@ func (x *AddFriendMessageInfo) String() string {
 func (*AddFriendMessageInfo) ProtoMessage() {}
 
 func (x *AddFriendMessageInfo) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[5]
+	mi := &file_common_proto_msgTypes[6]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -410,7 +465,7 @@ func (x *AddFriendMessageInfo) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use AddFriendMessageInfo.ProtoReflect.Descriptor instead.
 func (*AddFriendMessageInfo) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{5}
+	return file_common_proto_rawDescGZIP(), []int{6}
 }
 
 func (x *AddFriendMessageInfo) GetId() string {
@@ -459,7 +514,7 @@ type PersonIDList struct {
 func (x *PersonIDList) Reset() {
 	*x = PersonIDList{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_common_proto_msgTypes[6]
+		mi := &file_common_proto_msgTypes[7]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -472,7 +527,7 @@ func (x *PersonIDList) String() string {
 func (*PersonIDList) ProtoMessage() {}
 
 func (x *PersonIDList) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[6]
+	mi := &file_common_proto_msgTypes[7]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -485,7 +540,7 @@ func (x *PersonIDList) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PersonIDList.ProtoReflect.Descriptor instead.
 func (*PersonIDList) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{6}
+	return file_common_proto_rawDescGZIP(), []int{7}
 }
 
 func (x *PersonIDList) GetPersonIds() []string {
@@ -506,7 +561,7 @@ type PersonDBReply struct {
 func (x *PersonDBReply) Reset() {
 	*x = PersonDBReply{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_common_proto_msgTypes[7]
+		mi := &file_common_proto_msgTypes[8]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -519,7 +574,7 @@ func (x *PersonDBReply) String() string {
 func (*PersonDBReply) ProtoMessage() {}
 
 func (x *PersonDBReply) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[7]
+	mi := &file_common_proto_msgTypes[8]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -532,7 +587,7 @@ func (x *PersonDBReply) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PersonDBReply.ProtoReflect.Descriptor instead.
 func (*PersonDBReply) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{7}
+	return file_common_proto_rawDescGZIP(), []int{8}
 }
 
 func (x *PersonDBReply) GetList() []*PersonDB {
@@ -561,7 +616,7 @@ type PersonDB struct {
 func (x *PersonDB) Reset() {
 	*x = PersonDB{}
 	if protoimpl.UnsafeEnabled {
-		mi := &file_common_proto_msgTypes[8]
+		mi := &file_common_proto_msgTypes[9]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		ms.StoreMessageInfo(mi)
 	}
@@ -574,7 +629,7 @@ func (x *PersonDB) String() string {
 func (*PersonDB) ProtoMessage() {}
 
 func (x *PersonDB) ProtoReflect() protoreflect.Message {
-	mi := &file_common_proto_msgTypes[8]
+	mi := &file_common_proto_msgTypes[9]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
 		if ms.LoadMessageInfo() == nil {
@@ -587,7 +642,7 @@ func (x *PersonDB) ProtoReflect() protoreflect.Message {
 
 // Deprecated: Use PersonDB.ProtoReflect.Descriptor instead.
 func (*PersonDB) Descriptor() ([]byte, []int) {
-	return file_common_proto_rawDescGZIP(), []int{8}
+	return file_common_proto_rawDescGZIP(), []int{9}
 }
 
 func (x *PersonDB) GetId() string {
@@ -669,33 +724,15 @@ var file_common_proto_rawDesc = []byte{
 	0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x32, 0x22, 0x2e, 0x0a,
 	0x0e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12,
 	0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x22, 0x25, 0x0a,
-	0x0b, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 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, 0xdc, 0x02, 0x0a, 0x08, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66,
-	0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69,
-	0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
-	0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a,
-	0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
-	0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x73,
-	0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1a, 0x0a,
-	0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52,
-	0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65,
-	0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63,
-	0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01,
-	0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f,
-	0x6e, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x65, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52,
-	0x04, 0x61, 0x72, 0x65, 0x61, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x09, 0x20, 0x03,
-	0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61,
-	0x74, 0x75, 0x72, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e,
-	0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x26, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75,
-	0x63, 0x65, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69,
-	0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a,
-	0x08, 0x6c, 0x69, 0x6b, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52,
-	0x08, 0x6c, 0x69, 0x6b, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6f, 0x6f,
-	0x6b, 0x4e, 0x75, 0x6d, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x6f, 0x6f, 0x6b,
-	0x4e, 0x75, 0x6d, 0x22, 0x8e, 0x01, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x46, 0x72, 0x69, 0x65, 0x6e,
-	0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02,
+	0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x44, 0x22, 0x49, 0x0a,
+	0x0b, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x1a, 0x0a, 0x08,
+	0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
+	0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x70, 0x65, 0x72, 0x73,
+	0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65,
+	0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x22, 0x25, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x72,
+	0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 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,
+	0xdc, 0x02, 0x0a, 0x08, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02,
 	0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08,
 	0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08,
 	0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74,
@@ -703,34 +740,56 @@ var file_common_proto_rawDesc = []byte{
 	0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20,
 	0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x69, 0x63, 0x74,
 	0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x74,
-	0x75, 0x72, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x0c, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44,
-	0x4c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64,
-	0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49,
-	0x64, 0x73, 0x22, 0x39, 0x0a, 0x0d, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x44, 0x42, 0x52, 0x65,
-	0x70, 0x6c, 0x79, 0x12, 0x28, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28,
-	0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50,
-	0x65, 0x72, 0x73, 0x6f, 0x6e, 0x44, 0x42, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xf6, 0x01,
-	0x0a, 0x08, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x44, 0x42, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69,
-	0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69,
-	0x63, 0x6b, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72,
-	0x55, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61,
-	0x72, 0x55, 0x72, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28,
-	0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72,
-	0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72,
-	0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52,
-	0x03, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c,
-	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e,
-	0x73, 0x74, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72,
-	0x65, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x65, 0x61, 0x12, 0x26,
-	0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x56, 0x6f, 0x69, 0x63, 0x65,
-	0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63,
-	0x65, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x42, 0x43, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
-	0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62,
-	0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77,
-	0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f,
-	0x6d, 0x6d, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f,
-	0x74, 0x6f, 0x33,
+	0x75, 0x72, 0x65, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
+	0x03, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65,
+	0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63,
+	0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04,
+	0x61, 0x72, 0x65, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x65, 0x61,
+	0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x09, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x74,
+	0x61, 0x67, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65, 0x18,
+	0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75, 0x72, 0x65,
+	0x12, 0x26, 0x0a, 0x0e, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x56, 0x6f, 0x69,
+	0x63, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64,
+	0x75, 0x63, 0x65, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x69, 0x6b, 0x65,
+	0x64, 0x4e, 0x75, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x6c, 0x69, 0x6b, 0x65,
+	0x64, 0x4e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x18,
+	0x0d, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x22, 0x8e,
+	0x01, 0x0a, 0x14, 0x41, 0x64, 0x64, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73,
+	0x61, 0x67, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e,
+	0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e,
+	0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c,
+	0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72,
+	0x6c, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03,
+	0x73, 0x65, 0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18,
+	0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22,
+	0x2c, 0x0a, 0x0c, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x12,
+	0x1c, 0x0a, 0x09, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03,
+	0x28, 0x09, 0x52, 0x09, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x22, 0x39, 0x0a,
+	0x0d, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x44, 0x42, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x28,
+	0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
+	0x44, 0x42, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xf6, 0x01, 0x0a, 0x08, 0x50, 0x65, 0x72,
+	0x73, 0x6f, 0x6e, 0x44, 0x42, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
+	0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x69, 0x63, 0x6b, 0x6e, 0x61, 0x6d,
+	0x65, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x18, 0x03,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x55, 0x72, 0x6c, 0x12,
+	0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65,
+	0x78, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20,
+	0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x69, 0x63, 0x74, 0x75, 0x72, 0x65, 0x73, 0x12, 0x10, 0x0a,
+	0x03, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x61, 0x67, 0x65, 0x12,
+	0x24, 0x0a, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+	0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x6c, 0x6c,
+	0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x72, 0x65, 0x61, 0x18, 0x08, 0x20,
+	0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x72, 0x65, 0x61, 0x12, 0x26, 0x0a, 0x0e, 0x69, 0x6e, 0x74,
+	0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x56, 0x6f, 0x69, 0x63, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
+	0x09, 0x52, 0x0e, 0x69, 0x6e, 0x74, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x65, 0x56, 0x6f, 0x69, 0x63,
+	0x65, 0x42, 0x43, 0x0a, 0x0a, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50,
+	0x01, 0x5a, 0x33, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f,
+	0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74,
+	0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x3b,
+	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -745,20 +804,21 @@ func file_common_proto_rawDescGZIP() []byte {
 	return file_common_proto_rawDescData
 }
 
-var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
+var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
 var file_common_proto_goTypes = []interface{}{
 	(*UserAndPartnerIdParam)(nil), // 0: api.common.UserAndPartnerIdParam
 	(*User1AndUser2IdParam)(nil),  // 1: api.common.User1AndUser2IdParam
 	(*PartnerIDParam)(nil),        // 2: api.common.PartnerIDParam
-	(*UserIDParam)(nil),           // 3: api.common.UserIDParam
-	(*HomeInfo)(nil),              // 4: api.common.HomeInfo
-	(*AddFriendMessageInfo)(nil),  // 5: api.common.AddFriendMessageInfo
-	(*PersonIDList)(nil),          // 6: api.common.PersonIDList
-	(*PersonDBReply)(nil),         // 7: api.common.PersonDBReply
-	(*PersonDB)(nil),              // 8: api.common.PersonDB
+	(*PersonParam)(nil),           // 3: api.common.PersonParam
+	(*UserIDParam)(nil),           // 4: api.common.UserIDParam
+	(*HomeInfo)(nil),              // 5: api.common.HomeInfo
+	(*AddFriendMessageInfo)(nil),  // 6: api.common.AddFriendMessageInfo
+	(*PersonIDList)(nil),          // 7: api.common.PersonIDList
+	(*PersonDBReply)(nil),         // 8: api.common.PersonDBReply
+	(*PersonDB)(nil),              // 9: api.common.PersonDB
 }
 var file_common_proto_depIdxs = []int32{
-	8, // 0: api.common.PersonDBReply.list:type_name -> api.common.PersonDB
+	9, // 0: api.common.PersonDBReply.list:type_name -> api.common.PersonDB
 	1, // [1:1] is the sub-list for method output_type
 	1, // [1:1] is the sub-list for method input_type
 	1, // [1:1] is the sub-list for extension type_name
@@ -809,7 +869,7 @@ func file_common_proto_init() {
 			}
 		}
 		file_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*UserIDParam); i {
+			switch v := v.(*PersonParam); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -821,7 +881,7 @@ func file_common_proto_init() {
 			}
 		}
 		file_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*HomeInfo); i {
+			switch v := v.(*UserIDParam); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -833,7 +893,7 @@ func file_common_proto_init() {
 			}
 		}
 		file_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*AddFriendMessageInfo); i {
+			switch v := v.(*HomeInfo); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -845,7 +905,7 @@ func file_common_proto_init() {
 			}
 		}
 		file_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*PersonIDList); i {
+			switch v := v.(*AddFriendMessageInfo); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -857,7 +917,7 @@ func file_common_proto_init() {
 			}
 		}
 		file_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*PersonDBReply); i {
+			switch v := v.(*PersonIDList); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -869,6 +929,18 @@ func file_common_proto_init() {
 			}
 		}
 		file_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*PersonDBReply); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
 			switch v := v.(*PersonDB); i {
 			case 0:
 				return &v.state
@@ -887,7 +959,7 @@ func file_common_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_common_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   9,
+			NumMessages:   10,
 			NumExtensions: 0,
 			NumServices:   0,
 		},

+ 6 - 0
api/common/common.proto

@@ -24,6 +24,12 @@ message PartnerIDParam {
   string partnerID = 1;
 }
 
+message PersonParam{
+  string personID = 1; // 查询目标的ID
+  string personType = 2; // 类型
+}
+
+
 message UserIDParam {
   string userId = 1;
 }

+ 40 - 39
api/partner/partner.pb.go

@@ -388,7 +388,7 @@ var file_partner_proto_rawDesc = []byte{
 	0x03, 0x73, 0x65, 0x78, 0x22, 0x2b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f,
 	0x6d, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
 	0x10, 0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65,
-	0x78, 0x32, 0x83, 0x05, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x60, 0x0a,
+	0x78, 0x32, 0x80, 0x05, 0x0a, 0x07, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x12, 0x60, 0x0a,
 	0x0e, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12,
 	0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
 	0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61,
@@ -417,23 +417,23 @@ var file_partner_proto_rawDesc = []byte{
 	0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72,
 	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61,
 	0x72, 0x74, 0x6e, 0x65, 0x72, 0x2e, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x50, 0x61, 0x72, 0x74,
-	0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x64, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x50, 0x61,
-	0x72, 0x74, 0x6e, 0x65, 0x72, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x2e,
-	0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e,
-	0x65, 0x72, 0x49, 0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e,
-	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22,
-	0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61,
-	0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x48, 0x0a,
-	0x11, 0x46, 0x69, 0x6e, 0x64, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x44, 0x42, 0x4c, 0x69,
-	0x73, 0x74, 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
-	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61,
-	0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e,
-	0x44, 0x42, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70,
-	0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b,
-	0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f,
-	0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f,
-	0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62,
-	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x6e, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x61, 0x0a, 0x12, 0x50, 0x61, 0x72, 0x74, 0x6e,
+	0x65, 0x72, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f,
+	0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
+	0x6d, 0x6f, 0x6e, 0x2e, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x1c, 0x82, 0xd3,
+	0xe4, 0x93, 0x02, 0x16, 0x22, 0x11, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e,
+	0x65, 0x72, 0x2f, 0x68, 0x6f, 0x6d, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x48, 0x0a, 0x11, 0x46, 0x69,
+	0x6e, 0x64, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x44, 0x42, 0x4c, 0x69, 0x73, 0x74, 0x12,
+	0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72,
+	0x73, 0x6f, 0x6e, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 0x2e,
+	0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x44, 0x42, 0x52,
+	0x65, 0x70, 0x6c, 0x79, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61, 0x72, 0x74,
+	0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61,
+	0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d,
+	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72,
+	0x74, 0x6e, 0x65, 0x72, 0x3b, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72,
+	0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -456,29 +456,30 @@ var file_partner_proto_goTypes = []interface{}{
 	(*GetRandomPartnerRequest)(nil),         // 3: api.partner.GetRandomPartnerRequest
 	(*emptypb.Empty)(nil),                   // 4: google.protobuf.Empty
 	(*common.PartnerIDParam)(nil),           // 5: api.common.PartnerIDParam
-	(*common.PersonIDList)(nil),             // 6: api.common.PersonIDList
-	(*common.AddFriendMessageInfo)(nil),     // 7: api.common.AddFriendMessageInfo
-	(*common.HomeInfo)(nil),                 // 8: api.common.HomeInfo
-	(*common.PersonDBReply)(nil),            // 9: api.common.PersonDBReply
+	(*common.PersonParam)(nil),              // 6: api.common.PersonParam
+	(*common.PersonIDList)(nil),             // 7: api.common.PersonIDList
+	(*common.AddFriendMessageInfo)(nil),     // 8: api.common.AddFriendMessageInfo
+	(*common.HomeInfo)(nil),                 // 9: api.common.HomeInfo
+	(*common.PersonDBReply)(nil),            // 10: api.common.PersonDBReply
 }
 var file_partner_proto_depIdxs = []int32{
-	4, // 0: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
-	5, // 1: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.common.PartnerIDParam
-	0, // 2: api.partner.Partner.UpdatePartnerInformation:input_type -> api.partner.UpdatePartnerInformationRequest
-	3, // 3: api.partner.Partner.GetRandomPartnerInfo:input_type -> api.partner.GetRandomPartnerRequest
-	5, // 4: api.partner.Partner.GetPartnerHomeInfo:input_type -> api.common.PartnerIDParam
-	6, // 5: api.partner.Partner.FindPartnerDBList:input_type -> api.common.PersonIDList
-	1, // 6: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
-	7, // 7: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	4, // 8: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
-	2, // 9: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
-	8, // 10: api.partner.Partner.GetPartnerHomeInfo:output_type -> api.common.HomeInfo
-	9, // 11: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
-	6, // [6:12] is the sub-list for method output_type
-	0, // [0:6] 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
+	4,  // 0: api.partner.Partner.GetPartnerInfo:input_type -> google.protobuf.Empty
+	5,  // 1: api.partner.Partner.GetPartnerCircleInfo:input_type -> api.common.PartnerIDParam
+	0,  // 2: api.partner.Partner.UpdatePartnerInformation:input_type -> api.partner.UpdatePartnerInformationRequest
+	3,  // 3: api.partner.Partner.GetRandomPartnerInfo:input_type -> api.partner.GetRandomPartnerRequest
+	6,  // 4: api.partner.Partner.PartnerGetHomeInfo:input_type -> api.common.PersonParam
+	7,  // 5: api.partner.Partner.FindPartnerDBList:input_type -> api.common.PersonIDList
+	1,  // 6: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	8,  // 7: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	4,  // 8: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
+	2,  // 9: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
+	9,  // 10: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
+	10, // 11: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
+	6,  // [6:12] is the sub-list for method output_type
+	0,  // [0:6] 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
 }
 
 func init() { file_partner_proto_init() }

+ 2 - 2
api/partner/partner.proto

@@ -34,8 +34,8 @@ service Partner {
     };
   };
   rpc GetRandomPartnerInfo (GetRandomPartnerRequest) returns (RandomPartnerInfo);
-  // 获取陪聊的主页
-  rpc GetPartnerHomeInfo (common.PartnerIDParam) returns (common.HomeInfo){
+  // 陪聊获取主页信息
+  rpc PartnerGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
     option (google.api.http) = {
       post: "/api/partner/home",
       body:"*"

+ 15 - 15
api/partner/partner_grpc.pb.go

@@ -27,8 +27,8 @@ type PartnerClient interface {
 	// 更新陪聊的信息
 	UpdatePartnerInformation(ctx context.Context, in *UpdatePartnerInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	GetRandomPartnerInfo(ctx context.Context, in *GetRandomPartnerRequest, opts ...grpc.CallOption) (*RandomPartnerInfo, error)
-	// 获取陪聊的主页
-	GetPartnerHomeInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.HomeInfo, error)
+	// 陪聊获取主页信息
+	PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error)
 	// 通过陪玩IDs查看用户信息列表
 	FindPartnerDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error)
 }
@@ -77,9 +77,9 @@ func (c *partnerClient) GetRandomPartnerInfo(ctx context.Context, in *GetRandomP
 	return out, nil
 }
 
-func (c *partnerClient) GetPartnerHomeInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
+func (c *partnerClient) PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
 	out := new(common.HomeInfo)
-	err := c.cc.Invoke(ctx, "/api.partner.Partner/GetPartnerHomeInfo", in, out, opts...)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerGetHomeInfo", in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -106,8 +106,8 @@ type PartnerServer interface {
 	// 更新陪聊的信息
 	UpdatePartnerInformation(context.Context, *UpdatePartnerInformationRequest) (*emptypb.Empty, error)
 	GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error)
-	// 获取陪聊的主页
-	GetPartnerHomeInfo(context.Context, *common.PartnerIDParam) (*common.HomeInfo, error)
+	// 陪聊获取主页信息
+	PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
 	// 通过陪玩IDs查看用户信息列表
 	FindPartnerDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
 	mustEmbedUnimplementedPartnerServer()
@@ -129,8 +129,8 @@ func (UnimplementedPartnerServer) UpdatePartnerInformation(context.Context, *Upd
 func (UnimplementedPartnerServer) GetRandomPartnerInfo(context.Context, *GetRandomPartnerRequest) (*RandomPartnerInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetRandomPartnerInfo not implemented")
 }
-func (UnimplementedPartnerServer) GetPartnerHomeInfo(context.Context, *common.PartnerIDParam) (*common.HomeInfo, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerHomeInfo not implemented")
+func (UnimplementedPartnerServer) PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PartnerGetHomeInfo not implemented")
 }
 func (UnimplementedPartnerServer) FindPartnerDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method FindPartnerDBList not implemented")
@@ -220,20 +220,20 @@ func _Partner_GetRandomPartnerInfo_Handler(srv interface{}, ctx context.Context,
 	return interceptor(ctx, in, info, handler)
 }
 
-func _Partner_GetPartnerHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(common.PartnerIDParam)
+func _Partner_PartnerGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.PersonParam)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
 	if interceptor == nil {
-		return srv.(PartnerServer).GetPartnerHomeInfo(ctx, in)
+		return srv.(PartnerServer).PartnerGetHomeInfo(ctx, in)
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/api.partner.Partner/GetPartnerHomeInfo",
+		FullMethod: "/api.partner.Partner/PartnerGetHomeInfo",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(PartnerServer).GetPartnerHomeInfo(ctx, req.(*common.PartnerIDParam))
+		return srv.(PartnerServer).PartnerGetHomeInfo(ctx, req.(*common.PersonParam))
 	}
 	return interceptor(ctx, in, info, handler)
 }
@@ -280,8 +280,8 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			Handler:    _Partner_GetRandomPartnerInfo_Handler,
 		},
 		{
-			MethodName: "GetPartnerHomeInfo",
-			Handler:    _Partner_GetPartnerHomeInfo_Handler,
+			MethodName: "PartnerGetHomeInfo",
+			Handler:    _Partner_PartnerGetHomeInfo_Handler,
 		},
 		{
 			MethodName: "FindPartnerDBList",

+ 15 - 15
api/partner/partner_http.pb.go

@@ -29,8 +29,8 @@ const _ = http.SupportPackageIsVersion1
 
 type PartnerHTTPServer interface {
 	GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error)
-	GetPartnerHomeInfo(context.Context, *common.PartnerIDParam) (*common.HomeInfo, error)
 	GetPartnerInfo(context.Context, *emptypb.Empty) (*PartnerInfo, error)
+	PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
 	UpdatePartnerInformation(context.Context, *UpdatePartnerInformationRequest) (*emptypb.Empty, error)
 }
 
@@ -39,7 +39,7 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r.POST("/api/partner/info", _Partner_GetPartnerInfo0_HTTP_Handler(srv))
 	r.POST("/api/partner/circle/info", _Partner_GetPartnerCircleInfo0_HTTP_Handler(srv))
 	r.POST("/api/partner/update/information", _Partner_UpdatePartnerInformation0_HTTP_Handler(srv))
-	r.POST("/api/partner/home", _Partner_GetPartnerHomeInfo0_HTTP_Handler(srv))
+	r.POST("/api/partner/home", _Partner_PartnerGetHomeInfo0_HTTP_Handler(srv))
 }
 
 func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
@@ -123,18 +123,18 @@ func _Partner_UpdatePartnerInformation0_HTTP_Handler(srv PartnerHTTPServer) func
 	}
 }
 
-func _Partner_GetPartnerHomeInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+func _Partner_PartnerGetHomeInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in common.PartnerIDParam
+		var in common.PersonParam
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
 		if err := ctx.BindQuery(&in); err != nil {
 			return err
 		}
-		http.SetOperation(ctx, "/api.partner.Partner/GetPartnerHomeInfo")
+		http.SetOperation(ctx, "/api.partner.Partner/PartnerGetHomeInfo")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.GetPartnerHomeInfo(ctx, req.(*common.PartnerIDParam))
+			return srv.PartnerGetHomeInfo(ctx, req.(*common.PersonParam))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -152,8 +152,8 @@ func _Partner_GetPartnerHomeInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx h
 
 type PartnerHTTPClient interface {
 	GetPartnerCircleInfo(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *common.AddFriendMessageInfo, err error)
-	GetPartnerHomeInfo(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
 	GetPartnerInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *PartnerInfo, err error)
+	PartnerGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
 	UpdatePartnerInformation(ctx context.Context, req *UpdatePartnerInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 }
 
@@ -178,11 +178,11 @@ func (c *PartnerHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *co
 	return &out, err
 }
 
-func (c *PartnerHTTPClientImpl) GetPartnerHomeInfo(ctx context.Context, in *common.PartnerIDParam, opts ...http.CallOption) (*common.HomeInfo, error) {
-	var out common.HomeInfo
-	pattern := "/api/partner/home"
+func (c *PartnerHTTPClientImpl) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerInfo, error) {
+	var out PartnerInfo
+	pattern := "/api/partner/info"
 	path := binding.EncodeURL(pattern, in, false)
-	opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerHomeInfo"))
+	opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerInfo"))
 	opts = append(opts, http.PathTemplate(pattern))
 	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
 	if err != nil {
@@ -191,11 +191,11 @@ func (c *PartnerHTTPClientImpl) GetPartnerHomeInfo(ctx context.Context, in *comm
 	return &out, err
 }
 
-func (c *PartnerHTTPClientImpl) GetPartnerInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*PartnerInfo, error) {
-	var out PartnerInfo
-	pattern := "/api/partner/info"
+func (c *PartnerHTTPClientImpl) PartnerGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.HomeInfo, error) {
+	var out common.HomeInfo
+	pattern := "/api/partner/home"
 	path := binding.EncodeURL(pattern, in, false)
-	opts = append(opts, http.Operation("/api.partner.Partner/GetPartnerInfo"))
+	opts = append(opts, http.Operation("/api.partner.Partner/PartnerGetHomeInfo"))
 	opts = append(opts, http.PathTemplate(pattern))
 	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
 	if err != nil {

+ 99 - 102
api/statistics/statistics.pb.go

@@ -274,7 +274,7 @@ func (x *GetLookAndLikeListRequest) GetOffset() int64 {
 	return 0
 }
 
-type UserStatisticsMessageReply struct {
+type LookAndLikeMessageReply struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
@@ -286,8 +286,8 @@ type UserStatisticsMessageReply struct {
 	LookUnreadNum  int64 `protobuf:"varint,5,opt,name=lookUnreadNum,proto3" json:"lookUnreadNum"`
 }
 
-func (x *UserStatisticsMessageReply) Reset() {
-	*x = UserStatisticsMessageReply{}
+func (x *LookAndLikeMessageReply) Reset() {
+	*x = LookAndLikeMessageReply{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_statistics_proto_msgTypes[3]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -295,13 +295,13 @@ func (x *UserStatisticsMessageReply) Reset() {
 	}
 }
 
-func (x *UserStatisticsMessageReply) String() string {
+func (x *LookAndLikeMessageReply) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*UserStatisticsMessageReply) ProtoMessage() {}
+func (*LookAndLikeMessageReply) ProtoMessage() {}
 
-func (x *UserStatisticsMessageReply) ProtoReflect() protoreflect.Message {
+func (x *LookAndLikeMessageReply) ProtoReflect() protoreflect.Message {
 	mi := &file_statistics_proto_msgTypes[3]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -313,47 +313,47 @@ func (x *UserStatisticsMessageReply) ProtoReflect() protoreflect.Message {
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use UserStatisticsMessageReply.ProtoReflect.Descriptor instead.
-func (*UserStatisticsMessageReply) Descriptor() ([]byte, []int) {
+// Deprecated: Use LookAndLikeMessageReply.ProtoReflect.Descriptor instead.
+func (*LookAndLikeMessageReply) Descriptor() ([]byte, []int) {
 	return file_statistics_proto_rawDescGZIP(), []int{3}
 }
 
-func (x *UserStatisticsMessageReply) GetLikeNum() int64 {
+func (x *LookAndLikeMessageReply) GetLikeNum() int64 {
 	if x != nil {
 		return x.LikeNum
 	}
 	return 0
 }
 
-func (x *UserStatisticsMessageReply) GetLikedNum() int64 {
+func (x *LookAndLikeMessageReply) GetLikedNum() int64 {
 	if x != nil {
 		return x.LikedNum
 	}
 	return 0
 }
 
-func (x *UserStatisticsMessageReply) GetLikedUnreadNum() int64 {
+func (x *LookAndLikeMessageReply) GetLikedUnreadNum() int64 {
 	if x != nil {
 		return x.LikedUnreadNum
 	}
 	return 0
 }
 
-func (x *UserStatisticsMessageReply) GetLookNum() int64 {
+func (x *LookAndLikeMessageReply) GetLookNum() int64 {
 	if x != nil {
 		return x.LookNum
 	}
 	return 0
 }
 
-func (x *UserStatisticsMessageReply) GetLookUnreadNum() int64 {
+func (x *LookAndLikeMessageReply) GetLookUnreadNum() int64 {
 	if x != nil {
 		return x.LookUnreadNum
 	}
 	return 0
 }
 
-type PartnerStatisticsMessageReply struct {
+type LookMessageReply struct {
 	state         protoimpl.MessageState
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
@@ -362,8 +362,8 @@ type PartnerStatisticsMessageReply struct {
 	LookUnreadNum int64 `protobuf:"varint,2,opt,name=lookUnreadNum,proto3" json:"lookUnreadNum"`
 }
 
-func (x *PartnerStatisticsMessageReply) Reset() {
-	*x = PartnerStatisticsMessageReply{}
+func (x *LookMessageReply) Reset() {
+	*x = LookMessageReply{}
 	if protoimpl.UnsafeEnabled {
 		mi := &file_statistics_proto_msgTypes[4]
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -371,13 +371,13 @@ func (x *PartnerStatisticsMessageReply) Reset() {
 	}
 }
 
-func (x *PartnerStatisticsMessageReply) String() string {
+func (x *LookMessageReply) String() string {
 	return protoimpl.X.MessageStringOf(x)
 }
 
-func (*PartnerStatisticsMessageReply) ProtoMessage() {}
+func (*LookMessageReply) ProtoMessage() {}
 
-func (x *PartnerStatisticsMessageReply) ProtoReflect() protoreflect.Message {
+func (x *LookMessageReply) ProtoReflect() protoreflect.Message {
 	mi := &file_statistics_proto_msgTypes[4]
 	if protoimpl.UnsafeEnabled && x != nil {
 		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@@ -389,19 +389,19 @@ func (x *PartnerStatisticsMessageReply) ProtoReflect() protoreflect.Message {
 	return mi.MessageOf(x)
 }
 
-// Deprecated: Use PartnerStatisticsMessageReply.ProtoReflect.Descriptor instead.
-func (*PartnerStatisticsMessageReply) Descriptor() ([]byte, []int) {
+// Deprecated: Use LookMessageReply.ProtoReflect.Descriptor instead.
+func (*LookMessageReply) Descriptor() ([]byte, []int) {
 	return file_statistics_proto_rawDescGZIP(), []int{4}
 }
 
-func (x *PartnerStatisticsMessageReply) GetLookNum() int64 {
+func (x *LookMessageReply) GetLookNum() int64 {
 	if x != nil {
 		return x.LookNum
 	}
 	return 0
 }
 
-func (x *PartnerStatisticsMessageReply) GetLookUnreadNum() int64 {
+func (x *LookMessageReply) GetLookUnreadNum() int64 {
 	if x != nil {
 		return x.LookUnreadNum
 	}
@@ -576,20 +576,19 @@ var file_statistics_proto_rawDesc = []byte{
 	0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x65, 0x78, 0x74, 0x49, 0x64,
 	0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x65, 0x78, 0x74, 0x49, 0x64, 0x12, 0x16,
 	0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
-	0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0xba, 0x01, 0x0a, 0x1a, 0x55, 0x73, 0x65, 0x72, 0x53,
-	0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
-	0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x6b, 0x65, 0x4e, 0x75, 0x6d,
-	0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x69, 0x6b, 0x65, 0x4e, 0x75, 0x6d, 0x12,
-	0x1a, 0x0a, 0x08, 0x6c, 0x69, 0x6b, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28,
-	0x03, 0x52, 0x08, 0x6c, 0x69, 0x6b, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x0e, 0x6c,
-	0x69, 0x6b, 0x65, 0x64, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20,
-	0x01, 0x28, 0x03, 0x52, 0x0e, 0x6c, 0x69, 0x6b, 0x65, 0x64, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
-	0x4e, 0x75, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x18, 0x04,
-	0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a,
-	0x0d, 0x6c, 0x6f, 0x6f, 0x6b, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x05,
-	0x20, 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6c, 0x6f, 0x6f, 0x6b, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64,
-	0x4e, 0x75, 0x6d, 0x22, 0x5f, 0x0a, 0x1d, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x53, 0x74,
-	0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
+	0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0xb7, 0x01, 0x0a, 0x17, 0x4c, 0x6f, 0x6f, 0x6b, 0x41,
+	0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70,
+	0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x69, 0x6b, 0x65, 0x4e, 0x75, 0x6d, 0x18, 0x01, 0x20,
+	0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x69, 0x6b, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x1a, 0x0a, 0x08,
+	0x6c, 0x69, 0x6b, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08,
+	0x6c, 0x69, 0x6b, 0x65, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x0e, 0x6c, 0x69, 0x6b, 0x65,
+	0x64, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
+	0x52, 0x0e, 0x6c, 0x69, 0x6b, 0x65, 0x64, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d,
+	0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28,
+	0x03, 0x52, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x6c, 0x6f,
+	0x6f, 0x6b, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28,
+	0x03, 0x52, 0x0d, 0x6c, 0x6f, 0x6f, 0x6b, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d,
+	0x22, 0x52, 0x0a, 0x10, 0x4c, 0x6f, 0x6f, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52,
 	0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x18,
 	0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x6c, 0x6f, 0x6f, 0x6b, 0x4e, 0x75, 0x6d, 0x12, 0x24,
 	0x0a, 0x0d, 0x6c, 0x6f, 0x6f, 0x6b, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x18,
@@ -609,7 +608,7 @@ var file_statistics_proto_rawDesc = []byte{
 	0x09, 0x52, 0x0a, 0x62, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x22, 0x0a,
 	0x0c, 0x62, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20,
 	0x01, 0x28, 0x09, 0x52, 0x0c, 0x62, 0x65, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70,
-	0x65, 0x32, 0xe7, 0x07, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,
+	0x65, 0x32, 0xcc, 0x07, 0x0a, 0x0a, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,
 	0x12, 0x43, 0x0a, 0x0a, 0x4c, 0x6f, 0x6f, 0x6b, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x12, 0x1d,
 	0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e,
 	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x16, 0x2e,
@@ -623,61 +622,59 @@ var file_statistics_proto_rawDesc = []byte{
 	0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x73,
 	0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
 	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
-	0x79, 0x12, 0x7a, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76,
-	0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x73,
+	0x79, 0x12, 0x77, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c,
+	0x69, 0x6b, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x73,
 	0x73, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69,
 	0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74,
 	0x69, 0x63, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
-	0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
-	0x63, 0x73, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63,
-	0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x80, 0x01,
-	0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76,
-	0x69, 0x63, 0x65, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x73,
-	0x73, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69,
-	0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74,
-	0x69, 0x63, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
-	0x74, 0x1a, 0x2d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
-	0x63, 0x73, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73,
-	0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79,
-	0x12, 0x4c, 0x0a, 0x13, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x4c, 0x6f, 0x6f, 0x6b, 0x55, 0x6e,
-	0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74,
-	0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4d,
-	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
-	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4c,
-	0x0a, 0x13, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x4c, 0x69, 0x6b, 0x65, 0x55, 0x6e, 0x72, 0x65,
-	0x61, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74,
+	0x74, 0x1a, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
+	0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4d, 0x65,
+	0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x69, 0x0a, 0x18, 0x47, 0x65,
+	0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x4d,
+	0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61,
+	0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x69,
+	0x73, 0x74, 0x69, 0x63, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75,
+	0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73,
+	0x74, 0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
+	0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x4c, 0x0a, 0x13, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x4c,
+	0x6f, 0x6f, 0x6b, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65,
+	0x72, 0x73, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f,
+	0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d,
+	0x70, 0x74, 0x79, 0x12, 0x4c, 0x0a, 0x13, 0x52, 0x65, 0x64, 0x75, 0x63, 0x65, 0x4c, 0x69, 0x6b,
+	0x65, 0x55, 0x6e, 0x72, 0x65, 0x61, 0x64, 0x4e, 0x75, 0x6d, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69,
+	0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x73,
+	0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
+	0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74,
+	0x79, 0x12, 0x49, 0x0a, 0x10, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x6f, 0x6f, 0x6b, 0x52,
+	0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74,
 	0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4d, 0x65, 0x73,
 	0x73, 0x61, 0x67, 0x65, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
-	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x49, 0x0a, 0x10,
-	0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x4c, 0x6f, 0x6f, 0x6b, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
-	0x12, 0x1d, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63,
-	0x73, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a,
-	0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
-	0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5f, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x64, 0x4c,
-	0x6f, 0x6f, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74,
-	0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x6b,
-	0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
-	0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74,
-	0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c,
-	0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x5f, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x64,
-	0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73,
-	0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f,
-	0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
-	0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73,
-	0x74, 0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65,
-	0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x60, 0x0a, 0x0d, 0x46, 0x69, 0x6e,
-	0x64, 0x4c, 0x69, 0x6b, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69,
-	0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4c,
-	0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
-	0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74,
-	0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69,
-	0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x42, 0x4f, 0x0a, 0x0e, 0x61,
-	0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x50, 0x01, 0x5a,
-	0x3b, 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, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63,
-	0x73, 0x3b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x62, 0x06, 0x70, 0x72,
-	0x6f, 0x74, 0x6f, 0x33,
+	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x5f, 0x0a, 0x0c,
+	0x46, 0x69, 0x6e, 0x64, 0x4c, 0x6f, 0x6f, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e, 0x61,
+	0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47, 0x65,
+	0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74,
+	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74,
+	0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64,
+	0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x5f, 0x0a,
+	0x0c, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x29, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x47,
+	0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73,
+	0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73,
+	0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e,
+	0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x60,
+	0x0a, 0x0d, 0x46, 0x69, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12,
+	0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73,
+	0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x6f, 0x6b, 0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c,
+	0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69,
+	0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b,
+	0x41, 0x6e, 0x64, 0x4c, 0x69, 0x6b, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79,
+	0x42, 0x4f, 0x0a, 0x0e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69,
+	0x63, 0x73, 0x50, 0x01, 0x5a, 0x3b, 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, 0x73, 0x74, 0x61, 0x74,
+	0x69, 0x73, 0x74, 0x69, 0x63, 0x73, 0x3b, 0x73, 0x74, 0x61, 0x74, 0x69, 0x73, 0x74, 0x69, 0x63,
+	0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -694,22 +691,22 @@ func file_statistics_proto_rawDescGZIP() []byte {
 
 var file_statistics_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
 var file_statistics_proto_goTypes = []interface{}{
-	(*LookAndLikeListReply)(nil),          // 0: api.statistics.LookAndLikeListReply
-	(*LookAndLikeListInfo)(nil),           // 1: api.statistics.LookAndLikeListInfo
-	(*GetLookAndLikeListRequest)(nil),     // 2: api.statistics.GetLookAndLikeListRequest
-	(*UserStatisticsMessageReply)(nil),    // 3: api.statistics.UserStatisticsMessageReply
-	(*PartnerStatisticsMessageReply)(nil), // 4: api.statistics.PartnerStatisticsMessageReply
-	(*GetStatisticsMessageRequest)(nil),   // 5: api.statistics.GetStatisticsMessageRequest
-	(*PersonMessage)(nil),                 // 6: api.statistics.PersonMessage
-	(*emptypb.Empty)(nil),                 // 7: google.protobuf.Empty
+	(*LookAndLikeListReply)(nil),        // 0: api.statistics.LookAndLikeListReply
+	(*LookAndLikeListInfo)(nil),         // 1: api.statistics.LookAndLikeListInfo
+	(*GetLookAndLikeListRequest)(nil),   // 2: api.statistics.GetLookAndLikeListRequest
+	(*LookAndLikeMessageReply)(nil),     // 3: api.statistics.LookAndLikeMessageReply
+	(*LookMessageReply)(nil),            // 4: api.statistics.LookMessageReply
+	(*GetStatisticsMessageRequest)(nil), // 5: api.statistics.GetStatisticsMessageRequest
+	(*PersonMessage)(nil),               // 6: api.statistics.PersonMessage
+	(*emptypb.Empty)(nil),               // 7: google.protobuf.Empty
 }
 var file_statistics_proto_depIdxs = []int32{
 	1,  // 0: api.statistics.LookAndLikeListReply.list:type_name -> api.statistics.LookAndLikeListInfo
 	6,  // 1: api.statistics.Statistics.LookPerson:input_type -> api.statistics.PersonMessage
 	6,  // 2: api.statistics.Statistics.LikePerson:input_type -> api.statistics.PersonMessage
 	6,  // 3: api.statistics.Statistics.UnLikePerson:input_type -> api.statistics.PersonMessage
-	5,  // 4: api.statistics.Statistics.GetUserServiceStatisticsMessage:input_type -> api.statistics.GetStatisticsMessageRequest
-	5,  // 5: api.statistics.Statistics.GetPartnerServiceStatisticsMessage:input_type -> api.statistics.GetStatisticsMessageRequest
+	5,  // 4: api.statistics.Statistics.GetLookAndLikeStatisticsMessage:input_type -> api.statistics.GetStatisticsMessageRequest
+	5,  // 5: api.statistics.Statistics.GetLookStatisticsMessage:input_type -> api.statistics.GetStatisticsMessageRequest
 	6,  // 6: api.statistics.Statistics.ReduceLookUnreadNum:input_type -> api.statistics.PersonMessage
 	6,  // 7: api.statistics.Statistics.ReduceLikeUnreadNum:input_type -> api.statistics.PersonMessage
 	6,  // 8: api.statistics.Statistics.UnlockLookRecord:input_type -> api.statistics.PersonMessage
@@ -719,8 +716,8 @@ var file_statistics_proto_depIdxs = []int32{
 	7,  // 12: api.statistics.Statistics.LookPerson:output_type -> google.protobuf.Empty
 	7,  // 13: api.statistics.Statistics.LikePerson:output_type -> google.protobuf.Empty
 	7,  // 14: api.statistics.Statistics.UnLikePerson:output_type -> google.protobuf.Empty
-	3,  // 15: api.statistics.Statistics.GetUserServiceStatisticsMessage:output_type -> api.statistics.UserStatisticsMessageReply
-	4,  // 16: api.statistics.Statistics.GetPartnerServiceStatisticsMessage:output_type -> api.statistics.PartnerStatisticsMessageReply
+	3,  // 15: api.statistics.Statistics.GetLookAndLikeStatisticsMessage:output_type -> api.statistics.LookAndLikeMessageReply
+	4,  // 16: api.statistics.Statistics.GetLookStatisticsMessage:output_type -> api.statistics.LookMessageReply
 	7,  // 17: api.statistics.Statistics.ReduceLookUnreadNum:output_type -> google.protobuf.Empty
 	7,  // 18: api.statistics.Statistics.ReduceLikeUnreadNum:output_type -> google.protobuf.Empty
 	7,  // 19: api.statistics.Statistics.UnlockLookRecord:output_type -> google.protobuf.Empty
@@ -777,7 +774,7 @@ func file_statistics_proto_init() {
 			}
 		}
 		file_statistics_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*UserStatisticsMessageReply); i {
+			switch v := v.(*LookAndLikeMessageReply); i {
 			case 0:
 				return &v.state
 			case 1:
@@ -789,7 +786,7 @@ func file_statistics_proto_init() {
 			}
 		}
 		file_statistics_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*PartnerStatisticsMessageReply); i {
+			switch v := v.(*LookMessageReply); i {
 			case 0:
 				return &v.state
 			case 1:

+ 4 - 4
api/statistics/statistics.proto

@@ -18,9 +18,9 @@ service Statistics {
   // 取关用户
   rpc UnLikePerson (PersonMessage) returns (google.protobuf.Empty);
   // 获取用户端统计信息
-  rpc GetUserServiceStatisticsMessage (GetStatisticsMessageRequest) returns (UserStatisticsMessageReply);
+  rpc GetLookAndLikeStatisticsMessage (GetStatisticsMessageRequest) returns (LookAndLikeMessageReply);
   // 获取陪聊端统计信息
-  rpc GetPartnerServiceStatisticsMessage (GetStatisticsMessageRequest) returns (PartnerStatisticsMessageReply);
+  rpc GetLookStatisticsMessage (GetStatisticsMessageRequest) returns (LookMessageReply);
   // 减少"看过我的"的未读数
   rpc ReduceLookUnreadNum (PersonMessage) returns (google.protobuf.Empty);
   // 减少"喜欢我的"的未读数
@@ -61,7 +61,7 @@ message GetLookAndLikeListRequest{
   int64 offset = 4;
 }
 
-message UserStatisticsMessageReply{
+message LookAndLikeMessageReply{
   int64 likeNum = 1;
   int64 likedNum = 2;
   int64 likedUnreadNum = 3;
@@ -69,7 +69,7 @@ message UserStatisticsMessageReply{
   int64 lookUnreadNum = 5;
 }
 
-message PartnerStatisticsMessageReply{
+message LookMessageReply{
   int64 lookNum = 1;
   int64 lookUnreadNum = 2;
 }

+ 26 - 26
api/statistics/statistics_grpc.pb.go

@@ -26,9 +26,9 @@ type StatisticsClient interface {
 	// 取关用户
 	UnLikePerson(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 获取用户端统计信息
-	GetUserServiceStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*UserStatisticsMessageReply, error)
+	GetLookAndLikeStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*LookAndLikeMessageReply, error)
 	// 获取陪聊端统计信息
-	GetPartnerServiceStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*PartnerStatisticsMessageReply, error)
+	GetLookStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*LookMessageReply, error)
 	// 减少"看过我的"的未读数
 	ReduceLookUnreadNum(ctx context.Context, in *PersonMessage, opts ...grpc.CallOption) (*emptypb.Empty, error)
 	// 减少"喜欢我的"的未读数
@@ -78,18 +78,18 @@ func (c *statisticsClient) UnLikePerson(ctx context.Context, in *PersonMessage,
 	return out, nil
 }
 
-func (c *statisticsClient) GetUserServiceStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*UserStatisticsMessageReply, error) {
-	out := new(UserStatisticsMessageReply)
-	err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetUserServiceStatisticsMessage", in, out, opts...)
+func (c *statisticsClient) GetLookAndLikeStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*LookAndLikeMessageReply, error) {
+	out := new(LookAndLikeMessageReply)
+	err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetLookAndLikeStatisticsMessage", in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
 	return out, nil
 }
 
-func (c *statisticsClient) GetPartnerServiceStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*PartnerStatisticsMessageReply, error) {
-	out := new(PartnerStatisticsMessageReply)
-	err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetPartnerServiceStatisticsMessage", in, out, opts...)
+func (c *statisticsClient) GetLookStatisticsMessage(ctx context.Context, in *GetStatisticsMessageRequest, opts ...grpc.CallOption) (*LookMessageReply, error) {
+	out := new(LookMessageReply)
+	err := c.cc.Invoke(ctx, "/api.statistics.Statistics/GetLookStatisticsMessage", in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -161,9 +161,9 @@ type StatisticsServer interface {
 	// 取关用户
 	UnLikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error)
 	// 获取用户端统计信息
-	GetUserServiceStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*UserStatisticsMessageReply, error)
+	GetLookAndLikeStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*LookAndLikeMessageReply, error)
 	// 获取陪聊端统计信息
-	GetPartnerServiceStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*PartnerStatisticsMessageReply, error)
+	GetLookStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*LookMessageReply, error)
 	// 减少"看过我的"的未读数
 	ReduceLookUnreadNum(context.Context, *PersonMessage) (*emptypb.Empty, error)
 	// 减少"喜欢我的"的未读数
@@ -192,11 +192,11 @@ func (UnimplementedStatisticsServer) LikePerson(context.Context, *PersonMessage)
 func (UnimplementedStatisticsServer) UnLikePerson(context.Context, *PersonMessage) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method UnLikePerson not implemented")
 }
-func (UnimplementedStatisticsServer) GetUserServiceStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*UserStatisticsMessageReply, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method GetUserServiceStatisticsMessage not implemented")
+func (UnimplementedStatisticsServer) GetLookAndLikeStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*LookAndLikeMessageReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetLookAndLikeStatisticsMessage not implemented")
 }
-func (UnimplementedStatisticsServer) GetPartnerServiceStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*PartnerStatisticsMessageReply, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerServiceStatisticsMessage not implemented")
+func (UnimplementedStatisticsServer) GetLookStatisticsMessage(context.Context, *GetStatisticsMessageRequest) (*LookMessageReply, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method GetLookStatisticsMessage not implemented")
 }
 func (UnimplementedStatisticsServer) ReduceLookUnreadNum(context.Context, *PersonMessage) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method ReduceLookUnreadNum not implemented")
@@ -283,38 +283,38 @@ func _Statistics_UnLikePerson_Handler(srv interface{}, ctx context.Context, dec
 	return interceptor(ctx, in, info, handler)
 }
 
-func _Statistics_GetUserServiceStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _Statistics_GetLookAndLikeStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(GetStatisticsMessageRequest)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
 	if interceptor == nil {
-		return srv.(StatisticsServer).GetUserServiceStatisticsMessage(ctx, in)
+		return srv.(StatisticsServer).GetLookAndLikeStatisticsMessage(ctx, in)
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/api.statistics.Statistics/GetUserServiceStatisticsMessage",
+		FullMethod: "/api.statistics.Statistics/GetLookAndLikeStatisticsMessage",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(StatisticsServer).GetUserServiceStatisticsMessage(ctx, req.(*GetStatisticsMessageRequest))
+		return srv.(StatisticsServer).GetLookAndLikeStatisticsMessage(ctx, req.(*GetStatisticsMessageRequest))
 	}
 	return interceptor(ctx, in, info, handler)
 }
 
-func _Statistics_GetPartnerServiceStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+func _Statistics_GetLookStatisticsMessage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
 	in := new(GetStatisticsMessageRequest)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
 	if interceptor == nil {
-		return srv.(StatisticsServer).GetPartnerServiceStatisticsMessage(ctx, in)
+		return srv.(StatisticsServer).GetLookStatisticsMessage(ctx, in)
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/api.statistics.Statistics/GetPartnerServiceStatisticsMessage",
+		FullMethod: "/api.statistics.Statistics/GetLookStatisticsMessage",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(StatisticsServer).GetPartnerServiceStatisticsMessage(ctx, req.(*GetStatisticsMessageRequest))
+		return srv.(StatisticsServer).GetLookStatisticsMessage(ctx, req.(*GetStatisticsMessageRequest))
 	}
 	return interceptor(ctx, in, info, handler)
 }
@@ -447,12 +447,12 @@ var Statistics_ServiceDesc = grpc.ServiceDesc{
 			Handler:    _Statistics_UnLikePerson_Handler,
 		},
 		{
-			MethodName: "GetUserServiceStatisticsMessage",
-			Handler:    _Statistics_GetUserServiceStatisticsMessage_Handler,
+			MethodName: "GetLookAndLikeStatisticsMessage",
+			Handler:    _Statistics_GetLookAndLikeStatisticsMessage_Handler,
 		},
 		{
-			MethodName: "GetPartnerServiceStatisticsMessage",
-			Handler:    _Statistics_GetPartnerServiceStatisticsMessage_Handler,
+			MethodName: "GetLookStatisticsMessage",
+			Handler:    _Statistics_GetLookStatisticsMessage_Handler,
 		},
 		{
 			MethodName: "ReduceLookUnreadNum",

+ 7 - 7
api/user/user.pb.go

@@ -291,10 +291,10 @@ var file_user_proto_rawDesc = []byte{
 	0x2e, 0x41, 0x64, 0x64, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
 	0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x22, 0x18, 0x2f,
 	0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x63, 0x69, 0x72, 0x63,
-	0x6c, 0x65, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x5b, 0x0a, 0x0f, 0x47, 0x65,
-	0x74, 0x55, 0x73, 0x65, 0x72, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x2e,
-	0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x49,
-	0x44, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
+	0x6c, 0x65, 0x2f, 0x69, 0x6e, 0x66, 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x5b, 0x0a, 0x0f, 0x55, 0x73,
+	0x65, 0x72, 0x47, 0x65, 0x74, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x2e,
+	0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x50, 0x65, 0x72, 0x73, 0x6f,
+	0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d,
 	0x6d, 0x6f, 0x6e, 0x2e, 0x48, 0x6f, 0x6d, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x19, 0x82, 0xd3,
 	0xe4, 0x93, 0x02, 0x13, 0x22, 0x0e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x2f,
 	0x68, 0x6f, 0x6d, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x45, 0x0a, 0x0e, 0x46, 0x69, 0x6e, 0x64, 0x55,
@@ -327,7 +327,7 @@ var file_user_proto_goTypes = []interface{}{
 	(*UpdateUserInformationRequest)(nil),              // 1: api.user.UpdateUserInformationRequest
 	(*emptypb.Empty)(nil),                             // 2: google.protobuf.Empty
 	(*common.PartnerIDParam)(nil),                     // 3: api.common.PartnerIDParam
-	(*common.UserIDParam)(nil),                        // 4: api.common.UserIDParam
+	(*common.PersonParam)(nil),                        // 4: api.common.PersonParam
 	(*common.PersonIDList)(nil),                       // 5: api.common.PersonIDList
 	(*chat.CheckUserPartnerIsRelationshipReply)(nil),  // 6: api.chat.CheckUserPartnerIsRelationshipReply
 	(*chat.CreateUserPartnerIsRelationshipReply)(nil), // 7: api.chat.CreateUserPartnerIsRelationshipReply
@@ -341,14 +341,14 @@ var file_user_proto_depIdxs = []int32{
 	3,  // 2: api.user.User.CheckUserPartnerIsRelationship:input_type -> api.common.PartnerIDParam
 	3,  // 3: api.user.User.CreateUserPartnerIsRelationship:input_type -> api.common.PartnerIDParam
 	3,  // 4: api.user.User.GetPartnerCircleInfo:input_type -> api.common.PartnerIDParam
-	4,  // 5: api.user.User.GetUserHomeInfo:input_type -> api.common.UserIDParam
+	4,  // 5: api.user.User.UserGetHomeInfo:input_type -> api.common.PersonParam
 	5,  // 6: api.user.User.FindUserDBList:input_type -> api.common.PersonIDList
 	2,  // 7: api.user.User.UpdateUserInformation:output_type -> google.protobuf.Empty
 	0,  // 8: api.user.User.GetUserInfo:output_type -> api.user.UserInfo
 	6,  // 9: api.user.User.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
 	7,  // 10: api.user.User.CreateUserPartnerIsRelationship:output_type -> api.chat.CreateUserPartnerIsRelationshipReply
 	8,  // 11: api.user.User.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	9,  // 12: api.user.User.GetUserHomeInfo:output_type -> api.common.HomeInfo
+	9,  // 12: api.user.User.UserGetHomeInfo:output_type -> api.common.HomeInfo
 	10, // 13: api.user.User.FindUserDBList:output_type -> api.common.PersonDBReply
 	7,  // [7:14] is the sub-list for method output_type
 	0,  // [0:7] is the sub-list for method input_type

+ 2 - 2
api/user/user.proto

@@ -48,8 +48,8 @@ service User {
       body:"*"
     };
   };
-  // 获取用户主页信息
-  rpc GetUserHomeInfo (common.UserIDParam) returns (common.HomeInfo){
+  // 用户获取主页信息
+  rpc UserGetHomeInfo (common.PersonParam) returns (common.HomeInfo){
     option (google.api.http) = {
       post: "/api/user/home",
       body:"*"

+ 15 - 15
api/user/user_grpc.pb.go

@@ -31,8 +31,8 @@ type UserClient interface {
 	CreateUserPartnerIsRelationship(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*chat.CreateUserPartnerIsRelationshipReply, error)
 	// 获取陪聊的确认通过页面信息
 	GetPartnerCircleInfo(ctx context.Context, in *common.PartnerIDParam, opts ...grpc.CallOption) (*common.AddFriendMessageInfo, error)
-	// 获取用户主页信息
-	GetUserHomeInfo(ctx context.Context, in *common.UserIDParam, opts ...grpc.CallOption) (*common.HomeInfo, error)
+	// 用户获取主页信息
+	UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error)
 	// 通过用户IDs查看用户信息列表
 	FindUserDBList(ctx context.Context, in *common.PersonIDList, opts ...grpc.CallOption) (*common.PersonDBReply, error)
 }
@@ -90,9 +90,9 @@ func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *common.Partne
 	return out, nil
 }
 
-func (c *userClient) GetUserHomeInfo(ctx context.Context, in *common.UserIDParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
+func (c *userClient) UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.HomeInfo, error) {
 	out := new(common.HomeInfo)
-	err := c.cc.Invoke(ctx, "/api.user.User/GetUserHomeInfo", in, out, opts...)
+	err := c.cc.Invoke(ctx, "/api.user.User/UserGetHomeInfo", in, out, opts...)
 	if err != nil {
 		return nil, err
 	}
@@ -122,8 +122,8 @@ type UserServer interface {
 	CreateUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CreateUserPartnerIsRelationshipReply, error)
 	// 获取陪聊的确认通过页面信息
 	GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error)
-	// 获取用户主页信息
-	GetUserHomeInfo(context.Context, *common.UserIDParam) (*common.HomeInfo, error)
+	// 用户获取主页信息
+	UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
 	// 通过用户IDs查看用户信息列表
 	FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error)
 	mustEmbedUnimplementedUserServer()
@@ -148,8 +148,8 @@ func (UnimplementedUserServer) CreateUserPartnerIsRelationship(context.Context,
 func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")
 }
-func (UnimplementedUserServer) GetUserHomeInfo(context.Context, *common.UserIDParam) (*common.HomeInfo, error) {
-	return nil, status.Errorf(codes.Unimplemented, "method GetUserHomeInfo not implemented")
+func (UnimplementedUserServer) UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method UserGetHomeInfo not implemented")
 }
 func (UnimplementedUserServer) FindUserDBList(context.Context, *common.PersonIDList) (*common.PersonDBReply, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method FindUserDBList not implemented")
@@ -257,20 +257,20 @@ func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, de
 	return interceptor(ctx, in, info, handler)
 }
 
-func _User_GetUserHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
-	in := new(common.UserIDParam)
+func _User_UserGetHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.PersonParam)
 	if err := dec(in); err != nil {
 		return nil, err
 	}
 	if interceptor == nil {
-		return srv.(UserServer).GetUserHomeInfo(ctx, in)
+		return srv.(UserServer).UserGetHomeInfo(ctx, in)
 	}
 	info := &grpc.UnaryServerInfo{
 		Server:     srv,
-		FullMethod: "/api.user.User/GetUserHomeInfo",
+		FullMethod: "/api.user.User/UserGetHomeInfo",
 	}
 	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
-		return srv.(UserServer).GetUserHomeInfo(ctx, req.(*common.UserIDParam))
+		return srv.(UserServer).UserGetHomeInfo(ctx, req.(*common.PersonParam))
 	}
 	return interceptor(ctx, in, info, handler)
 }
@@ -321,8 +321,8 @@ var User_ServiceDesc = grpc.ServiceDesc{
 			Handler:    _User_GetPartnerCircleInfo_Handler,
 		},
 		{
-			MethodName: "GetUserHomeInfo",
-			Handler:    _User_GetUserHomeInfo_Handler,
+			MethodName: "UserGetHomeInfo",
+			Handler:    _User_UserGetHomeInfo_Handler,
 		},
 		{
 			MethodName: "FindUserDBList",

+ 19 - 19
api/user/user_http.pb.go

@@ -32,9 +32,9 @@ type UserHTTPServer interface {
 	CheckUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)
 	CreateUserPartnerIsRelationship(context.Context, *common.PartnerIDParam) (*chat.CreateUserPartnerIsRelationshipReply, error)
 	GetPartnerCircleInfo(context.Context, *common.PartnerIDParam) (*common.AddFriendMessageInfo, error)
-	GetUserHomeInfo(context.Context, *common.UserIDParam) (*common.HomeInfo, error)
 	GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
 	UpdateUserInformation(context.Context, *UpdateUserInformationRequest) (*emptypb.Empty, error)
+	UserGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
 }
 
 func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
@@ -44,7 +44,7 @@ func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer) {
 	r.POST("/api/user/check/relationship", _User_CheckUserPartnerIsRelationship0_HTTP_Handler(srv))
 	r.POST("/api/user/create/relationship", _User_CreateUserPartnerIsRelationship0_HTTP_Handler(srv))
 	r.POST("/api/partner/circle/info", _User_GetPartnerCircleInfo0_HTTP_Handler(srv))
-	r.POST("/api/user/home", _User_GetUserHomeInfo0_HTTP_Handler(srv))
+	r.POST("/api/user/home", _User_UserGetHomeInfo0_HTTP_Handler(srv))
 }
 
 func _User_UpdateUserInformation0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
@@ -182,18 +182,18 @@ func _User_GetPartnerCircleInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.
 	}
 }
 
-func _User_GetUserHomeInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
+func _User_UserGetHomeInfo0_HTTP_Handler(srv UserHTTPServer) func(ctx http.Context) error {
 	return func(ctx http.Context) error {
-		var in common.UserIDParam
+		var in common.PersonParam
 		if err := ctx.Bind(&in); err != nil {
 			return err
 		}
 		if err := ctx.BindQuery(&in); err != nil {
 			return err
 		}
-		http.SetOperation(ctx, "/api.user.User/GetUserHomeInfo")
+		http.SetOperation(ctx, "/api.user.User/UserGetHomeInfo")
 		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
-			return srv.GetUserHomeInfo(ctx, req.(*common.UserIDParam))
+			return srv.UserGetHomeInfo(ctx, req.(*common.PersonParam))
 		})
 		out, err := h(ctx, &in)
 		if err != nil {
@@ -213,9 +213,9 @@ type UserHTTPClient interface {
 	CheckUserPartnerIsRelationship(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CheckUserPartnerIsRelationshipReply, err error)
 	CreateUserPartnerIsRelationship(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *chat.CreateUserPartnerIsRelationshipReply, err error)
 	GetPartnerCircleInfo(ctx context.Context, req *common.PartnerIDParam, opts ...http.CallOption) (rsp *common.AddFriendMessageInfo, err error)
-	GetUserHomeInfo(ctx context.Context, req *common.UserIDParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
 	GetUserInfo(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *UserInfo, err error)
 	UpdateUserInformation(ctx context.Context, req *UpdateUserInformationRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
+	UserGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
 }
 
 type UserHTTPClientImpl struct {
@@ -265,11 +265,11 @@ func (c *UserHTTPClientImpl) GetPartnerCircleInfo(ctx context.Context, in *commo
 	return &out, err
 }
 
-func (c *UserHTTPClientImpl) GetUserHomeInfo(ctx context.Context, in *common.UserIDParam, opts ...http.CallOption) (*common.HomeInfo, error) {
-	var out common.HomeInfo
-	pattern := "/api/user/home"
+func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserInfo, error) {
+	var out UserInfo
+	pattern := "/api/user/info"
 	path := binding.EncodeURL(pattern, in, false)
-	opts = append(opts, http.Operation("/api.user.User/GetUserHomeInfo"))
+	opts = append(opts, http.Operation("/api.user.User/GetUserInfo"))
 	opts = append(opts, http.PathTemplate(pattern))
 	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
 	if err != nil {
@@ -278,11 +278,11 @@ func (c *UserHTTPClientImpl) GetUserHomeInfo(ctx context.Context, in *common.Use
 	return &out, err
 }
 
-func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*UserInfo, error) {
-	var out UserInfo
-	pattern := "/api/user/info"
+func (c *UserHTTPClientImpl) UpdateUserInformation(ctx context.Context, in *UpdateUserInformationRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/user/update/information"
 	path := binding.EncodeURL(pattern, in, false)
-	opts = append(opts, http.Operation("/api.user.User/GetUserInfo"))
+	opts = append(opts, http.Operation("/api.user.User/UpdateUserInformation"))
 	opts = append(opts, http.PathTemplate(pattern))
 	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
 	if err != nil {
@@ -291,11 +291,11 @@ func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *emptypb.Empty,
 	return &out, err
 }
 
-func (c *UserHTTPClientImpl) UpdateUserInformation(ctx context.Context, in *UpdateUserInformationRequest, opts ...http.CallOption) (*emptypb.Empty, error) {
-	var out emptypb.Empty
-	pattern := "/api/user/update/information"
+func (c *UserHTTPClientImpl) UserGetHomeInfo(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*common.HomeInfo, error) {
+	var out common.HomeInfo
+	pattern := "/api/user/home"
 	path := binding.EncodeURL(pattern, in, false)
-	opts = append(opts, http.Operation("/api.user.User/UpdateUserInformation"))
+	opts = append(opts, http.Operation("/api.user.User/UserGetHomeInfo"))
 	opts = append(opts, http.PathTemplate(pattern))
 	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
 	if err != nil {

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

@@ -9,6 +9,12 @@ export interface User1AndUser2IdParam{
 export interface PartnerIDParam{
     partnerID?:string;
 }
+export interface PersonParam{
+    /**  查询目标的ID */
+    personID?:string;
+    /**  类型 */
+    personType?:string;
+}
 export interface UserIDParam{
     userId?:string;
 }

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

@@ -1,7 +1,7 @@
 // @ts-ignore
 import { request } from 'ice';
 import {PartnerInfo,UpdatePartnerInformationRequest,GetRandomPartnerRequest,RandomPartnerInfo} from "./partner_pb";
-import {PartnerIDParam,AddFriendMessageInfo,HomeInfo,PersonIDList,PersonDBReply} from "../common/common_pb";
+import {PartnerIDParam,AddFriendMessageInfo,PersonParam,HomeInfo,PersonIDList,PersonDBReply} from "../common/common_pb";
 
 const PartnerService = {
   /**  获取陪聊的个人信息 */
@@ -19,8 +19,8 @@ const PartnerService = {
 	const res = await request.post('/api/partner/update/information', req);
     return res.data;
   },
-  /**  获取陪聊的主页 */
-  GetPartnerHomeInfo: async (req?: PartnerIDParam) => {
+  /**  陪聊获取主页信息 */
+  PartnerGetHomeInfo: async (req?: PersonParam) => {
 	const res = await request.post<{ data: HomeInfo, code: string, message: string }>('/api/partner/home', req);
     return res.data;
   },

+ 2 - 2
js/api/statistics/statistics_pb.ts

@@ -34,14 +34,14 @@ export interface GetLookAndLikeListRequest{
     nextId?:number;
     offset?:number;
 }
-export interface UserStatisticsMessageReply{
+export interface LookAndLikeMessageReply{
     likeNum?:number;
     likedNum?:number;
     likedUnreadNum?:number;
     lookNum?:number;
     lookUnreadNum?:number;
 }
-export interface PartnerStatisticsMessageReply{
+export interface LookMessageReply{
     lookNum?:number;
     lookUnreadNum?:number;
 }

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

@@ -1,7 +1,7 @@
 // @ts-ignore
 import { request } from 'ice';
 import {UpdateUserInformationRequest,UserInfo} from "./user_pb";
-import {PartnerIDParam,AddFriendMessageInfo,UserIDParam,HomeInfo,PersonIDList,PersonDBReply} from "../common/common_pb";
+import {PartnerIDParam,AddFriendMessageInfo,PersonParam,HomeInfo,PersonIDList,PersonDBReply} from "../common/common_pb";
 import {CheckUserPartnerIsRelationshipReply,CreateUserPartnerIsRelationshipReply} from "../chat/chat_pb";
 
 const UserService = {
@@ -30,8 +30,8 @@ const UserService = {
 	const res = await request.post<{ data: AddFriendMessageInfo, code: string, message: string }>('/api/partner/circle/info', req);
     return res.data;
   },
-  /**  获取用户主页信息 */
-  GetUserHomeInfo: async (req?: UserIDParam) => {
+  /**  用户获取主页信息 */
+  UserGetHomeInfo: async (req?: PersonParam) => {
 	const res = await request.post<{ data: HomeInfo, code: string, message: string }>('/api/user/home', req);
     return res.data;
   },