entity

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 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 CurrentTalkative added in v0.0.26

type CurrentTalkative struct {
	Uin      int64  `json:"uin"`
	DayCount int32  `json:"day_count"`
	Avatar   string `json:"avatar"`
	Name     string `json:"nick"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

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 `json:"group_id"`
	FileId        string `json:"file_id"`
	FileName      string `json:"file_name"`
	BusId         uint32 `json:"busid"`
	FileSize      uint64 `json:"file_size"`
	UploadTime    uint32 `json:"upload_time"`
	DeadTime      uint32 `json:"dead_time"`
	ModifyTime    uint32 `json:"modify_time"`
	DownloadTimes uint32 `json:"download_times"`
	Uploader      uint32 `json:"uploader"`
	UploaderName  string `json:"uploader_name"`
}

type GroupFileSystemInfo added in v0.0.19

type GroupFileSystemInfo struct {
	GroupUin   uint32 `json:"group_id"`
	FileCount  uint32 `json:"file_count"`
	LimitCount uint32 `json:"limit_count"`
	UsedSpace  uint64 `json:"used_space"`
	TotalSpace uint64 `json:"total_space"`
}

type GroupFolder added in v0.0.19

type GroupFolder struct {
	GroupUin       uint32 `json:"group_id"`
	FolderId       string `json:"folder_id"`
	FolderName     string `json:"folder_name"`
	CreateTime     uint32 `json:"create_time"`
	Creator        uint32 `json:"creator"`
	CreatorName    string `json:"creator_name"`
	TotalFileCount uint32 `json:"total_file_count"`
}

type GroupHonorInfo added in v0.0.26

type GroupHonorInfo struct {
	GroupCode        string            `json:"gc"`
	Uin              string            `json:"uin"`
	Type             HonorType         `json:"type"`
	TalkativeList    []HonorMemberInfo `json:"talkativeList"`
	CurrentTalkative CurrentTalkative  `json:"currentTalkative"`
	ActorList        []HonorMemberInfo `json:"actorList"`
	LegendList       []HonorMemberInfo `json:"legendList"`
	StrongNewbieList []HonorMemberInfo `json:"strongnewbieList"`
	EmotionList      []HonorMemberInfo `json:"emotionList"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

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
	SpecialTitle string
	JoinTime     uint32
	LastMsgTime  uint32
	ShutUpTime   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 GroupNoticeFeed added in v0.0.26

type GroupNoticeFeed struct {
	NoticeId    string `json:"fid"`
	SenderId    uint32 `json:"u"`
	PublishTime uint64 `json:"pubt"`
	Message     struct {
		Text   string        `json:"text"`
		Images []NoticeImage `json:"pics"`
	} `json:"msg"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

type GroupNoticeRsp added in v0.0.26

type GroupNoticeRsp struct {
	Feeds []*GroupNoticeFeed `json:"feeds"`
	Inst  []*GroupNoticeFeed `json:"inst"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

type HonorMemberInfo added in v0.0.26

type HonorMemberInfo struct {
	Uin    int64  `json:"uin"`
	Avatar string `json:"avatar"`
	Name   string `json:"name"`
	Desc   string `json:"desc"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

type HonorType added in v0.0.26

type HonorType int

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

const (
	Talkative    HonorType = 1 // 龙王
	Performer    HonorType = 2 // 群聊之火
	Legend       HonorType = 3 // 群聊炙焰
	StrongNewbie HonorType = 5 // 冒尖小春笋
	Emotion      HonorType = 6 // 快乐源泉
)

type NoticeImage added in v0.0.26

type NoticeImage struct {
	Height string `json:"h"`
	Width  string `json:"w"`
	ID     string `json:"id"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

type NoticePicUpResponse added in v0.0.26

type NoticePicUpResponse struct {
	ErrorCode    int    `json:"ec"`
	ErrorMessage string `json:"em"`
	ID           string `json:"id"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

type NoticeSendResp added in v0.0.26

type NoticeSendResp struct {
	NoticeId string `json:"new_fid"`
}

reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go

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