| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- package types
- type (
- Msg struct {
- MType `mapstructure:"mType"`
- Content string `mapstructure:"content"` //内容
- MsgID string `mapstructure:"msgId"` // 消息id
- ReadRecords map[string]string `mapstructure:"readRecords"` // 阅读消息记录
- }
- Chat struct {
- ConversationId string `mapstructure:"conversationId"` // 会话id
- ChatType `mapstructure:"chatType"` // 会话类型
- SendID int64 `mapstructure:"sendId"` //发送者
- RecvID int64 `mapstructure:"recvId"` //接收者
- Msg `mapstructure:"msg"` // 消息接口
- SendTime int64 `mapstructure:"sendTime"` // 消息发送时间
- }
- Push struct {
- ConversationId string `mapstructure:"conversationId"` // 会话id
- ChatType `mapstructure:"chatType"` // 会话类型
- SendID int64 `mapstructure:"sendId"` //发送者
- RecvID int64 `mapstructure:"recvId"` //接收者
- RecvIDs []int64 `mapstructure:"recvIds"` //多个接收者
- SendTime int64 `mapstructure:"sendTime"` //消息发送时间
- MsgID string `mapstructure:"msgId"` // 消息id
- ReadRecords map[string]string `mapstructure:"readRecords"` //消息阅读记录
- ContentType ContentType `mapstructure:"contentType"` // 消息内容类型
- MType `mapstructure:"mType"`
- Content string `mapstructure:"content"` // 消息内容
- ID string `json:"id"` // 消息id
- }
- MarkRead struct {
- ChatType `mapstructure:"chatType"`
- RecvID int64 `mapstructure:"recvId"` //接收者
- ConversationId string `mapstructure:"conversationId"`
- MsgIds []string `mapstructure:"msgIds"`
- }
- )
|