Documentation
¶
Index ¶
- func FriendAvatar(uin uint32) string
- func GroupAvatar(groupUin uint32, groupName string) string
- type CurrentTalkative
- type EventState
- type EventType
- type Friend
- type Group
- type GroupFile
- type GroupFileSystemInfo
- type GroupFolder
- type GroupHonorInfo
- type GroupInvitedRequest
- type GroupMember
- type GroupMemberPermission
- type GroupNoticeFeed
- type GroupNoticeRsp
- type GroupSystemMessages
- type HonorMemberInfo
- type HonorType
- type NoticeImage
- type NoticePicUpResponse
- type NoticeSendResp
- type RKeyInfo
- type RKeyMap
- type RKeyType
- type UserJoinGroupRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FriendAvatar ¶
func GroupAvatar ¶
Types ¶
type CurrentTalkative ¶
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 EventType ¶
type EventType uint32
const ( // UserJoinRequest 用户申请加群 UserJoinRequest EventType = 1 // GroupInvited 被邀请加群 GroupInvited EventType = 2 // AssignedAsAdmin 被设置为管理员 AssignedAsAdmin EventType = 3 // Kicked 被踢出群聊 Kicked EventType = 7 // RemoveAdmin 被取消管理员 RemoveAdmin EventType = 15 // UserInvited 群员邀请其他人 UserInvited EventType = 22 )
type GroupFile ¶
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 ¶
type GroupFolder ¶
type GroupHonorInfo ¶
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 GroupInvitedRequest ¶
type GroupInvitedRequest struct {
GroupUin uint32
InvitorUin uint32
InvitorUid string
Sequence uint64
State EventState
EventType EventType
IsFiltered bool
}
func (GroupInvitedRequest) Checked ¶
func (r GroupInvitedRequest) 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 ¶
func (m *GroupMember) DisplayName() string
type GroupMemberPermission ¶
type GroupMemberPermission uint32
const ( Member GroupMemberPermission = iota Owner Admin )
type GroupNoticeFeed ¶
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 ¶
type GroupNoticeRsp struct {
Feeds []*GroupNoticeFeed `json:"feeds"`
Inst []*GroupNoticeFeed `json:"inst"`
}
reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go
type GroupSystemMessages ¶
type GroupSystemMessages struct {
InvitedRequests []*GroupInvitedRequest
JoinRequests []*UserJoinGroupRequest
}
type HonorMemberInfo ¶
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 ¶
type HonorType int
reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go
type NoticePicUpResponse ¶
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 ¶
type NoticeSendResp struct {
NoticeId string `json:"new_fid"`
}
reference https://github.com/Mrs4s/MiraiGo/blob/master/client/http_api.go
type UserJoinGroupRequest ¶
type UserJoinGroupRequest struct {
GroupUin uint32
InvitorUin uint32
InvitorUid string
TargetUin uint32
TargetUid string
OperatorUin uint32
OperatorUid string
Sequence uint64
State EventState
EventType EventType
Comment string
IsFiltered bool
}
func (*UserJoinGroupRequest) Checked ¶
func (r *UserJoinGroupRequest) Checked() bool
Click to show internal directories.
Click to hide internal directories.