service/api/proto/firenze/websocket.go

37 lines
638 B
Go
Raw Normal View History

2024-10-12 16:28:53 +08:00
package firenze
2024-11-29 14:37:44 +08:00
import (
"encoding/json"
"service/api/base"
)
2024-10-12 16:28:53 +08:00
2024-11-28 16:22:44 +08:00
// 单条消息
2024-10-12 16:28:53 +08:00
type SendBizMsgParam struct {
Sid string `json:"sid"`
Mid int64 `json:"mid"`
Msg json.RawMessage `json:"msg"`
}
2024-11-28 16:22:44 +08:00
// 广播
type SendBroadcastMsgParam struct {
Msg json.RawMessage `json:"msg"`
}
2024-11-29 14:22:55 +08:00
// 多mid消息
type BatchSendBizMsgParam struct {
Sids []string `json:"sids"`
Mids []int64 `json:"mids"`
Msg json.RawMessage `json:"msg"`
}
2024-11-29 14:37:44 +08:00
type OnlineMidsParam struct{}
type OnlineMidsData struct {
Mids []int64 `json:"mids"`
}
type OnlineMidsResp struct {
base.BaseRespHead
Data *OnlineMidsData `json:"data"`
}