open-im-server/internal/push/push_interface.go
2022-09-01 21:05:16 +08:00

20 lines
406 B
Go

package push
import "Open_IM/pkg/common/constant"
var PushTerminal = []int{constant.IOSPlatformID, constant.AndroidPlatformID}
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
}
type Signal struct {
ClientMsgID string
}