Documentation ¶
Index ¶
- func ExpandToJson(extend *MsgExtend) (pgtype.JSON, error)
- type Content
- type CreateFileMsg
- type CreateMsg
- type FeedMsgsByAccountIDAndTime
- type GetMsgsByContent
- type GetMsgsByRelationIDAndTime
- type GetPinMsgsByRelationID
- type GetRlyMsgsInfoByMsgID
- type GetTopMsgByRelationID
- type HandleReadMsg
- type HandleSendMsg
- type MsgExtend
- type MsgType
- type PublishFile
- type PublishFileRe
- type Remind
- type RevokeMsg
- type Setting
- type SettingFriend
- type SettingFriendInfo
- type SettingGroup
- type SettingGroupInfo
- type SettingInfo
- type SettingPin
- type SettingPinInfo
- type Token
- type TokenType
- type UpdateMsgPin
- type UpdateMsgTop
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Content ¶
func NewTokenContent ¶
NewTokenContent 新建一种类型的token
type CreateFileMsg ¶
type CreateFileMsg struct {
AccountID, RelationID, RlyMsgID int64
File *multipart.FileHeader
}
type GetMsgsByContent ¶
type GetPinMsgsByRelationID ¶
type GetRlyMsgsInfoByMsgID ¶
type GetTopMsgByRelationID ¶
type GetTopMsgByRelationID struct {
AccountID, RelationID int64
}
type HandleReadMsg ¶
type HandleSendMsg ¶
type MsgExtend ¶
type MsgExtend struct {
Remind []Remind `json:"remind"` // @的描述信息
}
MsgExtend 消息扩展信息 可能为null
type PublishFile ¶
type PublishFile struct { File *multipart.FileHeader `form:"file" binding:"required" swaggerignore:"true"` RelationID int64 `form:"relation_id" binding:"required"` AccountID int64 `form:"account_id" binding:"required"` }
type PublishFileRe ¶
type Setting ¶
type Setting struct { SettingInfo GroupInfo *SettingGroupInfo `json:"group_info"` // 群组信息 FriendInfo *SettingFriendInfo `json:"friend_info"` // 好友信息 }
type SettingFriend ¶
type SettingFriend struct { SettingInfo FriendInfo *SettingFriendInfo `json:"friend_info"` // 好友信息 }
type SettingFriendInfo ¶
type SettingGroup ¶
type SettingGroup struct { SettingInfo GroupInfo *SettingGroupInfo `json:"group_info"` }
type SettingGroupInfo ¶
type SettingInfo ¶
type SettingInfo struct { RelationID int64 `json:"relation_id"` // 关系ID RelationType string `json:"relation_type"` // 关系类型['group','friend'] NickName string `json:"nick_name"` // 昵称(群组时为在群中昵称,好友时为好友昵称, 空表示未设置) IsNotDisturb bool `json:"is_not_disturb"` // 是否免打扰 IsPin bool `json:"is_pin"` // 是否pin PinTime time.Time `json:"pin_time"` // pin时间 IsShow bool `json:"is_show"` // 是否显示 LastShow time.Time `json:"last_show"` // 最后显示时间 }
type SettingPin ¶
type SettingPin struct { SettingPinInfo GroupInfo *SettingGroupInfo `json:"group_info"` // 群组信息 FriendInfo *SettingFriendInfo `json:"friend_info"` // 好友信息 }
type SettingPinInfo ¶
type UpdateMsgPin ¶
type UpdateMsgTop ¶
Click to show internal directories.
Click to hide internal directories.