2022-04-05 10:27:34 +08:00
|
|
|
package push
|
|
|
|
|
|
2023-02-20 10:13:29 +08:00
|
|
|
import "context"
|
2022-09-01 21:05:16 +08:00
|
|
|
|
2022-04-08 15:40:07 +08:00
|
|
|
type OfflinePusher interface {
|
2023-02-22 19:51:14 +08:00
|
|
|
Push(ctx context.Context, userIDs []string, title, content string, opts *Opts) error
|
2022-06-02 19:14:11 +08:00
|
|
|
}
|
|
|
|
|
|
2023-02-20 10:13:29 +08:00
|
|
|
type Opts struct {
|
|
|
|
|
Signal *Signal
|
2022-08-31 11:55:55 +08:00
|
|
|
IOSPushSound string
|
|
|
|
|
IOSBadgeCount bool
|
2023-02-20 10:13:29 +08:00
|
|
|
Ex string
|
2022-06-02 19:14:11 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Signal struct {
|
|
|
|
|
ClientMsgID string
|
2022-04-05 10:27:34 +08:00
|
|
|
}
|