Documentation
¶
Index ¶
- type AcceptTimeItem
- type Action
- type AndroidParams
- type Aps
- type AtyAttr
- type AudienceType
- type Browser
- type ChannelDistributeRule
- type CommonRsp
- type CommonRspEnv
- type HourAndMin
- type IOSParams
- type Message
- type MessageType
- type PushLoopParam
- type PushLoopType
- type Request
- type TagItem
- type TagListOperation
- type TagRule
- type TagType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcceptTimeItem ¶
type AcceptTimeItem struct { Start HourAndMin `json:"start,omitempty"` End HourAndMin `json:"end,omitempty"` }
type AndroidParams ¶
type AndroidParams struct { BuilderId *int `json:"builder_id,omitempty"` Ring *int `json:"ring,omitempty"` RingRaw string `json:"ring_raw,omitempty"` Vibrate *int `json:"vibrate,omitempty"` Lights *int `json:"lights,omitempty"` Clearable *int `json:"clearable,omitempty"` IconType *int `json:"icon_type"` IconRes string `json:"icon_res,omitempty"` StyleId *int `json:"style_id,omitempty"` SmallIcon string `json:"small_icon,omitempty"` Action *Action `json:"action,omitempty"` CustomContent string `json:"custom_content,omitempty"` ShowType *int `json:"show_type,omitempty"` NChId string `json:"n_ch_id,omitempty"` NChName string `json:"n_ch_name,omitempty"` HwChId string `json:"hw_ch_id,omitempty"` XmChId string `json:"xm_ch_id,omitempty"` OppoChId string `json:"oppo_ch_id,omitempty"` VivoChId string `json:"vivo_ch_id,omitempty"` BadgeType *int `json:"badge_type,omitempty"` IconColor *int `json:"icon_color,omitempty"` }
type Aps ¶
type Aps struct { Alert map[string]string `json:"alert,omitempty"` BadgeType *int `json:"badge_type,omitempty"` Category string `json:"category,omitempty"` ContentAvailableInt *int `json:"content-available,omitempty"` MutableContent *int `json:"mutable-content,omitempty"` Sound string `json:"sound,omitempty"` }
type AudienceType ¶
type AudienceType string
const ( AdAll AudienceType = "all" AdTag AudienceType = "tag" AdToken AudienceType = "token" AdTokenList AudienceType = "token_list" AdAccount AudienceType = "account" AdAccountList AudienceType = "account_list" AdPackageAccount AudienceType = "package_account_push" AdPackageToken AudienceType = "package_token_push" )
type ChannelDistributeRule ¶
type CommonRspEnv ¶
type CommonRspEnv string
const ( // EnvProd EnvProd CommonRspEnv = "product" // EnvDev EnvDev CommonRspEnv = "dev" )
type HourAndMin ¶
type Message ¶
type Message struct { Title string `json:"title,omitempty"` Content string `json:"content,omitempty"` AcceptTime []AcceptTimeItem `json:"accept_time,omitempty"` Android *AndroidParams `json:"android,omitempty"` IOS *IOSParams `json:"ios,omitempty"` ThreadId string `json:"thread_id,omitempty"` ThreadSumtext string `json:"thread_sumtext,omitempty"` XGMediaResources string `json:"xg_media_resources,omitempty"` XGMediaAudioResources string `json:"xg_media_audio_resources,omitempty"` }
type MessageType ¶
type MessageType string
MessageType push API message_type
const ( MsgTypeNotify MessageType = "notify" MsgTypeMessage MessageType = "message" )
type PushLoopParam ¶
type PushLoopParam struct { StartDate string `json:"startDate"` EndDate string `json:"endDate"` LoopType PushLoopType `json:"loopType"` LoopDayIndexs []uint32 `json:"loopDayIndexs"` DayTimes []string `json:"dayTimes"` }
type PushLoopType ¶
type PushLoopType int32
type Request ¶
type Request struct { AudienceType AudienceType `json:"audience_type"` Message Message `json:"message"` MessageType MessageType `json:"message_type"` Tag []TagRule `json:"tag_rules,omitempty"` TokenList []string `json:"token_list,omitempty"` AccountList []string `json:"account_list,omitempty"` Environment CommonRspEnv `json:"environment,omitempty"` UploadId int `json:"upload_id,omitempty"` ExpireTime int `json:"expire_time,omitempty"` SendTime string `json:"send_time,omitempty"` MultiPkg bool `json:"multi_pkg,omitempty"` PlanId string `json:"plan_id,omitempty"` AccountPushType int `json:"account_push_type,omitempty"` PushSpeed int `json:"push_speed,omitempty"` CollapseId int `json:"collapse_id"` TPNSOnlinePushType int `json:"tpns_online_push_type"` ChannelRules []*ChannelDistributeRule `json:"channel_rules,omitempty"` LoopParam *PushLoopParam `json:"loop_param,omitempty"` ForceCollapse bool `json:"force_collapse"` }
type TagItem ¶
type TagItem struct { // 标签 Tags []string `json:"tags"` IsNot bool `json:"is_not"` TagsOperator TagListOperation `json:"tags_operator"` ItemsOperator TagListOperation `json:"items_operator"` TagType TagType `json:"tag_type"` }
type TagListOperation ¶
type TagListOperation string
const ( TagListOpAnd TagListOperation = "AND" TagListOpOr TagListOperation = "OR" )
type TagRule ¶
type TagRule struct { TagItems []TagItem `json:"tag_items"` IsNot bool `json:"is_not"` Operator TagListOperation `json:"operator"` }
type TagType ¶
type TagType string
const ( XGAutoProvince TagType = "xg_auto_province" XGAutoActive TagType = "xg_auto_active" XGUserDefine TagType = "xg_user_define" XGAutoVersion TagType = "xg_auto_version" XGAutoSdkversion TagType = "xg_auto_sdkversion" XGAutoDevicebrand TagType = "xg_auto_devicebrand" XGAutoDeviceversion TagType = "xg_auto_deviceversion" XGAutoCountry TagType = "xg_auto_country" )
Click to show internal directories.
Click to hide internal directories.