Documentation
      ¶
    
    
  
    
  
    Index ¶
- func GroupAvatar(groupUin uint32) string
 - func UserAvatar(uin uint32) string
 - type AiCharacter
 - type AiCharacterInfo
 - type AiCharacterList
 - type ChatType
 - type CurrentTalkative
 - type EventState
 - type EventType
 - 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 User
 - type UserJoinGroupRequest
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupAvatar ¶
func UserAvatar ¶ added in v0.1.2
Types ¶
type AiCharacter ¶ added in v0.1.3
type AiCharacterInfo ¶ added in v0.1.3
type AiCharacterInfo struct {
	Type       string        `json:"type"`
	Characters []AiCharacter `json:"characters"`
}
    type AiCharacterList ¶ added in v0.1.3
type AiCharacterList struct {
	Type ChatType          `json:"type"`
	List []AiCharacterInfo `json:"chats"`
}
    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 EventState ¶
type EventState uint32
const ( /* 1:未处理 2:已同意 3:已拒绝 4:已忽略 5:已处理 */ NoNeed EventState = iota Unprocessed Processed )
type EventType ¶
type EventType uint32
const ( /* 1: “用户昵称”申请加入“群名称”群。 2: “用户昵称”邀请您加入“群名称”群。 3:成为管理员,通知全员。 6:UIN被T 出群,通知管理员。 7:UIN被T 出群,通知UIN。 10: 您的好友“用户昵称”拒绝加入“群名称”群。拒绝理由:XXX 11: “群名称”群管理员“用户昵称”拒绝了您的加群请求。拒绝理由:XXX 12: 您的好友“用户昵称”已经同意加入“群名称”群。 13:UIN退群,通知管理员。 15:管理员身份被取消,通知被取消人。 16:管理员身份被取消,通知其他管理员。 20(同2,已废弃): 您的好友“用户昵称”邀请您加入“群名称”群。 21(同12,已废弃): 您的好友“用户昵称”已经同意加入“群名称”群。附加信息:正在等待管理员验证。 22: “用户昵称”申请加入“群名称”群。附加信息:来自群成员XXX的邀请。 23(同10,已废弃): 您的好友“用户昵称”拒绝加入“群名称”群。拒绝理由:XXX。 35: 群“群名称”管理员已同意您的加群申请 */ // 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 Group ¶
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     `json:"group_id"`
	GroupName   string     `json:"group_name"`
	InvitorNick string     `json:"invitor_nick"`
	InvitorUin  uint32     `json:"invitor_uin"`
	InvitorUID  string     `json:"-"`
	Sequence    uint64     `json:"request_id"`
	Checked     bool       `json:"checked"`
	State       EventState `json:"-"`
	EventType   EventType  `json:"-"`
	IsFiltered  bool       `json:"is_filtered"`
}
    type GroupMember ¶
type GroupMember struct {
	User
	Permission   GroupMemberPermission
	GroupLevel   uint32
	MemberCard   string
	SpecialTitle string
	JoinTime     uint32
	LastMsgTime  uint32
	ShutUpTime   uint32
}
    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"`
}
    type GroupNoticeRsp ¶
type GroupNoticeRsp struct {
	Feeds []*GroupNoticeFeed `json:"feeds"`
	Inst  []*GroupNoticeFeed `json:"inst"`
}
    type GroupSystemMessages ¶
type GroupSystemMessages struct {
	InvitedRequests []*GroupInvitedRequest  `json:"invited_requests"`
	JoinRequests    []*UserJoinGroupRequest `json:"join_requests"`
}
    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 NoticeImage ¶
type NoticePicUpResponse ¶
type NoticeSendResp ¶
type NoticeSendResp struct {
	NoticeID string `json:"new_fid"`
}
    type UserJoinGroupRequest ¶
type UserJoinGroupRequest struct {
	GroupName   string     `json:"group_name"`
	GroupUin    uint32     `json:"group_id"`
	InvitorUin  uint32     `json:"invitor_uin"`
	InvitorUID  string     `json:"-"`
	TargetNick  string     `json:"requester_nick"`
	TargetUin   uint32     `json:"requester_uin"`
	TargetUID   string     `json:"-"`
	OperatorUin uint32     `json:"actor"`
	OperatorUID string     `json:"-"`
	Sequence    uint64     `json:"request_id"`
	Checked     bool       `json:"checked"`
	State       EventState `json:"-"`
	EventType   EventType  `json:"-"`
	Comment     string     `json:"message"`
	IsFiltered  bool       `json:"is_filtered"`
}
     Click to show internal directories. 
   Click to hide internal directories.