apnsApi

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultApnsSubject = "no title"
)

Variables

This section is empty.

Functions

func GetByMessage

func GetByMessage(ctx iris.Context)

func SendApns

func SendApns(ctx iris.Context)

Types

type ApnsInfoResp

type ApnsInfoResp struct {
	Id         int    `json:"id,omitempty"`
	Mode       int    `json:"mode"`
	MessageId  int    `json:"messageId,omitempty"` // message
	BundleId   string `json:"bundleId,omitempty"`
	Params     string `json:"params,omitempty"`
	Status     int    `json:"status,omitempty"`
	CreateTime string `json:"createTime,omitempty"`
	UpdateTime string `json:"updateTime,omitempty"`
}

type Req

type Req struct {
	BundleId string      `json:"bundleId,omitempty"` // bundle id
	Param    interface{} `json:"params,omitempty"`   // params
	Mode     int         `json:"mode,omitempty"`     // mode
	Subject  string      `json:"subject,omitempty"`  // subject
	Sender   string      `json:"sender,omitempty"`   // mail send account on the platform
	Receiver string      `json:"receiver,omitempty"` // receiver list(with comma if multi)
}

type Resp

type Resp struct {
	app.Response
	MessageId int `json:"messageId,omitempty"`
}

type RespWrapper

type RespWrapper struct {
	app.Response
	ApnsInfoResp
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL