entity

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: AGPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FriendAvatar

func FriendAvatar(uin uint32) string

func GroupAvatar

func GroupAvatar(groupUin uint32, groupName string) string

Types

type EventState added in v0.0.13

type EventState uint32
const (
	NoNeed EventState = iota
	Unprocessed
	Processed
)

type Friend

type Friend struct {
	Uin          uint32
	Uid          string
	Nickname     string
	Remarks      string
	PersonalSign string
	Avatar       string
}

type Group

type Group struct {
	GroupUin    uint32
	GroupName   string
	MemberCount uint32
	MaxMember   uint32
	Avatar      string
}

type GroupFile added in v0.0.19

type GroupFile struct {
	GroupUin      uint32
	FileId        string
	FileName      string
	BusId         uint32
	FileSize      uint64
	UploadTime    uint32
	DeadTime      uint32
	ModifyTime    uint32
	DownloadTimes uint32
	Uploader      uint32
	UploaderName  string
}

type GroupFileSystemInfo added in v0.0.19

type GroupFileSystemInfo struct {
	GroupUin   uint32
	FileCount  uint32
	LimitCount uint32
	UsedSpace  uint64
	TotalSpace uint64
}

type GroupFolder added in v0.0.19

type GroupFolder struct {
	GroupUin       uint32
	FolderId       string
	FolderName     string
	CreateTime     uint32
	Creator        uint32
	CreatorName    string
	TotalFileCount uint32
}

type GroupJoinRequest added in v0.0.13

type GroupJoinRequest struct {
	GroupUin    uint32
	InvitorUin  uint32
	InvitorUid  string
	TargetUin   uint32
	TargetUid   string
	OperatorUin uint32
	OperatorUid string
	Sequence    uint64
	State       EventState // 0不需要处理 1未处理 2已处理
	EventType   uint32     // 1申请加群 3设置管理员 16取消管理员
	Comment     string
	IsFiltered  bool
}

func (*GroupJoinRequest) Checked added in v0.0.13

func (r *GroupJoinRequest) Checked() bool

type GroupMember

type GroupMember struct {
	Uin         uint32
	Uid         string
	Permission  GroupMemberPermission
	GroupLevel  uint32
	MemberCard  string
	MemberName  string
	JoinTime    uint32
	LastMsgTime uint32
	Avatar      string
}

func (*GroupMember) DisplayName added in v0.0.13

func (m *GroupMember) DisplayName() string

type GroupMemberPermission

type GroupMemberPermission uint32
const (
	Member GroupMemberPermission = iota
	Owner
	Admin
)

type RKeyInfo added in v0.0.25

type RKeyInfo struct {
	RKeyType   RKeyType
	RKey       string
	CreateTime uint64
	ExpireTime uint64
}

type RKeyMap added in v0.0.25

type RKeyMap map[RKeyType]*RKeyInfo

type RKeyType added in v0.0.25

type RKeyType uint32
const (
	FriendRKey RKeyType = 10
	GroupRKey  RKeyType = 20
)

Jump to

Keyboard shortcuts

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