Browse Source

接待员关注

wfz 3 years ago
parent
commit
35b0b6e3ca

+ 28 - 21
api/chat/chat.pb.go

@@ -1169,7 +1169,7 @@ var file_chat_proto_rawDesc = []byte{
 	0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, 0x65,
 	0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73,
 	0x6f, 0x6e, 0x49, 0x44, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73,
-	0x6f, 0x6e, 0x49, 0x44, 0x32, 0x9a, 0x06, 0x0a, 0x04, 0x43, 0x68, 0x61, 0x74, 0x12, 0x7a, 0x0a,
+	0x6f, 0x6e, 0x49, 0x44, 0x32, 0xd9, 0x06, 0x0a, 0x04, 0x43, 0x68, 0x61, 0x74, 0x12, 0x7a, 0x0a,
 	0x1e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x55, 0x73, 0x65, 0x72, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
 	0x72, 0x49, 0x73, 0x52, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x68, 0x69, 0x70, 0x12,
 	0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x55, 0x73, 0x65,
@@ -1219,11 +1219,15 @@ var file_chat_proto_rawDesc = []byte{
 	0x2e, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x53, 0x65, 0x74, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x43, 0x68,
 	0x61, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
 	0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22,
-	0x00, 0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x50, 0x01, 0x5a,
-	0x2f, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
-	0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
-	0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x3b, 0x63, 0x68, 0x61, 0x74,
-	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+	0x00, 0x12, 0x3d, 0x0a, 0x06, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x19, 0x2e, 0x61, 0x70,
+	0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52,
+	0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
+	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00,
+	0x42, 0x3d, 0x0a, 0x08, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x68, 0x61, 0x74, 0x50, 0x01, 0x5a, 0x2f,
+	0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75, 0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73,
+	0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
+	0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x3b, 0x63, 0x68, 0x61, 0x74, 0x62,
+	0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
 }
 
 var (
@@ -1256,10 +1260,11 @@ var file_chat_proto_goTypes = []interface{}{
 	(*FindChatRecordListRequest)(nil),            // 13: api.chat.FindChatRecordListRequest
 	(*common.UserAndPartnerIdentifyIdParam)(nil), // 14: api.common.UserAndPartnerIdentifyIdParam
 	(*common.ListPageAndPersonRequest)(nil),      // 15: api.common.ListPageAndPersonRequest
-	(*common.OnlinePersonListReply)(nil),         // 16: api.common.OnlinePersonListReply
-	(*common.ChatRecordListReply)(nil),           // 17: api.common.ChatRecordListReply
-	(*common.ChatRoomMsg)(nil),                   // 18: api.common.ChatRoomMsg
-	(*emptypb.Empty)(nil),                        // 19: google.protobuf.Empty
+	(*common.ReportRequest)(nil),                 // 16: api.common.ReportRequest
+	(*common.OnlinePersonListReply)(nil),         // 17: api.common.OnlinePersonListReply
+	(*common.ChatRecordListReply)(nil),           // 18: api.common.ChatRecordListReply
+	(*common.ChatRoomMsg)(nil),                   // 19: api.common.ChatRoomMsg
+	(*emptypb.Empty)(nil),                        // 20: google.protobuf.Empty
 }
 var file_chat_proto_depIdxs = []int32{
 	3,  // 0: api.chat.UserFindRoomListReply.list:type_name -> api.chat.UserRoomInfo
@@ -1273,17 +1278,19 @@ var file_chat_proto_depIdxs = []int32{
 	13, // 8: api.chat.Chat.FindChatRecordList:input_type -> api.chat.FindChatRecordListRequest
 	12, // 9: api.chat.Chat.FindChatRoomMsg:input_type -> api.chat.FindChatRoomMsgRequest
 	7,  // 10: api.chat.Chat.SetBlackChat:input_type -> api.chat.SetBlackChatParam
-	10, // 11: api.chat.Chat.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
-	11, // 12: api.chat.Chat.CreateChatRoom:output_type -> api.chat.RoomReply
-	16, // 13: api.chat.Chat.FindOnlinePersonList:output_type -> api.common.OnlinePersonListReply
-	4,  // 14: api.chat.Chat.PartnerFindRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	2,  // 15: api.chat.Chat.UserFindRoomList:output_type -> api.chat.UserFindRoomListReply
-	9,  // 16: api.chat.Chat.Receive:output_type -> api.chat.ReceiveReply
-	17, // 17: api.chat.Chat.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	18, // 18: api.chat.Chat.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	19, // 19: api.chat.Chat.SetBlackChat:output_type -> google.protobuf.Empty
-	11, // [11:20] is the sub-list for method output_type
-	2,  // [2:11] is the sub-list for method input_type
+	16, // 11: api.chat.Chat.Report:input_type -> api.common.ReportRequest
+	10, // 12: api.chat.Chat.CheckUserPartnerIsRelationship:output_type -> api.chat.CheckUserPartnerIsRelationshipReply
+	11, // 13: api.chat.Chat.CreateChatRoom:output_type -> api.chat.RoomReply
+	17, // 14: api.chat.Chat.FindOnlinePersonList:output_type -> api.common.OnlinePersonListReply
+	4,  // 15: api.chat.Chat.PartnerFindRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	2,  // 16: api.chat.Chat.UserFindRoomList:output_type -> api.chat.UserFindRoomListReply
+	9,  // 17: api.chat.Chat.Receive:output_type -> api.chat.ReceiveReply
+	18, // 18: api.chat.Chat.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	19, // 19: api.chat.Chat.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	20, // 20: api.chat.Chat.SetBlackChat:output_type -> google.protobuf.Empty
+	20, // 21: api.chat.Chat.Report:output_type -> google.protobuf.Empty
+	12, // [12:22] is the sub-list for method output_type
+	2,  // [2:12] is the sub-list for method input_type
 	2,  // [2:2] is the sub-list for extension type_name
 	2,  // [2:2] is the sub-list for extension extendee
 	0,  // [0:2] is the sub-list for field type_name

+ 2 - 0
api/chat/chat.proto

@@ -29,6 +29,8 @@ service Chat {
   rpc FindChatRoomMsg (FindChatRoomMsgRequest) returns (common.ChatRoomMsg){};
   // 拉黑
   rpc SetBlackChat (SetBlackChatParam) returns (google.protobuf.Empty){};
+  // 拉黑
+  rpc Report (common.ReportRequest) returns (google.protobuf.Empty){};
 }
 
 message PartnerFindRoomListRequest {

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

@@ -37,6 +37,8 @@ type ChatClient interface {
 	FindChatRoomMsg(ctx context.Context, in *FindChatRoomMsgRequest, opts ...grpc.CallOption) (*common.ChatRoomMsg, error)
 	// 拉黑
 	SetBlackChat(ctx context.Context, in *SetBlackChatParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 拉黑
+	Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type chatClient struct {
@@ -128,6 +130,15 @@ func (c *chatClient) SetBlackChat(ctx context.Context, in *SetBlackChatParam, op
 	return out, nil
 }
 
+func (c *chatClient) Report(ctx context.Context, in *common.ReportRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.chat.Chat/Report", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // ChatServer is the server API for Chat service.
 // All implementations must embed UnimplementedChatServer
 // for forward compatibility
@@ -149,6 +160,8 @@ type ChatServer interface {
 	FindChatRoomMsg(context.Context, *FindChatRoomMsgRequest) (*common.ChatRoomMsg, error)
 	// 拉黑
 	SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error)
+	// 拉黑
+	Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error)
 	mustEmbedUnimplementedChatServer()
 }
 
@@ -183,6 +196,9 @@ func (UnimplementedChatServer) FindChatRoomMsg(context.Context, *FindChatRoomMsg
 func (UnimplementedChatServer) SetBlackChat(context.Context, *SetBlackChatParam) (*emptypb.Empty, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method SetBlackChat not implemented")
 }
+func (UnimplementedChatServer) Report(context.Context, *common.ReportRequest) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method Report not implemented")
+}
 func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
 
 // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
@@ -358,6 +374,24 @@ func _Chat_SetBlackChat_Handler(srv interface{}, ctx context.Context, dec func(i
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Chat_Report_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+	in := new(common.ReportRequest)
+	if err := dec(in); err != nil {
+		return nil, err
+	}
+	if interceptor == nil {
+		return srv.(ChatServer).Report(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.chat.Chat/Report",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(ChatServer).Report(ctx, req.(*common.ReportRequest))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -401,6 +435,10 @@ var Chat_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "SetBlackChat",
 			Handler:    _Chat_SetBlackChat_Handler,
 		},
+		{
+			MethodName: "Report",
+			Handler:    _Chat_Report_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "chat.proto",

+ 259 - 8
api/common/common.pb.go

@@ -3601,6 +3601,196 @@ func (x *ChatTopicList) GetList() []string {
 	return nil
 }
 
+type ReportChatRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	ReportedPersonID   string   `protobuf:"bytes,4,opt,name=reportedPersonID,proto3" json:"reportedPersonID"`     // 被举报的人的ID
+	ReportedPersonType string   `protobuf:"bytes,5,opt,name=reportedPersonType,proto3" json:"reportedPersonType"` // 被举报的人的类型
+	ContactInformation string   `protobuf:"bytes,6,opt,name=contactInformation,proto3" json:"contactInformation"` // 联系方式
+	Picture            string   `protobuf:"bytes,7,opt,name=picture,proto3" json:"picture"`                       // 图片
+	Category           []string `protobuf:"bytes,8,rep,name=category,proto3" json:"category"`                     // 类别
+}
+
+func (x *ReportChatRequest) Reset() {
+	*x = ReportChatRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_common_proto_msgTypes[53]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *ReportChatRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ReportChatRequest) ProtoMessage() {}
+
+func (x *ReportChatRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[53]
+	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 ReportChatRequest.ProtoReflect.Descriptor instead.
+func (*ReportChatRequest) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{53}
+}
+
+func (x *ReportChatRequest) GetReportedPersonID() string {
+	if x != nil {
+		return x.ReportedPersonID
+	}
+	return ""
+}
+
+func (x *ReportChatRequest) GetReportedPersonType() string {
+	if x != nil {
+		return x.ReportedPersonType
+	}
+	return ""
+}
+
+func (x *ReportChatRequest) GetContactInformation() string {
+	if x != nil {
+		return x.ContactInformation
+	}
+	return ""
+}
+
+func (x *ReportChatRequest) GetPicture() string {
+	if x != nil {
+		return x.Picture
+	}
+	return ""
+}
+
+func (x *ReportChatRequest) GetCategory() []string {
+	if x != nil {
+		return x.Category
+	}
+	return nil
+}
+
+type ReportRequest struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	IdentifyId         string   `protobuf:"bytes,1,opt,name=identifyId,proto3" json:"identifyId"`                 // 发起举报的人的身份ID
+	PersonId           string   `protobuf:"bytes,2,opt,name=personId,proto3" json:"personId"`                     // 发起举报的人的ID
+	PersonType         string   `protobuf:"bytes,3,opt,name=personType,proto3" json:"personType"`                 // 发起举报的人的类型
+	ReportedIdentifyId string   `protobuf:"bytes,4,opt,name=reportedIdentifyId,proto3" json:"reportedIdentifyId"` // 被举报的人的身份ID
+	ReportedPersonId   string   `protobuf:"bytes,5,opt,name=reportedPersonId,proto3" json:"reportedPersonId"`     // 被举报的人的ID
+	ReportedPersonType string   `protobuf:"bytes,6,opt,name=reportedPersonType,proto3" json:"reportedPersonType"` // 被举报的人的类型
+	ContactInformation string   `protobuf:"bytes,7,opt,name=contactInformation,proto3" json:"contactInformation"` // 联系方式
+	Picture            string   `protobuf:"bytes,8,opt,name=picture,proto3" json:"picture"`                       // 图片
+	Category           []string `protobuf:"bytes,9,rep,name=category,proto3" json:"category"`                     // 类别
+}
+
+func (x *ReportRequest) Reset() {
+	*x = ReportRequest{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_common_proto_msgTypes[54]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *ReportRequest) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ReportRequest) ProtoMessage() {}
+
+func (x *ReportRequest) ProtoReflect() protoreflect.Message {
+	mi := &file_common_proto_msgTypes[54]
+	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 ReportRequest.ProtoReflect.Descriptor instead.
+func (*ReportRequest) Descriptor() ([]byte, []int) {
+	return file_common_proto_rawDescGZIP(), []int{54}
+}
+
+func (x *ReportRequest) GetIdentifyId() string {
+	if x != nil {
+		return x.IdentifyId
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetPersonId() string {
+	if x != nil {
+		return x.PersonId
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetPersonType() string {
+	if x != nil {
+		return x.PersonType
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetReportedIdentifyId() string {
+	if x != nil {
+		return x.ReportedIdentifyId
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetReportedPersonId() string {
+	if x != nil {
+		return x.ReportedPersonId
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetReportedPersonType() string {
+	if x != nil {
+		return x.ReportedPersonType
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetContactInformation() string {
+	if x != nil {
+		return x.ContactInformation
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetPicture() string {
+	if x != nil {
+		return x.Picture
+	}
+	return ""
+}
+
+func (x *ReportRequest) GetCategory() []string {
+	if x != nil {
+		return x.Category
+	}
+	return nil
+}
+
 var File_common_proto protoreflect.FileDescriptor
 
 var file_common_proto_rawDesc = []byte{
@@ -3988,12 +4178,47 @@ var file_common_proto_rawDesc = []byte{
 	0x74, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x65, 0x78, 0x74, 0x49,
 	0x64, 0x22, 0x23, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x74, 0x54, 0x6f, 0x70, 0x69, 0x63, 0x4c, 0x69,
 	0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09,
-	0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 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,
+	0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0xd5, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x70, 0x6f, 0x72,
+	0x74, 0x43, 0x68, 0x61, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x10,
+	0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44,
+	0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64,
+	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x2e, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6f,
+	0x72, 0x74, 0x65, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x50, 0x65,
+	0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74,
+	0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66,
+	0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x69, 0x63, 0x74,
+	0x75, 0x72, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x69, 0x63, 0x74, 0x75,
+	0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x08,
+	0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x22, 0xdd,
+	0x02, 0x0a, 0x0d, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
+	0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x49, 0x64, 0x18, 0x01,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x49, 0x64,
+	0x12, 0x1a, 0x0a, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01,
+	0x28, 0x09, 0x52, 0x08, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a,
+	0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
+	0x52, 0x0a, 0x70, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x12,
+	0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79,
+	0x49, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74,
+	0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x79, 0x49, 0x64, 0x12, 0x2a, 0x0a, 0x10,
+	0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64,
+	0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64,
+	0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x12, 0x72, 0x65, 0x70, 0x6f,
+	0x72, 0x74, 0x65, 0x64, 0x50, 0x65, 0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x18, 0x06,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x72, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x65, 0x64, 0x50, 0x65,
+	0x72, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74,
+	0x61, 0x63, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07,
+	0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x49, 0x6e, 0x66,
+	0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x69, 0x63, 0x74,
+	0x75, 0x72, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x70, 0x69, 0x63, 0x74, 0x75,
+	0x72, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x18, 0x09,
+	0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 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 (
@@ -4008,7 +4233,7 @@ func file_common_proto_rawDescGZIP() []byte {
 	return file_common_proto_rawDescData
 }
 
-var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 53)
+var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 55)
 var file_common_proto_goTypes = []interface{}{
 	(*UserAndPartnerIdentifyIdParam)(nil), // 0: api.common.UserAndPartnerIdentifyIdParam
 	(*UserAndPartnerParam)(nil),           // 1: api.common.UserAndPartnerParam
@@ -4063,6 +4288,8 @@ var file_common_proto_goTypes = []interface{}{
 	(*MemeTitle)(nil),                     // 50: api.common.MemeTitle
 	(*MemeList)(nil),                      // 51: api.common.MemeList
 	(*ChatTopicList)(nil),                 // 52: api.common.ChatTopicList
+	(*ReportChatRequest)(nil),             // 53: api.common.ReportChatRequest
+	(*ReportRequest)(nil),                 // 54: api.common.ReportRequest
 }
 var file_common_proto_depIdxs = []int32{
 	27, // 0: api.common.ChatCardInfo.tagList:type_name -> api.common.TagList
@@ -4724,6 +4951,30 @@ func file_common_proto_init() {
 				return nil
 			}
 		}
+		file_common_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*ReportChatRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
+		file_common_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*ReportRequest); i {
+			case 0:
+				return &v.state
+			case 1:
+				return &v.sizeCache
+			case 2:
+				return &v.unknownFields
+			default:
+				return nil
+			}
+		}
 	}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
@@ -4731,7 +4982,7 @@ func file_common_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_common_proto_rawDesc,
 			NumEnums:      0,
-			NumMessages:   53,
+			NumMessages:   55,
 			NumExtensions: 0,
 			NumServices:   0,
 		},

+ 20 - 0
api/common/common.proto

@@ -359,4 +359,24 @@ message MemeList {
 
 message ChatTopicList {
   repeated string list = 1;// 话题列表
+}
+
+message ReportChatRequest{
+  string reportedPersonID = 4; // 被举报的人的ID
+  string reportedPersonType = 5; // 被举报的人的类型
+  string contactInformation = 6; // 联系方式
+  string picture = 7;  // 图片
+  repeated string category = 8; // 类别
+}
+
+message ReportRequest{
+  string identifyId = 1;// 发起举报的人的身份ID
+  string personId = 2; // 发起举报的人的ID
+  string personType = 3; // 发起举报的人的类型
+  string reportedIdentifyId = 4; // 被举报的人的身份ID
+  string reportedPersonId = 5; // 被举报的人的ID
+  string reportedPersonType = 6; // 被举报的人的类型
+  string contactInformation = 7; // 联系方式
+  string picture = 8;  // 图片
+  repeated string category = 9; // 类别
 }

+ 54 - 38
api/partner/partner.pb.go

@@ -778,7 +778,7 @@ var file_partner_proto_rawDesc = []byte{
 	0x0a, 0x03, 0x73, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78,
 	0x22, 0x2b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x52, 0x61, 0x6e, 0x64, 0x6f, 0x6d, 0x50, 0x61, 0x72,
 	0x74, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73,
-	0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0xe6, 0x1c,
+	0x65, 0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x73, 0x65, 0x78, 0x32, 0xa6, 0x1e,
 	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,
@@ -1009,7 +1009,19 @@ var file_partner_proto_rawDesc = []byte{
 	0x4d, 0x65, 0x6d, 0x65, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x27, 0x82,
 	0xd3, 0xe4, 0x93, 0x02, 0x21, 0x22, 0x1c, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74,
 	0x6e, 0x65, 0x72, 0x2f, 0x66, 0x69, 0x6e, 0x64, 0x2f, 0x63, 0x68, 0x61, 0x74, 0x2f, 0x74, 0x69,
-	0x74, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61,
+	0x74, 0x6c, 0x65, 0x3a, 0x01, 0x2a, 0x12, 0x5c, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65,
+	0x72, 0x4c, 0x69, 0x6b, 0x65, 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, 0x16,
+	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+	0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x16, 0x22, 0x11,
+	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x6c, 0x69, 0x6b,
+	0x65, 0x3a, 0x01, 0x2a, 0x12, 0x60, 0x0a, 0x0d, 0x50, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x55,
+	0x6e, 0x4c, 0x69, 0x6b, 0x65, 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, 0x16,
+	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
+	0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x1e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x18, 0x22, 0x13,
+	0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x61, 0x72, 0x74, 0x6e, 0x65, 0x72, 0x2f, 0x75, 0x6e, 0x6c,
+	0x69, 0x6b, 0x65, 0x3a, 0x01, 0x2a, 0x42, 0x46, 0x0a, 0x0b, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x61,
 	0x72, 0x74, 0x6e, 0x65, 0x72, 0x50, 0x01, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x2e, 0x69, 0x6b, 0x75,
 	0x62, 0x61, 0x6e, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70,
 	0x77, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70,
@@ -1115,42 +1127,46 @@ var file_partner_proto_depIdxs = []int32{
 	9,  // 32: api.partner.Partner.FindMemeTitle:input_type -> google.protobuf.Empty
 	15, // 33: api.partner.Partner.PartnerGetChatCard:input_type -> api.common.PersonParam
 	9,  // 34: api.partner.Partner.FindChatTopicTitle:input_type -> google.protobuf.Empty
-	3,  // 35: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
-	5,  // 36: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
-	6,  // 37: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
-	27, // 38: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
-	4,  // 39: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
-	28, // 40: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
-	9,  // 41: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
-	9,  // 42: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
-	29, // 43: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
-	9,  // 44: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
-	7,  // 45: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
-	30, // 46: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
-	31, // 47: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
-	32, // 48: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
-	33, // 49: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
-	34, // 50: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
-	35, // 51: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
-	36, // 52: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
-	37, // 53: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
-	38, // 54: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	38, // 55: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	38, // 56: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
-	39, // 57: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
-	40, // 58: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
-	9,  // 59: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
-	0,  // 60: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
-	41, // 61: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
-	42, // 62: api.partner.Partner.FindMemeByType:output_type -> api.common.MemeList
-	43, // 63: api.partner.Partner.FindChatTopic:output_type -> api.common.ChatTopicList
-	44, // 64: api.partner.Partner.RandomMeme:output_type -> api.common.CommonTextList
-	44, // 65: api.partner.Partner.RandomSwiftMessage:output_type -> api.common.CommonTextList
-	45, // 66: api.partner.Partner.FindMemeTitle:output_type -> api.common.MemeTitleList
-	46, // 67: api.partner.Partner.PartnerGetChatCard:output_type -> api.common.ChatCardInfo
-	45, // 68: api.partner.Partner.FindChatTopicTitle:output_type -> api.common.MemeTitleList
-	35, // [35:69] is the sub-list for method output_type
-	1,  // [1:35] is the sub-list for method input_type
+	15, // 35: api.partner.Partner.PartnerLike:input_type -> api.common.PersonParam
+	15, // 36: api.partner.Partner.PartnerUnLike:input_type -> api.common.PersonParam
+	3,  // 37: api.partner.Partner.GetPartnerInfo:output_type -> api.partner.PartnerInfo
+	5,  // 38: api.partner.Partner.GetPartnerBalance:output_type -> api.partner.PartnerBalance
+	6,  // 39: api.partner.Partner.GetPartnerDBBalance:output_type -> api.partner.PartnerDBBalance
+	27, // 40: api.partner.Partner.GetPartnerDBMsg:output_type -> api.common.PersonMsg
+	4,  // 41: api.partner.Partner.GetPartnerMessage:output_type -> api.partner.PartnerMessage
+	28, // 42: api.partner.Partner.GetPartnerLookNum:output_type -> api.statistics.LookMessageReply
+	9,  // 43: api.partner.Partner.SendPhoneCode:output_type -> google.protobuf.Empty
+	9,  // 44: api.partner.Partner.CheckPhoneCode:output_type -> google.protobuf.Empty
+	29, // 45: api.partner.Partner.GetPartnerCircleInfo:output_type -> api.common.AddFriendMessageInfo
+	9,  // 46: api.partner.Partner.UpdatePartnerInformation:output_type -> google.protobuf.Empty
+	7,  // 47: api.partner.Partner.GetRandomPartnerInfo:output_type -> api.partner.RandomPartnerInfo
+	30, // 48: api.partner.Partner.PartnerGetHomeInfo:output_type -> api.common.HomeInfo
+	31, // 49: api.partner.Partner.PartnerGetPersonLikedAndLooked:output_type -> api.common.LookedAndLikedNum
+	32, // 50: api.partner.Partner.FindLookList:output_type -> api.statistics.LookAndLikeListReply
+	33, // 51: api.partner.Partner.FindPartnerDBList:output_type -> api.common.PersonDBReply
+	34, // 52: api.partner.Partner.WxConf:output_type -> api.common.WxConfResponse
+	35, // 53: api.partner.Partner.CreateUserPartnerRoom:output_type -> api.chat.RoomReply
+	36, // 54: api.partner.Partner.FindTagListBySex:output_type -> api.common.TagListReply
+	37, // 55: api.partner.Partner.FindOnlineList:output_type -> api.common.OnlinePersonListReply
+	38, // 56: api.partner.Partner.FindUnReplyRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	38, // 57: api.partner.Partner.FindWithinSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	38, // 58: api.partner.Partner.FindOverSevenDayRoomList:output_type -> api.chat.PartnerFindRoomListReply
+	39, // 59: api.partner.Partner.FindChatRecordList:output_type -> api.common.ChatRecordListReply
+	40, // 60: api.partner.Partner.FindChatRoomMsg:output_type -> api.common.ChatRoomMsg
+	9,  // 61: api.partner.Partner.AddPartnerBalance:output_type -> google.protobuf.Empty
+	0,  // 62: api.partner.Partner.GetLevelBalanceTable:output_type -> api.partner.LevelTable
+	41, // 63: api.partner.Partner.GetPartnerIsLike:output_type -> api.common.IsLike
+	42, // 64: api.partner.Partner.FindMemeByType:output_type -> api.common.MemeList
+	43, // 65: api.partner.Partner.FindChatTopic:output_type -> api.common.ChatTopicList
+	44, // 66: api.partner.Partner.RandomMeme:output_type -> api.common.CommonTextList
+	44, // 67: api.partner.Partner.RandomSwiftMessage:output_type -> api.common.CommonTextList
+	45, // 68: api.partner.Partner.FindMemeTitle:output_type -> api.common.MemeTitleList
+	46, // 69: api.partner.Partner.PartnerGetChatCard:output_type -> api.common.ChatCardInfo
+	45, // 70: api.partner.Partner.FindChatTopicTitle:output_type -> api.common.MemeTitleList
+	9,  // 71: api.partner.Partner.PartnerLike:output_type -> google.protobuf.Empty
+	9,  // 72: api.partner.Partner.PartnerUnLike:output_type -> google.protobuf.Empty
+	37, // [37:73] is the sub-list for method output_type
+	1,  // [1:37] is the sub-list for method input_type
 	1,  // [1:1] is the sub-list for extension type_name
 	1,  // [1:1] is the sub-list for extension extendee
 	0,  // [0:1] is the sub-list for field type_name

+ 15 - 1
api/partner/partner.proto

@@ -205,7 +205,7 @@ service Partner {
       body:"*"
     };
   };
-  // 用户获取聊天对象的资料卡片
+  // 接待员获取聊天对象的资料卡片
   rpc PartnerGetChatCard(common.PersonParam) returns (common.ChatCardInfo){
     option (google.api.http) = {
       post: "/api/partner/chat/card",
@@ -219,6 +219,20 @@ service Partner {
       body:"*"
     };
   };
+  // 接待员关注某人
+  rpc PartnerLike(common.PersonParam) returns (google.protobuf.Empty){
+    option (google.api.http) = {
+      post: "/api/partner/like",
+      body:"*"
+    };
+  };
+  // 接待员取关某人
+  rpc PartnerUnLike(common.PersonParam) returns (google.protobuf.Empty){
+    option (google.api.http) = {
+      post: "/api/partner/unlike",
+      body:"*"
+    };
+  };
 }
 
 message LevelTable{

+ 78 - 2
api/partner/partner_grpc.pb.go

@@ -83,10 +83,14 @@ type PartnerClient interface {
 	RandomSwiftMessage(ctx context.Context, in *common.RandomNumAndSex, opts ...grpc.CallOption) (*common.CommonTextList, error)
 	// 表情包分类名
 	FindMemeTitle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.MemeTitleList, error)
-	// 用户获取聊天对象的资料卡片
+	// 接待员获取聊天对象的资料卡片
 	PartnerGetChatCard(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*common.ChatCardInfo, error)
 	// 聊天话题分类名
 	FindChatTopicTitle(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*common.MemeTitleList, error)
+	// 接待员关注某人
+	PartnerLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
+	// 接待员取关某人
+	PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error)
 }
 
 type partnerClient struct {
@@ -403,6 +407,24 @@ func (c *partnerClient) FindChatTopicTitle(ctx context.Context, in *emptypb.Empt
 	return out, nil
 }
 
+func (c *partnerClient) PartnerLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerLike", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
+func (c *partnerClient) PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...grpc.CallOption) (*emptypb.Empty, error) {
+	out := new(emptypb.Empty)
+	err := c.cc.Invoke(ctx, "/api.partner.Partner/PartnerUnLike", in, out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return out, nil
+}
+
 // PartnerServer is the server API for Partner service.
 // All implementations must embed UnimplementedPartnerServer
 // for forward compatibility
@@ -468,10 +490,14 @@ type PartnerServer interface {
 	RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
 	// 表情包分类名
 	FindMemeTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
-	// 用户获取聊天对象的资料卡片
+	// 接待员获取聊天对象的资料卡片
 	PartnerGetChatCard(context.Context, *common.PersonParam) (*common.ChatCardInfo, error)
 	// 聊天话题分类名
 	FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error)
+	// 接待员关注某人
+	PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
+	// 接待员取关某人
+	PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
 	mustEmbedUnimplementedPartnerServer()
 }
 
@@ -581,6 +607,12 @@ func (UnimplementedPartnerServer) PartnerGetChatCard(context.Context, *common.Pe
 func (UnimplementedPartnerServer) FindChatTopicTitle(context.Context, *emptypb.Empty) (*common.MemeTitleList, error) {
 	return nil, status.Errorf(codes.Unimplemented, "method FindChatTopicTitle not implemented")
 }
+func (UnimplementedPartnerServer) PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PartnerLike not implemented")
+}
+func (UnimplementedPartnerServer) PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error) {
+	return nil, status.Errorf(codes.Unimplemented, "method PartnerUnLike not implemented")
+}
 func (UnimplementedPartnerServer) mustEmbedUnimplementedPartnerServer() {}
 
 // UnsafePartnerServer may be embedded to opt out of forward compatibility for this service.
@@ -1206,6 +1238,42 @@ func _Partner_FindChatTopicTitle_Handler(srv interface{}, ctx context.Context, d
 	return interceptor(ctx, in, info, handler)
 }
 
+func _Partner_PartnerLike_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).PartnerLike(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/PartnerLike",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).PartnerLike(ctx, req.(*common.PersonParam))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
+func _Partner_PartnerUnLike_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).PartnerUnLike(ctx, in)
+	}
+	info := &grpc.UnaryServerInfo{
+		Server:     srv,
+		FullMethod: "/api.partner.Partner/PartnerUnLike",
+	}
+	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+		return srv.(PartnerServer).PartnerUnLike(ctx, req.(*common.PersonParam))
+	}
+	return interceptor(ctx, in, info, handler)
+}
+
 // Partner_ServiceDesc is the grpc.ServiceDesc for Partner service.
 // It's only intended for direct use with grpc.RegisterService,
 // and not to be introspected or modified (even as a copy)
@@ -1349,6 +1417,14 @@ var Partner_ServiceDesc = grpc.ServiceDesc{
 			MethodName: "FindChatTopicTitle",
 			Handler:    _Partner_FindChatTopicTitle_Handler,
 		},
+		{
+			MethodName: "PartnerLike",
+			Handler:    _Partner_PartnerLike_Handler,
+		},
+		{
+			MethodName: "PartnerUnLike",
+			Handler:    _Partner_PartnerUnLike_Handler,
+		},
 	},
 	Streams:  []grpc.StreamDesc{},
 	Metadata: "partner.proto",

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

@@ -53,6 +53,8 @@ type PartnerHTTPServer interface {
 	PartnerGetChatCard(context.Context, *common.PersonParam) (*common.ChatCardInfo, error)
 	PartnerGetHomeInfo(context.Context, *common.PersonParam) (*common.HomeInfo, error)
 	PartnerGetPersonLikedAndLooked(context.Context, *common.PersonParam) (*common.LookedAndLikedNum, error)
+	PartnerLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
+	PartnerUnLike(context.Context, *common.PersonParam) (*emptypb.Empty, error)
 	RandomMeme(context.Context, *common.RandomNum) (*common.CommonTextList, error)
 	RandomSwiftMessage(context.Context, *common.RandomNumAndSex) (*common.CommonTextList, error)
 	SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
@@ -90,6 +92,8 @@ func RegisterPartnerHTTPServer(s *http.Server, srv PartnerHTTPServer) {
 	r.POST("/api/partner/find/meme/title", _Partner_FindMemeTitle0_HTTP_Handler(srv))
 	r.POST("/api/partner/chat/card", _Partner_PartnerGetChatCard0_HTTP_Handler(srv))
 	r.POST("/api/partner/find/chat/title", _Partner_FindChatTopicTitle0_HTTP_Handler(srv))
+	r.POST("/api/partner/like", _Partner_PartnerLike0_HTTP_Handler(srv))
+	r.POST("/api/partner/unlike", _Partner_PartnerUnLike0_HTTP_Handler(srv))
 }
 
 func _Partner_GetPartnerInfo0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
@@ -848,6 +852,60 @@ func _Partner_FindChatTopicTitle0_HTTP_Handler(srv PartnerHTTPServer) func(ctx h
 	}
 }
 
+func _Partner_PartnerLike0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		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/PartnerLike")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.PartnerLike(ctx, req.(*common.PersonParam))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
+func _Partner_PartnerUnLike0_HTTP_Handler(srv PartnerHTTPServer) func(ctx http.Context) error {
+	return func(ctx http.Context) error {
+		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/PartnerUnLike")
+		h := ctx.Middleware(func(ctx context.Context, req interface{}) (interface{}, error) {
+			return srv.PartnerUnLike(ctx, req.(*common.PersonParam))
+		})
+		out, err := h(ctx, &in)
+		if err != nil {
+			return err
+		}
+		success := &reply.SuccessReply{
+			Code: 0,
+		}
+		if out != nil {
+			success.Data = out
+		}
+		return ctx.Result(200, success)
+	}
+}
+
 type PartnerHTTPClient interface {
 	CheckPhoneCode(ctx context.Context, req *common.CheckPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	CreateUserPartnerRoom(ctx context.Context, req *common.PersonIDParam, opts ...http.CallOption) (rsp *chat.RoomReply, err error)
@@ -872,6 +930,8 @@ type PartnerHTTPClient interface {
 	PartnerGetChatCard(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.ChatCardInfo, err error)
 	PartnerGetHomeInfo(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.HomeInfo, err error)
 	PartnerGetPersonLikedAndLooked(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *common.LookedAndLikedNum, err error)
+	PartnerLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
+	PartnerUnLike(ctx context.Context, req *common.PersonParam, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
 	RandomMeme(ctx context.Context, req *common.RandomNum, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
 	RandomSwiftMessage(ctx context.Context, req *common.RandomNumAndSex, opts ...http.CallOption) (rsp *common.CommonTextList, err error)
 	SendPhoneCode(ctx context.Context, req *common.SendPhoneCodeRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
@@ -1186,6 +1246,32 @@ func (c *PartnerHTTPClientImpl) PartnerGetPersonLikedAndLooked(ctx context.Conte
 	return &out, err
 }
 
+func (c *PartnerHTTPClientImpl) PartnerLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/partner/like"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/PartnerLike"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
+func (c *PartnerHTTPClientImpl) PartnerUnLike(ctx context.Context, in *common.PersonParam, opts ...http.CallOption) (*emptypb.Empty, error) {
+	var out emptypb.Empty
+	pattern := "/api/partner/unlike"
+	path := binding.EncodeURL(pattern, in, false)
+	opts = append(opts, http.Operation("/api.partner.Partner/PartnerUnLike"))
+	opts = append(opts, http.PathTemplate(pattern))
+	err := c.cc.Invoke(ctx, "POST", path, in, &out, opts...)
+	if err != nil {
+		return nil, err
+	}
+	return &out, err
+}
+
 func (c *PartnerHTTPClientImpl) RandomMeme(ctx context.Context, in *common.RandomNum, opts ...http.CallOption) (*common.CommonTextList, error) {
 	var out common.CommonTextList
 	pattern := "/api/partner/find/meme/random"

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

@@ -443,4 +443,36 @@ export interface ChatTopicList{
     /**  话题列表 */
     list?:Array<string>;
 }
+export interface ReportChatRequest{
+    /**  被举报的人的ID */
+    reportedPersonID?:string;
+    /**  被举报的人的类型 */
+    reportedPersonType?:string;
+    /**  联系方式 */
+    contactInformation?:string;
+    /**  图片 */
+    picture?:string;
+    /**  类别 */
+    category?:Array<string>;
+}
+export interface ReportRequest{
+    /**  发起举报的人的身份ID */
+    identifyId?:string;
+    /**  发起举报的人的ID */
+    personId?:string;
+    /**  发起举报的人的类型 */
+    personType?:string;
+    /**  被举报的人的身份ID */
+    reportedIdentifyId?:string;
+    /**  被举报的人的ID */
+    reportedPersonId?:string;
+    /**  被举报的人的类型 */
+    reportedPersonType?:string;
+    /**  联系方式 */
+    contactInformation?:string;
+    /**  图片 */
+    picture?:string;
+    /**  类别 */
+    category?:Array<string>;
+}
 

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

@@ -136,7 +136,7 @@ const PartnerService = {
 	const res = await request.post<{ data: MemeTitleList, code: string, message: string }>('/api/partner/find/meme/title', req);
     return res.data.data;
   },
-  /**  用户获取聊天对象的资料卡片 */
+  /**  接待员获取聊天对象的资料卡片 */
   PartnerGetChatCard: async (req?: PersonParam) => {
 	const res = await request.post<{ data: ChatCardInfo, code: string, message: string }>('/api/partner/chat/card', req);
     return res.data.data;
@@ -146,6 +146,16 @@ const PartnerService = {
 	const res = await request.post<{ data: MemeTitleList, code: string, message: string }>('/api/partner/find/chat/title', req);
     return res.data.data;
   },
+  /**  接待员关注某人 */
+  PartnerLike: async (req?: PersonParam) => {
+	const res = await request.post('/api/partner/like', req);
+    return res.data.data;
+  },
+  /**  接待员取关某人 */
+  PartnerUnLike: async (req?: PersonParam) => {
+	const res = await request.post('/api/partner/unlike', req);
+    return res.data.data;
+  },
 
 };