From 647e35d97f7a71a1aa91a97e24fc7426920ea448 Mon Sep 17 00:00:00 2001 From: away <1819625428@qq.com> Date: Wed, 26 May 2021 19:44:38 +0800 Subject: [PATCH] friend proto initial commit --- src/proto/friend/friend.pb.go | 1825 +++++++++++++++++++++++++++++++++ src/proto/friend/friend.proto | 159 +++ 2 files changed, 1984 insertions(+) create mode 100644 src/proto/friend/friend.pb.go create mode 100644 src/proto/friend/friend.proto diff --git a/src/proto/friend/friend.pb.go b/src/proto/friend/friend.pb.go new file mode 100644 index 000000000..7771b92a9 --- /dev/null +++ b/src/proto/friend/friend.pb.go @@ -0,0 +1,1825 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: friend/friend.proto + +package friend + +import ( + context "context" + fmt "fmt" + proto "github.com/golang/protobuf/proto" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CommonResp struct { + ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"` + ErrorMsg string `protobuf:"bytes,2,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CommonResp) Reset() { *m = CommonResp{} } +func (m *CommonResp) String() string { return proto.CompactTextString(m) } +func (*CommonResp) ProtoMessage() {} +func (*CommonResp) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{0} +} + +func (m *CommonResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CommonResp.Unmarshal(m, b) +} +func (m *CommonResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CommonResp.Marshal(b, m, deterministic) +} +func (m *CommonResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonResp.Merge(m, src) +} +func (m *CommonResp) XXX_Size() int { + return xxx_messageInfo_CommonResp.Size(m) +} +func (m *CommonResp) XXX_DiscardUnknown() { + xxx_messageInfo_CommonResp.DiscardUnknown(m) +} + +var xxx_messageInfo_CommonResp proto.InternalMessageInfo + +func (m *CommonResp) GetErrorCode() int32 { + if m != nil { + return m.ErrorCode + } + return 0 +} + +func (m *CommonResp) GetErrorMsg() string { + if m != nil { + return m.ErrorMsg + } + return "" +} + +type SearchFriendReq struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"Token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SearchFriendReq) Reset() { *m = SearchFriendReq{} } +func (m *SearchFriendReq) String() string { return proto.CompactTextString(m) } +func (*SearchFriendReq) ProtoMessage() {} +func (*SearchFriendReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{1} +} + +func (m *SearchFriendReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchFriendReq.Unmarshal(m, b) +} +func (m *SearchFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchFriendReq.Marshal(b, m, deterministic) +} +func (m *SearchFriendReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchFriendReq.Merge(m, src) +} +func (m *SearchFriendReq) XXX_Size() int { + return xxx_messageInfo_SearchFriendReq.Size(m) +} +func (m *SearchFriendReq) XXX_DiscardUnknown() { + xxx_messageInfo_SearchFriendReq.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchFriendReq proto.InternalMessageInfo + +func (m *SearchFriendReq) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *SearchFriendReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *SearchFriendReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type SearchFriendResp struct { + ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"` + ErrorMsg string `protobuf:"bytes,2,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"` + Data *SearchFriendData `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SearchFriendResp) Reset() { *m = SearchFriendResp{} } +func (m *SearchFriendResp) String() string { return proto.CompactTextString(m) } +func (*SearchFriendResp) ProtoMessage() {} +func (*SearchFriendResp) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{2} +} + +func (m *SearchFriendResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchFriendResp.Unmarshal(m, b) +} +func (m *SearchFriendResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchFriendResp.Marshal(b, m, deterministic) +} +func (m *SearchFriendResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchFriendResp.Merge(m, src) +} +func (m *SearchFriendResp) XXX_Size() int { + return xxx_messageInfo_SearchFriendResp.Size(m) +} +func (m *SearchFriendResp) XXX_DiscardUnknown() { + xxx_messageInfo_SearchFriendResp.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchFriendResp proto.InternalMessageInfo + +func (m *SearchFriendResp) GetErrorCode() int32 { + if m != nil { + return m.ErrorCode + } + return 0 +} + +func (m *SearchFriendResp) GetErrorMsg() string { + if m != nil { + return m.ErrorMsg + } + return "" +} + +func (m *SearchFriendResp) GetData() *SearchFriendData { + if m != nil { + return m.Data + } + return nil +} + +type SearchFriendData struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Gender int32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"` + Mobile string `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"` + Birth string `protobuf:"bytes,6,opt,name=birth,proto3" json:"birth,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + Ex string `protobuf:"bytes,8,opt,name=ex,proto3" json:"ex,omitempty"` + Comment string `protobuf:"bytes,9,opt,name=comment,proto3" json:"comment,omitempty"` + IsFriend int32 `protobuf:"varint,10,opt,name=isFriend,proto3" json:"isFriend,omitempty"` + IsInBlackList int32 `protobuf:"varint,11,opt,name=isInBlackList,proto3" json:"isInBlackList,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SearchFriendData) Reset() { *m = SearchFriendData{} } +func (m *SearchFriendData) String() string { return proto.CompactTextString(m) } +func (*SearchFriendData) ProtoMessage() {} +func (*SearchFriendData) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{3} +} + +func (m *SearchFriendData) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SearchFriendData.Unmarshal(m, b) +} +func (m *SearchFriendData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SearchFriendData.Marshal(b, m, deterministic) +} +func (m *SearchFriendData) XXX_Merge(src proto.Message) { + xxx_messageInfo_SearchFriendData.Merge(m, src) +} +func (m *SearchFriendData) XXX_Size() int { + return xxx_messageInfo_SearchFriendData.Size(m) +} +func (m *SearchFriendData) XXX_DiscardUnknown() { + xxx_messageInfo_SearchFriendData.DiscardUnknown(m) +} + +var xxx_messageInfo_SearchFriendData proto.InternalMessageInfo + +func (m *SearchFriendData) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *SearchFriendData) GetIcon() string { + if m != nil { + return m.Icon + } + return "" +} + +func (m *SearchFriendData) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *SearchFriendData) GetGender() int32 { + if m != nil { + return m.Gender + } + return 0 +} + +func (m *SearchFriendData) GetMobile() string { + if m != nil { + return m.Mobile + } + return "" +} + +func (m *SearchFriendData) GetBirth() string { + if m != nil { + return m.Birth + } + return "" +} + +func (m *SearchFriendData) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *SearchFriendData) GetEx() string { + if m != nil { + return m.Ex + } + return "" +} + +func (m *SearchFriendData) GetComment() string { + if m != nil { + return m.Comment + } + return "" +} + +func (m *SearchFriendData) GetIsFriend() int32 { + if m != nil { + return m.IsFriend + } + return 0 +} + +func (m *SearchFriendData) GetIsInBlackList() int32 { + if m != nil { + return m.IsInBlackList + } + return 0 +} + +type AddFriendReq struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"Token,omitempty"` + ReqMessage string `protobuf:"bytes,4,opt,name=ReqMessage,proto3" json:"ReqMessage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddFriendReq) Reset() { *m = AddFriendReq{} } +func (m *AddFriendReq) String() string { return proto.CompactTextString(m) } +func (*AddFriendReq) ProtoMessage() {} +func (*AddFriendReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{4} +} + +func (m *AddFriendReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddFriendReq.Unmarshal(m, b) +} +func (m *AddFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddFriendReq.Marshal(b, m, deterministic) +} +func (m *AddFriendReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddFriendReq.Merge(m, src) +} +func (m *AddFriendReq) XXX_Size() int { + return xxx_messageInfo_AddFriendReq.Size(m) +} +func (m *AddFriendReq) XXX_DiscardUnknown() { + xxx_messageInfo_AddFriendReq.DiscardUnknown(m) +} + +var xxx_messageInfo_AddFriendReq proto.InternalMessageInfo + +func (m *AddFriendReq) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *AddFriendReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *AddFriendReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func (m *AddFriendReq) GetReqMessage() string { + if m != nil { + return m.ReqMessage + } + return "" +} + +type GetFriendApplyReq struct { + OperationID string `protobuf:"bytes,1,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetFriendApplyReq) Reset() { *m = GetFriendApplyReq{} } +func (m *GetFriendApplyReq) String() string { return proto.CompactTextString(m) } +func (*GetFriendApplyReq) ProtoMessage() {} +func (*GetFriendApplyReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{5} +} + +func (m *GetFriendApplyReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFriendApplyReq.Unmarshal(m, b) +} +func (m *GetFriendApplyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFriendApplyReq.Marshal(b, m, deterministic) +} +func (m *GetFriendApplyReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFriendApplyReq.Merge(m, src) +} +func (m *GetFriendApplyReq) XXX_Size() int { + return xxx_messageInfo_GetFriendApplyReq.Size(m) +} +func (m *GetFriendApplyReq) XXX_DiscardUnknown() { + xxx_messageInfo_GetFriendApplyReq.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFriendApplyReq proto.InternalMessageInfo + +func (m *GetFriendApplyReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *GetFriendApplyReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type GetFriendApplyResp struct { + ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"` + ErrorMsg string `protobuf:"bytes,2,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"` + Data []*ApplyUserInfo `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetFriendApplyResp) Reset() { *m = GetFriendApplyResp{} } +func (m *GetFriendApplyResp) String() string { return proto.CompactTextString(m) } +func (*GetFriendApplyResp) ProtoMessage() {} +func (*GetFriendApplyResp) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{6} +} + +func (m *GetFriendApplyResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFriendApplyResp.Unmarshal(m, b) +} +func (m *GetFriendApplyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFriendApplyResp.Marshal(b, m, deterministic) +} +func (m *GetFriendApplyResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFriendApplyResp.Merge(m, src) +} +func (m *GetFriendApplyResp) XXX_Size() int { + return xxx_messageInfo_GetFriendApplyResp.Size(m) +} +func (m *GetFriendApplyResp) XXX_DiscardUnknown() { + xxx_messageInfo_GetFriendApplyResp.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFriendApplyResp proto.InternalMessageInfo + +func (m *GetFriendApplyResp) GetErrorCode() int32 { + if m != nil { + return m.ErrorCode + } + return 0 +} + +func (m *GetFriendApplyResp) GetErrorMsg() string { + if m != nil { + return m.ErrorMsg + } + return "" +} + +func (m *GetFriendApplyResp) GetData() []*ApplyUserInfo { + if m != nil { + return m.Data + } + return nil +} + +type ApplyUserInfo struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + Icon string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"` + Gender int32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"` + Mobile string `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"` + Birth string `protobuf:"bytes,6,opt,name=birth,proto3" json:"birth,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + Ex string `protobuf:"bytes,8,opt,name=ex,proto3" json:"ex,omitempty"` + Flag int32 `protobuf:"varint,9,opt,name=flag,proto3" json:"flag,omitempty"` + ApplyTime string `protobuf:"bytes,10,opt,name=applyTime,proto3" json:"applyTime,omitempty"` + ReqMessage string `protobuf:"bytes,11,opt,name=reqMessage,proto3" json:"reqMessage,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ApplyUserInfo) Reset() { *m = ApplyUserInfo{} } +func (m *ApplyUserInfo) String() string { return proto.CompactTextString(m) } +func (*ApplyUserInfo) ProtoMessage() {} +func (*ApplyUserInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{7} +} + +func (m *ApplyUserInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_ApplyUserInfo.Unmarshal(m, b) +} +func (m *ApplyUserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_ApplyUserInfo.Marshal(b, m, deterministic) +} +func (m *ApplyUserInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ApplyUserInfo.Merge(m, src) +} +func (m *ApplyUserInfo) XXX_Size() int { + return xxx_messageInfo_ApplyUserInfo.Size(m) +} +func (m *ApplyUserInfo) XXX_DiscardUnknown() { + xxx_messageInfo_ApplyUserInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_ApplyUserInfo proto.InternalMessageInfo + +func (m *ApplyUserInfo) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *ApplyUserInfo) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *ApplyUserInfo) GetIcon() string { + if m != nil { + return m.Icon + } + return "" +} + +func (m *ApplyUserInfo) GetGender() int32 { + if m != nil { + return m.Gender + } + return 0 +} + +func (m *ApplyUserInfo) GetMobile() string { + if m != nil { + return m.Mobile + } + return "" +} + +func (m *ApplyUserInfo) GetBirth() string { + if m != nil { + return m.Birth + } + return "" +} + +func (m *ApplyUserInfo) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *ApplyUserInfo) GetEx() string { + if m != nil { + return m.Ex + } + return "" +} + +func (m *ApplyUserInfo) GetFlag() int32 { + if m != nil { + return m.Flag + } + return 0 +} + +func (m *ApplyUserInfo) GetApplyTime() string { + if m != nil { + return m.ApplyTime + } + return "" +} + +func (m *ApplyUserInfo) GetReqMessage() string { + if m != nil { + return m.ReqMessage + } + return "" +} + +type GetFriendListReq struct { + OperationID string `protobuf:"bytes,1,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,2,opt,name=Token,proto3" json:"Token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetFriendListReq) Reset() { *m = GetFriendListReq{} } +func (m *GetFriendListReq) String() string { return proto.CompactTextString(m) } +func (*GetFriendListReq) ProtoMessage() {} +func (*GetFriendListReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{8} +} + +func (m *GetFriendListReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFriendListReq.Unmarshal(m, b) +} +func (m *GetFriendListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFriendListReq.Marshal(b, m, deterministic) +} +func (m *GetFriendListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFriendListReq.Merge(m, src) +} +func (m *GetFriendListReq) XXX_Size() int { + return xxx_messageInfo_GetFriendListReq.Size(m) +} +func (m *GetFriendListReq) XXX_DiscardUnknown() { + xxx_messageInfo_GetFriendListReq.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFriendListReq proto.InternalMessageInfo + +func (m *GetFriendListReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *GetFriendListReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type GetFriendListResp struct { + ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"` + ErrorMsg string `protobuf:"bytes,2,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"` + Data []*UserInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetFriendListResp) Reset() { *m = GetFriendListResp{} } +func (m *GetFriendListResp) String() string { return proto.CompactTextString(m) } +func (*GetFriendListResp) ProtoMessage() {} +func (*GetFriendListResp) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{9} +} + +func (m *GetFriendListResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFriendListResp.Unmarshal(m, b) +} +func (m *GetFriendListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFriendListResp.Marshal(b, m, deterministic) +} +func (m *GetFriendListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFriendListResp.Merge(m, src) +} +func (m *GetFriendListResp) XXX_Size() int { + return xxx_messageInfo_GetFriendListResp.Size(m) +} +func (m *GetFriendListResp) XXX_DiscardUnknown() { + xxx_messageInfo_GetFriendListResp.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFriendListResp proto.InternalMessageInfo + +func (m *GetFriendListResp) GetErrorCode() int32 { + if m != nil { + return m.ErrorCode + } + return 0 +} + +func (m *GetFriendListResp) GetErrorMsg() string { + if m != nil { + return m.ErrorMsg + } + return "" +} + +func (m *GetFriendListResp) GetData() []*UserInfo { + if m != nil { + return m.Data + } + return nil +} + +type UserInfo struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Icon string `protobuf:"bytes,2,opt,name=icon,proto3" json:"icon,omitempty"` + Gender int32 `protobuf:"varint,4,opt,name=gender,proto3" json:"gender,omitempty"` + Mobile string `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"` + Birth string `protobuf:"bytes,6,opt,name=birth,proto3" json:"birth,omitempty"` + Email string `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` + Ex string `protobuf:"bytes,8,opt,name=ex,proto3" json:"ex,omitempty"` + Comment string `protobuf:"bytes,9,opt,name=comment,proto3" json:"comment,omitempty"` + IsInBlackList int32 `protobuf:"varint,10,opt,name=isInBlackList,proto3" json:"isInBlackList,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *UserInfo) Reset() { *m = UserInfo{} } +func (m *UserInfo) String() string { return proto.CompactTextString(m) } +func (*UserInfo) ProtoMessage() {} +func (*UserInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{10} +} + +func (m *UserInfo) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_UserInfo.Unmarshal(m, b) +} +func (m *UserInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_UserInfo.Marshal(b, m, deterministic) +} +func (m *UserInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_UserInfo.Merge(m, src) +} +func (m *UserInfo) XXX_Size() int { + return xxx_messageInfo_UserInfo.Size(m) +} +func (m *UserInfo) XXX_DiscardUnknown() { + xxx_messageInfo_UserInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_UserInfo proto.InternalMessageInfo + +func (m *UserInfo) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *UserInfo) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *UserInfo) GetIcon() string { + if m != nil { + return m.Icon + } + return "" +} + +func (m *UserInfo) GetGender() int32 { + if m != nil { + return m.Gender + } + return 0 +} + +func (m *UserInfo) GetMobile() string { + if m != nil { + return m.Mobile + } + return "" +} + +func (m *UserInfo) GetBirth() string { + if m != nil { + return m.Birth + } + return "" +} + +func (m *UserInfo) GetEmail() string { + if m != nil { + return m.Email + } + return "" +} + +func (m *UserInfo) GetEx() string { + if m != nil { + return m.Ex + } + return "" +} + +func (m *UserInfo) GetComment() string { + if m != nil { + return m.Comment + } + return "" +} + +func (m *UserInfo) GetIsInBlackList() int32 { + if m != nil { + return m.IsInBlackList + } + return 0 +} + +type AddBlacklistReq struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"Token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddBlacklistReq) Reset() { *m = AddBlacklistReq{} } +func (m *AddBlacklistReq) String() string { return proto.CompactTextString(m) } +func (*AddBlacklistReq) ProtoMessage() {} +func (*AddBlacklistReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{11} +} + +func (m *AddBlacklistReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddBlacklistReq.Unmarshal(m, b) +} +func (m *AddBlacklistReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddBlacklistReq.Marshal(b, m, deterministic) +} +func (m *AddBlacklistReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddBlacklistReq.Merge(m, src) +} +func (m *AddBlacklistReq) XXX_Size() int { + return xxx_messageInfo_AddBlacklistReq.Size(m) +} +func (m *AddBlacklistReq) XXX_DiscardUnknown() { + xxx_messageInfo_AddBlacklistReq.DiscardUnknown(m) +} + +var xxx_messageInfo_AddBlacklistReq proto.InternalMessageInfo + +func (m *AddBlacklistReq) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *AddBlacklistReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *AddBlacklistReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type RemoveBlacklistReq struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"Token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RemoveBlacklistReq) Reset() { *m = RemoveBlacklistReq{} } +func (m *RemoveBlacklistReq) String() string { return proto.CompactTextString(m) } +func (*RemoveBlacklistReq) ProtoMessage() {} +func (*RemoveBlacklistReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{12} +} + +func (m *RemoveBlacklistReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RemoveBlacklistReq.Unmarshal(m, b) +} +func (m *RemoveBlacklistReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RemoveBlacklistReq.Marshal(b, m, deterministic) +} +func (m *RemoveBlacklistReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_RemoveBlacklistReq.Merge(m, src) +} +func (m *RemoveBlacklistReq) XXX_Size() int { + return xxx_messageInfo_RemoveBlacklistReq.Size(m) +} +func (m *RemoveBlacklistReq) XXX_DiscardUnknown() { + xxx_messageInfo_RemoveBlacklistReq.DiscardUnknown(m) +} + +var xxx_messageInfo_RemoveBlacklistReq proto.InternalMessageInfo + +func (m *RemoveBlacklistReq) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *RemoveBlacklistReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *RemoveBlacklistReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type GetBlacklistReq struct { + OperationID string `protobuf:"bytes,1,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetBlacklistReq) Reset() { *m = GetBlacklistReq{} } +func (m *GetBlacklistReq) String() string { return proto.CompactTextString(m) } +func (*GetBlacklistReq) ProtoMessage() {} +func (*GetBlacklistReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{13} +} + +func (m *GetBlacklistReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBlacklistReq.Unmarshal(m, b) +} +func (m *GetBlacklistReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBlacklistReq.Marshal(b, m, deterministic) +} +func (m *GetBlacklistReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBlacklistReq.Merge(m, src) +} +func (m *GetBlacklistReq) XXX_Size() int { + return xxx_messageInfo_GetBlacklistReq.Size(m) +} +func (m *GetBlacklistReq) XXX_DiscardUnknown() { + xxx_messageInfo_GetBlacklistReq.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBlacklistReq proto.InternalMessageInfo + +func (m *GetBlacklistReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *GetBlacklistReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type GetBlacklistResp struct { + ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"` + ErrorMsg string `protobuf:"bytes,2,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"` + Data []*UserInfo `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetBlacklistResp) Reset() { *m = GetBlacklistResp{} } +func (m *GetBlacklistResp) String() string { return proto.CompactTextString(m) } +func (*GetBlacklistResp) ProtoMessage() {} +func (*GetBlacklistResp) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{14} +} + +func (m *GetBlacklistResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBlacklistResp.Unmarshal(m, b) +} +func (m *GetBlacklistResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBlacklistResp.Marshal(b, m, deterministic) +} +func (m *GetBlacklistResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBlacklistResp.Merge(m, src) +} +func (m *GetBlacklistResp) XXX_Size() int { + return xxx_messageInfo_GetBlacklistResp.Size(m) +} +func (m *GetBlacklistResp) XXX_DiscardUnknown() { + xxx_messageInfo_GetBlacklistResp.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBlacklistResp proto.InternalMessageInfo + +func (m *GetBlacklistResp) GetErrorCode() int32 { + if m != nil { + return m.ErrorCode + } + return 0 +} + +func (m *GetBlacklistResp) GetErrorMsg() string { + if m != nil { + return m.ErrorMsg + } + return "" +} + +func (m *GetBlacklistResp) GetData() []*UserInfo { + if m != nil { + return m.Data + } + return nil +} + +type IsInBlackListReq struct { + SendUid string `protobuf:"bytes,1,opt,name=sendUid,proto3" json:"sendUid,omitempty"` + ReceiveUid string `protobuf:"bytes,2,opt,name=receiveUid,proto3" json:"receiveUid,omitempty"` + OperationID string `protobuf:"bytes,3,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IsInBlackListReq) Reset() { *m = IsInBlackListReq{} } +func (m *IsInBlackListReq) String() string { return proto.CompactTextString(m) } +func (*IsInBlackListReq) ProtoMessage() {} +func (*IsInBlackListReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{15} +} + +func (m *IsInBlackListReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IsInBlackListReq.Unmarshal(m, b) +} +func (m *IsInBlackListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IsInBlackListReq.Marshal(b, m, deterministic) +} +func (m *IsInBlackListReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsInBlackListReq.Merge(m, src) +} +func (m *IsInBlackListReq) XXX_Size() int { + return xxx_messageInfo_IsInBlackListReq.Size(m) +} +func (m *IsInBlackListReq) XXX_DiscardUnknown() { + xxx_messageInfo_IsInBlackListReq.DiscardUnknown(m) +} + +var xxx_messageInfo_IsInBlackListReq proto.InternalMessageInfo + +func (m *IsInBlackListReq) GetSendUid() string { + if m != nil { + return m.SendUid + } + return "" +} + +func (m *IsInBlackListReq) GetReceiveUid() string { + if m != nil { + return m.ReceiveUid + } + return "" +} + +func (m *IsInBlackListReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +type IsInBlackListResp struct { + ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode,proto3" json:"errorCode,omitempty"` + ErrorMsg string `protobuf:"bytes,2,opt,name=errorMsg,proto3" json:"errorMsg,omitempty"` + Response bool `protobuf:"varint,3,opt,name=response,proto3" json:"response,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *IsInBlackListResp) Reset() { *m = IsInBlackListResp{} } +func (m *IsInBlackListResp) String() string { return proto.CompactTextString(m) } +func (*IsInBlackListResp) ProtoMessage() {} +func (*IsInBlackListResp) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{16} +} + +func (m *IsInBlackListResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_IsInBlackListResp.Unmarshal(m, b) +} +func (m *IsInBlackListResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_IsInBlackListResp.Marshal(b, m, deterministic) +} +func (m *IsInBlackListResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_IsInBlackListResp.Merge(m, src) +} +func (m *IsInBlackListResp) XXX_Size() int { + return xxx_messageInfo_IsInBlackListResp.Size(m) +} +func (m *IsInBlackListResp) XXX_DiscardUnknown() { + xxx_messageInfo_IsInBlackListResp.DiscardUnknown(m) +} + +var xxx_messageInfo_IsInBlackListResp proto.InternalMessageInfo + +func (m *IsInBlackListResp) GetErrorCode() int32 { + if m != nil { + return m.ErrorCode + } + return 0 +} + +func (m *IsInBlackListResp) GetErrorMsg() string { + if m != nil { + return m.ErrorMsg + } + return "" +} + +func (m *IsInBlackListResp) GetResponse() bool { + if m != nil { + return m.Response + } + return false +} + +type DeleteFriendReq struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,3,opt,name=Token,proto3" json:"Token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteFriendReq) Reset() { *m = DeleteFriendReq{} } +func (m *DeleteFriendReq) String() string { return proto.CompactTextString(m) } +func (*DeleteFriendReq) ProtoMessage() {} +func (*DeleteFriendReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{17} +} + +func (m *DeleteFriendReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteFriendReq.Unmarshal(m, b) +} +func (m *DeleteFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteFriendReq.Marshal(b, m, deterministic) +} +func (m *DeleteFriendReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteFriendReq.Merge(m, src) +} +func (m *DeleteFriendReq) XXX_Size() int { + return xxx_messageInfo_DeleteFriendReq.Size(m) +} +func (m *DeleteFriendReq) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteFriendReq.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteFriendReq proto.InternalMessageInfo + +func (m *DeleteFriendReq) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *DeleteFriendReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *DeleteFriendReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type AddedFriendReq struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + Flag int32 `protobuf:"varint,2,opt,name=flag,proto3" json:"flag,omitempty"` + OperationID string `protobuf:"bytes,3,opt,name=OperationID,proto3" json:"OperationID,omitempty"` + Token string `protobuf:"bytes,4,opt,name=Token,proto3" json:"Token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *AddedFriendReq) Reset() { *m = AddedFriendReq{} } +func (m *AddedFriendReq) String() string { return proto.CompactTextString(m) } +func (*AddedFriendReq) ProtoMessage() {} +func (*AddedFriendReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{18} +} + +func (m *AddedFriendReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_AddedFriendReq.Unmarshal(m, b) +} +func (m *AddedFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_AddedFriendReq.Marshal(b, m, deterministic) +} +func (m *AddedFriendReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_AddedFriendReq.Merge(m, src) +} +func (m *AddedFriendReq) XXX_Size() int { + return xxx_messageInfo_AddedFriendReq.Size(m) +} +func (m *AddedFriendReq) XXX_DiscardUnknown() { + xxx_messageInfo_AddedFriendReq.DiscardUnknown(m) +} + +var xxx_messageInfo_AddedFriendReq proto.InternalMessageInfo + +func (m *AddedFriendReq) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *AddedFriendReq) GetFlag() int32 { + if m != nil { + return m.Flag + } + return 0 +} + +func (m *AddedFriendReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *AddedFriendReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +type SetFriendCommentReq struct { + Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"` + Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` + Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SetFriendCommentReq) Reset() { *m = SetFriendCommentReq{} } +func (m *SetFriendCommentReq) String() string { return proto.CompactTextString(m) } +func (*SetFriendCommentReq) ProtoMessage() {} +func (*SetFriendCommentReq) Descriptor() ([]byte, []int) { + return fileDescriptor_1a7db849dd7bb41b, []int{19} +} + +func (m *SetFriendCommentReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SetFriendCommentReq.Unmarshal(m, b) +} +func (m *SetFriendCommentReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SetFriendCommentReq.Marshal(b, m, deterministic) +} +func (m *SetFriendCommentReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_SetFriendCommentReq.Merge(m, src) +} +func (m *SetFriendCommentReq) XXX_Size() int { + return xxx_messageInfo_SetFriendCommentReq.Size(m) +} +func (m *SetFriendCommentReq) XXX_DiscardUnknown() { + xxx_messageInfo_SetFriendCommentReq.DiscardUnknown(m) +} + +var xxx_messageInfo_SetFriendCommentReq proto.InternalMessageInfo + +func (m *SetFriendCommentReq) GetUid() string { + if m != nil { + return m.Uid + } + return "" +} + +func (m *SetFriendCommentReq) GetOperationID() string { + if m != nil { + return m.OperationID + } + return "" +} + +func (m *SetFriendCommentReq) GetComment() string { + if m != nil { + return m.Comment + } + return "" +} + +func (m *SetFriendCommentReq) GetToken() string { + if m != nil { + return m.Token + } + return "" +} + +func init() { + proto.RegisterType((*CommonResp)(nil), "friend.CommonResp") + proto.RegisterType((*SearchFriendReq)(nil), "friend.SearchFriendReq") + proto.RegisterType((*SearchFriendResp)(nil), "friend.SearchFriendResp") + proto.RegisterType((*SearchFriendData)(nil), "friend.SearchFriendData") + proto.RegisterType((*AddFriendReq)(nil), "friend.AddFriendReq") + proto.RegisterType((*GetFriendApplyReq)(nil), "friend.GetFriendApplyReq") + proto.RegisterType((*GetFriendApplyResp)(nil), "friend.GetFriendApplyResp") + proto.RegisterType((*ApplyUserInfo)(nil), "friend.ApplyUserInfo") + proto.RegisterType((*GetFriendListReq)(nil), "friend.getFriendListReq") + proto.RegisterType((*GetFriendListResp)(nil), "friend.getFriendListResp") + proto.RegisterType((*UserInfo)(nil), "friend.UserInfo") + proto.RegisterType((*AddBlacklistReq)(nil), "friend.AddBlacklistReq") + proto.RegisterType((*RemoveBlacklistReq)(nil), "friend.RemoveBlacklistReq") + proto.RegisterType((*GetBlacklistReq)(nil), "friend.GetBlacklistReq") + proto.RegisterType((*GetBlacklistResp)(nil), "friend.GetBlacklistResp") + proto.RegisterType((*IsInBlackListReq)(nil), "friend.IsInBlackListReq") + proto.RegisterType((*IsInBlackListResp)(nil), "friend.IsInBlackListResp") + proto.RegisterType((*DeleteFriendReq)(nil), "friend.DeleteFriendReq") + proto.RegisterType((*AddedFriendReq)(nil), "friend.AddedFriendReq") + proto.RegisterType((*SetFriendCommentReq)(nil), "friend.SetFriendCommentReq") +} + +func init() { proto.RegisterFile("friend/friend.proto", fileDescriptor_1a7db849dd7bb41b) } + +var fileDescriptor_1a7db849dd7bb41b = []byte{ + // 867 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdb, 0x4e, 0xdb, 0x4c, + 0x10, 0x56, 0x6c, 0x27, 0x24, 0x93, 0x84, 0x84, 0x85, 0x9f, 0xdf, 0xa4, 0x55, 0x15, 0x59, 0x5c, + 0x50, 0xa9, 0xa2, 0x12, 0x55, 0x2f, 0x2a, 0xae, 0x42, 0x22, 0x50, 0x4a, 0x51, 0x25, 0x03, 0x37, + 0x45, 0xaa, 0x64, 0xe2, 0x21, 0x58, 0xc4, 0x07, 0xbc, 0x2e, 0x82, 0xbe, 0x40, 0x5f, 0xa0, 0x6f, + 0xd7, 0x97, 0xe8, 0x23, 0x54, 0xbb, 0x3e, 0xad, 0x0f, 0x01, 0xa4, 0x14, 0x7a, 0x15, 0xcf, 0xb7, + 0xab, 0x99, 0x9d, 0xf9, 0xbe, 0x99, 0xdd, 0xc0, 0xea, 0x85, 0x6f, 0xa1, 0x63, 0xbe, 0x0d, 0x7f, + 0xb6, 0x3d, 0xdf, 0x0d, 0x5c, 0x52, 0x0b, 0x2d, 0x6d, 0x1f, 0x60, 0xe8, 0xda, 0xb6, 0xeb, 0xe8, + 0x48, 0x3d, 0xf2, 0x12, 0x1a, 0xe8, 0xfb, 0xae, 0x3f, 0x74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f1, 0x3f, 0x35, 0xef, 0xfe, 0x04, 0x00, 0x00, 0xff, 0xff, 0xbd, 0x0d, 0xba, 0x52, 0xeb, + 0x0c, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// FriendClient is the client API for Friend service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type FriendClient interface { + SearchFriend(ctx context.Context, in *SearchFriendReq, opts ...grpc.CallOption) (*SearchFriendResp, error) + AddFriend(ctx context.Context, in *AddFriendReq, opts ...grpc.CallOption) (*CommonResp, error) + GetFriendApplyList(ctx context.Context, in *GetFriendApplyReq, opts ...grpc.CallOption) (*GetFriendApplyResp, error) + GetFriendList(ctx context.Context, in *GetFriendListReq, opts ...grpc.CallOption) (*GetFriendListResp, error) + AddBlacklist(ctx context.Context, in *AddBlacklistReq, opts ...grpc.CallOption) (*CommonResp, error) + RemoveBlacklist(ctx context.Context, in *RemoveBlacklistReq, opts ...grpc.CallOption) (*CommonResp, error) + IsInBlackList(ctx context.Context, in *IsInBlackListReq, opts ...grpc.CallOption) (*IsInBlackListResp, error) + GetBlacklist(ctx context.Context, in *GetBlacklistReq, opts ...grpc.CallOption) (*GetBlacklistResp, error) + DeleteFriend(ctx context.Context, in *DeleteFriendReq, opts ...grpc.CallOption) (*CommonResp, error) + AddedFriend(ctx context.Context, in *AddedFriendReq, opts ...grpc.CallOption) (*CommonResp, error) + SetFriendComment(ctx context.Context, in *SetFriendCommentReq, opts ...grpc.CallOption) (*CommonResp, error) +} + +type friendClient struct { + cc *grpc.ClientConn +} + +func NewFriendClient(cc *grpc.ClientConn) FriendClient { + return &friendClient{cc} +} + +func (c *friendClient) SearchFriend(ctx context.Context, in *SearchFriendReq, opts ...grpc.CallOption) (*SearchFriendResp, error) { + out := new(SearchFriendResp) + err := c.cc.Invoke(ctx, "/friend.friend/searchFriend", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) AddFriend(ctx context.Context, in *AddFriendReq, opts ...grpc.CallOption) (*CommonResp, error) { + out := new(CommonResp) + err := c.cc.Invoke(ctx, "/friend.friend/addFriend", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) GetFriendApplyList(ctx context.Context, in *GetFriendApplyReq, opts ...grpc.CallOption) (*GetFriendApplyResp, error) { + out := new(GetFriendApplyResp) + err := c.cc.Invoke(ctx, "/friend.friend/getFriendApplyList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) GetFriendList(ctx context.Context, in *GetFriendListReq, opts ...grpc.CallOption) (*GetFriendListResp, error) { + out := new(GetFriendListResp) + err := c.cc.Invoke(ctx, "/friend.friend/getFriendList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) AddBlacklist(ctx context.Context, in *AddBlacklistReq, opts ...grpc.CallOption) (*CommonResp, error) { + out := new(CommonResp) + err := c.cc.Invoke(ctx, "/friend.friend/addBlacklist", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) RemoveBlacklist(ctx context.Context, in *RemoveBlacklistReq, opts ...grpc.CallOption) (*CommonResp, error) { + out := new(CommonResp) + err := c.cc.Invoke(ctx, "/friend.friend/removeBlacklist", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) IsInBlackList(ctx context.Context, in *IsInBlackListReq, opts ...grpc.CallOption) (*IsInBlackListResp, error) { + out := new(IsInBlackListResp) + err := c.cc.Invoke(ctx, "/friend.friend/isInBlackList", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) GetBlacklist(ctx context.Context, in *GetBlacklistReq, opts ...grpc.CallOption) (*GetBlacklistResp, error) { + out := new(GetBlacklistResp) + err := c.cc.Invoke(ctx, "/friend.friend/getBlacklist", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) DeleteFriend(ctx context.Context, in *DeleteFriendReq, opts ...grpc.CallOption) (*CommonResp, error) { + out := new(CommonResp) + err := c.cc.Invoke(ctx, "/friend.friend/deleteFriend", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) AddedFriend(ctx context.Context, in *AddedFriendReq, opts ...grpc.CallOption) (*CommonResp, error) { + out := new(CommonResp) + err := c.cc.Invoke(ctx, "/friend.friend/addedFriend", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *friendClient) SetFriendComment(ctx context.Context, in *SetFriendCommentReq, opts ...grpc.CallOption) (*CommonResp, error) { + out := new(CommonResp) + err := c.cc.Invoke(ctx, "/friend.friend/setFriendComment", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// FriendServer is the server API for Friend service. +type FriendServer interface { + SearchFriend(context.Context, *SearchFriendReq) (*SearchFriendResp, error) + AddFriend(context.Context, *AddFriendReq) (*CommonResp, error) + GetFriendApplyList(context.Context, *GetFriendApplyReq) (*GetFriendApplyResp, error) + GetFriendList(context.Context, *GetFriendListReq) (*GetFriendListResp, error) + AddBlacklist(context.Context, *AddBlacklistReq) (*CommonResp, error) + RemoveBlacklist(context.Context, *RemoveBlacklistReq) (*CommonResp, error) + IsInBlackList(context.Context, *IsInBlackListReq) (*IsInBlackListResp, error) + GetBlacklist(context.Context, *GetBlacklistReq) (*GetBlacklistResp, error) + DeleteFriend(context.Context, *DeleteFriendReq) (*CommonResp, error) + AddedFriend(context.Context, *AddedFriendReq) (*CommonResp, error) + SetFriendComment(context.Context, *SetFriendCommentReq) (*CommonResp, error) +} + +// UnimplementedFriendServer can be embedded to have forward compatible implementations. +type UnimplementedFriendServer struct { +} + +func (*UnimplementedFriendServer) SearchFriend(ctx context.Context, req *SearchFriendReq) (*SearchFriendResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SearchFriend not implemented") +} +func (*UnimplementedFriendServer) AddFriend(ctx context.Context, req *AddFriendReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddFriend not implemented") +} +func (*UnimplementedFriendServer) GetFriendApplyList(ctx context.Context, req *GetFriendApplyReq) (*GetFriendApplyResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFriendApplyList not implemented") +} +func (*UnimplementedFriendServer) GetFriendList(ctx context.Context, req *GetFriendListReq) (*GetFriendListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetFriendList not implemented") +} +func (*UnimplementedFriendServer) AddBlacklist(ctx context.Context, req *AddBlacklistReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddBlacklist not implemented") +} +func (*UnimplementedFriendServer) RemoveBlacklist(ctx context.Context, req *RemoveBlacklistReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method RemoveBlacklist not implemented") +} +func (*UnimplementedFriendServer) IsInBlackList(ctx context.Context, req *IsInBlackListReq) (*IsInBlackListResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method IsInBlackList not implemented") +} +func (*UnimplementedFriendServer) GetBlacklist(ctx context.Context, req *GetBlacklistReq) (*GetBlacklistResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetBlacklist not implemented") +} +func (*UnimplementedFriendServer) DeleteFriend(ctx context.Context, req *DeleteFriendReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method DeleteFriend not implemented") +} +func (*UnimplementedFriendServer) AddedFriend(ctx context.Context, req *AddedFriendReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method AddedFriend not implemented") +} +func (*UnimplementedFriendServer) SetFriendComment(ctx context.Context, req *SetFriendCommentReq) (*CommonResp, error) { + return nil, status.Errorf(codes.Unimplemented, "method SetFriendComment not implemented") +} + +func RegisterFriendServer(s *grpc.Server, srv FriendServer) { + s.RegisterService(&_Friend_serviceDesc, srv) +} + +func _Friend_SearchFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SearchFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).SearchFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/SearchFriend", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).SearchFriend(ctx, req.(*SearchFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_AddFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).AddFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/AddFriend", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).AddFriend(ctx, req.(*AddFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_GetFriendApplyList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetFriendApplyReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).GetFriendApplyList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/GetFriendApplyList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).GetFriendApplyList(ctx, req.(*GetFriendApplyReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_GetFriendList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetFriendListReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).GetFriendList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/GetFriendList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).GetFriendList(ctx, req.(*GetFriendListReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_AddBlacklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddBlacklistReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).AddBlacklist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/AddBlacklist", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).AddBlacklist(ctx, req.(*AddBlacklistReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_RemoveBlacklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(RemoveBlacklistReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).RemoveBlacklist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/RemoveBlacklist", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).RemoveBlacklist(ctx, req.(*RemoveBlacklistReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_IsInBlackList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(IsInBlackListReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).IsInBlackList(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/IsInBlackList", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).IsInBlackList(ctx, req.(*IsInBlackListReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_GetBlacklist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetBlacklistReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).GetBlacklist(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/GetBlacklist", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).GetBlacklist(ctx, req.(*GetBlacklistReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_DeleteFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).DeleteFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/DeleteFriend", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).DeleteFriend(ctx, req.(*DeleteFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_AddedFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(AddedFriendReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).AddedFriend(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/AddedFriend", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).AddedFriend(ctx, req.(*AddedFriendReq)) + } + return interceptor(ctx, in, info, handler) +} + +func _Friend_SetFriendComment_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SetFriendCommentReq) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(FriendServer).SetFriendComment(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/friend.friend/SetFriendComment", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(FriendServer).SetFriendComment(ctx, req.(*SetFriendCommentReq)) + } + return interceptor(ctx, in, info, handler) +} + +var _Friend_serviceDesc = grpc.ServiceDesc{ + ServiceName: "friend.friend", + HandlerType: (*FriendServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "searchFriend", + Handler: _Friend_SearchFriend_Handler, + }, + { + MethodName: "addFriend", + Handler: _Friend_AddFriend_Handler, + }, + { + MethodName: "getFriendApplyList", + Handler: _Friend_GetFriendApplyList_Handler, + }, + { + MethodName: "getFriendList", + Handler: _Friend_GetFriendList_Handler, + }, + { + MethodName: "addBlacklist", + Handler: _Friend_AddBlacklist_Handler, + }, + { + MethodName: "removeBlacklist", + Handler: _Friend_RemoveBlacklist_Handler, + }, + { + MethodName: "isInBlackList", + Handler: _Friend_IsInBlackList_Handler, + }, + { + MethodName: "getBlacklist", + Handler: _Friend_GetBlacklist_Handler, + }, + { + MethodName: "deleteFriend", + Handler: _Friend_DeleteFriend_Handler, + }, + { + MethodName: "addedFriend", + Handler: _Friend_AddedFriend_Handler, + }, + { + MethodName: "setFriendComment", + Handler: _Friend_SetFriendComment_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "friend/friend.proto", +} diff --git a/src/proto/friend/friend.proto b/src/proto/friend/friend.proto new file mode 100644 index 000000000..eb69dff2e --- /dev/null +++ b/src/proto/friend/friend.proto @@ -0,0 +1,159 @@ +syntax = "proto3"; +option go_package = "friend;friend"; +package friend; + +message CommonResp{ + int32 errorCode = 1; + string errorMsg = 2; +} + +message SearchFriendReq{ + string uid = 1; + string OperationID = 2; + string Token = 3; +} +message SearchFriendResp{ + int32 errorCode = 1; + string errorMsg = 2; + SearchFriendData Data = 3; +} + +message SearchFriendData{ + string uid = 1; + string icon = 2; + string name = 3; + int32 gender = 4; + string mobile = 5; + string birth = 6; + string email = 7; + string ex = 8; + string comment = 9; + int32 isFriend = 10; + int32 isInBlackList = 11; +} + +message AddFriendReq{ + string uid = 1; + string OperationID = 2; + string Token = 3; + string ReqMessage = 4; +} + + +message GetFriendApplyReq{ + string OperationID = 1; + string Token = 2; +} +message GetFriendApplyResp{ + int32 errorCode = 1; + string errorMsg = 2; + repeated ApplyUserInfo data = 4; +} + +message ApplyUserInfo{ + string uid = 1; + string name = 2; + string icon = 3; + int32 gender = 4; + string mobile = 5; + string birth = 6; + string email = 7; + string ex = 8; + int32 flag = 9; + string applyTime = 10; + string reqMessage = 11; +} + + +message getFriendListReq{ + string OperationID = 1; + string Token = 2; +} +message getFriendListResp{ + int32 errorCode = 1; + string errorMsg = 2; + repeated UserInfo data = 3; +} +message UserInfo{ + string uid = 1; + string name = 3; + string icon = 2; + int32 gender = 4; + string mobile = 5; + string birth = 6; + string email = 7; + string ex = 8; + string comment = 9; + int32 isInBlackList = 10; +} + +message AddBlacklistReq{ + string uid = 1; + string OperationID = 2; + string Token = 3; +} + + +message RemoveBlacklistReq{ + string uid = 1; + string OperationID = 2; + string Token = 3; +} + + +message GetBlacklistReq{ + string OperationID = 1; + string token = 2; +} +message GetBlacklistResp{ + int32 errorCode = 1; + string errorMsg = 2; + repeated UserInfo data = 3; +} + + +message IsInBlackListReq{ + string sendUid = 1; + string receiveUid = 2; + string OperationID = 3; +} +message IsInBlackListResp{ + int32 errorCode = 1; + string errorMsg = 2; + bool response = 3; +} + +message DeleteFriendReq{ + string uid = 1; + string OperationID = 2; + string Token = 3; +} + + +message AddedFriendReq{ + string uid = 1; + int32 flag = 2; + string OperationID = 3; + string Token = 4; +} + +message SetFriendCommentReq{ + string uid = 1; + string operationID = 2; + string comment = 3; + string token = 4; +} + +service friend{ + rpc searchFriend(SearchFriendReq) returns(SearchFriendResp); + rpc addFriend(AddFriendReq) returns(CommonResp); + rpc getFriendApplyList(GetFriendApplyReq) returns(GetFriendApplyResp); + rpc getFriendList(getFriendListReq) returns(getFriendListResp); + rpc addBlacklist(AddBlacklistReq) returns(CommonResp); + rpc removeBlacklist(RemoveBlacklistReq) returns(CommonResp); + rpc isInBlackList(IsInBlackListReq) returns(IsInBlackListResp); + rpc getBlacklist(GetBlacklistReq) returns(GetBlacklistResp); + rpc deleteFriend(DeleteFriendReq) returns(CommonResp); + rpc addedFriend(AddedFriendReq) returns(CommonResp); + rpc setFriendComment(SetFriendCommentReq) returns(CommonResp); +} \ No newline at end of file