qq

package
v0.0.0-...-d64b273 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnonymousData

type AnonymousData struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
	Flag string `json:"flag"`
}

type BasicFriend

type BasicFriend struct {
	BasicUser
	Remark string `json:"remark"`
}

type BasicUser

type BasicUser struct {
	UserId   UserId `json:"user_id"`
	Nickname string `json:"nickname"`
}

func (BasicUser) GetNickname

func (s BasicUser) GetNickname() string

func (BasicUser) GetUserId

func (s BasicUser) GetUserId() UserId

type BasicUserWithAvatar

type BasicUserWithAvatar struct {
	BasicUser
	Avatar string `json:"avatar"`
}

type DetailedGroupUser

type DetailedGroupUser struct {
	GroupUser
	GroupId         GroupId `json:"group_id"`
	JoinTime        int64   `json:"join_time"`
	LastSentTime    int64   `json:"last_sent_time"`
	Unfriendly      bool    `json:"unfriendly"`
	TitleExpireTime int64   `json:"title_expire_time"`
	CardChangeable  bool    `json:"card_changeable"`
}

type Friend

type Friend struct {
	BasicFriend
	Sex Sex   `json:"sex"`
	Age int32 `json:"age"`
}

type Group

type Group struct {
	GroupId        GroupId `json:"group_id"`
	GroupName      string  `json:"group_name"`
	MemberCount    int32   `json:"member_count"`
	MaxMemberCount int32   `json:"max_member_count"`
}

type GroupId

type GroupId int64

func (GroupId) String

func (i GroupId) String() string

type GroupRole

type GroupRole string
const (
	GroupRoleOwner  GroupRole = "owner"
	GroupRoleAdmin  GroupRole = "admin"
	GroupRoleMember GroupRole = "member"
)

type GroupUser

type GroupUser struct {
	User
	Card  string    `json:"card"`
	Area  string    `json:"area"`
	Level string    `json:"level"`
	Role  GroupRole `json:"role"`
	Title string    `json:"title"`
}

type IUser

type IUser interface {
	GetUserId() UserId
	GetNickname() string
}

type MessageId

type MessageId int64

type Sex

type Sex string
const (
	SexMale    Sex = "male"
	SexFemale  Sex = "female"
	SexUnknown Sex = "unknown"
)

type User

type User struct {
	BasicUser
	Sex Sex   `json:"sex"`
	Age int32 `json:"age"`
}

type UserId

type UserId int64

func (UserId) String

func (i UserId) String() string

Jump to

Keyboard shortcuts

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