Documentation ¶
Index ¶
- type AccountFriendInfo
- type AccountInfo
- type ApplicationInfo
- type BriefMsgInfo
- type CreateAccount
- type CreateFileMsg
- type CreateGroup
- type DeleteFile
- type DissolveGroup
- type ExistEmail
- type FeedMsgsByAccountIDAndTime
- type File
- type GetAccountByID
- type GetAccountToken
- type GetAccountsByName
- type GetAccountsByUserID
- type GetFriends
- type GetFriendsByName
- type GetGroup
- type GetGroupMembers
- type GetMsgsByContent
- type GetMsgsByRelationIDAndTime
- type GetNotify
- type GetPinMsgsByRelationID
- type GetPins
- type GetRelationFile
- type GetRlyMsgsInfoByMsgID
- type GetShows
- type GetTopMsgByRelationID
- type GroupNotify
- type InviteAccount
- type ListApplications
- type Login
- type MsgInfo
- type MsgInfoWithRly
- type MsgInfoWithRlyAndHasRead
- type Notify
- type PublishFile
- type QuitGroup
- type Register
- type RlyMsg
- type TransferGroup
- type UpdateGroup
- type UpdateNotify
- type UploadAvatar
- type UserInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountFriendInfo ¶
type AccountFriendInfo struct { AccountInfo RelationID int64 `json:"relation_id"` // 好友关系ID,0表示没有好友关系 }
type AccountInfo ¶
type ApplicationInfo ¶
type ApplicationInfo struct { Account1ID int64 `json:"account1_id"` // 申请者账号ID Account2ID int64 `json:"account2_id"` // 目标账号ID ApplyMsg string `json:"apply_msg"` // 申请信息 RefuseMsg string `json:"refuse_msg"` // 拒绝信息 Status string `json:"status"` // 状态 [已申请,已拒绝,已同意] CreateAt time.Time `json:"create_at"` // 创建时间 UpdateAt time.Time `json:"update_at"` // 更新时间 Name string `json:"name"` // 对方账号名称 Avatar string `json:"avatar"` // 对方头像 }
type BriefMsgInfo ¶
type BriefMsgInfo struct { ID int64 `json:"id"` // 消息ID NotifyType string `json:"notify_type"` // 通知类型 [system,common] MsgType string `json:"msg_type"` // 消息类型 [text,file] MsgContent string `json:"msg_content"` // 消息内容 文件则为url,文本则为文本内容,由拓展信息进行补充 Extend *model.MsgExtend `json:"msg_extend"` // 消息扩展信息 可能为null FileID int64 `json:"file_id"` // 文件ID 当消息类型为file时>0 AccountID int64 `json:"account_id"` // 账号ID 发送者ID RelationID int64 `json:"relation_id"` // 关系ID CreateAt time.Time `json:"create_at"` // 创建时间 }
BriefMsgInfo 简要消息详情
type CreateAccount ¶
type CreateFileMsg ¶
type CreateGroup ¶
type DeleteFile ¶
type DeleteFile struct { }
type DissolveGroup ¶
type DissolveGroup struct { }
type ExistEmail ¶
type ExistEmail struct {
Exist bool `json:"exist"` // 是否已经存在
}
type FeedMsgsByAccountIDAndTime ¶
type FeedMsgsByAccountIDAndTime struct { List []*MsgInfoWithRlyAndHasRead `json:"list"` Total int64 `json:"total"` }
type GetAccountByID ¶
type GetAccountByID struct { ID int64 `json:"id"` // 账号ID Name string `json:"name"` // 名称 Avatar string `json:"avatar"` // 头像 Gender string `json:"gender"` // 性别 [男,女,未知] Signature string `json:"signature"` // 个性签名 CreateAt time.Time `json:"create_at"` // 创建时间 RelationID int64 `json:"relation_id"` // 关系ID,如果不存在则为0 }
type GetAccountToken ¶
type GetAccountsByName ¶
type GetAccountsByName struct { List []*AccountFriendInfo `json:"list"` // 账号列表 Total int64 `json:"total"` // 总数 }
type GetAccountsByUserID ¶
type GetAccountsByUserID struct { List []*AccountInfo `json:"list"` // 账号列表 Total int64 `json:"total"` // 总数 }
type GetFriends ¶
type GetFriends struct { List []*model.SettingFriend `json:"list"` Total int64 `json:"total"` }
type GetFriendsByName ¶
type GetFriendsByName struct { List []*model.SettingFriend `json:"list"` Total int64 `json:"total"` }
type GetGroup ¶
type GetGroup struct { List []model.SettingGroup Total int64 }
type GetGroupMembers ¶
type GetMsgsByContent ¶
type GetMsgsByContent struct { List []*BriefMsgInfo `json:"list"` Total int64 `json:"total"` }
type GetMsgsByRelationIDAndTime ¶
type GetMsgsByRelationIDAndTime struct { List []*MsgInfoWithRly `json:"list"` Total int64 `json:"total"` }
type GetPinMsgsByRelationID ¶
type GetPins ¶
type GetPins struct { List []*model.SettingPin `json:"list"` Total int64 `json:"total"` }
type GetRelationFile ¶
type GetRelationFile struct {
FileList []*File `json:"file_list"`
}
type GetRlyMsgsInfoByMsgID ¶
type GetTopMsgByRelationID ¶
type GetTopMsgByRelationID struct {
MsgInfo MsgInfo `json:"msg_info"` // 置顶消息详情
}
type GroupNotify ¶
type InviteAccount ¶
type InviteAccount struct {
InviteMember []int64 `json:"invite_member"`
}
type ListApplications ¶
type ListApplications struct { List []*ApplicationInfo `json:"list"` Total int64 `json:"total"` }
type MsgInfo ¶
type MsgInfo struct { ID int64 `json:"id"` // 消息ID NotifyType string `json:"notify_type"` // 通知类型 [system,common] MsgType string `json:"msg_type"` // 消息类型 [text,file] MsgContent string `json:"msg_content"` // 消息内容 文件则为url,文本则为文本内容,由拓展信息进行补充 Extend *model.MsgExtend `json:"msg_extend"` // 消息扩展信息 可能为null FileID int64 `json:"file_id"` // 文件ID 当消息类型为file时>0 AccountID int64 `json:"account_id"` // 账号ID 发送者ID RelationID int64 `json:"relation_id"` // 关系ID CreateAt time.Time `json:"create_at"` // 创建时间 IsRevoke bool `json:"is_revoke"` // 是否撤回 IsTop bool `json:"is_top"` // 是否置顶 IsPin bool `json:"is_pin"` // 是否pin PinTime time.Time `json:"pin_time"` // pin时间 ReadIds []int64 `json:"read_ids"` // 已读的账号ID 当请求者不为发送者时为空 ReplyCount int64 `json:"reply_count"` // 回复数 }
MsgInfo 完整的消息详情
type MsgInfoWithRly ¶
MsgInfoWithRly 完整的消息详情 包含回复消息
type MsgInfoWithRlyAndHasRead ¶
type MsgInfoWithRlyAndHasRead struct { MsgInfoWithRly HasRead bool `json:"has_read"` // 是否已读 }
MsgInfoWithRlyAndHasRead 完整的消息详情 包含回复消息 包含是否已读
type PublishFile ¶
type RlyMsg ¶
type RlyMsg struct { MsgID int64 `json:"msg_id"` // 回复消息ID MsgType string `json:"msg_type"` // 消息类型 [text,file] MsgContent string `json:"msg_content"` // 消息内容 文件则为url,文本则为文本内容,由拓展信息进行补充 MsgExtend *model.MsgExtend `json:"msg_extend"` // 消息扩展信息 可能为null IsRevoke bool `json:"is_revoke"` // 是否撤回 }
RlyMsg 回复消息详情 可能为null
type TransferGroup ¶
type TransferGroup struct { }
type UpdateGroup ¶
type UpdateNotify ¶
type UpdateNotify struct { }
type UploadAvatar ¶
type UploadAvatar struct {
Url string `json:"url"`
}
Click to show internal directories.
Click to hide internal directories.