friend

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AddFriendType_name = map[int32]string{
		0: "NormalAdd",
		1: "LetterAdd",
	}
	AddFriendType_value = map[string]int32{
		"NormalAdd": 0,
		"LetterAdd": 1,
	}
)

Enum value maps for AddFriendType.

View Source
var (
	DegreeMethod_name = map[int32]string{
		0: "Other",
		1: "PrivateChat",
		2: "GiftGiveMethod",
	}
	DegreeMethod_value = map[string]int32{
		"Other":          0,
		"PrivateChat":    1,
		"GiftGiveMethod": 2,
	}
)

Enum value maps for DegreeMethod.

View Source
var File_friend_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddFriendType

type AddFriendType int32

加好友的途径

const (
	AddFriendType_NormalAdd AddFriendType = 0 //普通加好友
	AddFriendType_LetterAdd AddFriendType = 1 //留言板加好友
)

func (AddFriendType) Descriptor

func (AddFriendType) Enum

func (x AddFriendType) Enum() *AddFriendType

func (AddFriendType) EnumDescriptor deprecated

func (AddFriendType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AddFriendType.Descriptor instead.

func (AddFriendType) Number

func (AddFriendType) String

func (x AddFriendType) String() string

func (AddFriendType) Type

type DegreeMethod

type DegreeMethod int32
const (
	DegreeMethod_Other          DegreeMethod = 0
	DegreeMethod_PrivateChat    DegreeMethod = 1
	DegreeMethod_GiftGiveMethod DegreeMethod = 2
)

func (DegreeMethod) Descriptor

func (DegreeMethod) Enum

func (x DegreeMethod) Enum() *DegreeMethod

func (DegreeMethod) EnumDescriptor deprecated

func (DegreeMethod) EnumDescriptor() ([]byte, []int)

Deprecated: Use DegreeMethod.Descriptor instead.

func (DegreeMethod) Number

func (DegreeMethod) String

func (x DegreeMethod) String() string

func (DegreeMethod) Type

type FriendBaseInfo

type FriendBaseInfo struct {
	PlayerId     uint64        `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"`                          // 玩家ID
	Name         string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                   // 昵称
	IsOnline     bool          `protobuf:"varint,3,opt,name=isOnline,proto3" json:"isOnline,omitempty"`                          // 是否在线
	Frame        uint32        `protobuf:"varint,4,opt,name=frame,proto3" json:"frame,omitempty"`                                // 相框
	Head         uint32        `protobuf:"varint,5,opt,name=head,proto3" json:"head,omitempty"`                                  // 头像
	Model        uint32        `protobuf:"varint,6,opt,name=model,proto3" json:"model,omitempty"`                                // 模型
	Tag          string        `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"`                                     // 备注
	Offline      int64         `protobuf:"varint,8,opt,name=offline,proto3" json:"offline,omitempty"`                            // 离线时间
	FriendDegree int32         `protobuf:"varint,9,opt,name=friendDegree,proto3" json:"friendDegree,omitempty"`                  // 好友度
	AddType      AddFriendType `protobuf:"varint,10,opt,name=addType,proto3,enum=friend.AddFriendType" json:"addType,omitempty"` // 加好友的途径
	BaseLevel    int32         `protobuf:"varint,11,opt,name=baseLevel,proto3" json:"baseLevel,omitempty"`                       // 角色等级
	// contains filtered or unexported fields
}

func (*FriendBaseInfo) Descriptor deprecated

func (*FriendBaseInfo) Descriptor() ([]byte, []int)

Deprecated: Use FriendBaseInfo.ProtoReflect.Descriptor instead.

func (*FriendBaseInfo) GetAddType

func (x *FriendBaseInfo) GetAddType() AddFriendType

func (*FriendBaseInfo) GetBaseLevel

func (x *FriendBaseInfo) GetBaseLevel() int32

func (*FriendBaseInfo) GetFrame

func (x *FriendBaseInfo) GetFrame() uint32

func (*FriendBaseInfo) GetFriendDegree

func (x *FriendBaseInfo) GetFriendDegree() int32

func (*FriendBaseInfo) GetHead

func (x *FriendBaseInfo) GetHead() uint32

func (*FriendBaseInfo) GetIsOnline

func (x *FriendBaseInfo) GetIsOnline() bool

func (*FriendBaseInfo) GetModel

func (x *FriendBaseInfo) GetModel() uint32

func (*FriendBaseInfo) GetName

func (x *FriendBaseInfo) GetName() string

func (*FriendBaseInfo) GetOffline

func (x *FriendBaseInfo) GetOffline() int64

func (*FriendBaseInfo) GetPlayerId

func (x *FriendBaseInfo) GetPlayerId() uint64

func (*FriendBaseInfo) GetTag

func (x *FriendBaseInfo) GetTag() string

func (*FriendBaseInfo) ProtoMessage

func (*FriendBaseInfo) ProtoMessage()

func (*FriendBaseInfo) ProtoReflect

func (x *FriendBaseInfo) ProtoReflect() protoreflect.Message

func (*FriendBaseInfo) Reset

func (x *FriendBaseInfo) Reset()

func (*FriendBaseInfo) String

func (x *FriendBaseInfo) String() string

func (*FriendBaseInfo) Validate

func (m *FriendBaseInfo) Validate() error

Validate checks the field values on FriendBaseInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type FriendBaseInfoValidationError

type FriendBaseInfoValidationError struct {
	// contains filtered or unexported fields
}

FriendBaseInfoValidationError is the validation error returned by FriendBaseInfo.Validate if the designated constraints aren't met.

func (FriendBaseInfoValidationError) Cause

Cause function returns cause value.

func (FriendBaseInfoValidationError) Error

Error satisfies the builtin error interface

func (FriendBaseInfoValidationError) ErrorName

func (e FriendBaseInfoValidationError) ErrorName() string

ErrorName returns error name.

func (FriendBaseInfoValidationError) Field

Field function returns field value.

func (FriendBaseInfoValidationError) Key

Key function returns key value.

func (FriendBaseInfoValidationError) Reason

Reason function returns reason value.

type RadarSearchPlayerInfo

type RadarSearchPlayerInfo struct {
	Distance    float32 `protobuf:"fixed32,1,opt,name=distance,proto3" json:"distance,omitempty"`
	PlayerId    uint64  `protobuf:"varint,2,opt,name=playerId,proto3" json:"playerId,omitempty"`
	BubbleFrame uint32  `protobuf:"varint,3,opt,name=bubbleFrame,proto3" json:"bubbleFrame,omitempty"` // 气泡框
	Head        uint32  `protobuf:"varint,4,opt,name=head,proto3" json:"head,omitempty"`               // 头像
	HeadFrame   uint32  `protobuf:"varint,5,opt,name=headFrame,proto3" json:"headFrame,omitempty"`     // 头像框
	NickName    string  `protobuf:"bytes,6,opt,name=nickName,proto3" json:"nickName,omitempty"`        // 昵称
	// contains filtered or unexported fields
}

func (*RadarSearchPlayerInfo) Descriptor deprecated

func (*RadarSearchPlayerInfo) Descriptor() ([]byte, []int)

Deprecated: Use RadarSearchPlayerInfo.ProtoReflect.Descriptor instead.

func (*RadarSearchPlayerInfo) GetBubbleFrame

func (x *RadarSearchPlayerInfo) GetBubbleFrame() uint32

func (*RadarSearchPlayerInfo) GetDistance

func (x *RadarSearchPlayerInfo) GetDistance() float32

func (*RadarSearchPlayerInfo) GetHead

func (x *RadarSearchPlayerInfo) GetHead() uint32

func (*RadarSearchPlayerInfo) GetHeadFrame

func (x *RadarSearchPlayerInfo) GetHeadFrame() uint32

func (*RadarSearchPlayerInfo) GetNickName

func (x *RadarSearchPlayerInfo) GetNickName() string

func (*RadarSearchPlayerInfo) GetPlayerId

func (x *RadarSearchPlayerInfo) GetPlayerId() uint64

func (*RadarSearchPlayerInfo) ProtoMessage

func (*RadarSearchPlayerInfo) ProtoMessage()

func (*RadarSearchPlayerInfo) ProtoReflect

func (x *RadarSearchPlayerInfo) ProtoReflect() protoreflect.Message

func (*RadarSearchPlayerInfo) Reset

func (x *RadarSearchPlayerInfo) Reset()

func (*RadarSearchPlayerInfo) String

func (x *RadarSearchPlayerInfo) String() string

func (*RadarSearchPlayerInfo) Validate

func (m *RadarSearchPlayerInfo) Validate() error

Validate checks the field values on RadarSearchPlayerInfo with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type RadarSearchPlayerInfoValidationError

type RadarSearchPlayerInfoValidationError struct {
	// contains filtered or unexported fields
}

RadarSearchPlayerInfoValidationError is the validation error returned by RadarSearchPlayerInfo.Validate if the designated constraints aren't met.

func (RadarSearchPlayerInfoValidationError) Cause

Cause function returns cause value.

func (RadarSearchPlayerInfoValidationError) Error

Error satisfies the builtin error interface

func (RadarSearchPlayerInfoValidationError) ErrorName

ErrorName returns error name.

func (RadarSearchPlayerInfoValidationError) Field

Field function returns field value.

func (RadarSearchPlayerInfoValidationError) Key

Key function returns key value.

func (RadarSearchPlayerInfoValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL