37 lines
638 B
Go
37 lines
638 B
Go
package firenze
|
|
|
|
import (
|
|
"encoding/json"
|
|
"service/api/base"
|
|
)
|
|
|
|
// 单条消息
|
|
type SendBizMsgParam struct {
|
|
Sid string `json:"sid"`
|
|
Mid int64 `json:"mid"`
|
|
Msg json.RawMessage `json:"msg"`
|
|
}
|
|
|
|
// 广播
|
|
type SendBroadcastMsgParam struct {
|
|
Msg json.RawMessage `json:"msg"`
|
|
}
|
|
|
|
// 多mid消息
|
|
type BatchSendBizMsgParam struct {
|
|
Sids []string `json:"sids"`
|
|
Mids []int64 `json:"mids"`
|
|
Msg json.RawMessage `json:"msg"`
|
|
}
|
|
|
|
type OnlineMidsParam struct{}
|
|
|
|
type OnlineMidsData struct {
|
|
Mids []int64 `json:"mids"`
|
|
}
|
|
|
|
type OnlineMidsResp struct {
|
|
base.BaseRespHead
|
|
Data *OnlineMidsData `json:"data"`
|
|
}
|