You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/pkg/proto/friend/friend.pb.go

1843 lines
67 KiB

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: friend/friend.proto
2 years ago
package friend // import "Open_IM/pkg/proto/friend"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import sdk_ws "Open_IM/pkg/proto/sdk_ws"
import (
2 years ago
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
2 years ago
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
2 years ago
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
3 years ago
type GetFriendsInfoReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
FriendUserIDs []string `protobuf:"bytes,2,rep,name=friendUserIDs" json:"friendUserIDs,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
2 years ago
func (m *GetFriendsInfoReq) Reset() { *m = GetFriendsInfoReq{} }
func (m *GetFriendsInfoReq) String() string { return proto.CompactTextString(m) }
func (*GetFriendsInfoReq) ProtoMessage() {}
func (*GetFriendsInfoReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{0}
}
2 years ago
func (m *GetFriendsInfoReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFriendsInfoReq.Unmarshal(m, b)
}
2 years ago
func (m *GetFriendsInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFriendsInfoReq.Marshal(b, m, deterministic)
}
2 years ago
func (dst *GetFriendsInfoReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFriendsInfoReq.Merge(dst, src)
2 years ago
}
2 years ago
func (m *GetFriendsInfoReq) XXX_Size() int {
return xxx_messageInfo_GetFriendsInfoReq.Size(m)
}
func (m *GetFriendsInfoReq) XXX_DiscardUnknown() {
xxx_messageInfo_GetFriendsInfoReq.DiscardUnknown(m)
}
var xxx_messageInfo_GetFriendsInfoReq proto.InternalMessageInfo
func (m *GetFriendsInfoReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
}
2 years ago
return ""
}
func (m *GetFriendsInfoReq) GetFriendUserIDs() []string {
2 years ago
if m != nil {
return m.FriendUserIDs
2 years ago
}
return nil
}
type GetFriendsInfoResp struct {
2 years ago
FriendInfoList []*sdk_ws.FriendInfo `protobuf:"bytes,1,rep,name=FriendInfoList" json:"FriendInfoList,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *GetFriendsInfoResp) Reset() { *m = GetFriendsInfoResp{} }
func (m *GetFriendsInfoResp) String() string { return proto.CompactTextString(m) }
func (*GetFriendsInfoResp) ProtoMessage() {}
func (*GetFriendsInfoResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{1}
}
func (m *GetFriendsInfoResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFriendsInfoResp.Unmarshal(m, b)
}
func (m *GetFriendsInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFriendsInfoResp.Marshal(b, m, deterministic)
}
func (dst *GetFriendsInfoResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFriendsInfoResp.Merge(dst, src)
2 years ago
}
func (m *GetFriendsInfoResp) XXX_Size() int {
return xxx_messageInfo_GetFriendsInfoResp.Size(m)
2 years ago
}
func (m *GetFriendsInfoResp) XXX_DiscardUnknown() {
xxx_messageInfo_GetFriendsInfoResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetFriendsInfoResp proto.InternalMessageInfo
2 years ago
func (m *GetFriendsInfoResp) GetFriendInfoList() []*sdk_ws.FriendInfo {
2 years ago
if m != nil {
return m.FriendInfoList
}
3 years ago
return nil
}
type AddFriendReq struct {
FromUserID string `protobuf:"bytes,1,opt,name=fromUserID" json:"fromUserID,omitempty"`
ToUserID string `protobuf:"bytes,2,opt,name=toUserID" json:"toUserID,omitempty"`
ReqMsg string `protobuf:"bytes,3,opt,name=reqMsg" json:"reqMsg,omitempty"`
Ex string `protobuf:"bytes,4,opt,name=ex" json:"ex,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
2 years ago
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_friend_fcfb8eb4800a740c, []int{2}
}
2 years ago
func (m *AddFriendReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddFriendReq.Unmarshal(m, b)
}
2 years ago
func (m *AddFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddFriendReq.Marshal(b, m, deterministic)
}
2 years ago
func (dst *AddFriendReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddFriendReq.Merge(dst, src)
}
func (m *AddFriendReq) XXX_Size() int {
return xxx_messageInfo_AddFriendReq.Size(m)
2 years ago
}
2 years ago
func (m *AddFriendReq) XXX_DiscardUnknown() {
xxx_messageInfo_AddFriendReq.DiscardUnknown(m)
}
var xxx_messageInfo_AddFriendReq proto.InternalMessageInfo
func (m *AddFriendReq) GetFromUserID() string {
2 years ago
if m != nil {
return m.FromUserID
}
2 years ago
return ""
}
func (m *AddFriendReq) GetToUserID() string {
2 years ago
if m != nil {
return m.ToUserID
2 years ago
}
return ""
}
2 years ago
func (m *AddFriendReq) GetReqMsg() string {
if m != nil {
return m.ReqMsg
}
return ""
}
func (m *AddFriendReq) GetEx() string {
if m != nil {
return m.Ex
}
return ""
}
3 years ago
type AddFriendResp struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
2 years ago
func (m *AddFriendResp) Reset() { *m = AddFriendResp{} }
func (m *AddFriendResp) String() string { return proto.CompactTextString(m) }
func (*AddFriendResp) ProtoMessage() {}
func (*AddFriendResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{3}
3 years ago
}
2 years ago
func (m *AddFriendResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddFriendResp.Unmarshal(m, b)
3 years ago
}
2 years ago
func (m *AddFriendResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddFriendResp.Marshal(b, m, deterministic)
3 years ago
}
2 years ago
func (dst *AddFriendResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddFriendResp.Merge(dst, src)
}
func (m *AddFriendResp) XXX_Size() int {
return xxx_messageInfo_AddFriendResp.Size(m)
2 years ago
}
2 years ago
func (m *AddFriendResp) XXX_DiscardUnknown() {
xxx_messageInfo_AddFriendResp.DiscardUnknown(m)
}
var xxx_messageInfo_AddFriendResp proto.InternalMessageInfo
3 years ago
type ImportFriendReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
FriendUserIDs []string `protobuf:"bytes,2,rep,name=friendUserIDs" json:"friendUserIDs,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ImportFriendReq) Reset() { *m = ImportFriendReq{} }
func (m *ImportFriendReq) String() string { return proto.CompactTextString(m) }
func (*ImportFriendReq) ProtoMessage() {}
func (*ImportFriendReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{4}
}
2 years ago
func (m *ImportFriendReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportFriendReq.Unmarshal(m, b)
}
2 years ago
func (m *ImportFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportFriendReq.Marshal(b, m, deterministic)
}
2 years ago
func (dst *ImportFriendReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportFriendReq.Merge(dst, src)
}
2 years ago
func (m *ImportFriendReq) XXX_Size() int {
return xxx_messageInfo_ImportFriendReq.Size(m)
}
func (m *ImportFriendReq) XXX_DiscardUnknown() {
xxx_messageInfo_ImportFriendReq.DiscardUnknown(m)
2 years ago
}
2 years ago
var xxx_messageInfo_ImportFriendReq proto.InternalMessageInfo
func (m *ImportFriendReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
}
return ""
}
func (m *ImportFriendReq) GetFriendUserIDs() []string {
2 years ago
if m != nil {
return m.FriendUserIDs
}
return nil
}
2 years ago
type ImportFriendResp struct {
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
2 years ago
func (m *ImportFriendResp) Reset() { *m = ImportFriendResp{} }
func (m *ImportFriendResp) String() string { return proto.CompactTextString(m) }
func (*ImportFriendResp) ProtoMessage() {}
func (*ImportFriendResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{5}
}
2 years ago
func (m *ImportFriendResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ImportFriendResp.Unmarshal(m, b)
}
2 years ago
func (m *ImportFriendResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ImportFriendResp.Marshal(b, m, deterministic)
}
2 years ago
func (dst *ImportFriendResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_ImportFriendResp.Merge(dst, src)
2 years ago
}
2 years ago
func (m *ImportFriendResp) XXX_Size() int {
return xxx_messageInfo_ImportFriendResp.Size(m)
}
func (m *ImportFriendResp) XXX_DiscardUnknown() {
xxx_messageInfo_ImportFriendResp.DiscardUnknown(m)
}
var xxx_messageInfo_ImportFriendResp proto.InternalMessageInfo
type GetToFriendsApplyReq struct {
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=pagination" json:"pagination,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *GetToFriendsApplyReq) Reset() { *m = GetToFriendsApplyReq{} }
func (m *GetToFriendsApplyReq) String() string { return proto.CompactTextString(m) }
func (*GetToFriendsApplyReq) ProtoMessage() {}
func (*GetToFriendsApplyReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{6}
}
func (m *GetToFriendsApplyReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetToFriendsApplyReq.Unmarshal(m, b)
}
func (m *GetToFriendsApplyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetToFriendsApplyReq.Marshal(b, m, deterministic)
}
func (dst *GetToFriendsApplyReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetToFriendsApplyReq.Merge(dst, src)
2 years ago
}
func (m *GetToFriendsApplyReq) XXX_Size() int {
return xxx_messageInfo_GetToFriendsApplyReq.Size(m)
2 years ago
}
func (m *GetToFriendsApplyReq) XXX_DiscardUnknown() {
xxx_messageInfo_GetToFriendsApplyReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetToFriendsApplyReq proto.InternalMessageInfo
func (m *GetToFriendsApplyReq) GetUserID() string {
2 years ago
if m != nil {
return m.UserID
}
2 years ago
return ""
}
func (m *GetToFriendsApplyReq) GetPagination() *sdk_ws.RequestPagination {
2 years ago
if m != nil {
return m.Pagination
2 years ago
}
return nil
}
type GetToFriendsApplyResp struct {
FriendRequests []*sdk_ws.FriendRequest `protobuf:"bytes,1,rep,name=FriendRequests" json:"FriendRequests,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total" json:"total,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *GetToFriendsApplyResp) Reset() { *m = GetToFriendsApplyResp{} }
func (m *GetToFriendsApplyResp) String() string { return proto.CompactTextString(m) }
func (*GetToFriendsApplyResp) ProtoMessage() {}
func (*GetToFriendsApplyResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{7}
}
func (m *GetToFriendsApplyResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetToFriendsApplyResp.Unmarshal(m, b)
}
func (m *GetToFriendsApplyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetToFriendsApplyResp.Marshal(b, m, deterministic)
}
func (dst *GetToFriendsApplyResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetToFriendsApplyResp.Merge(dst, src)
2 years ago
}
func (m *GetToFriendsApplyResp) XXX_Size() int {
return xxx_messageInfo_GetToFriendsApplyResp.Size(m)
2 years ago
}
func (m *GetToFriendsApplyResp) XXX_DiscardUnknown() {
xxx_messageInfo_GetToFriendsApplyResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetToFriendsApplyResp proto.InternalMessageInfo
func (m *GetToFriendsApplyResp) GetFriendRequests() []*sdk_ws.FriendRequest {
2 years ago
if m != nil {
return m.FriendRequests
}
3 years ago
return nil
}
func (m *GetToFriendsApplyResp) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
type GetFriendsReq struct {
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,1,opt,name=pagination" json:"pagination,omitempty"`
UserID string `protobuf:"bytes,2,opt,name=userID" json:"userID,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *GetFriendsReq) Reset() { *m = GetFriendsReq{} }
func (m *GetFriendsReq) String() string { return proto.CompactTextString(m) }
func (*GetFriendsReq) ProtoMessage() {}
func (*GetFriendsReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{8}
}
func (m *GetFriendsReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFriendsReq.Unmarshal(m, b)
}
func (m *GetFriendsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFriendsReq.Marshal(b, m, deterministic)
}
func (dst *GetFriendsReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFriendsReq.Merge(dst, src)
2 years ago
}
func (m *GetFriendsReq) XXX_Size() int {
return xxx_messageInfo_GetFriendsReq.Size(m)
2 years ago
}
func (m *GetFriendsReq) XXX_DiscardUnknown() {
xxx_messageInfo_GetFriendsReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetFriendsReq proto.InternalMessageInfo
func (m *GetFriendsReq) GetPagination() *sdk_ws.RequestPagination {
2 years ago
if m != nil {
return m.Pagination
}
return nil
2 years ago
}
func (m *GetFriendsReq) GetUserID() string {
2 years ago
if m != nil {
return m.UserID
2 years ago
}
return ""
}
type GetFriendsResp struct {
FriendsInfo []*sdk_ws.FriendInfo `protobuf:"bytes,1,rep,name=FriendsInfo" json:"FriendsInfo,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total" json:"total,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *GetFriendsResp) Reset() { *m = GetFriendsResp{} }
func (m *GetFriendsResp) String() string { return proto.CompactTextString(m) }
func (*GetFriendsResp) ProtoMessage() {}
func (*GetFriendsResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{9}
}
func (m *GetFriendsResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFriendsResp.Unmarshal(m, b)
}
func (m *GetFriendsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFriendsResp.Marshal(b, m, deterministic)
}
func (dst *GetFriendsResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFriendsResp.Merge(dst, src)
2 years ago
}
func (m *GetFriendsResp) XXX_Size() int {
return xxx_messageInfo_GetFriendsResp.Size(m)
2 years ago
}
func (m *GetFriendsResp) XXX_DiscardUnknown() {
xxx_messageInfo_GetFriendsResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetFriendsResp proto.InternalMessageInfo
2 years ago
func (m *GetFriendsResp) GetFriendsInfo() []*sdk_ws.FriendInfo {
2 years ago
if m != nil {
return m.FriendsInfo
}
return nil
}
func (m *GetFriendsResp) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
type AddBlackReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
BlackUserID string `protobuf:"bytes,2,opt,name=blackUserID" json:"blackUserID,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *AddBlackReq) Reset() { *m = AddBlackReq{} }
func (m *AddBlackReq) String() string { return proto.CompactTextString(m) }
func (*AddBlackReq) ProtoMessage() {}
func (*AddBlackReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{10}
}
func (m *AddBlackReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddBlackReq.Unmarshal(m, b)
}
func (m *AddBlackReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddBlackReq.Marshal(b, m, deterministic)
}
func (dst *AddBlackReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddBlackReq.Merge(dst, src)
2 years ago
}
func (m *AddBlackReq) XXX_Size() int {
return xxx_messageInfo_AddBlackReq.Size(m)
2 years ago
}
func (m *AddBlackReq) XXX_DiscardUnknown() {
xxx_messageInfo_AddBlackReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_AddBlackReq proto.InternalMessageInfo
2 years ago
func (m *AddBlackReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
}
2 years ago
return ""
}
func (m *AddBlackReq) GetBlackUserID() string {
2 years ago
if m != nil {
return m.BlackUserID
2 years ago
}
return ""
}
type AddBlackResp struct {
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
func (m *AddBlackResp) Reset() { *m = AddBlackResp{} }
func (m *AddBlackResp) String() string { return proto.CompactTextString(m) }
func (*AddBlackResp) ProtoMessage() {}
func (*AddBlackResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{11}
3 years ago
}
func (m *AddBlackResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AddBlackResp.Unmarshal(m, b)
3 years ago
}
func (m *AddBlackResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AddBlackResp.Marshal(b, m, deterministic)
3 years ago
}
func (dst *AddBlackResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_AddBlackResp.Merge(dst, src)
2 years ago
}
func (m *AddBlackResp) XXX_Size() int {
return xxx_messageInfo_AddBlackResp.Size(m)
2 years ago
}
func (m *AddBlackResp) XXX_DiscardUnknown() {
xxx_messageInfo_AddBlackResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_AddBlackResp proto.InternalMessageInfo
3 years ago
type RemoveBlackReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
BlackUserID string `protobuf:"bytes,2,opt,name=blackUserID" json:"blackUserID,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *RemoveBlackReq) Reset() { *m = RemoveBlackReq{} }
func (m *RemoveBlackReq) String() string { return proto.CompactTextString(m) }
func (*RemoveBlackReq) ProtoMessage() {}
func (*RemoveBlackReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{12}
}
func (m *RemoveBlackReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoveBlackReq.Unmarshal(m, b)
}
func (m *RemoveBlackReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoveBlackReq.Marshal(b, m, deterministic)
}
func (dst *RemoveBlackReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoveBlackReq.Merge(dst, src)
2 years ago
}
func (m *RemoveBlackReq) XXX_Size() int {
return xxx_messageInfo_RemoveBlackReq.Size(m)
2 years ago
}
func (m *RemoveBlackReq) XXX_DiscardUnknown() {
xxx_messageInfo_RemoveBlackReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_RemoveBlackReq proto.InternalMessageInfo
func (m *RemoveBlackReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
}
2 years ago
return ""
}
func (m *RemoveBlackReq) GetBlackUserID() string {
2 years ago
if m != nil {
return m.BlackUserID
2 years ago
}
return ""
}
type RemoveBlackReqResp struct {
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
func (m *RemoveBlackReqResp) Reset() { *m = RemoveBlackReqResp{} }
func (m *RemoveBlackReqResp) String() string { return proto.CompactTextString(m) }
func (*RemoveBlackReqResp) ProtoMessage() {}
func (*RemoveBlackReqResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{13}
3 years ago
}
func (m *RemoveBlackReqResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RemoveBlackReqResp.Unmarshal(m, b)
3 years ago
}
func (m *RemoveBlackReqResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RemoveBlackReqResp.Marshal(b, m, deterministic)
3 years ago
}
func (dst *RemoveBlackReqResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_RemoveBlackReqResp.Merge(dst, src)
2 years ago
}
func (m *RemoveBlackReqResp) XXX_Size() int {
return xxx_messageInfo_RemoveBlackReqResp.Size(m)
2 years ago
}
func (m *RemoveBlackReqResp) XXX_DiscardUnknown() {
xxx_messageInfo_RemoveBlackReqResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_RemoveBlackReqResp proto.InternalMessageInfo
3 years ago
type GetBlacksReq struct {
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=pagination" json:"pagination,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *GetBlacksReq) Reset() { *m = GetBlacksReq{} }
func (m *GetBlacksReq) String() string { return proto.CompactTextString(m) }
func (*GetBlacksReq) ProtoMessage() {}
func (*GetBlacksReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{14}
}
func (m *GetBlacksReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlacksReq.Unmarshal(m, b)
}
func (m *GetBlacksReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBlacksReq.Marshal(b, m, deterministic)
}
func (dst *GetBlacksReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBlacksReq.Merge(dst, src)
2 years ago
}
func (m *GetBlacksReq) XXX_Size() int {
return xxx_messageInfo_GetBlacksReq.Size(m)
2 years ago
}
func (m *GetBlacksReq) XXX_DiscardUnknown() {
xxx_messageInfo_GetBlacksReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetBlacksReq proto.InternalMessageInfo
func (m *GetBlacksReq) GetUserID() string {
2 years ago
if m != nil {
return m.UserID
2 years ago
}
return ""
}
func (m *GetBlacksReq) GetPagination() *sdk_ws.RequestPagination {
if m != nil {
return m.Pagination
}
return nil
}
type GetBlacksResp struct {
2 years ago
BlackUserInfoList []*sdk_ws.PublicUserInfo `protobuf:"bytes,1,rep,name=BlackUserInfoList" json:"BlackUserInfoList,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total" json:"total,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *GetBlacksResp) Reset() { *m = GetBlacksResp{} }
func (m *GetBlacksResp) String() string { return proto.CompactTextString(m) }
func (*GetBlacksResp) ProtoMessage() {}
func (*GetBlacksResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{15}
}
func (m *GetBlacksResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetBlacksResp.Unmarshal(m, b)
}
func (m *GetBlacksResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetBlacksResp.Marshal(b, m, deterministic)
}
func (dst *GetBlacksResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetBlacksResp.Merge(dst, src)
2 years ago
}
func (m *GetBlacksResp) XXX_Size() int {
return xxx_messageInfo_GetBlacksResp.Size(m)
2 years ago
}
func (m *GetBlacksResp) XXX_DiscardUnknown() {
xxx_messageInfo_GetBlacksResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetBlacksResp proto.InternalMessageInfo
2 years ago
func (m *GetBlacksResp) GetBlackUserInfoList() []*sdk_ws.PublicUserInfo {
2 years ago
if m != nil {
return m.BlackUserInfoList
}
return nil
}
func (m *GetBlacksResp) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
3 years ago
type IsFriendReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
FriendUserID string `protobuf:"bytes,2,opt,name=friendUserID" json:"friendUserID,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
2 years ago
func (m *IsFriendReq) Reset() { *m = IsFriendReq{} }
func (m *IsFriendReq) String() string { return proto.CompactTextString(m) }
func (*IsFriendReq) ProtoMessage() {}
func (*IsFriendReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{16}
3 years ago
}
2 years ago
func (m *IsFriendReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IsFriendReq.Unmarshal(m, b)
3 years ago
}
2 years ago
func (m *IsFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IsFriendReq.Marshal(b, m, deterministic)
3 years ago
}
2 years ago
func (dst *IsFriendReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_IsFriendReq.Merge(dst, src)
}
func (m *IsFriendReq) XXX_Size() int {
return xxx_messageInfo_IsFriendReq.Size(m)
}
func (m *IsFriendReq) XXX_DiscardUnknown() {
xxx_messageInfo_IsFriendReq.DiscardUnknown(m)
2 years ago
}
3 years ago
2 years ago
var xxx_messageInfo_IsFriendReq proto.InternalMessageInfo
func (m *IsFriendReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
3 years ago
}
2 years ago
return ""
}
func (m *IsFriendReq) GetFriendUserID() string {
2 years ago
if m != nil {
return m.FriendUserID
2 years ago
}
return ""
3 years ago
}
type IsFriendResp struct {
Response bool `protobuf:"varint,1,opt,name=response" json:"response,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
2 years ago
func (m *IsFriendResp) Reset() { *m = IsFriendResp{} }
func (m *IsFriendResp) String() string { return proto.CompactTextString(m) }
func (*IsFriendResp) ProtoMessage() {}
func (*IsFriendResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{17}
3 years ago
}
2 years ago
func (m *IsFriendResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IsFriendResp.Unmarshal(m, b)
3 years ago
}
2 years ago
func (m *IsFriendResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IsFriendResp.Marshal(b, m, deterministic)
3 years ago
}
2 years ago
func (dst *IsFriendResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_IsFriendResp.Merge(dst, src)
2 years ago
}
2 years ago
func (m *IsFriendResp) XXX_Size() int {
return xxx_messageInfo_IsFriendResp.Size(m)
}
func (m *IsFriendResp) XXX_DiscardUnknown() {
xxx_messageInfo_IsFriendResp.DiscardUnknown(m)
}
var xxx_messageInfo_IsFriendResp proto.InternalMessageInfo
3 years ago
2 years ago
func (m *IsFriendResp) GetResponse() bool {
if m != nil {
return m.Response
3 years ago
}
3 years ago
return false
3 years ago
}
type IsBlackReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
BlackUserID string `protobuf:"bytes,2,opt,name=blackUserID" json:"blackUserID,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *IsBlackReq) Reset() { *m = IsBlackReq{} }
func (m *IsBlackReq) String() string { return proto.CompactTextString(m) }
func (*IsBlackReq) ProtoMessage() {}
func (*IsBlackReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{18}
}
func (m *IsBlackReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IsBlackReq.Unmarshal(m, b)
}
func (m *IsBlackReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IsBlackReq.Marshal(b, m, deterministic)
}
func (dst *IsBlackReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_IsBlackReq.Merge(dst, src)
2 years ago
}
func (m *IsBlackReq) XXX_Size() int {
return xxx_messageInfo_IsBlackReq.Size(m)
2 years ago
}
func (m *IsBlackReq) XXX_DiscardUnknown() {
xxx_messageInfo_IsBlackReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_IsBlackReq proto.InternalMessageInfo
func (m *IsBlackReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
}
2 years ago
return ""
}
func (m *IsBlackReq) GetBlackUserID() string {
2 years ago
if m != nil {
return m.BlackUserID
2 years ago
}
return ""
}
type IsBlackResp struct {
Response bool `protobuf:"varint,1,opt,name=response" json:"response,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *IsBlackResp) Reset() { *m = IsBlackResp{} }
func (m *IsBlackResp) String() string { return proto.CompactTextString(m) }
func (*IsBlackResp) ProtoMessage() {}
func (*IsBlackResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{19}
}
func (m *IsBlackResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IsBlackResp.Unmarshal(m, b)
}
func (m *IsBlackResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IsBlackResp.Marshal(b, m, deterministic)
}
func (dst *IsBlackResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_IsBlackResp.Merge(dst, src)
2 years ago
}
func (m *IsBlackResp) XXX_Size() int {
return xxx_messageInfo_IsBlackResp.Size(m)
2 years ago
}
func (m *IsBlackResp) XXX_DiscardUnknown() {
xxx_messageInfo_IsBlackResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_IsBlackResp proto.InternalMessageInfo
func (m *IsBlackResp) GetResponse() bool {
2 years ago
if m != nil {
return m.Response
}
return false
}
type DeleteFriendReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
FriendUserID string `protobuf:"bytes,2,opt,name=friendUserID" json:"friendUserID,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
2 years ago
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_friend_fcfb8eb4800a740c, []int{20}
}
2 years ago
func (m *DeleteFriendReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteFriendReq.Unmarshal(m, b)
}
2 years ago
func (m *DeleteFriendReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteFriendReq.Marshal(b, m, deterministic)
}
2 years ago
func (dst *DeleteFriendReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteFriendReq.Merge(dst, src)
}
func (m *DeleteFriendReq) XXX_Size() int {
return xxx_messageInfo_DeleteFriendReq.Size(m)
2 years ago
}
2 years ago
func (m *DeleteFriendReq) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteFriendReq.DiscardUnknown(m)
}
var xxx_messageInfo_DeleteFriendReq proto.InternalMessageInfo
func (m *DeleteFriendReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
2 years ago
}
return ""
}
func (m *DeleteFriendReq) GetFriendUserID() string {
2 years ago
if m != nil {
return m.FriendUserID
}
2 years ago
return ""
}
3 years ago
type DeleteFriendResp struct {
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
2 years ago
func (m *DeleteFriendResp) Reset() { *m = DeleteFriendResp{} }
func (m *DeleteFriendResp) String() string { return proto.CompactTextString(m) }
func (*DeleteFriendResp) ProtoMessage() {}
func (*DeleteFriendResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{21}
3 years ago
}
2 years ago
func (m *DeleteFriendResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeleteFriendResp.Unmarshal(m, b)
3 years ago
}
2 years ago
func (m *DeleteFriendResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeleteFriendResp.Marshal(b, m, deterministic)
3 years ago
}
2 years ago
func (dst *DeleteFriendResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeleteFriendResp.Merge(dst, src)
}
func (m *DeleteFriendResp) XXX_Size() int {
return xxx_messageInfo_DeleteFriendResp.Size(m)
}
func (m *DeleteFriendResp) XXX_DiscardUnknown() {
xxx_messageInfo_DeleteFriendResp.DiscardUnknown(m)
2 years ago
}
3 years ago
2 years ago
var xxx_messageInfo_DeleteFriendResp proto.InternalMessageInfo
// process
type RespondFriendApplyReq struct {
FromUserID string `protobuf:"bytes,1,opt,name=fromUserID" json:"fromUserID,omitempty"`
ToUserID string `protobuf:"bytes,2,opt,name=toUserID" json:"toUserID,omitempty"`
2 years ago
HandleResult int32 `protobuf:"varint,3,opt,name=handleResult" json:"handleResult,omitempty"`
HandleMsg string `protobuf:"bytes,4,opt,name=handleMsg" json:"handleMsg,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
func (m *RespondFriendApplyReq) Reset() { *m = RespondFriendApplyReq{} }
func (m *RespondFriendApplyReq) String() string { return proto.CompactTextString(m) }
func (*RespondFriendApplyReq) ProtoMessage() {}
func (*RespondFriendApplyReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{22}
}
func (m *RespondFriendApplyReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RespondFriendApplyReq.Unmarshal(m, b)
}
func (m *RespondFriendApplyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RespondFriendApplyReq.Marshal(b, m, deterministic)
}
func (dst *RespondFriendApplyReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_RespondFriendApplyReq.Merge(dst, src)
2 years ago
}
func (m *RespondFriendApplyReq) XXX_Size() int {
return xxx_messageInfo_RespondFriendApplyReq.Size(m)
2 years ago
}
func (m *RespondFriendApplyReq) XXX_DiscardUnknown() {
xxx_messageInfo_RespondFriendApplyReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_RespondFriendApplyReq proto.InternalMessageInfo
2 years ago
func (m *RespondFriendApplyReq) GetFromUserID() string {
2 years ago
if m != nil {
return m.FromUserID
}
2 years ago
return ""
}
func (m *RespondFriendApplyReq) GetToUserID() string {
2 years ago
if m != nil {
return m.ToUserID
2 years ago
}
return ""
}
func (m *RespondFriendApplyReq) GetHandleResult() int32 {
2 years ago
if m != nil {
return m.HandleResult
}
return 0
}
func (m *RespondFriendApplyReq) GetHandleMsg() string {
2 years ago
if m != nil {
return m.HandleMsg
3 years ago
}
return ""
}
type RespondFriendApplyResp struct {
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
func (m *RespondFriendApplyResp) Reset() { *m = RespondFriendApplyResp{} }
func (m *RespondFriendApplyResp) String() string { return proto.CompactTextString(m) }
func (*RespondFriendApplyResp) ProtoMessage() {}
func (*RespondFriendApplyResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{23}
3 years ago
}
func (m *RespondFriendApplyResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RespondFriendApplyResp.Unmarshal(m, b)
3 years ago
}
func (m *RespondFriendApplyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RespondFriendApplyResp.Marshal(b, m, deterministic)
3 years ago
}
func (dst *RespondFriendApplyResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_RespondFriendApplyResp.Merge(dst, src)
2 years ago
}
func (m *RespondFriendApplyResp) XXX_Size() int {
return xxx_messageInfo_RespondFriendApplyResp.Size(m)
2 years ago
}
func (m *RespondFriendApplyResp) XXX_DiscardUnknown() {
xxx_messageInfo_RespondFriendApplyResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_RespondFriendApplyResp proto.InternalMessageInfo
3 years ago
3 years ago
type SetFriendRemarkReq struct {
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
FriendUserID string `protobuf:"bytes,2,opt,name=friendUserID" json:"friendUserID,omitempty"`
Remark string `protobuf:"bytes,3,opt,name=remark" json:"remark,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
2 years ago
2 years ago
func (m *SetFriendRemarkReq) Reset() { *m = SetFriendRemarkReq{} }
func (m *SetFriendRemarkReq) String() string { return proto.CompactTextString(m) }
func (*SetFriendRemarkReq) ProtoMessage() {}
func (*SetFriendRemarkReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{24}
}
2 years ago
func (m *SetFriendRemarkReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetFriendRemarkReq.Unmarshal(m, b)
}
2 years ago
func (m *SetFriendRemarkReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetFriendRemarkReq.Marshal(b, m, deterministic)
}
2 years ago
func (dst *SetFriendRemarkReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetFriendRemarkReq.Merge(dst, src)
2 years ago
}
2 years ago
func (m *SetFriendRemarkReq) XXX_Size() int {
return xxx_messageInfo_SetFriendRemarkReq.Size(m)
}
func (m *SetFriendRemarkReq) XXX_DiscardUnknown() {
xxx_messageInfo_SetFriendRemarkReq.DiscardUnknown(m)
}
var xxx_messageInfo_SetFriendRemarkReq proto.InternalMessageInfo
func (m *SetFriendRemarkReq) GetOwnerUserID() string {
2 years ago
if m != nil {
return m.OwnerUserID
}
2 years ago
return ""
}
func (m *SetFriendRemarkReq) GetFriendUserID() string {
2 years ago
if m != nil {
return m.FriendUserID
2 years ago
}
return ""
}
2 years ago
func (m *SetFriendRemarkReq) GetRemark() string {
if m != nil {
return m.Remark
}
return ""
}
3 years ago
type SetFriendRemarkResp struct {
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
2 years ago
func (m *SetFriendRemarkResp) Reset() { *m = SetFriendRemarkResp{} }
func (m *SetFriendRemarkResp) String() string { return proto.CompactTextString(m) }
func (*SetFriendRemarkResp) ProtoMessage() {}
func (*SetFriendRemarkResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{25}
3 years ago
}
2 years ago
func (m *SetFriendRemarkResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetFriendRemarkResp.Unmarshal(m, b)
3 years ago
}
2 years ago
func (m *SetFriendRemarkResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetFriendRemarkResp.Marshal(b, m, deterministic)
3 years ago
}
2 years ago
func (dst *SetFriendRemarkResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetFriendRemarkResp.Merge(dst, src)
}
func (m *SetFriendRemarkResp) XXX_Size() int {
return xxx_messageInfo_SetFriendRemarkResp.Size(m)
}
func (m *SetFriendRemarkResp) XXX_DiscardUnknown() {
xxx_messageInfo_SetFriendRemarkResp.DiscardUnknown(m)
2 years ago
}
3 years ago
2 years ago
var xxx_messageInfo_SetFriendRemarkResp proto.InternalMessageInfo
type GetFromFriendsApplyReq struct {
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=pagination" json:"pagination,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
func (m *GetFromFriendsApplyReq) Reset() { *m = GetFromFriendsApplyReq{} }
func (m *GetFromFriendsApplyReq) String() string { return proto.CompactTextString(m) }
func (*GetFromFriendsApplyReq) ProtoMessage() {}
func (*GetFromFriendsApplyReq) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{26}
3 years ago
}
func (m *GetFromFriendsApplyReq) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFromFriendsApplyReq.Unmarshal(m, b)
3 years ago
}
func (m *GetFromFriendsApplyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFromFriendsApplyReq.Marshal(b, m, deterministic)
3 years ago
}
func (dst *GetFromFriendsApplyReq) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFromFriendsApplyReq.Merge(dst, src)
2 years ago
}
func (m *GetFromFriendsApplyReq) XXX_Size() int {
return xxx_messageInfo_GetFromFriendsApplyReq.Size(m)
2 years ago
}
func (m *GetFromFriendsApplyReq) XXX_DiscardUnknown() {
xxx_messageInfo_GetFromFriendsApplyReq.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetFromFriendsApplyReq proto.InternalMessageInfo
3 years ago
func (m *GetFromFriendsApplyReq) GetUserID() string {
2 years ago
if m != nil {
return m.UserID
3 years ago
}
2 years ago
return ""
}
func (m *GetFromFriendsApplyReq) GetPagination() *sdk_ws.RequestPagination {
2 years ago
if m != nil {
return m.Pagination
2 years ago
}
return nil
3 years ago
}
type GetFromFriendsApplyResp struct {
FriendRequests []*sdk_ws.FriendRequest `protobuf:"bytes,1,rep,name=friendRequests" json:"friendRequests,omitempty"`
Total int32 `protobuf:"varint,2,opt,name=total" json:"total,omitempty"`
2 years ago
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
3 years ago
}
2 years ago
func (m *GetFromFriendsApplyResp) Reset() { *m = GetFromFriendsApplyResp{} }
func (m *GetFromFriendsApplyResp) String() string { return proto.CompactTextString(m) }
func (*GetFromFriendsApplyResp) ProtoMessage() {}
func (*GetFromFriendsApplyResp) Descriptor() ([]byte, []int) {
return fileDescriptor_friend_fcfb8eb4800a740c, []int{27}
3 years ago
}
func (m *GetFromFriendsApplyResp) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetFromFriendsApplyResp.Unmarshal(m, b)
3 years ago
}
func (m *GetFromFriendsApplyResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetFromFriendsApplyResp.Marshal(b, m, deterministic)
3 years ago
}
func (dst *GetFromFriendsApplyResp) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetFromFriendsApplyResp.Merge(dst, src)
2 years ago
}
func (m *GetFromFriendsApplyResp) XXX_Size() int {
return xxx_messageInfo_GetFromFriendsApplyResp.Size(m)
2 years ago
}
func (m *GetFromFriendsApplyResp) XXX_DiscardUnknown() {
xxx_messageInfo_GetFromFriendsApplyResp.DiscardUnknown(m)
2 years ago
}
var xxx_messageInfo_GetFromFriendsApplyResp proto.InternalMessageInfo
3 years ago
func (m *GetFromFriendsApplyResp) GetFriendRequests() []*sdk_ws.FriendRequest {
2 years ago
if m != nil {
return m.FriendRequests
3 years ago
}
return nil
}
func (m *GetFromFriendsApplyResp) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
2 years ago
func init() {
proto.RegisterType((*GetFriendsInfoReq)(nil), "friend.getFriendsInfoReq")
proto.RegisterType((*GetFriendsInfoResp)(nil), "friend.getFriendsInfoResp")
proto.RegisterType((*AddFriendReq)(nil), "friend.addFriendReq")
proto.RegisterType((*AddFriendResp)(nil), "friend.addFriendResp")
proto.RegisterType((*ImportFriendReq)(nil), "friend.importFriendReq")
proto.RegisterType((*ImportFriendResp)(nil), "friend.importFriendResp")
proto.RegisterType((*GetToFriendsApplyReq)(nil), "friend.getToFriendsApplyReq")
proto.RegisterType((*GetToFriendsApplyResp)(nil), "friend.getToFriendsApplyResp")
proto.RegisterType((*GetFriendsReq)(nil), "friend.getFriendsReq")
proto.RegisterType((*GetFriendsResp)(nil), "friend.getFriendsResp")
proto.RegisterType((*AddBlackReq)(nil), "friend.addBlackReq")
proto.RegisterType((*AddBlackResp)(nil), "friend.addBlackResp")
proto.RegisterType((*RemoveBlackReq)(nil), "friend.removeBlackReq")
proto.RegisterType((*RemoveBlackReqResp)(nil), "friend.removeBlackReqResp")
proto.RegisterType((*GetBlacksReq)(nil), "friend.getBlacksReq")
proto.RegisterType((*GetBlacksResp)(nil), "friend.getBlacksResp")
proto.RegisterType((*IsFriendReq)(nil), "friend.isFriendReq")
proto.RegisterType((*IsFriendResp)(nil), "friend.isFriendResp")
proto.RegisterType((*IsBlackReq)(nil), "friend.isBlackReq")
proto.RegisterType((*IsBlackResp)(nil), "friend.isBlackResp")
proto.RegisterType((*DeleteFriendReq)(nil), "friend.deleteFriendReq")
proto.RegisterType((*DeleteFriendResp)(nil), "friend.deleteFriendResp")
proto.RegisterType((*RespondFriendApplyReq)(nil), "friend.respondFriendApplyReq")
proto.RegisterType((*RespondFriendApplyResp)(nil), "friend.respondFriendApplyResp")
proto.RegisterType((*SetFriendRemarkReq)(nil), "friend.setFriendRemarkReq")
proto.RegisterType((*SetFriendRemarkResp)(nil), "friend.setFriendRemarkResp")
proto.RegisterType((*GetFromFriendsApplyReq)(nil), "friend.getFromFriendsApplyReq")
proto.RegisterType((*GetFromFriendsApplyResp)(nil), "friend.getFromFriendsApplyResp")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
2 years ago
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.
2 years ago
const _ = grpc.SupportPackageIsVersion4
// Client API for Friend service
type FriendClient interface {
// 申请加好友
3 years ago
AddFriend(ctx context.Context, in *AddFriendReq, opts ...grpc.CallOption) (*AddFriendResp, error)
// 获取收到的好友申请列表
GetToFriendsApply(ctx context.Context, in *GetToFriendsApplyReq, opts ...grpc.CallOption) (*GetToFriendsApplyResp, error)
// 获取主动发出去的好友申请列表
GetFromFriendsApply(ctx context.Context, in *GetFromFriendsApplyReq, opts ...grpc.CallOption) (*GetFromFriendsApplyResp, error)
// 获取好友列表
GetFriends(ctx context.Context, in *GetFriendsReq, opts ...grpc.CallOption) (*GetFriendsResp, error)
// 添加黑名单
AddBlack(ctx context.Context, in *AddBlackReq, opts ...grpc.CallOption) (*AddBlackResp, error)
// 移除黑名单
RemoveBlack(ctx context.Context, in *RemoveBlackReq, opts ...grpc.CallOption) (*RemoveBlackReqResp, error)
// 判断是否好友关系
3 years ago
IsFriend(ctx context.Context, in *IsFriendReq, opts ...grpc.CallOption) (*IsFriendResp, error)
// 判断是否在黑名单中
IsBlack(ctx context.Context, in *IsBlackReq, opts ...grpc.CallOption) (*IsBlackResp, error)
// 获取黑名单列表
GetBlacks(ctx context.Context, in *GetBlacksReq, opts ...grpc.CallOption) (*GetBlacksResp, error)
// 删除好友
3 years ago
DeleteFriend(ctx context.Context, in *DeleteFriendReq, opts ...grpc.CallOption) (*DeleteFriendResp, error)
// 对好友申请响应(同意或拒绝)
RespondFriendApply(ctx context.Context, in *RespondFriendApplyReq, opts ...grpc.CallOption) (*RespondFriendApplyResp, error)
// 设置好友备注
3 years ago
SetFriendRemark(ctx context.Context, in *SetFriendRemarkReq, opts ...grpc.CallOption) (*SetFriendRemarkResp, error)
// 导入好友关系
ImportFriends(ctx context.Context, in *ImportFriendReq, opts ...grpc.CallOption) (*ImportFriendResp, error)
// 获取指定好友信息
GetFriendsInfo(ctx context.Context, in *GetFriendsInfoReq, opts ...grpc.CallOption) (*GetFriendsInfoResp, error)
}
type friendClient struct {
2 years ago
cc *grpc.ClientConn
}
2 years ago
func NewFriendClient(cc *grpc.ClientConn) FriendClient {
return &friendClient{cc}
}
3 years ago
func (c *friendClient) AddFriend(ctx context.Context, in *AddFriendReq, opts ...grpc.CallOption) (*AddFriendResp, error) {
out := new(AddFriendResp)
2 years ago
err := grpc.Invoke(ctx, "/friend.friend/addFriend", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) GetToFriendsApply(ctx context.Context, in *GetToFriendsApplyReq, opts ...grpc.CallOption) (*GetToFriendsApplyResp, error) {
out := new(GetToFriendsApplyResp)
err := grpc.Invoke(ctx, "/friend.friend/getToFriendsApply", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) GetFromFriendsApply(ctx context.Context, in *GetFromFriendsApplyReq, opts ...grpc.CallOption) (*GetFromFriendsApplyResp, error) {
out := new(GetFromFriendsApplyResp)
err := grpc.Invoke(ctx, "/friend.friend/getFromFriendsApply", in, out, c.cc, opts...)
3 years ago
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) GetFriends(ctx context.Context, in *GetFriendsReq, opts ...grpc.CallOption) (*GetFriendsResp, error) {
out := new(GetFriendsResp)
err := grpc.Invoke(ctx, "/friend.friend/getFriends", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) AddBlack(ctx context.Context, in *AddBlackReq, opts ...grpc.CallOption) (*AddBlackResp, error) {
out := new(AddBlackResp)
err := grpc.Invoke(ctx, "/friend.friend/addBlack", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) RemoveBlack(ctx context.Context, in *RemoveBlackReq, opts ...grpc.CallOption) (*RemoveBlackReqResp, error) {
out := new(RemoveBlackReqResp)
err := grpc.Invoke(ctx, "/friend.friend/removeBlack", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
3 years ago
func (c *friendClient) IsFriend(ctx context.Context, in *IsFriendReq, opts ...grpc.CallOption) (*IsFriendResp, error) {
out := new(IsFriendResp)
2 years ago
err := grpc.Invoke(ctx, "/friend.friend/isFriend", in, out, c.cc, opts...)
3 years ago
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) IsBlack(ctx context.Context, in *IsBlackReq, opts ...grpc.CallOption) (*IsBlackResp, error) {
out := new(IsBlackResp)
err := grpc.Invoke(ctx, "/friend.friend/isBlack", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) GetBlacks(ctx context.Context, in *GetBlacksReq, opts ...grpc.CallOption) (*GetBlacksResp, error) {
out := new(GetBlacksResp)
err := grpc.Invoke(ctx, "/friend.friend/getBlacks", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
3 years ago
func (c *friendClient) DeleteFriend(ctx context.Context, in *DeleteFriendReq, opts ...grpc.CallOption) (*DeleteFriendResp, error) {
out := new(DeleteFriendResp)
2 years ago
err := grpc.Invoke(ctx, "/friend.friend/deleteFriend", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) RespondFriendApply(ctx context.Context, in *RespondFriendApplyReq, opts ...grpc.CallOption) (*RespondFriendApplyResp, error) {
out := new(RespondFriendApplyResp)
err := grpc.Invoke(ctx, "/friend.friend/respondFriendApply", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
3 years ago
func (c *friendClient) SetFriendRemark(ctx context.Context, in *SetFriendRemarkReq, opts ...grpc.CallOption) (*SetFriendRemarkResp, error) {
3 years ago
out := new(SetFriendRemarkResp)
2 years ago
err := grpc.Invoke(ctx, "/friend.friend/setFriendRemark", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) ImportFriends(ctx context.Context, in *ImportFriendReq, opts ...grpc.CallOption) (*ImportFriendResp, error) {
out := new(ImportFriendResp)
err := grpc.Invoke(ctx, "/friend.friend/importFriends", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *friendClient) GetFriendsInfo(ctx context.Context, in *GetFriendsInfoReq, opts ...grpc.CallOption) (*GetFriendsInfoResp, error) {
out := new(GetFriendsInfoResp)
err := grpc.Invoke(ctx, "/friend.friend/getFriendsInfo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
2 years ago
// Server API for Friend service
type FriendServer interface {
// 申请加好友
3 years ago
AddFriend(context.Context, *AddFriendReq) (*AddFriendResp, error)
// 获取收到的好友申请列表
GetToFriendsApply(context.Context, *GetToFriendsApplyReq) (*GetToFriendsApplyResp, error)
// 获取主动发出去的好友申请列表
GetFromFriendsApply(context.Context, *GetFromFriendsApplyReq) (*GetFromFriendsApplyResp, error)
// 获取好友列表
GetFriends(context.Context, *GetFriendsReq) (*GetFriendsResp, error)
// 添加黑名单
AddBlack(context.Context, *AddBlackReq) (*AddBlackResp, error)
// 移除黑名单
RemoveBlack(context.Context, *RemoveBlackReq) (*RemoveBlackReqResp, error)
// 判断是否好友关系
3 years ago
IsFriend(context.Context, *IsFriendReq) (*IsFriendResp, error)
// 判断是否在黑名单中
IsBlack(context.Context, *IsBlackReq) (*IsBlackResp, error)
// 获取黑名单列表
GetBlacks(context.Context, *GetBlacksReq) (*GetBlacksResp, error)
// 删除好友
3 years ago
DeleteFriend(context.Context, *DeleteFriendReq) (*DeleteFriendResp, error)
// 对好友申请响应(同意或拒绝)
RespondFriendApply(context.Context, *RespondFriendApplyReq) (*RespondFriendApplyResp, error)
// 设置好友备注
3 years ago
SetFriendRemark(context.Context, *SetFriendRemarkReq) (*SetFriendRemarkResp, error)
// 导入好友关系
ImportFriends(context.Context, *ImportFriendReq) (*ImportFriendResp, error)
// 获取指定好友信息
GetFriendsInfo(context.Context, *GetFriendsInfoReq) (*GetFriendsInfoResp, error)
}
func RegisterFriendServer(s *grpc.Server, srv FriendServer) {
s.RegisterService(&_Friend_serviceDesc, srv)
}
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_GetToFriendsApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetToFriendsApplyReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).GetToFriendsApply(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/GetToFriendsApply",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).GetToFriendsApply(ctx, req.(*GetToFriendsApplyReq))
}
return interceptor(ctx, in, info, handler)
}
func _Friend_GetFromFriendsApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFromFriendsApplyReq)
3 years ago
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).GetFromFriendsApply(ctx, in)
3 years ago
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/GetFromFriendsApply",
3 years ago
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).GetFromFriendsApply(ctx, req.(*GetFromFriendsApplyReq))
3 years ago
}
return interceptor(ctx, in, info, handler)
}
func _Friend_GetFriends_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFriendsReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).GetFriends(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/GetFriends",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).GetFriends(ctx, req.(*GetFriendsReq))
}
return interceptor(ctx, in, info, handler)
}
func _Friend_AddBlack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddBlackReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).AddBlack(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/AddBlack",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).AddBlack(ctx, req.(*AddBlackReq))
}
return interceptor(ctx, in, info, handler)
}
func _Friend_RemoveBlack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RemoveBlackReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).RemoveBlack(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/RemoveBlack",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).RemoveBlack(ctx, req.(*RemoveBlackReq))
}
return interceptor(ctx, in, info, handler)
}
3 years ago
func _Friend_IsFriend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsFriendReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).IsFriend(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/IsFriend",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).IsFriend(ctx, req.(*IsFriendReq))
}
return interceptor(ctx, in, info, handler)
}
func _Friend_IsBlack_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(IsBlackReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).IsBlack(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/IsBlack",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).IsBlack(ctx, req.(*IsBlackReq))
}
return interceptor(ctx, in, info, handler)
}
func _Friend_GetBlacks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetBlacksReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).GetBlacks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/GetBlacks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).GetBlacks(ctx, req.(*GetBlacksReq))
}
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_RespondFriendApply_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RespondFriendApplyReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).RespondFriendApply(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/RespondFriendApply",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).RespondFriendApply(ctx, req.(*RespondFriendApplyReq))
}
return interceptor(ctx, in, info, handler)
}
3 years ago
func _Friend_SetFriendRemark_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
3 years ago
in := new(SetFriendRemarkReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
3 years ago
return srv.(FriendServer).SetFriendRemark(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
3 years ago
FullMethod: "/friend.friend/SetFriendRemark",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3 years ago
return srv.(FriendServer).SetFriendRemark(ctx, req.(*SetFriendRemarkReq))
}
return interceptor(ctx, in, info, handler)
}
func _Friend_ImportFriends_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ImportFriendReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).ImportFriends(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/ImportFriends",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).ImportFriends(ctx, req.(*ImportFriendReq))
}
return interceptor(ctx, in, info, handler)
}
func _Friend_GetFriendsInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetFriendsInfoReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FriendServer).GetFriendsInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/friend.friend/GetFriendsInfo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FriendServer).GetFriendsInfo(ctx, req.(*GetFriendsInfoReq))
}
return interceptor(ctx, in, info, handler)
}
var _Friend_serviceDesc = grpc.ServiceDesc{
ServiceName: "friend.friend",
HandlerType: (*FriendServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "addFriend",
Handler: _Friend_AddFriend_Handler,
},
{
MethodName: "getToFriendsApply",
Handler: _Friend_GetToFriendsApply_Handler,
},
3 years ago
{
MethodName: "getFromFriendsApply",
Handler: _Friend_GetFromFriendsApply_Handler,
3 years ago
},
{
MethodName: "getFriends",
Handler: _Friend_GetFriends_Handler,
},
{
MethodName: "addBlack",
Handler: _Friend_AddBlack_Handler,
},
{
MethodName: "removeBlack",
Handler: _Friend_RemoveBlack_Handler,
},
3 years ago
{
MethodName: "isFriend",
Handler: _Friend_IsFriend_Handler,
},
{
MethodName: "isBlack",
Handler: _Friend_IsBlack_Handler,
},
{
MethodName: "getBlacks",
Handler: _Friend_GetBlacks_Handler,
},
{
MethodName: "deleteFriend",
Handler: _Friend_DeleteFriend_Handler,
},
{
MethodName: "respondFriendApply",
Handler: _Friend_RespondFriendApply_Handler,
},
{
3 years ago
MethodName: "setFriendRemark",
Handler: _Friend_SetFriendRemark_Handler,
},
{
MethodName: "importFriends",
Handler: _Friend_ImportFriends_Handler,
},
{
MethodName: "getFriendsInfo",
Handler: _Friend_GetFriendsInfo_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "friend/friend.proto",
}
2 years ago
func init() { proto.RegisterFile("friend/friend.proto", fileDescriptor_friend_fcfb8eb4800a740c) }
var fileDescriptor_friend_fcfb8eb4800a740c = []byte{
// 917 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00,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