open-im-server/internal/push/push_interface.go
2022-12-12 11:16:55 +08:00

21 lines
452 B
Go

package push
import "Open_IM/pkg/common/constant"
var PushTerminal = []int{constant.IOSPlatformID, constant.AndroidPlatformID, constant.WebPlatformID}
type OfflinePusher interface {
Push(userIDList []string, title, detailContent, operationID string, opts PushOpts) (resp string, err error)
}
type PushOpts struct {
Signal Signal
IOSPushSound string
IOSBadgeCount bool
Data string
}
type Signal struct {
ClientMsgID string
}