entity

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 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 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
}

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
)

Jump to

Keyboard shortcuts

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