Documentation ¶
Index ¶
- Constants
- type ExLinkItem
- type ExLinkMessage
- type FileMessage
- type ImageMessage
- type LinkItem
- type LinkMessage
- type MailMessage
- type MediaItem
- type Message
- type MpNewsItem
- type MpNewsMessage
- type PopWindowItem
- type PopWindowMessage
- type SmsMessage
- type SysMessage
- type SysMsgItem
- type SysMsgItemMsg
- type TextItem
- type TextMessage
Constants ¶
View Source
const ( MsgTypeText = "text" MsgTypeImage = "image" MsgTypeFile = "file" MsgTypeMpNews = "mpnews" MsgTypeAudio = "audio" MsgTypeVideo = "video" MsgTypeLink = "link" MsgTypeExtLink = "exlink" MsgTypeSys = "sysMsg" MsgTypeSms = "sms" MsgTypeMail = "mail" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExLinkItem ¶
type ExLinkMessage ¶
type ExLinkMessage struct { ToUser string `json:"toUser"` ToDept string `json:"toDept"` MsgType string `json:"msgType"` ExLink *[]ExLinkItem `json:"exlink"` }
type FileMessage ¶
type ImageMessage ¶
type LinkMessage ¶
type MailMessage ¶
type MailMessage struct { ToUser string `json:"toUser"` ToEmail string `json:"toEmail"` MsgType string `json:"msgType"` Mail *struct { Action string `json:"action"` Subject string `json:"subject"` FromUser string `json:"fromUser"` FromEmail string `json:"fromEmail"` Time int `json:"time"` Link string `json:"link"` UnreadCount int `json:"unreadCount"` } }
type MpNewsItem ¶
type MpNewsMessage ¶
type MpNewsMessage struct { ToUser string `json:"toUser"` ToDept string `json:"toDept"` MsgType string `json:"msgType"` MpNews []*MpNewsItem `json:"mpNews"` }
type PopWindowItem ¶
type PopWindowMessage ¶
type PopWindowMessage struct { ToUser string `json:"toUser"` ToDept string `json:"toDept"` PopWindow *PopWindowItem `json:"popWindow"` }
type SmsMessage ¶
type SysMessage ¶
type SysMessage struct { ToUser string `json:"toUser"` ToDept string `json:"toDept"` ToAll struct { OnliyOnline bool `json:"onliyOnline"` } `json:"toAll"` MsgType string `json:"msgType"` SysMsg *SysMsgItem `json:"sysMsg"` }
type SysMsgItem ¶ added in v1.1.0
type SysMsgItem struct { Title string `json:"title"` PopDuration int `json:"popDuration"` Msg []*SysMsgItemMsg `json:"msg"` }
type SysMsgItemMsg ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.