Files
open-im-server/internal/push/push_interface.go
T

21 lines
428 B
Go
Raw Normal View History

2022-04-05 10:27:34 +08:00
package push
2022-09-01 21:05:16 +08:00
import "Open_IM/pkg/common/constant"
var PushTerminal = []int{constant.IOSPlatformID, constant.AndroidPlatformID}
2022-04-08 15:40:07 +08:00
type OfflinePusher interface {
2022-09-01 21:05:16 +08:00
Push(userIDList []string, title, detailContent, operationID string, opts PushOpts) (resp string, err error)
2022-06-02 19:14:11 +08:00
}
type PushOpts struct {
2022-08-31 11:55:55 +08:00
Signal Signal
IOSPushSound string
IOSBadgeCount bool
2022-09-02 22:03:35 +08:00
Data string
2022-06-02 19:14:11 +08:00
}
type Signal struct {
ClientMsgID string
2022-04-05 10:27:34 +08:00
}