mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-09 11:35:59 +08:00
errcode
This commit is contained in:
@@ -1,18 +1,16 @@
|
||||
package push
|
||||
|
||||
import "Open_IM/pkg/common/constant"
|
||||
|
||||
var PushTerminal = []int{constant.IOSPlatformID, constant.AndroidPlatformID, constant.WebPlatformID}
|
||||
import "context"
|
||||
|
||||
type OfflinePusher interface {
|
||||
Push(userIDList []string, title, detailContent, operationID string, opts PushOpts) (resp string, err error)
|
||||
Push(ctx context.Context, userIDs []string, title, content, opts *Opts) error
|
||||
}
|
||||
|
||||
type PushOpts struct {
|
||||
Signal Signal
|
||||
type Opts struct {
|
||||
Signal *Signal
|
||||
IOSPushSound string
|
||||
IOSBadgeCount bool
|
||||
Data string
|
||||
Ex string
|
||||
}
|
||||
|
||||
type Signal struct {
|
||||
|
||||
Reference in New Issue
Block a user